/* Onymera — onymera.app
   Palette and type lifted from the app: cream paper, ink, one crimson accent.
   No webfonts, no scripts, no third-party requests. The site collects nothing,
   which is the same promise the app makes. */

:root {
  color-scheme: light dark;

  --paper:        #FFFBF4;
  --paper-2:      #FFF6E9;
  --paper-3:      #FFF2DB;
  --tan:          #FFE6C0;
  --ink:          #1A1917;
  --ink-2:        #3D3934;
  --muted:        #6B655E;
  --rule:         rgba(26, 25, 23, .13);
  --rule-soft:    rgba(26, 25, 23, .07);
  --crimson:      #DC1B33;
  --crimson-text: #B5142A;
  --crimson-deep: #8E0F21;
  --shadow:       0 2px 4px rgba(92, 61, 20, .05), 0 18px 44px rgba(92, 61, 20, .13);
  --shadow-sm:    0 1px 2px rgba(92, 61, 20, .05), 0 6px 18px rgba(92, 61, 20, .08);

  --display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia,
             "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          system-ui, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --gut: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #131211;
    --paper-2:      #1A1815;
    --paper-3:      #211D19;
    --tan:          #2E2720;
    --ink:          #F7F0E4;
    --ink-2:        #DCD4C7;
    --muted:        #9E958A;
    --rule:         rgba(247, 240, 228, .15);
    --rule-soft:    rgba(247, 240, 228, .08);
    --crimson:      #FF5C70;
    --crimson-text: #FF7C8C;
    --crimson-deep: #FF95A2;
    --shadow:       0 2px 4px rgba(0, 0, 0, .3), 0 20px 48px rgba(0, 0, 0, .5);
    --shadow-sm:    0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 720px; }

/* ── Type ─────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.1rem); line-height: 1.04; letter-spacing: -.022em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.018em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.008em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--crimson-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-deep); }
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 4px;
}

strong, b { color: var(--ink); font-weight: 650; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--crimson-text);
  margin: 0 0 .85em;
}

.lede { font-size: clamp(1.08rem, 2.2vw, 1.24rem); color: var(--muted); line-height: 1.55; }

/* ── Header ───────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand span { font-family: var(--display); font-size: 1.24rem; font-weight: 700; letter-spacing: -.015em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); }
.site-nav a {
  font-size: .93rem; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--crimson); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--crimson-deep); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #241013; }
  .btn-primary:hover { color: #241013; }
}
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

/* Never use a style attribute: _headers ships style-src 'self', which blocks
   inline styles outright. Anything one-off goes here instead. */
.cta-row-spaced { margin-top: 34px; }

/* ── Sections ─────────────────────────────────────────────────────── */

section { padding-block: clamp(56px, 9vw, 104px); }
.tinted { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(44px, 7vw, 84px);
  padding-bottom: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, var(--paper-3) 0%, transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-3) 100%);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 60px); align-items: end;
}
.hero-copy { padding-bottom: clamp(56px, 9vw, 104px); }
.hero h1 { margin-bottom: .5em; }
.hero .lede { max-width: 30ch; margin-bottom: 2em; }

.hero-art { position: relative; align-self: end; min-height: 380px; }

/* ── Device frames ────────────────────────────────────────────────── */

.device {
  position: relative; z-index: 1;
  border-radius: 12.4% / 5.9%;
  background: linear-gradient(150deg, #45403c, #171615 42%, #2b2724);
  padding: 2.6%;
  box-shadow: var(--shadow);
}
.device img {
  display: block; width: 100%; height: auto;
  border-radius: 10.4% / 5%;
  background: var(--paper);
}
.device::after {
  content: ""; position: absolute; inset: 2.6%;
  border-radius: 10.4% / 5%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.11);
  pointer-events: none;
}

.hero-art .device { width: 72%; margin-left: auto; margin-right: 2%; z-index: 2; }
.hero-art .device-back {
  position: absolute; left: -2%; bottom: 9%;
  width: 52%; margin: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.shot-caption {
  font-size: .82rem; color: var(--muted); text-align: center;
  margin: 16px auto 0; max-width: 34ch;
}

/* ── Feature rows ─────────────────────────────────────────────────── */

.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.row .device { width: min(300px, 78%); margin-inline: auto; }
.row-flip .row-media { order: -1; }
.row h2 { margin-bottom: .55em; }

/* ── Three-up ─────────────────────────────────────────────────────── */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vw, 40px); }
.trio h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.008em; margin-bottom: .5em; }
.trio p { font-size: .97rem; color: var(--muted); }
.trio .mark {
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--crimson); margin-bottom: 20px;
}

/* ── Language table ───────────────────────────────────────────────── */

.langs { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.langs li {
  display: grid; grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.langs .lang-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.langs .lang-count {
  font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink);
  font-size: 1.05rem; white-space: nowrap;
}
.langs .lang-src { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); margin: 0; }

/* ── Personalization price line ───────────────────────────────────── */

.price-line {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--display); color: var(--ink);
  margin-top: 6px;
}
.price-line .amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; }
.price-line .unit { font-family: var(--sans); font-size: .95rem; color: var(--muted); }

/* ── Privacy statement band ───────────────────────────────────────── */

