/* =========================================================================
   10 Words — marketing site
   Brand ported from the iOS app (Themes/LightTheme.swift): warm cream paper,
   lime accent, dark-ink type, Nunito. Signature motif = crossword word-tiles.
   ========================================================================= */

:root {
  /* paper + ink */
  --cream:      #F7F6F1;
  --cream-alt:  #EFEDE2;
  --cream-deep: #E7E4D7;
  --paper:      #FFFFFF;
  --ink:        #1B1E17;
  --ink-soft:   #43473C;
  --muted:      #6B6F63;
  --line:       rgba(27,30,23,0.10);
  --line-soft:  rgba(27,30,23,0.06);

  /* accents (from app tokens) */
  --lime:        #E8FF6B;   /* bright chip / primary button */
  --lime-ink:    #12160C;   /* text on lime */
  --olive:       #5C7A16;   /* links / accent text */
  --olive-bright:#8BB52E;   /* "correct" crossword fill */
  --teal:        #7ABBC1;   /* secondary accent */
  --amber:       #E9A33B;   /* the "0" tile in the wordmark */

  /* dark band */
  --dark:        #0A0D12;
  --dark-2:      #0D131A;
  --dark-surface:#141A21;
  --dark-line:   rgba(255,255,255,0.09);
  --dark-text:   #E8ECEF;
  --dark-muted:  #8D98A1;

  /* system */
  --radius-tile: 13px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(27,30,23,.04), 0 8px 30px rgba(27,30,23,.06);
  --shadow-lift: 0 2px 6px rgba(27,30,23,.06), 0 22px 50px rgba(27,30,23,.12);
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 800; }
p  { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

/* ---- layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--olive-bright); border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }

/* ---- crossword tiles (signature) ------------------------------------ */
.tiles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tile {
  --sz: 46px;
  width: var(--sz); height: var(--sz);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-tile);
  font-weight: 900; font-size: calc(var(--sz) * .46); letter-spacing: 0;
  background: var(--cream-deep); color: var(--ink);
  border: 1.5px dashed #B8B29B;
  user-select: none;
}
.tile--fill { background: var(--olive-bright); color: #12280a; border: none; }
.tile--lime { background: var(--lime); color: var(--lime-ink); border: none; }
.tile--teal { background: var(--teal); color: #06272b; border: none; }
.tile--amber{ background: var(--amber); color: #3a2205; border: none; }
.tile--ghost{ background: transparent; border: 1.5px dashed var(--line); }

/* wordmark: 1 0 W O R D S */
.wordmark { display: inline-flex; gap: 5px; align-items: center; }
.wordmark .tile { --sz: 30px; border-radius: 9px; }
.wordmark--lg .tile { --sz: 40px; border-radius: 11px; }

/* ---- buttons / badges ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 6px 18px rgba(139,181,46,.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(139,181,46,.36); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* App Store badge — non-linking until launch */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border-radius: 14px; padding: 0 20px; height: 56px; min-width: 190px;
  color: #fff; user-select: none;
}
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.12; }
.store-badge .sb-sm { font-size: .66rem; color: #b9b9b9; letter-spacing: .03em; }
.store-badge .sb-lg { font-size: 1.14rem; font-weight: 700; }
.badge-note { font-size: .82rem; color: var(--muted); margin-top: 8px; font-weight: 700; }
.store-badge[aria-disabled="true"] { opacity: .96; cursor: default; }

/* ---- header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 900; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 1.12rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-weight: 700; font-size: .98rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .btn { padding: 10px 18px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---- hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 78% 12%, #000 0%, transparent 62%);
  opacity: .7;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(40px, 6vw, 76px);
}
.hero h1 { margin-top: 20px; }
.hero h1 .accent { color: var(--olive); }
.hero-lede { margin-top: 20px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: .86rem; font-weight: 800; color: var(--ink-soft);
}
.chip b { color: var(--olive); }

.hero-device { position: relative; justify-self: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 1284 / 2778;
  border-radius: 42px; padding: 10px; background: #0a0d12;
  box-shadow: var(--shadow-lift); border: 1px solid rgba(0,0,0,.35);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone::after { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 26px; background: #0a0d12; border-radius: 0 0 16px 16px; z-index: 2;
}
.float-tag {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-card);
  font-weight: 800; font-size: .84rem; display: flex; align-items: center; gap: 9px;
}
.float-tag small { display: block; color: var(--muted); font-weight: 700; font-size: .74rem; }
.float-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--olive-bright); }
.float-tag--tl { top: 12%; left: -6%; }
.float-tag--br { bottom: 14%; right: -8%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lede, .hero h1 { max-width: none; }
  .hero-cta, .hero-proof { justify-content: center; }
  .float-tag--tl { left: 2%; } .float-tag--br { right: 2%; }
}

/* ---- method strip ---------------------------------------------------- */
.strip { background: var(--ink); color: var(--cream); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 48px); justify-content: space-between; align-items: center; padding-block: 26px; }
.strip-item { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1rem; }
.strip-item .k { color: var(--lime); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.strip-item small { display: block; color: #b7bdae; font-weight: 700; font-size: .8rem; }

/* ---- section heading block ------------------------------------------ */
.head { max-width: 62ch; }
.head.center { margin-inline: auto; }
.head h2 { margin-top: 12px; }
.head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.1rem; }

/* ---- steps (how it works) -------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 30px 26px; box-shadow: var(--shadow-card); position: relative;
}
.step .n {
  width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--lime-ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- feature cards --------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; box-shadow: var(--shadow-card);
}
.card .ic { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---- languages ------------------------------------------------------- */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.lang {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow-card); color: var(--ink); font-weight: 800;
}
.lang:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); transition: .15s; }
.lang .flag { font-size: 1.9rem; line-height: 1; }
.lang .meta { display: flex; flex-direction: column; }
.lang .status { font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lang .status.live { color: var(--olive); }
.lang .status.soon { color: var(--muted); }
@media (max-width: 820px) { .langs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .langs { grid-template-columns: 1fr; } }

/* ---- guides grid ----------------------------------------------------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow-card); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-card .kicker { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.guide-card h3 { font-size: 1.18rem; }
.guide-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.guide-card .more { margin-top: auto; font-weight: 800; color: var(--olive); }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr; } }

/* ---- FAQ (accordion) ------------------------------------------------- */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-card);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 800; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 800; color: var(--olive); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 0 20px; color: var(--ink-soft); }
.faq .a p { margin: 0 0 10px; }

