/* Cuewell landing page */

:root {
  --paper: #f5f4ef;
  --paper-2: #ebe9e2;
  --ink: #141414;
  --ink-2: #47463f;
  --ink-3: #75736a;
  --rule: #dcd9cf;
  --green: #06734a;   /* accent for text on light backgrounds */
  --mint: #4af7a4;    /* the app's accent */
  --wrap: 1160px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --win: "Segoe UI Variable Text", "Segoe UI", "Geist", system-ui, sans-serif;

  /* the app's dark theme */
  --app-bg: #202020;
  --app-page: #272727;
  --app-card: #2f2f2f;
  --app-control: #3a3a3a;
  --app-line: #3d3d3d;
  --app-text: #ffffff;
  --app-text-2: #c8c8c8;
  --app-text-3: #9b9b9b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.12em 0.42em;
  font: 500 0.8em/1.45 var(--mono);
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2c2a; }
.btn-line { border-color: #c9c6bb; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 244, 239, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-row { display: flex; align-items: center; gap: 36px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.025em; line-height: 1; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.footer .brand img { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 1px #34342f; } /* keeps the dark tile visible on the dark footer */
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; }
.hero-copy { max-width: 780px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.035em; }
.lead { margin-top: 26px; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.hero-meta span { margin: 0 6px; }

/* ---------- Scene: desktop with a call and the app ---------- */
.scene { margin-top: 64px; container: scene / inline-size; }
.desk {
  position: relative;
  font-size: calc(100cqw / 75);
  aspect-ratio: 75 / 40;
  border-radius: 1.1em;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 20%, #dfe4e6 0%, transparent 70%),
    radial-gradient(60% 70% at 90% 90%, #d9d0c2 0%, transparent 70%),
    linear-gradient(135deg, #cfd6d8, #d8d2c6);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -30px rgba(40, 35, 20, .35);
}

/* Video call window */
.call {
  position: absolute; left: 2.4em; top: 5em; width: 38em; height: 30em;
  display: flex; flex-direction: column;
  background: #1b1b1d; color: #e9e9ea;
  border-radius: .6em; overflow: hidden;
  box-shadow: 0 1.2em 3em -1em rgba(0, 0, 0, .45);
  font: 1em/1.3 var(--win);
}
.call > * { font-size: .78em; }
.call-bar { display: flex; justify-content: space-between; padding: .9em 1.2em; color: #b9b9bd; }
.call-time { font-variant-numeric: tabular-nums; }
.call-stage { position: relative; flex: 1; margin: 0 1em; }
.tile { position: absolute; display: grid; place-items: center; border-radius: .7em; background: #2a2a2e; }
.tile-main { inset: 0 0 0 0; }
.tile-main.speaking { box-shadow: inset 0 0 0 .2em #4f8ff7; }
.tile-self { left: 1em; bottom: 1em; width: 13em; height: 8em; background: #333338; box-shadow: 0 .5em 1em rgba(0, 0, 0, .3); }
.avatar { display: grid; place-items: center; width: 6em; height: 6em; border-radius: 50%; background: var(--av); color: #fff; font-size: 1.3em; font-weight: 600; }
.avatar-sm { width: 3.6em; height: 3.6em; font-size: .9em; }
.tile-name { position: absolute; left: .9em; bottom: .8em; padding: .25em .6em; border-radius: .4em; background: rgba(0, 0, 0, .45); font-size: .9em; }
.tile-self .tile-name { left: .6em; bottom: .5em; font-size: .8em; }
.call-tools { display: flex; justify-content: center; gap: .9em; padding: 1em 16.4em 1em 1em; } /* centred in the part Cuewell doesn't cover */
.call-tools i { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: #2f2f33; }
.call-tools i.leave { background: #d83b3b; width: 4.4em; border-radius: 2em; }
.call-tools svg { width: 1.5em; height: 1.5em; fill: none; stroke: #e9e9ea; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.call-tools i.leave svg { fill: #fff; stroke: none; }

/* The Cuewell window, matching the app's dark Windows 11 look */
.cw {
  position: absolute; right: 2.4em; top: 2em; width: 45em; height: 36em;
  display: flex; flex-direction: column;
  background: var(--app-bg); color: var(--app-text);
  border: 1px solid #3a3a3a; border-radius: .55em; overflow: hidden;
  box-shadow: 0 2em 4em -1em rgba(0, 0, 0, .55);
  font: 1em/1.4 var(--win);
}
.cw > * { font-size: .8em; }
.cw svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cw-title { display: flex; align-items: center; justify-content: flex-end; gap: .55em; height: 3em; padding: 0 .9em 0 1em; background: #1c1c1c; font-size: .92em; }
.cw-ibtn { display: grid; place-items: center; width: 2.2em; height: 2em; border-radius: .35em; background: var(--app-control); }
.cw-slider { display: flex; align-items: center; gap: .55em; color: var(--app-text); margin-left: .4em; }
.cw-slider b { position: relative; width: 4.6em; height: .3em; border-radius: 1em; background: var(--mint); }
.cw-slider b i { position: absolute; right: 12%; top: 50%; width: 1.1em; height: 1.1em; margin-top: -.55em; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 .22em #454545; }
.cw-status { display: flex; align-items: center; gap: .4em; color: var(--app-text-2); }
.cw-status i { width: .55em; height: .55em; border-radius: 50%; background: var(--mint); }
.cw-winctl svg { width: 4.6em; height: 1em; stroke: #d0d0d0; stroke-width: 1; margin-left: .8em; }

.cw-btn {
  display: inline-flex; align-items: center; gap: .45em;
  height: 2.2em; padding: 0 .65em; border-radius: .35em;
  background: var(--app-control); color: var(--app-text); border: 1px solid #454545;
  white-space: nowrap;
}
.cw-btn small { font-size: .82em; color: var(--app-text-3); margin-left: .3em; }
.cw-btn.primary { background: var(--mint); color: #0b2a1c; border-color: transparent; font-weight: 600; }
.cw-btn.primary small { color: #1d5a3e; font-weight: 400; }
.cw-btn.on { background: #474747; }
.cw-btn.sm { height: 2em; }

.cw-main { flex: 1; display: flex; min-height: 0; }
.cw-rail { display: flex; flex-direction: column; align-items: center; gap: .5em; width: 5.2em; padding: .6em 0 .8em; color: var(--app-text); }
.cw-rail span { display: flex; flex-direction: column; align-items: center; gap: .2em; width: 4.4em; padding: .55em 0; border-radius: .4em; position: relative; }
.cw-rail span svg { width: 1.45em; height: 1.45em; }
.cw-rail em { font-style: normal; font-size: .82em; }
.cw-rail .active { background: #2d2d2d; color: var(--mint); }
.cw-rail .active::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: .22em; border-radius: 1em; background: var(--mint); }
.cw-rail .rail-gap { flex: 1; padding: 0; }

.cw-page { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: .9em 1em .8em; background: var(--app-page); border-top-left-radius: .6em; }
.cw-cols { flex: 1; display: grid; grid-template-columns: 1fr 1.75fr; gap: .7em; min-height: 0; }
.cw-card { display: flex; flex-direction: column; min-height: 0; padding: .9em 1em; background: var(--app-card); border: 1px solid #353535; border-radius: .5em; overflow: hidden; }
.cw-card header { display: flex; align-items: center; gap: .55em; margin-bottom: .7em; font-weight: 600; font-size: 1.05em; }
.cw-copy { margin-left: auto; color: var(--app-text-2); }
.cw-transcript p { margin-bottom: .45em; color: var(--app-text); }
.cw-transcript p.typing::after { content: ""; display: inline-block; width: .45em; height: 1em; margin-left: .15em; vertical-align: -.12em; background: var(--app-text-2); animation: blink 1s steps(1) infinite; }
.cw-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: .4em; margin-bottom: .6em; font-size: .9em; }
.cw-actions .cw-btn:not(.primary) small { display: none; } /* room for one row; Generate keeps its shortcut */
.cw-progress { height: .2em; margin-bottom: .5em; border-radius: 1em; background: transparent; overflow: hidden; position: relative; }
.cw-progress.on::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; background: var(--mint); border-radius: 1em; animation: indet 1.1s ease-in-out infinite; }
.cw-answer-text { font-size: 1.08em; line-height: 1.55; color: var(--app-text); }
.cw-statusline { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-top: .7em; font-size: .9em; color: var(--app-text-2); }
.cw-statusline b { color: var(--app-text); font-weight: 600; margin-right: .4em; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: #151515; color: #f1f1ee; }
.h2 { font-size: clamp(32px, 4.2vw, 48px); max-width: 720px; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.split-head p { color: var(--ink-2); font-size: 18px; max-width: 520px; }
.section-dark .split-head p { color: #b9b8b1; }

/* How it works */
.flow { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.flow-ui { height: 190px; padding: 22px; border-radius: 14px; background: #1d1d1d; display: flex; align-items: center; font: 14px/1.5 var(--win); }
.mini { width: 100%; background: var(--app-card); border: 1px solid #383838; border-radius: 10px; padding: 14px 16px; color: var(--app-text); }
.mini-center { display: flex; justify-content: center; padding: 26px 16px; }
.mini-line { margin-bottom: 6px; }
.mini-line:last-child { margin-bottom: 0; }
.mini-line.dim { color: var(--app-text-3); }
.mini-answer { font-size: 14.5px; }
.cw-btn.big { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 6px; }
.cw-btn.big svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; font-size: 21px; }
.flow h3 span { font: 500 14px var(--mono); color: var(--green); }
.flow li > p { margin-top: 10px; color: var(--ink-2); }

/* Stealth comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.compare figcaption { margin-top: 14px; font-size: 15px; color: #b9b8b1; }
.screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #b9c2c5, #c8c1b4);
}
.screen-shared { box-shadow: inset 0 0 0 3px #2fbf71; }
.share-banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 4px 12px; border-radius: 0 0 8px 8px; background: #2fbf71; color: #062a16; font-size: 12px; font-weight: 600; white-space: nowrap; }
.s-call { position: absolute; left: 7%; top: 12%; width: 54%; height: 72%; border-radius: 8px; background: #1b1b1d; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.s-call i { position: absolute; border-radius: 6px; background: #2c2c30; }
.s-call i:first-child { inset: 12% 6% 22% 6%; box-shadow: inset 0 0 0 2px #4f8ff7; }
.s-call i:last-child { left: 34%; right: 34%; bottom: 6%; height: 9%; border-radius: 20px; background: #333337; }
.s-cw { position: absolute; right: 6%; top: 8%; width: 44%; height: 80%; border-radius: 8px; background: var(--app-bg); border: 1px solid #3a3a3a; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); }
.s-cw i { position: absolute; left: 8%; right: 8%; height: 5%; border-radius: 3px; background: #3a3a3a; }
.s-cw i:nth-child(1) { top: 14%; right: 30%; }
.s-cw i:nth-child(2) { top: 24%; }
.s-cw i:nth-child(3) { top: 34%; right: 45%; }
.s-cw b { position: absolute; left: 8%; right: 8%; top: 48%; bottom: 10%; border-radius: 4px; background: repeating-linear-gradient(180deg, #5a5a5a 0 4px, transparent 4px 13px); opacity: .7; }
.s-cw::before { content: ""; position: absolute; right: 8%; top: 4%; width: 22%; height: 5%; border-radius: 3px; background: var(--mint); }
.note { margin-top: 36px; font-size: 15px; color: #8f8e87; }

/* The rest of it */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin-top: 48px; border-top: 1px solid var(--rule); }
.specs > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-weight: 600; }
.specs dd { color: var(--ink-2); font-size: 16px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: 32px 30px 30px; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan-pick { background: #fbfbf8; }
.plan-name { font-weight: 600; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tag { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: #dff7ea; color: var(--green); }
.plan-price { margin-top: 18px; font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.plan-for { margin-top: 6px; color: var(--ink-2); font-size: 15px; min-height: 48px; }
.plan-each { margin-top: 8px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plan-each .count, .plan-each .total { color: var(--ink); font-weight: 600; }
.bonus { display: inline-block; margin-left: 2px; padding: 0 6px; border-radius: 5px; background: #dff7ea; color: var(--green); font-size: 12.5px; font-weight: 500; }
.plan .btn { margin-top: 22px; }
.plan-list { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; font-size: 15px; }
.plan-list li { position: relative; padding-left: 24px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan-list li.plus { padding-left: 0; color: var(--ink-3); font-size: 14px; }
.plan-list li.plus::before { display: none; }

/* pack selector */
.qty { display: inline-flex; gap: 4px; margin-top: 48px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.qty button { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: 500 15px var(--sans); color: var(--ink-2); cursor: pointer; }
.qty button:hover { color: var(--ink); }
.qty button[aria-checked="true"] { background: var(--ink); color: #fff; }

/* feature tags in the feature list */
.plan-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #dff7ea; color: var(--green); font-size: 12px; font-weight: 500; vertical-align: 2px; }

/* full comparison */
.compare-all { margin-top: 20px; }
.compare-all summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; color: var(--green); list-style: none; padding: 6px 0; }
.compare-all summary::-webkit-details-marker { display: none; }
.compare-all summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.compare-all[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.table-scroll { margin-top: 14px; overflow-x: auto; background: #fff; border: 1px solid var(--rule); border-radius: 14px; }
.compare-all table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare-all th, .compare-all td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
.compare-all tbody tr:last-child > * { border-bottom: 0; }
.compare-all thead th { font-size: 14px; font-weight: 600; background: #fbfbf8; }
.compare-all tbody th { font-weight: 400; color: var(--ink-2); }
.compare-all td { width: 16%; color: var(--ink-2); }
.compare-all td.y, .compare-all td.n { font-size: 0; }
.compare-all td.y::before { content: ""; display: inline-block; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-2px); }
.compare-all td.n::before { content: ""; display: inline-block; width: 12px; height: 1.5px; background: #c4c1b6; vertical-align: middle; }
.plans-foot { margin-top: 24px; max-width: 760px; font-size: 15px; color: var(--ink-3); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-contact { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.faq-contact a, .faq a { color: var(--green); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 21px 44px 21px 0; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 16px; }

/* Closing */
.closing { border-top: 1px solid var(--rule); padding: 56px 0; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.closing p { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.015em; max-width: 680px; }

/* Footer */
.footer { background: var(--ink); color: #d9d8d2; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: #97968f; font-size: 15px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer h3 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #87867f; margin-bottom: 4px; }
.footer nav a { font-size: 15px; text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #2c2c2a; font-size: 13px; color: #85847d; }

/* ---------- Motion ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes indet { from { left: -35%; } to { left: 100%; } }
.cw-answer-text.hidden { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; max-width: 560px; }
  .specs { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; width: 40px; height: 40px;
    background: transparent; border: 1px solid #c9c6bb; border-radius: 9px; cursor: pointer;
  }
  .nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px 20px 16px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .split-head { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .closing-row { flex-direction: column; align-items: flex-start; }
}

/* On a phone, show only the Cuewell window, stacked */
@container scene (max-width: 720px) {
  .desk { aspect-ratio: auto; font-size: calc(100cqw / 24); padding: 1.2em .8em 1.2em; }
  .call, .cw-rail, .cw-slider, .cw-status, .cw-ibtn, .cw-statusline .cw-btn { display: none; }
  .cw { position: relative; inset: auto; width: 100%; height: auto; }
  .cw-title { padding-left: 1em; justify-content: space-between; }
  .cw-page { border-radius: 0; }
  .cw-cols { grid-template-columns: 1fr; }
  .cw-answer { min-height: 21em; }
  .cw-actions .cw-btn:nth-child(-n+3) { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 64px; }
  .lead { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .scene { margin-top: 44px; }
  .section { padding: 76px 0; }
  .specs > div { grid-template-columns: 1fr; gap: 6px; }
  .qty { display: flex; }
  .qty button { flex: 1; padding: 0 6px; font-size: 14px; }
  .plan-for { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Legal pages and 404 ---------- */
.nav-back { margin-left: auto; }
.legal { max-width: 720px; padding: 72px 0 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal-date { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.legal h2 { margin: 44px 0 12px; font-size: 21px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal > p:first-of-type + p { margin-top: 32px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--green); }
.footer-slim { padding: 0 0 30px; }
.footer-slim .footer-fine { margin-top: 0; border-top: 0; padding-top: 30px; }
.footer-fine a { color: inherit; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 48px 0; }
.notfound h1 { margin-top: 40px; font-size: clamp(34px, 5vw, 52px); }
.notfound p { color: var(--ink-2); margin-bottom: 12px; }
