/* Promptly website — one stylesheet for all pages.
   Values come straight from promptly.pen (Website — Landing/Checkout/Thank You/Sign In/Account).
   Design is drawn at 1440px with 120px gutters; below that we fluid-scale and stack. */
:root {
  --violet: #580AA3;
  --ink: #12052A;
  --yellow: #FCE512;
  --mint: #2CF6D2;
  --lilac: #C9A8F5;
  --paper: #F6F1FC;
  --text-2: #4A4458;
  --muted: #6F6D7A;
  --gray: #8A8696;
  --panel: #1F1F21;
  --accent: #A67CFF;
  --accent-strong: #7B4BE8;
  --hero-bg: radial-gradient(ellipse 80% 90% at 25% 10%, #5A14B0 0%, #22074A 65%, #170436 100%);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ui: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 8.33vw, 120px);
}
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ui); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
svg.lucide { width: 1em; height: 1em; flex-shrink: 0; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--violet); }
.dark .eyebrow, .eyebrow.mint { color: var(--mint); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 var(--gutter); gap: 24px; position: relative; z-index: 3; }
.nav.light { background: #fff; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 36px; font-size: 15px; color: #FFFFFFCC; }
.nav-right { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.on-dark .nav-right, .on-dark .logo { color: #fff; }
.on-dark .nav-right > a:not(.btn) { color: #FFFFFFCC; }
.nav.light .nav-right { color: var(--text-2); }
.nav a:hover { opacity: .8; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; padding: 16px 24px; font-size: 17px; font-weight: 700; transition: transform .15s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { font-size: 18px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px #FFFFFF4D; color: #fff; font-weight: 600; padding: 16px 22px; }
.btn-sm { font-size: 14px; padding: 9px 16px; border-radius: 10px; gap: 8px; font-weight: 600; }
.btn-sm svg { font-size: 15px; }
.btn-glass { background: #FFFFFF1A; color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: #fff; position: relative; min-height: 860px; z-index: 2; }
.hero-copy { position: relative; padding: 116px var(--gutter) 0; max-width: calc(520px + var(--gutter)); display: flex; flex-direction: column; gap: 28px; z-index: 2; }
.hero h1 { font-size: clamp(56px, 7.2vw, 104px); white-space: nowrap; }
.hero .sub { font-size: 20px; line-height: 1.5; color: #FFFFFFCC; }
.hero .micro { font-size: 14px; color: #FFFFFF99; }
/* --mail-h is shared by .mail and the ⌘U keycap overlay (.keys-pop) so the keycaps centre on the window. */
.hero-visual { position: absolute; left: 50%; right: 0; top: 150px; --mail-h: 470px; }
.spark { position: absolute; right: 50px; top: -46px; width: 90px; height: 90px; z-index: 1; fill: var(--mint); }
.mail { background: #FBFAFD; border-radius: 16px 0 0 16px; height: var(--mail-h); box-shadow: 0 30px 70px #0A021C99; overflow: hidden; color: #2B2438; }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 16px 20px; background: #F1EEF6; }
.light-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.light-dot:nth-child(2) { background: #FEBC2E; } .light-dot:nth-child(3) { background: #28C840; }
.titlebar span { margin-left: 12px; font-size: 13px; font-weight: 600; color: #6B6478; }
.mail-body { padding: 28px 40px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; align-items: flex-start; }
.mail-sel { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; transition: opacity .2s; }
/* Selection colour is a background-image (not background-color) so the .flash keyframes can animate it. */
/* Real text selections have no side padding: the highlight starts exactly at the first glyph,
   so selected lines stay aligned with unselected ones ("Hi Sarah,"). */
.mail-body mark { color: inherit; padding: 3px 0; background: linear-gradient(#C9A8F5AA, #C9A8F5AA) no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Demo drag: a line that is not fully selected drops its own highlight (.off); demo.js wraps the selected
   characters of the line under the pointer in .hl. Neither has horizontal padding, so nothing shifts or jumps. */
.mail-sel mark.off { background: none; }
.mail-sel .hl { background: #C9A8F5AA; padding: 3px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mail-sel .new { margin: 0; max-width: 560px; line-height: 1.95; }
.mail-sel.flash mark { animation: flash 1.2s ease-out; }
@keyframes flash { from { background-image: linear-gradient(#A67CFF, #A67CFF); color: #fff; } }

/* Command palette: overlaps the hero bottom edge into "How it works", exactly like the design */
.palette { transition: opacity .25s, transform .25s, height .35s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 0; position: absolute; left: -60px; top: 230px; width: 760px; background: var(--panel); border-radius: 18px; box-shadow: 0 40px 90px #12052A66, inset 0 0 0 1px #FFFFFF24; color: #F2F2F4; overflow: hidden; }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #FFFFFF14; }
.pal-input > svg { color: var(--accent); font-size: 22px; }
.pal-input .ph { flex: 1; display: flex; align-items: center; gap: 2px; font-size: 19px; color: #8E8E95; min-width: 0; white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 22px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip { display: flex; align-items: center; gap: 8px; background: #FFFFFF0F; border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.chip b { font-weight: 600; } .chip .n { color: #8E8E95; }
.chip .app { width: 18px; height: 18px; border-radius: 5px; background: #F2F2F4; color: #1F1F21; display: grid; place-items: center; font-size: 11px; }
.pal-section { display: flex; justify-content: space-between; padding: 16px 22px 8px; font-size: 12px; color: #8E8E95; }
.pal-section b { letter-spacing: .08em; }
.pal-list { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.pal-row { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 12px; }
.pal-row.active { background: #33223A; }
.tile { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.pal-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pal-row .t b { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.pal-row .t span { font-size: 14px; color: #A6A6AD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row kbd { font: 600 13px var(--ui); color: #8E8E95; }
.variants { display: inline-flex; align-items: center; gap: 4px; background: #A445C9; border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 700; color: #fff; }
.variants svg { font-size: 11px; }
.pal-foot { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-top: 1px solid #FFFFFF14; font-size: 13px; color: #8E8E95; }
.hints { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.hints span { display: flex; align-items: center; gap: 6px; }
.hints kbd { font: 600 11px var(--ui); color: #A6A6AD; padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px #FFFFFF26; }
.model-pill { display: flex; align-items: center; gap: 7px; background: #FFFFFF0F; border-radius: 16px; padding: 6px 12px; color: #F2F2F4; font-weight: 600; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #32D74B; }

/* ---------- Palette demo states (driven by demo.js) ---------- */
.palette.closed { opacity: 0; transform: translateY(12px) scale(.98); }
.ph .typed { color: #F2F2F4; white-space: pre; }
.ph.has .hint { display: none; }
.pal-ask { padding: 8px 8px 0; }
.pal-row { transition: opacity .2s, background .2s; }
.pal-row kbd.enter { color: var(--accent); }
.pal-row kbd .k { font-size: 11px; color: #A6A6AD; padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px #FFFFFF26; margin-right: 6px; }
.tile svg.spin { display: none; }
.working .tile svg { display: none; }
.working .tile svg.spin { display: block; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pal-row.working { background: #2E2840; position: relative; overflow: hidden; }
.pal-row.working::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, #A67CFF40 55%, transparent 80%); animation: sweep 1.3s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pal-row.working .t span { color: var(--accent); }
.cmd-view.busy .pal-row:not(.working) { opacity: .35; }
.mail-body { transition: opacity .25s; }

/* Variant picker submenu: a centred card over the command list (matches the app's variant sheet). */
.cmd-view { position: relative; }
.cmd-view.modal > :not(.var-modal) { opacity: .55; transition: opacity .2s; }
.var-modal { position: absolute; z-index: 2; top: 60px; bottom: 58px; left: 50%; width: min(400px, 86%); transform: translateX(-50%); display: flex; flex-direction: column; background: #232226; border-radius: 16px; box-shadow: 0 24px 60px #0008, inset 0 0 0 1px #FFFFFF14; overflow: hidden; animation: vm-in .22s ease-out; }
@keyframes vm-in { from { opacity: 0; transform: translateX(-50%) scale(.96); } }
.vm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 16px 14px 16px; border-bottom: 1px solid #FFFFFF14; }
.vm-head b { display: block; font-size: 16px; font-weight: 700; color: #F2F2F4; }
.vm-head span { display: block; margin-top: 4px; font-size: 12px; color: #A6A6AD; }
.vm-close { width: 18px; height: 18px; border-radius: 50%; background: #A6A6AD; color: #232226; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.vm-list { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.vm-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #E4E2EA; font-size: 14px; transition: background .15s; }
.vm-row b { flex: 1; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-row.active { background: #3A2433; }
.vm-row.active b { font-weight: 600; color: #fff; }
.vm-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.vm-row.active .vm-dot { background: #E8528F; }
.vm-emoji { font-size: 15px; }
.vm-row kbd { font: 500 11px var(--ui); color: #A6A6AD; background: #FFFFFF14; border-radius: 4px; padding: 2px 6px; }
.vm-star { color: #F5A623; font-size: 13px; }
.vm-foot { padding: 12px 16px; border-top: 1px solid #FFFFFF14; font-size: 12px; color: #A6A6AD; }

.cv-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-bottom: 1px solid #FFFFFF14; }
.lights { display: flex; gap: 8px; padding-right: 6px; }
.cv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cv-title b { font-size: 15px; font-weight: 600; } .cv-title span { font-size: 12px; color: #6F6D7A; }
.cv-btn { width: 32px; height: 32px; border-radius: 8px; background: #26252C; display: grid; place-items: center; color: #A3A1AD; font-size: 15px; }
.cv-thread { padding: 18px 24px; display: flex; flex-direction: column; gap: 20px; }
.ctx { background: #211F27; border-left: 2px solid var(--accent); border-radius: 4px 12px 12px 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ctx b { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.ctx p { font-size: 13px; line-height: 1.5; color: #A3A1AD; }
.u { display: flex; justify-content: flex-end; }
.u span { background: var(--accent-strong); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 15px; }
.ai { display: flex; gap: 12px; }
.av { width: 26px; height: 26px; border-radius: 7px; background: #2E2840; display: grid; place-items: center; color: var(--accent); font-size: 14px; flex-shrink: 0; }
.ai-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-c p { font-size: 15px; line-height: 1.55; color: #F3F2F7; }
.ai-c p:empty { display: none; }
.dots { display: none; gap: 5px; padding-top: 10px; }
.ai.thinking .dots { display: flex; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #A3A1AD; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.acts { display: none; gap: 8px; flex-wrap: wrap; }
.ai.done .acts { display: flex; animation: pop .3s ease-out; }
.act { display: flex; align-items: center; gap: 6px; background: #26252C; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 500; color: #A3A1AD; }
.act.primary { background: var(--accent-strong); color: #fff; font-weight: 600; padding: 7px 12px; }
.act kbd { font: 600 11px var(--ui); color: #FFFFFFAA; }
.composer { margin: 4px 16px 16px; background: #26252C; box-shadow: inset 0 0 0 1px #FFFFFF14; border-radius: 14px; padding: 8px 8px 8px 16px; display: flex; align-items: center; justify-content: space-between; color: #6F6D7A; font-size: 15px; }
.send { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-strong); color: #fff; display: grid; place-items: center; font-size: 15px; }

.cursor { position: absolute; left: 0; top: 0; width: 40px; height: 40px; z-index: 6; overflow: visible; pointer-events: none; opacity: 0; transition: transform .8s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 4px 8px #00000066); }
.cursor.show { opacity: 1; }
.cursor path { transition: transform .1s; transform-origin: 5px 3px; }
.cursor.down path { transform: scale(.82); }
/* I-beam while over the email text. It is drawn centred on the arrow's hotspot (and so spills out of the
   viewBox, hence overflow: visible above), which lets demo.js use one offset for both pointers. */
.cursor .ib, .cursor.ibeam .ar { display: none; }
.cursor.ibeam .ib { display: block; }
.ripple { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid #fff; z-index: 5; pointer-events: none; animation: ripple .5s ease-out forwards; }
@keyframes ripple { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
/* ⌘U beat: same keycap look as .key in "Three moves", centred over the Mail window, with a lip
   (the solid box-shadow) so the press reads as a real key travelling down. Horizontally centred on the
   window; vertically it sits in the empty area below the email text (--kb = gap to the window's bottom
   edge) so the selection it acts on stays readable. */
.keys-pop { position: absolute; left: 0; right: 0; top: 0; height: var(--mail-h); z-index: 6; display: flex; align-items: flex-end; justify-content: center; gap: calc(var(--k) * .14); padding-bottom: var(--kb); pointer-events: none; --k: 128px; --kb: 92px; transition: opacity .2s; }
.keys-pop.out { opacity: 0; }
.keys-pop kbd { --lip: calc(var(--k) * .08); width: var(--k); height: var(--k); border-radius: calc(var(--k) * .22); background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 calc(var(--k) * .46)/1 var(--display); box-shadow: 0 var(--lip) 0 #3D2470, 0 calc(var(--k) * .3) calc(var(--k) * .5) #12052A80, inset 0 0 0 1px #FFFFFF1F; transition: transform .09s ease-out, box-shadow .09s ease-out; animation: keys-in .3s cubic-bezier(.2,1.5,.4,1) backwards; }
/* Entrance animates the keycaps, not the full-width overlay: an overshooting scale on the overlay widened the page at 390px. */
.keys-pop kbd + kbd { animation-delay: .06s; }
.keys-pop kbd.press { transform: translateY(calc(var(--lip) - 2px)); box-shadow: 0 2px 0 #3D2470, 0 calc(var(--k) * .08) calc(var(--k) * .16) #12052A80, inset 0 0 0 2px #FCE512CC; }
@keyframes keys-in { from { opacity: 0; transform: scale(.7); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.92); } }

/* ---------- Sections ---------- */
.section { padding: 120px var(--gutter); display: flex; flex-direction: column; gap: 64px; }
.paper { background: var(--paper); }
.dark { background: var(--ink); color: #fff; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.head h2 { font-size: clamp(40px, 4.2vw, 60px); }
.head p { font-size: 19px; line-height: 1.5; color: var(--text-2); }
.dark .head p { color: #FFFFFFB3; }
.how { padding-top: 230px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 20px; }
.step-visual { height: 230px; border-radius: 18px; background: #fff; padding: 28px; display: flex; align-items: center; justify-content: center; }
.step-visual.doc { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; font-size: 15px; color: var(--text-2); }
/* Wrapped in a <p> so the mark stays inline and highlights line by line, like a real selection. */
.step-visual.doc p { margin: 0; line-height: 1.6; }
.step-visual.doc mark { background: #A67CFF40; color: var(--ink); padding: 3px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.key { width: 88px; height: 88px; border-radius: 18px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 40px var(--display); }
.plus { font: 800 32px var(--display); color: #12052A66; margin: 0 16px; }
.step-visual.cmds { background: var(--panel); flex-direction: column; align-items: stretch; gap: 4px; }
.cmd { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 9px; color: #fff; font-size: 15px; }
.cmd.active { background: #33223A; font-weight: 600; }
.cmd kbd { font: 13px var(--ui); color: #FFFFFF66; }
.step-title { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 800; }
.step-title .num { font-size: 24px; color: var(--violet); }
.step-title h3 { font-size: 26px; }
.step p, .feature p { font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* Ask anything */
.modes { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 536fr); gap: 24px; }
.modes-col { display: flex; flex-direction: column; gap: 24px; }
.mode { background: #FFFFFF0A; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.mode-head { display: flex; justify-content: space-between; align-items: center; }
.mode-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--lilac); letter-spacing: .08em; }
.mode-label i { width: 32px; height: 32px; border-radius: 9px; background: #A67CFF26; display: grid; place-items: center; color: var(--accent); font-size: 16px; }
.keys { display: flex; gap: 6px; }
.keys kbd { background: #FFFFFF14; border-radius: 6px; padding: 4px 8px; font: 700 13px var(--ui); color: var(--yellow); }
.mode h3 { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.2; }
.chat { background: var(--panel); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.chat .q { align-self: flex-end; background: var(--accent-strong); border-radius: 12px; padding: 9px 13px; }
.chat .a { display: flex; gap: 10px; color: #E4E2EA; line-height: 1.5; }
.chat .a svg { color: var(--accent); font-size: 15px; margin-top: 3px; }
.chat .quote { background: #FFFFFF08; border-left: 2px solid var(--accent); padding: 8px 12px; color: #A6A6AD; font-size: 13px; }
.chat .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8E8E95; }
.term { background: #0E0E12; border-radius: 10px; overflow: hidden; }
.term .titlebar { background: #1A1A1F; padding: 10px 12px; gap: 6px; }
.term .light-dot { width: 9px; height: 9px; }
.term .titlebar span { font-size: 11px; font-weight: 400; color: #8E8E95; margin: 0 auto; transform: translateX(-20px); }
.term pre { margin: 0; padding: 14px 16px; font: 12px/1.6 var(--mono); color: #A6A6AD; white-space: pre-wrap; position: relative; }
.term pre .capture { display: block; margin: 0 -8px; padding: 0 8px; border-radius: 6px; background: #A67CFF14; outline: 1.5px dashed var(--accent); }
.term .c1 { color: #E4E2EA; } .term .err { color: #FF6B6B; } .term .warn { color: #FFC46B; }
.file { align-self: flex-start; display: flex; align-items: center; gap: 10px; background: #FFFFFF0D; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.file .pdf { background: #FF5A5F; border-radius: 4px; padding: 3px 6px; font-size: 10px; font-weight: 700; }
.file .n { color: #8E8E95; font-weight: 400; font-size: 12px; }

/* Features */
.showcase { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: center; }
.showcase h3 { font-family: var(--display); font-size: 34px; font-weight: 800; margin-bottom: 20px; }
.showcase p { font-size: 18px; line-height: 1.5; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { background: #580AA314; color: var(--violet); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.shot { height: 520px; border-radius: 20px; overflow: hidden; background: linear-gradient(152.7deg, #2A1166 15.6%, #16347A 50%, #1D9C8A 84.4%); padding: 48px 0 0 48px; }
.shot img { width: 1000px; max-width: none; border-radius: 14px; box-shadow: 0 30px 80px #05010FB3; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.feature { border-top: 1.5px solid #12052A1A; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature > svg { font-size: 22px; color: var(--violet); }
.feature h3 { font-family: var(--display); font-size: 22px; font-weight: 800; }

/* Models & privacy */
.models { display: grid; grid-template-columns: 1fr 520px; gap: 80px; align-items: center; }
.providers { background: #fff; border-radius: 20px; overflow: hidden; }
.provider { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.provider + .provider { border-top: 1px solid #12052A0F; }
.provider.default { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--violet); border-radius: 20px 20px 0 0; }
.provider i { width: 40px; height: 40px; border-radius: 10px; background: #12052A0D; display: grid; place-items: center; color: var(--text-2); font-size: 18px; flex-shrink: 0; }
.provider.default i { background: linear-gradient(135deg, #FF8A3D 14.6%, #E040FB 50%, #3D8BFF 85.4%); color: #fff; }
.provider div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.provider b { font-size: 17px; } .provider div span { font-size: 14px; color: var(--muted); }
.badge { background: var(--violet); color: #fff; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.privacy { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; display: flex; flex-direction: column; gap: 32px; }
.privacy h3 { font-family: var(--display); font-size: 40px; font-weight: 800; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.points div { display: flex; flex-direction: column; gap: 10px; }
.points svg { font-size: 22px; color: var(--mint); }
.points b { font-size: 19px; } .points p { font-size: 16px; line-height: 1.5; color: #FFFFFFB3; }

/* Pricing */
.pricing { background: var(--hero-bg); color: #fff; flex-direction: row; gap: 96px; align-items: center; }
.pricing > .left { flex: 1; display: flex; flex-direction: column; gap: 44px; }
.pricing .head h2 { font-size: clamp(44px, 4.4vw, 64px); }
.timeline { display: flex; flex-direction: column; }
.timeline li { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid #FFFFFF1A; }
.timeline li:last-child { border: 0; }
.timeline .n { width: 36px; height: 36px; border-radius: 18px; background: #FFFFFF1A; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.timeline li:last-child .n { background: var(--yellow); color: var(--ink); }
.timeline b { font-size: 18px; display: block; } .timeline span { font-size: 15px; color: #FFFFFF99; }
ol.timeline { list-style: none; margin: 0; padding: 0; }
.price-card { width: 500px; flex-shrink: 0; background: var(--ink); border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 28px; box-shadow: 0 30px 80px #0000004D, inset 0 0 0 1px #FFFFFF1F; }
.pc-head { display: flex; justify-content: space-between; align-items: center; }
.pc-head .logo img { width: 40px; height: 40px; border-radius: 10px; }
.pill { white-space: nowrap; background: #2CF6D21F; color: var(--mint); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.price { display: flex; align-items: center; gap: 12px; }
.price .amt { font: 800 88px/1 var(--display); color: var(--yellow); letter-spacing: -0.03em; }
.price span { font-size: 15px; line-height: 1.5; color: #FFFFFFB3; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { color: var(--mint); font-size: 18px; }
.price-card .btn { font-size: 18px; padding: 18px 24px; border-radius: 14px; width: 100%; }
.footnote { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #FFFFFF80; }
.footnote a { color: var(--lilac); font-weight: 600; }

/* FAQ — native <details>, no JS */
.faq { flex-direction: row; gap: 96px; }
.faq .head { width: 380px; flex-shrink: 0; }
.faq .head h2 { font-size: clamp(40px, 3.9vw, 56px); }
.faq .head p { font-size: 17px; }
.faq .head a { color: var(--violet); font-weight: 600; }
.qs { flex: 1; }
.qs details { border-bottom: 1px solid #12052A1A; padding: 26px 0; }
.qs summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; font-size: 21px; font-weight: 700; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary svg { font-size: 22px; color: var(--violet); }
.qs summary .minus, .qs details[open] summary .plus { display: none; }
.qs details[open] summary .minus { display: block; }
.qs details p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 640px; }

/* Final CTA + footer */
.final { padding: 120px var(--gutter) 96px; gap: 32px; }
.final h2 { font-size: clamp(44px, 5vw, 72px); }
.final .micro { font-size: 14px; color: #FFFFFF80; }
.footer { background: var(--ink); color: #FFFFFF99; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px var(--gutter); border-top: 1px solid #FFFFFF14; font-size: 14px; }
.footer .logo { font: 400 14px var(--ui); letter-spacing: 0; }
.footer .logo img { width: 24px; height: 24px; border-radius: 6px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer a:hover { color: #fff; }

/* ---------- App pages (thank you / sign in / account) ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page.paper-bg { background: var(--paper); }
.page.hero-bg { background: var(--hero-bg); }
.page main { flex: 1; display: flex; justify-content: center; align-items: center; padding: 48px 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.input { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 0 14px; box-shadow: inset 0 0 0 1px #12052A26; color: var(--gray); }
.input:focus-within { box-shadow: inset 0 0 0 1.5px var(--violet); }
.input input, .input select { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font: 400 15px var(--ui); color: var(--ink); padding: 13px 0; }
.input input::placeholder { color: #A3A1AD; }
.input svg { font-size: 16px; }

.ty { width: 720px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.ty .check { width: 56px; height: 56px; border-radius: 28px; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 28px; }
.ty h1 { font-size: clamp(44px, 5vw, 64px); }
.ty .sub { font-size: 19px; line-height: 1.5; color: var(--text-2); }
.keybox { width: 100%; background: var(--ink); border-radius: 16px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.keybox small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--mint); margin-bottom: 6px; }
.keybox code { font: 600 clamp(18px, 2.4vw, 26px) var(--mono); color: #fff; letter-spacing: .04em; word-break: break-all; }
.ty-steps { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ty-steps div { border-top: 1.5px solid #12052A1A; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.ty-steps b { font-size: 16px; } .ty-steps p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.ty-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.link { color: var(--violet); font-weight: 600; font-size: 15px; }
.link:hover { text-decoration: underline; }

.card { background: #fff; border-radius: 24px; padding: 44px; width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 20px 60px #12052A14; }
.card h1 { font: 800 36px var(--display); }
.card .sub { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.card .btn { width: 100%; padding: 15px; font-size: 16px; }
.sent { display: flex; align-items: center; gap: 10px; background: #2CF6D21F; color: #0B6B5A; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.sent[hidden] { display: none; }
.help { font-size: 13px; color: var(--gray); }
.help a { text-decoration: underline; }

.account { width: 100%; max-width: 960px; display: flex; flex-direction: column; gap: 28px; align-self: flex-start; padding-top: 8px; }
.account h1 { font-size: 48px; }
.license { background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.license .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.license .product img { width: 36px; height: 36px; border-radius: 9px; }
.license .pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.keyrow { background: #FFFFFF0F; border-radius: 12px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.keyrow code { font: 600 clamp(18px, 2.2vw, 24px) var(--mono); letter-spacing: .04em; }
.license .meta { font-size: 14px; color: #FFFFFF80; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.box h2 { font: 800 22px var(--display); }
.box p { font-size: 14px; color: var(--muted); }
.box .acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-line { box-shadow: inset 0 0 0 1px #12052A26; color: var(--ink); }
.helpline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.helpline a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-copy { max-width: 640px; padding-top: 72px; }
  /* Palette stays absolute here too so the demo's height changes never shift the page; .how reserves the overlap. */
  .hero-visual { position: relative; left: auto; top: auto; margin: 64px 0 0 var(--gutter); }
  .palette { left: 0; top: 170px; width: auto; max-width: 760px; right: var(--gutter); }
  .how { padding-top: 420px; }
  .modes, .models { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .pricing, .faq { flex-direction: column; align-items: stretch; gap: 56px; }
  .price-card, .faq .head { width: auto; max-width: 560px; }
}
@media (max-width: 760px) {
  .nav-right .hide-sm { display: none; }
  .hero-visual { --mail-h: 360px; }
  .keys-pop { --k: 84px; --kb: 26px; }
  .mail-body { padding: 20px; font-size: 15px; }
  .palette { top: 130px; right: 16px; }
  .pal-row .t b { font-size: 16px; }
  /* Default list shows 4 rows on phones; while filtering, every match shows. */
  .pal-list:not(.filtered) > .pal-row:nth-child(n+5), .hints span:nth-child(n+3), .chip .n { display: none; }
  .tile { width: 40px; height: 40px; font-size: 18px; }
  .cursor { width: 32px; height: 32px; }
  .cv-thread { padding: 14px 16px; }
  /* Phone palette is shorter (4 rows), so the variant sheet sits tighter to fit its footer. */
  .var-modal { top: 52px; bottom: 10px; }
  .vm-head { padding: 14px 14px 10px; }
  .vm-list { padding: 8px 10px; gap: 2px; }
  .vm-row { padding: 7px 10px; }
  .spark { width: 56px; height: 56px; right: 24px; top: -28px; }
  .section { padding-top: 80px; padding-bottom: 80px; gap: 48px; }
  .how { padding-top: 470px; }
  .steps, .features, .points, .ty-steps, .cards2 { grid-template-columns: 1fr; }
  .shot { height: 360px; padding: 24px 0 0 24px; }
  .shot img { width: 760px; }
  .privacy, .price-card { padding: 28px; }
  .price .amt { font-size: 72px; }
  .card { padding: 28px; }
  .account h1 { font-size: 36px; }
  .license { padding: 24px; }
}