/* ---- CTA band -------------------------------------------------------- */
.cta { background: var(--dark); color: var(--dark-text); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(90% 120% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(90% 120% at 50% 0%, #000, transparent 70%);
  opacity: .5;
}
.cta .wrap { position: relative; z-index: 1; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: var(--dark-muted); font-size: 1.12rem; max-width: 52ch; margin: 16px auto 30px; }
.cta .wordmark { margin-bottom: 26px; }
.cta .badge-note { color: var(--dark-muted); }

/* ---- footer ---------------------------------------------------------- */
.footer { background: var(--cream-alt); border-top: 1px solid var(--line); }
.footer .wrap { padding-block: 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: var(--ink-soft); font-weight: 700; font-size: .96rem; }
.footer .about p { color: var(--muted); font-size: .94rem; max-width: 34ch; margin-top: 14px; }
.footer .brand { margin-bottom: 0; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); font-weight: 700; }
@media (max-width: 820px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---- article / guide prose ------------------------------------------ */
.article { padding-block: clamp(40px, 6vw, 72px); }
.article .wrap { max-width: 760px; }
.breadcrumb { font-size: .86rem; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--olive); }
.article h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.article > .wrap > p:first-of-type, .article .standfirst { font-size: 1.2rem; color: var(--ink-soft); }
.prose { margin-top: 8px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 44px 0 14px; }
.prose h3 { margin: 30px 0 10px; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.prose ul, .prose ol { color: var(--ink-soft); font-size: 1.08rem; padding-left: 1.2em; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 26px 0; padding: 4px 22px; border-left: 4px solid var(--olive-bright);
  background: var(--cream-alt); border-radius: 0 12px 12px 0; color: var(--ink-soft);
}
.callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--lime);
  border-radius: 14px; padding: 22px 24px; margin: 30px 0; box-shadow: var(--shadow-card);
}
.callout h3 { margin: 0 0 8px; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }
.example {
  background: var(--dark); color: var(--dark-text); border-radius: var(--radius-card);
  padding: 30px 28px; margin: 30px 0; text-align: center;
}
.example .sent { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.example .sent u { text-decoration-color: var(--dark-muted); text-underline-offset: 5px; }
.example .trans { color: var(--dark-muted); font-weight: 700; }
.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.next-links a {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  color: var(--ink); font-weight: 800; box-shadow: var(--shadow-card);
}
.next-links a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); transition: .15s; }
.next-links small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 560px) { .next-links { grid-template-columns: 1fr; } }

.guide-cta {
  margin: 44px 0 0; padding: 30px; text-align: center;
  background: var(--cream-alt); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.guide-cta h3 { margin-bottom: 6px; }
.guide-cta p { color: var(--ink-soft); margin-bottom: 18px; }

/* ---- embed mode (how-it-works in a webview) -------------------------- */
.embed { background: var(--cream); }
.embed .article .wrap { max-width: 680px; }

/* ---- reveal-on-load (respect reduced motion) ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .12s; }
  .rise.d3 { animation-delay: .18s; } .rise.d4 { animation-delay: .24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .wordmark .tile { opacity: 0; animation: pop .5s cubic-bezier(.2,.8,.2,1.2) forwards; }
  .wordmark .tile:nth-child(1){animation-delay:.02s} .wordmark .tile:nth-child(2){animation-delay:.08s}
  .wordmark .tile:nth-child(3){animation-delay:.14s} .wordmark .tile:nth-child(4){animation-delay:.20s}
  .wordmark .tile:nth-child(5){animation-delay:.26s} .wordmark .tile:nth-child(6){animation-delay:.32s}
  .wordmark .tile:nth-child(7){animation-delay:.38s}
  @keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
}
