/* Fainry — shared design system. Each product page sets a theme class on <body>. */
:root {
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --surface: #ffffff;
  --text: #17181a;
  --muted: #5d6066;
  --faint: #8b8f96;
  --line: rgba(23, 24, 26, .09);
  --line-2: rgba(23, 24, 26, .16);
  --accent: #1f4d43;
  --accent-2: #2f7a68;
  --accent-soft: #e3efe9;
  --on-accent: #ffffff;
  --warn: #b4472f;
  --good: #2c7a4b;
  --shadow: 0 1px 2px rgba(16, 18, 20, .04), 0 8px 24px rgba(16, 18, 20, .06);
  --shadow-lg: 0 2px 6px rgba(16, 18, 20, .05), 0 30px 60px -12px rgba(16, 18, 20, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", "STSong", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* product themes */
.theme-narrator { --accent: #b8742a; --accent-2: #d99a4e; --accent-soft: #f6eadb; --ink: #1c1712; }
.theme-tcf { --accent: #23407a; --accent-2: #3a63b8; --accent-soft: #e4ebf7; --maple: #c8322c; }
.theme-zw { --accent: #b23a2b; --accent-2: #d8604d; --accent-soft: #f8e6e1; --jade: #2f7a68; --bg: #f8f4ec; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111213; --bg-2: #18191b; --surface: #1c1e20; --text: #ecebe6; --muted: #a6aab0; --faint: #7d8188;
    --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
    --accent: #7cc4ad; --accent-2: #9ad6c2; --accent-soft: #1d2d28; --on-accent: #0d1513;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 30px 60px -12px rgba(0,0,0,.6);
  }
  :root:not([data-theme="light"]) .theme-narrator { --accent: #e3a35a; --accent-2: #f0bd7d; --accent-soft: #2c2318; --on-accent: #1a1209; }
  :root:not([data-theme="light"]) .theme-tcf { --accent: #8aaaf0; --accent-2: #a9c1f5; --accent-soft: #1b2338; --on-accent: #0c1222; --maple: #f0736c; }
  :root:not([data-theme="light"]) .theme-zw { --accent: #f08a78; --accent-2: #f5a597; --accent-soft: #33201c; --on-accent: #22100c; --jade: #7cc4ad; --bg: #131211; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* header */
header.site {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); font-size: 15px; font-family: var(--serif); }
.brand .sub { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
nav.top { display: flex; align-items: center; gap: 22px; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.top a:hover { color: var(--text); }
nav.top .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 640px) { nav.top a:not(.btn) { display: none; } }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3 { letter-spacing: -.02em; }
h1.display { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; margin: 18px 0 20px; }
h1.display em { font-style: italic; color: var(--accent); }
.zh h1.display { font-family: var(--sans); font-weight: 700; letter-spacing: 0; line-height: 1.2; font-size: clamp(30px, 4.2vw, 46px); }
.zh h1.display em { font-style: normal; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 30px; }
h2.section { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 0 0 14px; }
.zh h2.section { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.section-lead { color: var(--muted); max-width: 620px; margin: 0 0 40px; font-size: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--text); color: var(--bg);
  font: 600 16px/1 var(--sans); padding: 15px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--faint); }

/* hero */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%); z-index: -1; opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 40px 0 56px; } }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.status b { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }

/* proof strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin-top: 48px; }
.strip > div { background: var(--surface); padding: 20px 22px; }
.strip .k { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.zh .strip .k { font-family: var(--sans); font-weight: 700; }
.strip .v { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr; } }

/* sections */
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
section.block.tint { background: var(--bg-2); }
@media (max-width: 640px) { section.block { padding: 64px 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 22px; } }
.step { border-top: 2px solid var(--text); padding-top: 18px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 14px var(--mono); color: var(--accent); }
.step h3 { margin: 8px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

/* voices (quotes from public reviews) */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } }
.voice { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.zh .voice blockquote { font-family: var(--sans); font-size: 17px; line-height: 1.6; }
.voice figcaption { font-size: 13px; color: var(--faint); }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; }
.compare td:first-child { color: var(--muted); width: 32%; }
.compare .us { background: var(--accent-soft); font-weight: 600; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; }
.plans.one { max-width: 420px; }
.plan { position: relative; background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-lg); }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; }
.plan .name { font-weight: 600; color: var(--muted); font-size: 15px; }
.plan .price { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.zh .plan .price { font-family: var(--sans); font-weight: 700; }
.plan .price small { font-family: var(--sans); font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .was { font-size: 14px; color: var(--faint); }
.plan .was s { color: var(--faint); }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23777' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.price-note { margin-top: 18px; font-size: 14px; color: var(--faint); max-width: 640px; }

/* faq */
.faq details { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* closing band */
.band { background: var(--text); color: var(--bg); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0; }
.zh .band h2 { font-family: var(--sans); font-weight: 700; }
.band p { margin: 10px 0 0; opacity: .7; }
.band .btn { background: var(--bg); color: var(--text); justify-self: end; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 36px 26px; } .band .btn { justify-self: start; } }

/* footer */
footer.site { padding: 48px 0 56px; color: var(--faint); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* ---------- mockups ---------- */
.mock { position: relative; }
.window { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); overflow: hidden; }
.window .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window .bar span { margin-left: 10px; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.window .bar i { flex: none; }

/* narrator app */
.n-app { display: grid; grid-template-columns: 158px 1fr; min-height: 340px; }
.n-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; font-size: 13px; }
.n-side .h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 6px 10px; }
.n-ch { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.n-ch.done::after { content: "✓"; color: var(--good); }
.n-ch.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.n-ch.on::after { content: "●"; color: var(--accent); font-size: 9px; align-self: center; }
.n-main { padding: 20px 22px; display: grid; gap: 16px; align-content: start; }
.n-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.n-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.chip.acc { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.wave { display: flex; align-items: center; gap: 3px; height: 64px; padding: 0 2px; }
.wave i { flex: 1; border-radius: 3px; background: var(--accent); opacity: .85; height: var(--h); transform-origin: center; animation: wv 1.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1s); }
.wave i.past { opacity: .25; animation: none; }
@keyframes wv { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.n-text { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--muted); }
.n-text mark { background: var(--accent-soft); color: var(--text); padding: 0 2px; border-radius: 3px; }
.n-prog { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.n-prog .track { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.n-prog .track b { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: 99px; }
.n-prog .row { display: flex; justify-content: space-between; }
@media (max-width: 520px) { .n-app { grid-template-columns: 1fr; } .n-side { display: none; } }
.float-card { position: absolute; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.float-card b { display: block; font-size: 15px; }
.float-card .sw { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.fc-1 { left: -28px; bottom: -26px; }
.fc-2 { right: -22px; bottom: 64px; }
@media (max-width: 900px) { .mock .float-card { position: static; display: inline-flex; margin: 14px 10px 0 0; } }

/* tcf phone */
.t-mock { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: start; }
@media (max-width: 560px) { .t-mock { grid-template-columns: 1fr; } }
.t-chat { padding: 16px; display: grid; gap: 10px; font-size: 13.5px; }
.t-task { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); display: flex; justify-content: space-between; }
.t-task .timer { font-family: var(--mono); color: var(--maple); letter-spacing: 0; }
.bub { padding: 10px 12px; border-radius: 14px; max-width: 92%; line-height: 1.45; }
.bub.ex { background: var(--bg-2); border-top-left-radius: 4px; }
.bub.me { background: var(--accent); color: var(--on-accent); justify-self: end; border-top-right-radius: 4px; }
.rec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; }
.rec .r { width: 10px; height: 10px; border-radius: 50%; background: var(--maple); animation: pulse 1.4s ease-in-out infinite; }
.rec .mini { display: flex; gap: 2px; align-items: center; height: 18px; flex: 1; }
.rec .mini i { flex: 1; background: currentColor; border-radius: 2px; height: var(--h); opacity: .6; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.t-score { padding: 18px; display: grid; gap: 14px; }
.t-score .big { display: flex; align-items: baseline; gap: 10px; }
.t-score .big b { font-family: var(--serif); font-size: 42px; line-height: 1; font-weight: 500; color: var(--accent); white-space: nowrap; }
.t-score .big span { color: var(--muted); font-size: 13px; }
.crit { display: grid; gap: 9px; font-size: 12.5px; }
.crit .c { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 10px; color: var(--muted); }
.crit .c .track { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.crit .c .track b { display: block; height: 100%; width: var(--w); background: var(--accent-2); border-radius: 99px; }
.fix { font-size: 13px; line-height: 1.6; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.fix del { color: var(--maple); text-decoration-thickness: 1.5px; }
.fix ins { color: var(--good); text-decoration: none; background: color-mix(in srgb, var(--good) 14%, transparent); border-radius: 3px; padding: 0 2px; }
.fix .why { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }

/* zw storybook */
.zw-mock { position: relative; }
.book { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); padding: 26px 26px 22px; display: grid; gap: 16px; }
.book .top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--faint); }
.book .ttl { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.story { font-size: 22px; line-height: 2.25; letter-spacing: .06em; }
.story ruby { ruby-position: over; }
.story rt { font-size: 11px; letter-spacing: 0; color: var(--accent); font-weight: 600; }
.story .new { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 0 3px; font-weight: 700; }
.story .reading { box-shadow: inset 0 -3px 0 var(--jade); }
.book .ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.play { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.play svg { width: 16px; height: 16px; }
.pill { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.pill.ok { background: color-mix(in srgb, var(--jade) 14%, transparent); color: var(--jade); font-weight: 600; }
.sticker { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); padding: 12px 14px; font-size: 13px; }
.sticker b { display: block; font-size: 20px; color: var(--accent); }
.st-1 { right: -18px; top: -22px; transform: rotate(3deg); }
.st-2 { left: -24px; bottom: -28px; transform: rotate(-3deg); }
@media (max-width: 900px) { .sticker { position: static; transform: none; margin: 14px 10px 0 0; display: inline-block; } }

/* home */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); background: var(--surface); border-radius: 22px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.product .art { height: 150px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; }
.product h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.product p { margin: 0; color: var(--muted); font-size: 15.5px; }
.product .go { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 15px; }

/* legal */
.legal { max-width: 760px; padding-bottom: 40px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: 44px; margin: 56px 0 6px; letter-spacing: -.02em; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal p, .legal li { color: var(--text); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(10, 12, 14, .5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.modal.open { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal .box { background: var(--surface); color: var(--text); border-radius: 22px; max-width: 460px; width: 100%; padding: 28px; box-shadow: var(--shadow-lg); }
.modal h3 { margin: 0 0 8px; font-size: 22px; }
.modal p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.modal label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.modal input, .modal textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text); }
.modal input:focus, .modal textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.modal textarea { min-height: 80px; resize: vertical; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal .row .btn { padding: 12px 20px; }
.modal .msg { margin-top: 12px; font-size: 15px; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i, .rec .r { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
