/* The landing page. Colours and the Inter font come from theme.css (light, dark or "system"). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 'Inter Variable', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Naskh Arabic', Tahoma, sans-serif;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
kbd { font: 0.82em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

/* ---- buttons, segmented ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 999px; text-decoration: none; cursor: pointer;
  background: var(--surface-2); color: var(--text); padding: 10px 20px; font-weight: 600; transition: background 140ms, transform 80ms, box-shadow 140ms; white-space: nowrap;
}
.btn:hover { background: var(--border); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 12px; }
.segmented { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.segmented button { border: none; background: none; color: var(--muted); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 500; font-size: 13px; white-space: nowrap; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06); }
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: var(--border); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { background: var(--border); box-shadow: none; } }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 30px; position: relative; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-badge { position: absolute; top: 18px; right: 18px; }
.plan-name { margin: 0; font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price .per { color: var(--muted); font-size: 14.5px; }
.plan-for { margin: 0 0 6px; color: var(--muted); }
.plan-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 9px; flex: 1; }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }
.soon { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.plan-note { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.plan .btn { align-self: stretch; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.promises .card { padding: 20px; }
.promises h3 { margin: 0 0 6px; font-size: 16px; }
.promises p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- navigation ---- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.logo { display: inline-flex; line-height: 0; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 999px; font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

/* ---- hero ---- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none; z-index: 0; }
.hero::before { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, var(--ent-blue-bg), transparent 70%); }
.hero::after { width: 560px; height: 560px; right: -160px; top: 40px; background: radial-gradient(circle, var(--ent-green-bg), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--ent-blue), var(--ent-green) 60%, var(--ent-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 56ch; margin: 0 0 26px; }
.lead em { color: var(--text); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 14.5px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 10px; }

/* ---- the demo card ---- */
.demo { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-pop); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--faint); opacity: 0.6; }
.dot.r { background: #ee6a5f; } .dot.y { background: #f5bd4f; } .dot.g { background: #61c554; }
.demo-title { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.demo-body { padding: 22px 22px 18px; min-height: 250px; font-size: 16px; line-height: 1.75; transition: opacity 260ms; }
.demo-body.swap { opacity: 0; }
.demo-body .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 8px; }
.demo-body .bubble { background: var(--bubble); border-radius: 18px 18px 6px 18px; padding: 12px 16px; }
.demo-body .bubble.ai { background: var(--surface-2); border-radius: 18px 18px 18px 6px; }
.demo-body .note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.demo-body .note b { color: var(--ok); }
.chip { border-radius: 7px; padding: 1px 6px; font-weight: 600; white-space: nowrap; }
.chip.blue { background: var(--ent-blue-bg); color: var(--ent-blue); }
.chip.green { background: var(--ent-green-bg); color: var(--ent-green); }
.chip.purple { background: var(--ent-purple-bg); color: var(--ent-purple); }
.chip.red { background: var(--ent-red-bg); color: var(--ent-red); }
.chip.real { background: var(--ok-bg); color: var(--ok); }
.demo-steps { display: flex; gap: 8px; padding: 0 22px 20px; }
.demo-steps button { flex: 1; border: none; background: none; padding: 10px 0; cursor: pointer; }
.demo-steps span { display: block; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; position: relative; }
.demo-steps button[aria-selected="true"] span { background: var(--faint); }
.demo-steps button[aria-selected="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill var(--demo-time, 3600ms) linear forwards; }
.demo.paused .demo-steps button[aria-selected="true"] span::after { animation: none; transform: none; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- sections ---- */
.section { padding: 84px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { margin: 0 0 8px; color: var(--link); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em; }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.section.alt .card { background: var(--bg); box-shadow: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step p { margin: 0 0 10px; }
.step .detail { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.feat.wide { grid-column: span 2; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 14px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 16px; }
.tabs button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.panel[hidden] { display: none; }
.howto { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.howto li::marker { font-weight: 700; color: var(--muted); }
.tip { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--info-bg); font-size: 15px; }

.privacy-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.privacy-card .eyebrow { color: inherit; opacity: 0.7; }
.privacy-card .sub { color: inherit; opacity: 0.75; margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { padding-left: 30px; position: relative; opacity: 0.95; font-size: 15.5px; }
.facts li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--on-accent) 22%, transparent); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.faq { margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 160ms; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.final { padding-top: 24px; }
.final-card { text-align: center; padding: clamp(36px, 6vw, 72px) 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.final-card .sub { margin-inline: auto; }
.logo.big { margin-bottom: 14px; }
.note { margin: 14px 0 0; color: var(--muted); font-size: 14px; min-height: 1.4em; }

.footer { padding: 34px 0 48px; border-top: 1px solid var(--border); }
.foot-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.version { font-size: 12.5px; color: var(--muted); }

/* ---- appearing on scroll (only when JS is on; reduced motion shows everything at once) ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- tablets and phones ---- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 1fr; gap: 24px; }
}
/* six section links need about 1,160 px next to the theme switch and the button */
@media (max-width: 1160px) {
  .nav-links { display: none; }
  .nav-inner { gap: 10px; }
  .theme-switch { margin-left: auto; }
}
@media (max-width: 360px) {
  /* The hero has its own button; the bar only has room for the logo and the theme switch. */
  .nav .cta { display: none; }
}
@media (max-width: 620px) {
  .wrap, .wrap.narrow { width: calc(100% - 28px); }
  .hero { padding: 40px 0 36px; }
  .section { padding: 56px 0; }
  .bento { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; }
  .card { padding: 20px; border-radius: 20px; }
  .btn-lg { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .nav-inner { height: 60px; }
  .brand-name { display: none; }
  .segmented button { padding: 6px 10px; }
  .demo-body { padding: 18px 16px 12px; min-height: 280px; font-size: 15px; }
  .demo-steps { padding: 0 16px 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 6px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .btn, .tabs button, .faq summary { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .demo-steps button[aria-selected="true"] span::after { animation: none; transform: none; }
  .demo-body { transition: none; }
}
