/* Overtext website. The app's own world: the icon's coral-to-crimson gradient, the cream "tape" that carries the
   translation over the original text, and Nunito, the wordmark's face. See website/DESIGN.md. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #fff8f1;
  --paper: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #44444b;
  --muted: #66666e;
  --line: #eadfd4;
  --coral: #ff6a3a;
  --crimson: #c2185b;
  --accent: #c81e4a;          /* text-safe crimson: 5.6:1 on --page */
  --tape: #fff6e8;
  --tape-2: #ffe9d2;
  --tape-ink: #c2185b;
  --glow: linear-gradient(160deg, var(--coral) 0%, var(--crimson) 100%);
  /* The same gradient, deep enough for white body text (4.6:1 at the light end, 6.7:1 at the dark end). */
  --glow-deep: linear-gradient(160deg, #d63f27 0%, #b3124f 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 20, 10, .06), 0 10px 30px rgba(60, 20, 10, .08);
  --max: 1120px;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;   /* always light, even in Dark Mode (Daniel, 2026-11-01) */
}

* { 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;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 106, 58, .28); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px;
        border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--page) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
       border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { width: 128px; height: auto; }
.wordmark .over { fill: var(--ink); }
.wordmark .text { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: .98rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none;
       font-weight: 800; padding: 12px 20px; border-radius: 999px; line-height: 1.2; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { padding: 9px 16px; font-size: .95rem; }
.btn.big { padding: 15px 26px; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: translateY(0); } }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 32px; } }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
           color: var(--accent); margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px;
     font-weight: 900; }
h1 .taped { position: relative; display: inline-block; white-space: nowrap; }
.tape { position: relative; display: inline-block; padding: 0 .22em; color: var(--tape-ink);
        background: linear-gradient(180deg, var(--tape), var(--tape-2)); border-radius: .14em; transform: rotate(-2.5deg);
        box-shadow: 0 2px 0 rgba(194, 24, 91, .08), 0 6px 16px rgba(120, 30, 20, .14); }
.lede { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
         color: var(--ink-2); font-weight: 700; font-size: .98rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 20px; height: 20px; color: var(--coral); flex: none; }

/* QR, only where scanning another screen makes sense */
.qr { display: none; margin: 0; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.qr img { width: 76px; height: 76px; background: #fff; border-radius: 10px; padding: 4px; box-shadow: var(--shadow); }
@media (min-width: 860px) and (hover: hover) and (pointer: fine) { .qr { display: flex; } }

/* Demo: a phone with the original and Overtext's real output, compared with a slider */
.demo { margin: 0; justify-self: center; width: min(360px, 100%); }
.phone { position: relative; border-radius: 46px; padding: 11px; background: #111; box-shadow: 0 30px 60px rgba(120, 30, 20, .25),
         0 0 0 1px rgba(0, 0, 0, .4); }
.compare { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 786 / 1608; background: #f2f2f7;
           --pos: 100%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none;
               -webkit-user-drag: none; }
.compare .after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--coral);
                   box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); pointer-events: none; }
.compare .handle { position: absolute; top: 50%; left: clamp(40px, var(--pos), calc(100% - 40px)); pointer-events: none;
                   transform: translate(-50%, -50%) rotate(-5deg); background: linear-gradient(180deg, var(--tape), var(--tape-2));
                   color: var(--tape-ink); font-weight: 900; font-size: .78rem; letter-spacing: .06em; padding: 7px 10px;
                   border-radius: 7px; box-shadow: 0 4px 14px rgba(120, 30, 20, .3); white-space: nowrap; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible ~ .handle { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare-tabs { display: flex; justify-content: center; gap: 8px; margin: 18px 0 10px; }
.compare-tabs button { font: inherit; font-weight: 800; font-size: .9rem; border: 1px solid var(--line); background: var(--paper);
                       color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.compare-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.demo figcaption { color: var(--muted); font-size: .9rem; text-align: center; line-height: 1.45; }
.no-js .compare-tabs { display: none; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 14px; font-weight: 900; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; font-weight: 800; }
.intro { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; margin: 0 0 40px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
         counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps > li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
            box-shadow: var(--shadow); counter-increment: step; }
section.alt .steps > li { background: var(--page); }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
                    background: var(--glow-deep); color: #fff; font-weight: 900; font-size: 1.15rem; margin-bottom: 16px; }
.steps p, .cards p { margin: 0; color: var(--ink-2); }
.gestures { margin: 10px 0 0; padding-left: 1.1em; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.cards li { border-radius: var(--radius); padding: 22px; background: var(--page); border: 1px solid var(--line); }
.cards svg { width: 30px; height: 30px; color: var(--crimson); margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split p { color: var(--ink-2); margin: 0 0 14px; }

/* Privacy band */
.band { background: var(--glow-deep); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #fff; }
.band a { color: #fff; font-weight: 800; }
.band .split { align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; background: rgba(0, 0, 0, .14); border-radius: 14px;
            padding: 14px 16px; font-weight: 700; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* Languages */
.langs { columns: 3 11em; column-gap: 24px; list-style: none; padding: 0; margin: 0 0 8px; color: var(--ink-2); }
.langs li { break-inside: avoid; padding: 2px 0; }
.langs.short { columns: 2 10em; }
.note { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1.12rem; padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
                      border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg);
                      transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); max-width: 44em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Closing call */
.closing { text-align: center; }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }

/* Footer */
.foot { padding: 40px 0 56px; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink-2); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.legal .updated { color: var(--muted); margin: 0 0 28px; font-weight: 700; }
.legal .summary { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--coral);
                  border-radius: 14px; padding: 18px 22px; font-size: 1.1rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 800; }
@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legal td { border: 0; padding: 4px 0; }
  .legal td::before { content: attr(data-label); display: block; font-weight: 800; color: var(--ink); }
}

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }

@media print {
  .top, .skip, .compare-tabs, .qr, .foot nav { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .band { background: #fff !important; color: #000 !important; }
  .band h2, .band p, .band a { color: #000 !important; }
}
