/* dictionify.com — "Cozy Corner" notebook design. */
:root {
  --paper: #FBF7EE; --rule: #EFE7D6; --ink: #22223A; --muted: #4A4860; --faint: #6B6880;
  --hl: #FFE066; --pen: #C2410C; --accent: #4F46E5; --accent-soft: #EEF0FF; --accent-ink: #3730A3;
  --sel: #C9C5FF; --soft1: #FFF3A8; --soft2: #FFE2D6; --soft3: #E6F0D9; --lang-bg: #F3ECDD;
  --card-shadow: 0 18px 40px rgba(34, 34, 58, .16);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --hand: Caveat, "Segoe Print", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  background-image: repeating-linear-gradient(transparent 0, transparent 39px, var(--rule) 39px, var(--rule) 40px);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
img, svg { max-width: 100%; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-family: var(--hand); font-weight: 700; color: var(--pen); }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.paper-bg { background: var(--paper); }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
section { padding-block: clamp(56px, 8vw, 96px); }
.center { text-align: center; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 14px 24px; border-radius: 12px; font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 4px 4px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.btn-primary:hover { color: #fff; translate: -1px -1px; box-shadow: 5px 5px 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.btn svg { flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pill { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 860px) { .site-nav a:not(.btn), .brand .pill { display: none; } }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 24px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent-ink); background: #fff; border: 1px solid #DDDBF0; padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -0.04em; }
.strike { font-family: var(--serif); font-style: italic; font-weight: 400; color: #9A9BA8; text-decoration: line-through; text-decoration-color: #E5484D; text-decoration-thickness: .06em; }
.sweep { font-family: var(--serif); font-style: italic; font-weight: 400; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 88% / 0% 36%; animation: sweep 1.1s .6s ease-out forwards; }
@keyframes sweep { to { background-size: 100% 36%; } }
.hero .lede { max-width: 760px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.cta-row .note { font-size: 26px; rotate: -2deg; }
.hero-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 490px; gap: 32px; align-items: start; margin-top: 36px; }
.hero-art-wrap { position: relative; }
.hero-art { width: 100%; height: auto; display: block; animation: float 6s ease-in-out infinite; }
.hero-art-wrap .note { position: absolute; left: 0; top: 0; font-size: clamp(22px, 2.4vw, 32px); rotate: -4deg; line-height: 1.1; }
.hero-demo .note { display: block; margin-top: 10px; font-size: 28px; rotate: -2deg; line-height: 1.1; }
@media (max-width: 1000px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hero-art-wrap { max-width: 560px; order: 2; }
  .hero-demo { order: 1; width: min(490px, 100%); }
}
@keyframes float { 50% { translate: 0 -10px; } }

/* Fixed-size demo stages that scale down to fit (see site.js) */
.stage-box { position: relative; margin-inline: auto; overflow: clip; overflow-clip-margin: 24px; max-width: 100%; }
.stage { position: relative; transform-origin: top left; }
.abs { position: absolute; }

/* The product card */
.card { background: #fff; border: 1px solid #E4E2F0; border-left: 4px solid var(--accent); border-radius: 14px; box-shadow: var(--card-shadow); text-align: left; }
.card .from { font-size: 12px; color: var(--accent); font-weight: 600; line-height: 18px; }
.card .head { display: flex; align-items: baseline; gap: 8px; line-height: 26px; white-space: nowrap; }
.card .head b { font-size: 18px; }
.card .tr { color: var(--accent); }
.card p { margin: 6px 0 0; font-size: 15px; line-height: 22px; }
.card .here { color: #55536A; }
.mark { border-radius: 3px; }
.browser { background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.browser .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #F1F2F6; border-bottom: 1px solid #E4E2F0; }
.browser .dot { width: 9px; height: 9px; border-radius: 50%; background: #D5D6DE; }
.browser .url { margin-left: 8px; background: #fff; border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--faint); }
.browser p { margin: 0; padding: 14px 20px; font-family: Georgia, serif; font-size: 17px; line-height: 26px; color: #3A3850; white-space: nowrap; }
.cursor { position: absolute; left: 0; top: 0; width: 28px; height: 28px; pointer-events: none; z-index: 5; }

/* Hero demo: click → highlight → card, three times (12 s loop) */
.cur { animation: cur 12s ease-in-out infinite; } .clk { transform-origin: 4px 2px; animation: clk 12s linear infinite; }
@keyframes cur { 0% { translate: 430px 110px; opacity: 0 } 4% { opacity: 1 } 10%, 14% { translate: 40px 82px } 26%, 30% { translate: 68px 246px } 42%, 46% { translate: 98px 397px } 56%, 88% { translate: 430px 560px; opacity: 1 } 94%, 100% { translate: 430px 560px; opacity: 0 } }
@keyframes clk { 0%, 11.5%, 12.8%, 27.5%, 28.8%, 43.5%, 44.8%, 100% { scale: 1 } 12%, 28%, 44% { scale: .75 } }
.w1 { animation: w1 12s linear infinite; } .w2 { animation: w2 12s linear infinite; } .w3 { animation: w3 12s linear infinite; }
@keyframes w1 { 0%, 12% { background-color: rgba(201, 197, 255, 0) } 12.6%, 92% { background-color: var(--sel) } 97%, 100% { background-color: rgba(201, 197, 255, 0) } }
@keyframes w2 { 0%, 28% { background-color: rgba(201, 197, 255, 0) } 28.6%, 92% { background-color: var(--sel) } 97%, 100% { background-color: rgba(201, 197, 255, 0) } }
@keyframes w3 { 0%, 44% { background-color: rgba(201, 197, 255, 0) } 44.6%, 92% { background-color: var(--sel) } 97%, 100% { background-color: rgba(201, 197, 255, 0) } }
.c1 { animation: c1 12s ease-out infinite both; } .c2 { animation: c2 12s ease-out infinite both; } .c3 { animation: c3 12s ease-out infinite both; }
@keyframes c1 { 0%, 13.4% { opacity: 0; translate: 0 12px; scale: .97 } 16%, 92% { opacity: 1; translate: 0 0; scale: 1 } 97%, 100% { opacity: 0 } }
@keyframes c2 { 0%, 29.4% { opacity: 0; translate: 0 12px; scale: .97 } 32%, 92% { opacity: 1; translate: 0 0; scale: 1 } 97%, 100% { opacity: 0 } }
@keyframes c3 { 0%, 45.4% { opacity: 0; translate: 0 12px; scale: .97 } 48%, 92% { opacity: 1; translate: 0 0; scale: 1 } 97%, 100% { opacity: 0 } }

/* The key difference: meaning in context */
#context { padding-top: clamp(40px, 6vw, 72px); }
.context-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: 28px; align-items: center; margin-top: 44px; }
.dict-page { background: #F4F1EA; border: 1px solid #DDD6C6; border-radius: 6px; padding: 26px 30px; font-family: Georgia, serif; color: #5E5B52; box-shadow: 0 14px 26px rgba(34, 34, 58, .10); rotate: -1deg; }
.dict-head { font-size: 26px; color: #3B3A36; border-bottom: 1px solid #DDD6C6; padding-bottom: 10px; margin-bottom: 10px; }
.dict-head i { font-size: 16px; color: #8A867A; }
.dict-page ol { margin: 0; padding-left: 28px; font-size: 16px; line-height: 1.75; }
.dict-page li { padding: 0 6px; border-radius: 4px; }
.dict-page .hit { position: relative; color: #22223A; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 50% / 0% 100%; transition: background-size .8s ease-out .5s; }
.dict-page.in .hit { background-size: 100% 100%; }
.dict-page .hit::after { content: attr(data-n); position: absolute; right: -34px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; border-radius: 50%; background: var(--pen); color: #fff; font: 700 13px/24px var(--sans); text-align: center; }
.dict-page .note { display: block; margin-top: 12px; font-size: 26px; line-height: 1.15; }
.context-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.context-arrow .note { font-size: 24px; line-height: 1.05; }
.context-cards { display: flex; flex-direction: column; gap: 26px; }
.ctx { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 40px; }
.ctx-tag { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--pen); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ctx-sentence { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.5; color: #3A3850; }
.ctx-word { background: var(--sel); padding: 0 4px; border-radius: 3px; }
.ctx .card .head { gap: 10px; align-items: center; }
.ctx .card .head b { font-size: 20px; }
@media (max-width: 1000px) {
  .context-grid { grid-template-columns: minmax(0, 1fr); }
  .context-arrow { flex-direction: row; justify-content: center; }
  .context-arrow svg { rotate: 90deg; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 40px; }
.step { background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.step .note { font-size: 34px; line-height: 1; }
.step .demo { background: #F1F2F6; border-radius: 10px; padding: 10px 12px; }
.step span.body { font-size: 17px; line-height: 1.55; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-card { background: #fff; border: 1px solid #E4E2F0; border-left: 4px solid var(--accent); border-radius: 10px; padding: 7px 12px; font-weight: 600; }

/* Sticky notes */
.stickies { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 44px; }
.sticky { padding: 30px; box-shadow: 0 14px 26px rgba(34, 34, 58, .14); display: flex; flex-direction: column; gap: 14px; }
.sticky b { font-size: 26px; font-weight: 600; line-height: 1.2; }
.sticky .note { font-size: 26px; color: var(--muted); line-height: 1.15; }
.sticky p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.tabs { display: flex; gap: 4px; }
.tabs span { flex: 1; height: 24px; border-radius: 5px 5px 0 0; background: #fff; }
.tabs span:last-child { background: var(--ink); }

/* Annotated card (dark band) */
.dark-band { background: var(--ink); color: var(--paper); }
.teach-stage .label { position: absolute; font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 40px; color: var(--hl); }
.teach-card { position: absolute; left: 460px; top: 70px; width: 420px; padding: 22px 24px; border-radius: 16px; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.teach-card .row1 { display: flex; align-items: center; height: 34px; white-space: nowrap; }
.teach-card .row2 { display: flex; align-items: center; gap: 10px; height: 24px; margin-top: 8px; }
.pos { background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-style: italic; padding: 2px 8px; border-radius: 5px; }
.box { box-sizing: border-box; height: 60px; border-radius: 8px; padding: 8px 12px; font-size: 14.5px; line-height: 22px; white-space: nowrap; }
.box.ex { margin-top: 12px; background: #FDF5E7; border-left: 3px solid #B45309; }
.box.syn { margin-top: 10px; background: #F3EFFD; border-left: 3px solid #6D28D9; }
.teach-list { display: none; margin: 28px auto 0; padding: 0; list-style: none; max-width: 460px; }
.teach-list li { font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--hl); padding: 4px 0; }
@media (max-width: 900px) {
  .teach-box { height: auto !important; width: auto !important; }
  .teach-stage { transform: none !important; width: auto !important; height: auto !important; }
  .teach-stage .label, .teach-stage svg.lines { display: none; }
  .teach-card { position: static; margin-inline: auto; width: min(420px, 100%); }
  .teach-card .row1, .teach-card p, .box { white-space: normal; height: auto !important; }
  .teach-card .row1 { flex-wrap: wrap; gap: 4px 10px; }
  .teach-card .row1 > * { width: auto !important; margin-left: 0 !important; }
  .teach-box { overflow: visible; }
  .teach-list { display: block; }
}
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s ease-out .3s; }
.in .draw, .draw.in { stroke-dashoffset: 0; }

/* Split sections (text + demo) */
.split { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 60px; align-items: center; }
.split .copy { display: flex; flex-direction: column; gap: 16px; }
.split .copy .note { font-size: 30px; line-height: 1.1; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Translate demo (9 s loop) */
.tcur { animation: tcur 9s ease-in-out infinite; } .tclk { transform-origin: 4px 2px; animation: tclk 9s linear infinite; }
@keyframes tcur { 0% { translate: 470px 380px; opacity: 0 } 6% { opacity: 1 } 22%, 28% { translate: 184px 201px } 42%, 86% { translate: 470px 380px; opacity: 1 } 92%, 100% { translate: 470px 380px; opacity: 0 } }
@keyframes tclk { 0%, 24.4%, 26%, 100% { scale: 1 } 25% { scale: .75 } }
.tbox { overflow: hidden; animation: tbox 9s ease-in-out infinite both; }
@keyframes tbox { 0%, 25.5% { max-height: 0; margin-top: 0; opacity: 0 } 33%, 84% { max-height: 140px; margin-top: 12px; opacity: 1 } 92%, 100% { max-height: 0; margin-top: 0; opacity: 0 } }
.lab1 { animation: lab1 9s linear infinite; } .lab2 { animation: lab2 9s linear infinite; } .bon { animation: bon 9s linear infinite; }
@keyframes lab1 { 0%, 25% { opacity: 1 } 26%, 86% { opacity: 0 } 90%, 100% { opacity: 1 } }
@keyframes lab2 { 0%, 25% { opacity: 0 } 26%, 86% { opacity: 1 } 90%, 100% { opacity: 0 } }
@keyframes bon { 0%, 25% { background-color: #F4F5F8; color: var(--ink) } 26%, 86% { background-color: var(--accent-soft); color: var(--accent) } 90%, 100% { background-color: #F4F5F8; color: var(--ink) } }
.fbtn { display: inline-flex; align-items: center; justify-content: center; height: 34px; border: 1px solid #E4E2F0; border-radius: 7px; background: #F4F5F8; font-size: 13.5px; position: relative; }

/* Follow-up trail */
.trail .card { padding: 14px 18px; }
.trail .arrows { position: absolute; left: 0; top: 0; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; margin-top: 44px; }
.person { padding: 26px 26px 30px; box-shadow: 0 14px 26px rgba(34, 34, 58, .12); display: flex; flex-direction: column; gap: 14px; }
.person .who { display: flex; align-items: center; gap: 12px; }
.person .who span { color: #5A5870; font-size: 14px; }
.person .story { font-family: var(--hand); font-weight: 600; font-size: 27px; line-height: 1.26; }

/* Saved words & review */
.saved { display: flex; flex-wrap: wrap; gap: 60px; justify-content: center; align-items: flex-start; margin-top: 40px; }
.panel { width: min(380px, 100%); background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.panel .top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.panel .due { display: block; margin: 0 14px 10px; text-align: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 9px; border-radius: 8px; }
.panel .search { display: flex; gap: 6px; padding: 0 14px 12px; font-size: 12.5px; }
.panel .search span:first-child { flex: 1; background: #F1F2F6; border-radius: 8px; padding: 7px 10px; font-size: 13px; color: #8C8A99; }
.word-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-top: 1px solid #ECEBF3; }
.word-row > div { flex: 1; min-width: 0; }
.word-row b { font-size: 16px; }
.word-row .m { font-size: 13px; color: var(--faint); line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.word-row .s { font-size: 11.5px; color: #8C8A99; line-height: 16px; }
.star { font-size: 18px; line-height: 22px; color: #C4C1D4; }
.star.on { color: #F59E0B; }
.rowin { overflow: hidden; animation: rowin 10s ease-out infinite both; }
@keyframes rowin { 0%, 8% { max-height: 0; opacity: 0 } 16%, 88% { max-height: 80px; opacity: 1 } 96%, 100% { max-height: 0; opacity: 0 } }
.staron { animation: staron 10s linear infinite; }
@keyframes staron { 0%, 34% { color: #C4C1D4 } 38%, 90% { color: #F59E0B } 95%, 100% { color: #C4C1D4 } }
.rcur { animation: rcur 10s ease-in-out infinite; } .rclk { transform-origin: 4px 2px; animation: rclk 10s linear infinite; }
@keyframes rcur { 0% { translate: 420px 330px; opacity: 0 } 5% { opacity: 1 } 16%, 20% { translate: 196px 224px } 36%, 42% { translate: 242px 232px } 58%, 88% { translate: 420px 330px; opacity: 1 } 95%, 100% { translate: 420px 330px; opacity: 0 } }
@keyframes rclk { 0%, 17.4%, 19%, 39.4%, 41%, 100% { scale: 1 } 18%, 40% { scale: .75 } }
.rvA { animation: rvA 10s linear infinite; } .rvB { animation: rvB 10s linear infinite; } .rvGood { animation: rvGood 10s linear infinite; }
@keyframes rvA { 0%, 18.5% { opacity: 1 } 20%, 92% { opacity: 0 } 97%, 100% { opacity: 1 } }
@keyframes rvB { 0%, 18.5% { opacity: 0 } 21%, 92% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes rvGood { 0%, 39.5% { background-color: var(--accent-soft); color: var(--accent-ink) } 40.5%, 60% { background-color: #047857; color: #fff } 64%, 100% { background-color: var(--accent-soft); color: var(--accent-ink) } }
.grade { width: 84px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; font-size: 14px; }

/* Languages */
.langs { background: var(--lang-bg); }
.bubbles { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 1120px; margin: 30px auto 0; font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; }
.bubbles span { padding: 12px 22px; border-radius: 999px; animation: float 5s ease-in-out infinite; }

/* Pricing table */
.plans { width: min(1040px, 100%); margin: 34px auto 0; background: #fff; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 14px; overflow: hidden; }
.plans .r { display: grid; grid-template-columns: 1.7fr 1fr 1fr; align-items: center; border-top: 1px solid #ECE7DA; }
.plans .r:first-child { border-top: 0; align-items: end; }
.plans .r > div { padding: 16px 20px; }
.plans .r > div:first-child { padding-left: 28px; }
.plans .r > div:nth-child(2) { text-align: center; color: #3A3850; font-size: 17px; }
.plans .r > div:nth-child(3) { text-align: center; font-weight: 600; font-size: 17px; background: #FFF9D6; align-self: stretch; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.plans .head > div:nth-child(3) { background: var(--soft1); }
.plans .feature b { font-size: 18px; }
.plans .feature span { display: block; font-size: 14px; color: var(--faint); }
.plans .price { font-size: 30px; font-weight: 600; }
.plans .small { font-size: 14px; color: var(--faint); font-weight: 400; }
.plans .foot { border-top: 1.5px solid var(--ink); }
.plans .foot .btn { width: 100%; }
.trial { display: inline-block; margin-left: 6px; vertical-align: 4px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 640px) {
  .plans .r > div { padding: 12px 8px; font-size: 14px !important; }
  .plans .r > div:first-child { padding-left: 14px; }
  .plans .feature b { font-size: 15px; }
  .plans .feature span { display: none; }
  .plans .price { font-size: 22px; }
  .trial { display: block; margin: 6px auto 0; width: max-content; }
  .plans .foot > div:first-child { grid-column: 1 / -1; }
  .plans .foot { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq { width: min(860px, 100%); margin: 36px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Final CTA + footer */
.final { background: var(--ink); color: var(--paper); text-align: center; }
.final h2 { color: #fff; }
.final .lede { color: #D6D3E6; margin: 16px auto 28px; max-width: 640px; }
.site-foot { background: #fff; padding: 36px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--faint); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--ink); }

/* Scroll reveal (site.js adds .in) */
.reveal { opacity: 0; translate: 0 40px; transition: opacity .7s ease-out, translate .7s ease-out; }
.reveal.in { opacity: 1; translate: 0 0; }
.no-js .reveal { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  .sweep { background-size: 100% 36%; }
  .c1, .c2, .c3, .rowin { opacity: 1; max-height: none; }
  .cursor, .rvB, .lab2, .tbox { display: none; }
  .draw { stroke-dashoffset: 0; }
  .dict-page .hit { background-size: 100% 100%; }
}