.statement { background: var(--ink); color: var(--paper-3); border-block: none; }
.statement h2 { color: var(--paper); max-width: 20ch; margin-bottom: .7em; }
.statement p { color: rgba(255, 251, 244, .74); }
.statement a { color: #FF8E9C; }
.statement a:hover { color: #FFB3BD; }
.statement .eyebrow { color: #FF8E9C; }
@media (prefers-color-scheme: dark) {
  .statement { background: #0B0A09; }
}

/* ── FAQ ──────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--rule); margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; font-weight: 400; color: var(--crimson-text); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── Prose pages (privacy, support) ───────────────────────────────── */

.page-head { padding: clamp(44px, 7vw, 76px) 0 clamp(24px, 4vw, 40px); background: var(--paper-3); border-bottom: 1px solid var(--rule-soft); }
.page-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.2rem); }
.page-head .meta { font-size: .92rem; color: var(--muted); margin: 14px 0 0; }

.prose { padding-block: clamp(38px, 6vw, 64px) clamp(56px, 9vw, 96px); }
.prose h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 2.2em 0 .6em;
  padding-top: 1.1em; border-top: 1px solid var(--rule);
}
.prose > .narrow > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 1.7em 0 .4em; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.15em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--crimson); }

.callout {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-left: 3px solid var(--crimson);
  border-radius: 4px 14px 14px 4px;
  padding: 20px 24px; margin: 1.6em 0; max-width: 68ch;
}
.callout p { margin-bottom: .7em; }
.callout p:last-child { margin-bottom: 0; }

.toc { margin: 0 0 2.4em; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.toc a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--rule); font-size: .88rem; text-decoration: none; color: var(--muted);
}
.toc a:hover { border-color: var(--crimson); color: var(--crimson-text); }

.contact-card {
  background: var(--paper-3); border: 1px solid var(--rule);
  border-radius: 18px; padding: clamp(22px, 4vw, 32px); margin-top: 2em; max-width: 68ch;
}
.contact-card h2 { margin: 0 0 .4em; padding: 0; border: 0; font-size: 1.5rem; }
.contact-card .mail { font-size: 1.2rem; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────────────── */

.site-foot {
  background: var(--paper-2); border-top: 1px solid var(--rule);
  padding-block: 44px; font-size: .92rem; color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .legal { margin: 0; }

.skip {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--crimson); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; z-index: 100; text-decoration: none;
}
.skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { min-height: 0; padding-bottom: clamp(40px, 8vw, 64px); }
  .hero-art .device { width: 64%; margin-left: auto; margin-right: 0; }
  .hero-art .device-back { left: 0; bottom: 12%; width: 46%; }
  .row { grid-template-columns: 1fr; gap: 32px; }
  .row-flip .row-media { order: 0; }
  .trio { grid-template-columns: 1fr; gap: 30px; }
  .site-foot nav { margin-left: 0; }
}

@media (max-width: 660px) {
  .site-nav .nav-secondary { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero-art .device { width: 68%; }
  .hero-art .device-back { width: 48%; bottom: 14%; }
  .cta-row .btn { width: 100%; }
  .site-nav { gap: 14px; }
}

@media print {
  .site-head, .site-foot nav, .cta-row, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
}

/* Specimens ------------------------------------------------------------
   Real entries, set the way the app sets them. The page spent a lot of words
   claiming the sentences were good without ever printing one; this is the claim
   shown instead of argued, so it gets the app's own typography — serif for the
   headword, the crimson rule for the example — rather than looking like a table
   of features. */
.specimens { background: var(--paper-3); border-block: 1px solid var(--rule-soft); }
.spec-lede { max-width: 56ch; margin-bottom: clamp(28px, 4vw, 44px); }

.spec-grid {
  display: grid;
  /* Two by two. auto-fit resolved to three across at desktop and orphaned the
     fourth entry on a row of its own — the same way the four laws did. */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.spec {
  margin: 0;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.spec-lang {
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9em;
}

.spec-word {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: .12em;
}

/* CJK headwords have no business in a Latin serif — the system face renders them
   correctly and a fallback serif does not. */
.spec-word[lang="ko"], .spec-word[lang="zh"], .spec-word[lang="ja"] {
  font-family: var(--sans);
  font-weight: 600;
}

.spec-say { font: .9rem/1.3 var(--sans); color: var(--muted); margin-bottom: .85em; }
.spec-def { font-size: .99rem; color: var(--ink-2); margin-bottom: 1em; }

.spec-ex {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--crimson);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}

.spec-gloss { font-size: .92rem; color: var(--muted); margin-top: .6em; }

@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* Hero emphasis --------------------------------------------------------
   One italic clause in the headline. It is the only italic on the page, which
   is what makes it read as emphasis rather than decoration. */
h1 em { font-style: italic; color: var(--crimson-text); }

/* Method ---------------------------------------------------------------
   The product's argument, numbered. It was previously spread across three
   sections as prose, where it read as a list of features rather than a claim
   about how vocabulary is actually retained. */
.method { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }
.method-lede { max-width: 58ch; margin-bottom: clamp(30px, 4.4vw, 52px); }

.laws {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Two by two, not auto-fit. Four items in an auto-fit grid resolve to three
     across at this width and orphan the fourth, and forcing four columns would
     make each one too narrow for a sentence. */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 3.4vw, 46px) clamp(30px, 5vw, 72px);
  counter-reset: law;
}

.laws li { margin: 0; }

.law-n {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: .28em;
}

.laws h3 { margin-bottom: .45em; }
.laws p { font-size: .97rem; color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .laws { grid-template-columns: 1fr; gap: 26px; }
  .law-n { font-size: 2rem; }
}
