/* PDFKOR landing page. Requires styles/tokens.css. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

/* OS-specific content: <html data-os="win|other"> */
html[data-os="win"] .os-mac, html[data-os="win"] .os-other,
html[data-os="mac"] .os-win, html[data-os="mac"] .os-other,
html[data-os="other"] .os-win, html[data-os="other"] .os-mac { display: none !important; }

/* ---------- Nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); }
.nav { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.02em; font-size: 17px; }
.logo img { width: 32px; height: 32px; margin-left: -3px; }
.nav-links { display: flex; gap: 36px; font-size: 14.5px; }
.nav-links a { opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 14px; }
.nav-right .login { padding: 0 10px; opacity: 0.85; }
/* 로그인한 상태: 이메일 + 지금 플랜(js/landing/account-nav.js) */
.nav-right .login.account { display: inline-flex; align-items: center; gap: 8px; opacity: 1; }
.account-email { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.account-plan { padding: 2px 9px; border-radius: 999px; font-size: 12.5px; background: var(--pill); color: var(--ink); }
.account-plan.is-paid { background: var(--ink); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn-md { height: 38px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink), #fff 12%); }
.btn-gray { background: var(--pill); }
.btn-gray:hover { background: color-mix(in srgb, var(--bg), var(--ink) 10%); }
.more { color: var(--accent-text); font-size: 16px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Two-tone text: title in ink, description faded, same size */
.duo { font-size: 22px; font-weight: 400; line-height: 1.4; letter-spacing: -0.015em; }
.duo span { display: block; color: var(--ink-soft); margin-top: 2px; font-size: 0.9em; }

/* ---------- Hero ---------- */
.hero { padding: 112px 0 56px; }
.hero h1 { font-size: 30px; line-height: 1.38; font-weight: 400; letter-spacing: -0.02em; }
.hero-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

/* ---------- Painted stage ---------- */
/* The painting is pre-rendered by scripts/landing-stages/bake.py: live SVG filters stutter on phones. */
.stage {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
}
.stage::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/stage/hero.webp") center / cover;
  z-index: -1;
}
.stage.dusk::before { background-image: url("../assets/stage/dusk.webp"); }
.stage.sea::before { background-image: url("../assets/stage/sea.webp"); }
.stage.meadow::before { background-image: url("../assets/stage/meadow.webp"); }
.stage.night::before { background-image: url("../assets/stage/night.webp"); }
.hero-stage { height: clamp(480px, 53vw, 680px); }
.hero-stage .window { left: max(16px, 7.5%); right: auto; width: 1088px; }
/* the hero window bleeds 24px past the stage, so lift the chat input above the cut */
.hero-stage .chat { padding-bottom: 38px; }

/* ---------- App window (kept deliberately minimal) ---------- */
.window {
  position: absolute;
  left: 7.5%; right: 7.5%; top: 56px; bottom: -24px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 24px 60px rgba(30, 28, 18, 0.22), 0 0 0 0.5px rgba(30,28,18,0.2);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.titlebar {
  height: 32px; flex: none;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.win-title { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.win-title img { width: 16px; height: 16px; }
.win-ctrl { display: flex; height: 100%; }
.win-ctrl i { width: 40px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--ink-faint); }

.app-body { flex: 1; display: grid; grid-template-columns: 1fr 320px; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.app-body.solo { grid-template-columns: 1fr; }
.viewer { display: flex; flex-direction: column; min-width: 0; background: color-mix(in srgb, var(--bg), var(--ink) 3.5%); }
.viewer-bar {
  height: 40px; flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; color: var(--ink-soft);
}
.viewer-bar .file { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .spacer { flex: 1; }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--pill); flex: none; }
.seg button { height: 24px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-soft); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.page-wrap { flex: 1; overflow: hidden; display: flex; justify-content: center; padding: 20px 20px 0; }
.page { position: relative; width: min(100%, 620px); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04); align-self: flex-start; }
.page img { width: 100%; transition: opacity 0.25s ease; }
.page img.alt { position: absolute; inset: 0; background: #fff; opacity: 0; }
.page.show-src img.alt { opacity: 1; }
.page.show-src img.main { opacity: 0; }

/* zoomed view onto part of a page: translate % is relative to the page itself */
.zoom { position: relative; flex: 1; overflow: hidden; background: #fff; }
.zoom-page { position: absolute; left: 0; top: 0; width: var(--zw, 100%); transform: translate(var(--zx, 0), var(--zy, 0)); }
.zoom-page img { width: 100%; }

.chat { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 12px; padding: 14px; font-size: 13px; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.linked { color: var(--ok); }
.linked::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.quote { background: var(--accent-tint); border-radius: 8px; padding: 10px 12px; color: var(--accent-ink); font-size: 12.5px; line-height: 1.6; }
.quote small { display: block; font-size: 11.5px; opacity: 0.8; margin-bottom: 2px; }
.bubble { align-self: flex-end; max-width: 88%; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; line-height: 1.5; }
.answer { line-height: 1.75; }
.answer p + p { margin-top: 8px; }
.src { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--accent-tint); color: var(--accent-ink); white-space: nowrap; }
.chat-input { margin-top: auto; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; color: var(--ink-faint); }
.bubble, .quote { transition: opacity 0.25s ease, transform 0.25s ease; }

/* Chat demos (js/landing/main.js): typed question, thinking dots, streamed answer */
.bubble.is-hidden, .quote.is-hidden { opacity: 0; transform: translateY(6px); }
/* Hero sentence selection: cursor drag, selection, "ask about this" popup */
.sel-layer { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.12s ease; }
.sel-layer.fading { opacity: 0; }
.mark.select.dragging { width: calc(var(--w) * var(--p, 1) * 1%); height: calc(var(--h, 1.8) * var(--p, 1) * 1%); will-change: transform; }
.mark.select.is-empty { opacity: 0; }
.mark.sel { background: rgba(196, 103, 58, 0.24); mix-blend-mode: multiply; transform-origin: left center; transform: scaleX(var(--p, 0)); will-change: transform; }
.sel-pop { position: absolute; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(30, 28, 18, 0.18), 0 0 0 1px var(--line); translate: -100% -100%; opacity: 0; transform: translateY(4px) scale(0.98); transform-origin: bottom right; transition: opacity 0.18s ease, transform 0.18s ease; }
.sel-pop.show { opacity: 1; transform: none; }
.sel-ask { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12.5px; white-space: nowrap; transition: transform 0.1s ease, filter 0.1s ease; }
.sel-ask svg { width: 14px; height: 14px; }
.sel-ask.pressed { transform: scale(0.96); filter: brightness(0.9); }
.demo-cursor { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; transition: opacity 0.2s ease; will-change: transform; }
.demo-cursor.show { opacity: 1; }
.demo-cursor svg { display: block; }
.demo-cursor .ibeam, .demo-cursor.is-ibeam .arrow { display: none; }
.demo-cursor.is-ibeam .ibeam { display: block; }
.chat-input.typing { color: var(--ink); }
.chat-input.typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--ink); animation: caret 1s steps(1) infinite; }
.thinking { display: inline-flex; gap: 4px; padding: 6px 0; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); animation: thinking 1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: 0.15s; }
.thinking i:nth-child(3) { animation-delay: 0.3s; }
.src.pop { animation: src-pop 0.3s ease; }
.summary dl > .sum-pending { display: none; }
.summary dl > .sum-in { animation: sum-in 0.25s ease; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes thinking { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes sum-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes src-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

/* selection box and highlights placed in page percentages */
.mark { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h, 1.8) * 1%); border-radius: 2px; }
.mark.select { border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 4px; }
/* 3 memos take turns over a 12s loop; the matching color is emphasized meanwhile */
.mark.hl { mix-blend-mode: multiply; opacity: 0.35; animation: hl-focus 12s ease infinite; }
.hl.y { background: rgba(250, 214, 92, 0.6); }
.hl.b { background: rgba(120, 178, 240, 0.45); animation-delay: 4s; }
.hl.p { background: rgba(240, 140, 180, 0.45); animation-delay: 8s; }
.hl-note {
  position: absolute; left: var(--nx); top: var(--ny); width: 30%;
  background: var(--surface); border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(30,28,18,0.18), 0 0 0 1px var(--line);
  font-size: 12.5px; line-height: 1.6;
  opacity: 0; animation: note-turn 12s ease infinite;
}
.hl-note.b { animation-delay: 4s; }
.hl-note.above { translate: 0 calc(-100% - 6px); }
.hl-note.p { animation-delay: 8s; }
.hl-note small { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 11.5px; margin-bottom: 2px; }
.hl-note small::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.hl-note.y small::before { background: rgb(250, 214, 92); }
.hl-note.b small::before { background: rgb(120, 178, 240); }
.hl-note.p small::before { background: rgb(240, 140, 180); }
/* Script-driven version (js/landing/main.js): each colour is painted like a marker, then its memo streams */
.hl-demo .mark.hl { animation: none; opacity: 0.35; transform-origin: left center; will-change: transform; transition: transform 0.4s ease-out, opacity 0.3s ease; }
.hl-demo .mark.hl.unpainted { transform: scaleX(0); }
.hl-demo .mark.hl.focus { opacity: 1; }
.hl-demo .hl-note { animation: none; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.hl-demo .hl-note.show { opacity: 1; transform: none; }
@keyframes hl-focus { 0% { opacity: 0.35; } 3% { opacity: 1; } 30% { opacity: 1; } 33.3%, 100% { opacity: 0.35; } }
@keyframes note-turn {
  0% { opacity: 0; transform: translateY(8px); }
  3% { opacity: 1; transform: none; }
  30% { opacity: 1; transform: none; }
  33.3%, 100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mark.hl { animation: none; opacity: 1; }
  .hl-note { animation: none; }
  .hl-note.y { opacity: 1; }
}

.summary { padding: 18px 20px; font-size: 13px; line-height: 1.65; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); }
.app-body.summary-app { grid-template-columns: min(310px, calc(100vw - 100px)) 1fr; }
.summary h4 { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary h4 .sum-label { flex: none; color: var(--accent-text); }
.summary dl { display: grid; gap: 11px; }
.summary dt { font-size: 12px; color: var(--ink-soft); }
.summary dt b { font-weight: 500; color: var(--ink); }
.summary dd { margin-top: 2px; }

/* ---------- Feature cards ---------- */
.features { padding-top: 120px; display: grid; gap: 24px; }
.feature {
  background: var(--card);
  border-radius: 4px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 2.3fr;
  gap: 18px;
  min-height: 700px;
}
.feature.rev { grid-template-columns: 2.3fr minmax(300px, 1fr); }
.feature.rev .f-text { order: 2; }
.f-text { padding: 24px 22px; align-self: center; }
.f-eyebrow { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; }
.f-eyebrow .plan-tag { color: var(--accent-text); }
.f-note { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--ink-faint); }
.f-visual { position: relative; border-radius: 4px; overflow: hidden; min-height: 600px; }
.f-visual.solid { background: var(--solid); display: flex; align-items: center; justify-content: flex-start; padding: clamp(16px, 3.75vw, 48px); }
.f-visual.solid .window, .f-window { position: relative; left: auto; right: auto; top: auto; bottom: auto; flex: none; width: 757px; height: 520px; }
.f-visual.stage .f-window { position: absolute; left: max(16px, 7%); right: auto; top: 50%; width: 734px; transform: translateY(-50%); }

/* compare slider */
.compare {
  --pos: 50%;
  position: absolute; left: 50%; top: 56px; bottom: 0;
  transform: translateX(-50%);
  width: min(88%, 600px);
  background: #fff;
  box-shadow: 0 24px 60px rgba(30, 28, 18, 0.22), 0 0 0 0.5px rgba(30,28,18,0.2);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  user-select: none;
}
.compare .c-frame { position: relative; }
.compare img { width: 100%; pointer-events: none; }
.compare .c-top { position: absolute; inset: 0; background: #fff; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .c-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 1.5px; margin-left: -0.75px; background: var(--accent);
  pointer-events: none;
}
.compare .c-handle::after {
  content: "";
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2327261e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 6 3.5 10l4 4M12.5 6l4 4-4 4'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15), 0 0 0 1px var(--line-strong);
}
.compare { touch-action: pan-y; cursor: ew-resize; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.c-chip {
  position: absolute; top: 18px; z-index: 2;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--line);
}
.c-chip.l { left: calc(50% - min(44%, 300px)); }
.c-chip.r { right: calc(50% - min(44%, 300px)); }

/* ---------- Web band ---------- */
.band-wrap { padding-top: 24px; }
/* '웹 번역' 메뉴로 오면 띠가 상단 바 아래 화면 한가운데 오도록 (띠 98px + 위 여백 24px 기준) */
#web { scroll-margin-top: calc(50vh - 41px); }
.band {
  background: var(--card); border-radius: 4px; padding: 30px 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.band p { font-size: 19px; line-height: 1.5; color: var(--ink-soft); letter-spacing: -0.01em; }
.band p b { font-weight: 400; color: var(--ink); }

/* ---------- Section heads ---------- */
.section { padding-top: 140px; }
.section-head { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.plan { background: var(--card); border-radius: 4px; padding: 24px 20px 20px; display: flex; flex-direction: column; }
.plan.featured { box-shadow: inset 0 0 0 1px var(--ink); }
.plan-name { display: flex; align-items: center; gap: 8px; }
.plan-name h3 { font-size: 15px; font-weight: 400; }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); }
.plan-price { margin-top: 18px; font-size: 26px; letter-spacing: -0.02em; }
.plan-price span { margin-left: 3px; font-size: 14px; color: var(--ink-faint); }
.plan ul { margin: 20px 0 24px; list-style: none; font-size: 14px; color: var(--ink-soft); flex: 1; }
.plan li { padding: 6px 0; display: flex; align-items: baseline; gap: 8px; }
.plan li::before {
  content: ""; flex: none; width: 13px; height: 13px; align-self: center; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feature-highlight-link { color: var(--accent-text); }
.feature-highlight-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature-highlight-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.feature-link-icon { margin-right: 4px; }
.plan .btn { width: 100%; }
.plan .btn-gray { background: var(--bg); }
.plan .btn-gray:hover { background: color-mix(in srgb, var(--bg), var(--ink) 4%); }
/* 구독자 버튼 상태: 이용 중(초록 톤), 변경 예정(흐린 글자). 둘 다 누를 수 없다. */
.plan .btn:disabled { cursor: default; }
.plan .btn.is-current,
.plan .btn.is-current:hover {
  background: color-mix(in srgb, var(--ok) 13%, var(--bg));
  color: var(--ok);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 28%, transparent);
}
.plan .btn.is-current::before { content: "✓"; font-size: 13px; }
.plan .btn.is-scheduled,
.plan .btn.is-scheduled:hover { background: var(--bg); color: var(--ink-faint); }

/* ---------- Closing ---------- */
.closing { padding: 200px 0 180px; text-align: center; }
.closing h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 400; line-height: 1.15; letter-spacing: -0.035em; }
.closing .hero-cta { justify-content: center; margin-top: 36px; }

footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot p { margin-top: 12px; color: var(--ink-faint); line-height: 1.7; font-size: 13.5px; }
.foot h4 { font-size: 13px; font-weight: 400; color: var(--ink-faint); margin-bottom: 14px; }
.foot ul { list-style: none; }
.foot li { padding: 5px 0; }
.foot li a { color: var(--ink-soft); }
.foot li a:hover { color: var(--ink); }
.copy { margin-top: 48px; font-size: 12.5px; color: var(--ink-faint); }
/* 사업자 정보: 상호·사업자등록번호, 주소, 연락처 */
.biz { margin-top: 48px; font-style: normal; font-size: 12.5px; line-height: 1.8; color: var(--ink-faint); }
.biz a:hover { color: var(--ink); }
.biz + .copy { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .feature, .feature.rev { grid-template-columns: 1fr; min-height: 0; }
  .feature.rev .f-text { order: 0; }
  .f-text { padding: 18px 12px 8px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav-wrap { background: var(--bg); backdrop-filter: none; }
  .stage .window, .stage .page { transition: translate 0.6s cubic-bezier(0.3, 0, 0.2, 1); }
  .hero-stage { height: 560px; } /* room for the chat input under the reserved answer */
  .app-body { grid-template-columns: 1fr min(320px, calc(100vw - 88px)); }
  .stage::before { background-image: url("../assets/stage/hero-m.webp"); }
  .stage.dusk::before { background-image: url("../assets/stage/dusk-m.webp"); }
  .stage.sea::before { background-image: url("../assets/stage/sea-m.webp"); }
  .stage.meadow::before { background-image: url("../assets/stage/meadow-m.webp"); }
  .stage.night::before { background-image: url("../assets/stage/night-m.webp"); }
  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 24px; }
  .hero h1 br { display: none; }
  .nav-right .login { display: none; }
  .viewer-bar .hide-sm { display: none; }
  .page-wrap { padding: 12px 12px 0; }
  .features { padding-top: 80px; }
  .duo { font-size: 19px; }
  .compare { top: 48px; width: calc(100% - 32px); }
  .c-chip.l { left: 16px; }
  .c-chip.r { right: 16px; }
  .band { padding: 24px 20px; }
  .band p { font-size: 17px; }
  .section { padding-top: 96px; }
  .plans { grid-template-columns: 1fr; }
  .closing { padding: 128px 0 112px; }
}

/* ---------- Contact modal ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.modal.show { display: flex; }
.modal-content { position: relative; width: min(100%, 380px); padding: 28px 24px 24px; border-radius: 10px; background: var(--surface); box-shadow: 0 24px 60px rgba(30, 28, 18, 0.25); }
.modal-content h3 { font-size: 18px; font-weight: 500; }
.modal-content p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.email-box { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--card); font-size: 15px; }
.close-button { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; font-size: 22px; line-height: 1; color: var(--ink-soft); }
