/* wrappit.dev: one style file for every page. Colours, fonts, corners and
   spacing live in :root below, so restyling the site starts here. */
:root {
    --ground: #f3f6fb;
    --surface: #ffffff;
    --sunk: #e8eef7;
    --line: #d3ddeb;
    --text: #0c1829;
    --muted: #4c5d76;
    --dim: #7686a0;
    --accent: #1766d6;
    --accent-2: #0f4fad;
    --accent-soft: #dfeafc;
    --on-accent: #ffffff;
    --stop: #c2334f;
    --go: #177a4d;
    --hand: #b54a17;
    --term: #0a1422;
    --term-text: #d6e3f5;
    --term-dim: #7a8ca8;
    --shadow: 0 1px 2px rgba(12, 24, 41, .06), 0 12px 32px rgba(12, 24, 41, .08);

    --display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
    --body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --script: "Caveat", "Comic Sans MS", cursive;
    --measure: 62ch;
    --wide: 1140px;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #081221; --surface: #0f1d31; --sunk: #0b1729; --line: #1f3350;
      --text: #e7eef9; --muted: #a3b3ca; --dim: #6f819c;
      --accent: #4ba3ff; --accent-2: #7cbcff; --accent-soft: #11294a; --on-accent: #041020;
      --stop: #ff7d96; --go: #51d69a; --hand: #ffb07a;
      --term: #050c17; --term-text: #d6e3f5; --term-dim: #7a8ca8;
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(75,163,255,.10);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --ground: #081221; --surface: #0f1d31; --sunk: #0b1729; --line: #1f3350;
    --text: #e7eef9; --muted: #a3b3ca; --dim: #6f819c;
    --accent: #4ba3ff; --accent-2: #7cbcff; --accent-soft: #11294a; --on-accent: #041020;
    --stop: #ff7d96; --go: #51d69a; --hand: #ffb07a;
    --term: #050c17; --term-text: #d6e3f5; --term-dim: #7a8ca8;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(75,163,255,.10);
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0; background: var(--ground); color: var(--text);
    font: 18px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  }
  [hidden] { display: none !important; }
  a { color: var(--accent); }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  .mono { font-family: var(--mono); }
  code { font-family: var(--mono); font-size: .86em; background: var(--sunk); padding: 2px 6px; border-radius: 6px; }
  .page { max-width: var(--wide); margin: 0 auto; padding-inline: 16px; }
  @media (min-width: 720px) { .page { padding-inline: 32px; } }
  h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -.015em; margin: 0; }
  h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 800; }
  h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
  .lede { color: var(--muted); max-width: var(--measure); font-size: 19px; margin: 14px 0 0; }
  .eyebrow { font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
  .hand { font-family: var(--script); color: var(--hand); font-size: 25px; line-height: 1.1; font-weight: 600; }
  section { padding-block: 64px; }
  @media (min-width: 900px) { section { padding-block: 96px; } }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 14px 24px; border-radius: 14px; border: 1px solid transparent;
    font: 700 18px/1.1 var(--display); text-decoration: none; cursor: pointer;
  }
  .btn.primary { background: var(--accent); color: var(--on-accent); }
  .btn.primary:hover { background: var(--accent-2); }
  .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
  .btn.ghost:hover { border-color: var(--accent); }
  .btn[disabled] { opacity: .6; cursor: default; }

  /* Nav */
  .nav { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
  .nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 22px var(--display); }
  .nav .links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .nav .links a { color: var(--muted); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; font-weight: 700; font-size: 16px; }
  .nav .links a:hover { color: var(--text); background: var(--sunk); }
  @media (max-width: 560px) { .nav .links a.opt { display: none; } }

  /* Hero */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px 64px; align-items: center; }
  .hero > *, .term-wrap, .term { min-width: 0; }
  @media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); padding-block: 56px 96px; } }
  .hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; font-weight: 900; letter-spacing: -.03em; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero .lede { font-size: 20px; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .fine { color: var(--dim); font-size: 15.5px; margin-top: 14px; }

  /* Terminal */
  .term-wrap { position: relative; }
  .term {
    background: var(--term); color: var(--term-text); border-radius: 18px; box-shadow: var(--shadow);
    font: 14.5px/1.65 var(--mono); overflow: hidden; border: 1px solid rgba(120, 160, 220, .18);
  }
  .term .bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(120,160,220,.14); color: var(--term-dim); font-size: 13px; }
  .term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3b55; display: inline-block; }
  .term .bar span { margin-left: 8px; }
  .term pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; white-space: pre; font: inherit; }
  .t-p { color: #6fb3ff; } .t-dim { color: var(--term-dim); } .t-stop { color: #ff7d96; font-weight: 600; }
  .t-go { color: #51d69a; font-weight: 600; } .t-warn { color: #ffbf5a; font-weight: 600; } .t-c { color: #8a9bb6; font-style: italic; }
  .term-note { position: absolute; right: 18px; top: -34px; margin: 0; transform: rotate(3deg); text-align: right; pointer-events: none; }
  @media (max-width: 979px) { .term-note { position: static; transform: rotate(-2deg); margin: 0 0 6px 8px; text-align: left; } }

  /* Problem strip */
  .problem { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  @media (min-width: 900px) { .problem { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 56px; } }
  .problem p { color: var(--muted); max-width: var(--measure); margin: 0 0 14px; }
  .problem p:last-child { margin: 0; }

  /* Steps (a real sequence) */
  .steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; counter-reset: step; }
  @media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
  .steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; counter-increment: step; }
  .steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 800 19px var(--display); margin-bottom: 14px; }
  .steps p { color: var(--muted); margin: 8px 0 12px; }
  .steps code { font-size: 15px; }

  /* Note anatomy */
  .anatomy { display: grid; gap: 32px; margin-top: 40px; align-items: start; }
  @media (min-width: 980px) { .anatomy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }
  .notefile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
  .notefile .path { font: 600 14px var(--mono); color: var(--muted); padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--sunk); overflow-wrap: anywhere; }
  .notefile dl { margin: 0; padding: 6px 20px 18px; }
  .notefile dt { font: 700 16px var(--display); margin-top: 16px; color: var(--accent); }
  .notefile dd { margin: 4px 0 0; color: var(--text); font-size: 17px; }
  .why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
  .why-list li { padding-left: 18px; border-left: 3px solid var(--accent-soft); }
  .why-list b { font-family: var(--display); display: block; font-size: 19px; }
  .why-list span { color: var(--muted); }

  /* Feature grid */
  .features { display: grid; gap: 18px; margin-top: 40px; }
  @media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
  .feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
  .feat p { color: var(--muted); margin: 8px 0 0; }
  .feat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
  .agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .agents span { font: 600 14px var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }

  /* Viewer showcase */
  .shots { display: grid; gap: 22px; margin-top: 40px; align-items: end; }
  @media (min-width: 900px) { .shots { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); } }
  .shots figure { margin: 0; }
  .shots img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
  .shots figcaption { color: var(--dim); font-size: 15px; margin-top: 10px; }
  .shots .phone img { border-radius: 24px; max-width: 320px; margin-inline: auto; }

  /* Video */
  .video { margin-top: 36px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--term); aspect-ratio: 16 / 9; max-width: 100%; }
  .video video { width: 100%; height: 100%; display: block; }

  /* Free */
  .buy { display: grid; gap: 28px; align-items: start; }
  @media (min-width: 900px) { .buy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
  .price-card { background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); border: 2px solid var(--accent); }
  .price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
  .price b { font: 900 60px/1 var(--display); letter-spacing: -.03em; }
  .price span { color: var(--muted); font-size: 18px; }
  .price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
  .price-card li { display: flex; gap: 10px; align-items: flex-start; }
  .price-card li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--go); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10.1l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4z'/%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 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10.1l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .price-card .btn { width: 100%; justify-content: center; }

  /* Desktop app downloads */
  .app-dl { margin-top: 28px; background: var(--ground); border: 2px solid var(--accent); border-radius: 22px; padding: 26px; display: grid; gap: 18px; }
  @media (min-width: 900px) { .app-dl { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; } }
  .app-dl h3 { font-size: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .app-dl .tag { font: 700 13px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
  .app-dl p { color: var(--muted); margin: 8px 0 0; }
  .app-dl .get { display: grid; gap: 12px; }
  .app-dl .get .btn { justify-content: center; min-height: 56px; font-size: 18px; }
  .app-dl .how { font-size: 15px; color: var(--dim); margin: 0; }
  .subhead { margin-top: 40px; font-size: 20px; }
  .subhead + .install { margin-top: 14px; }

  /* Install */
  .install { display: grid; gap: 18px; margin-top: 36px; }
  @media (min-width: 900px) { .install { grid-template-columns: 1fr 1fr; } }
  .cmd { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
  .cmd h3 { font-size: 18px; }
  .cmd .line { margin-top: 12px; display: flex; gap: 10px; align-items: stretch; }
  .cmd pre { flex: 1; min-width: 0; margin: 0; background: var(--term); color: var(--term-text); border-radius: 12px; padding: 14px 16px; font: 14.5px/1.5 var(--mono); overflow-x: auto; }
  .copy { flex: none; min-width: 56px; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); color: var(--text); font: 700 15px var(--display); cursor: pointer; padding: 0 14px; }
  .cmd p { color: var(--muted); font-size: 16px; margin: 12px 0 0; }
  .platforms { color: var(--dim); font-size: 16px; margin-top: 18px; }

  /* FAQ */
  .faq { margin-top: 32px; display: grid; gap: 12px; max-width: 860px; }
  .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
  .faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; font: 700 18px/1.3 var(--display); padding-block: 14px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: 26px; color: var(--accent); }
  .faq details[open] summary::after { content: "−"; }
  .faq details p { color: var(--muted); margin: 0 0 18px; max-width: var(--measure); }

  footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--dim); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
  footer a { color: var(--muted); }

  /* 2026-09-23 lean page: the video leads, everything else is only what you need to act */
  .hero.solo { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; padding-block: 28px 56px; gap: 0; }
  .hero.solo h1 { font-size: clamp(40px, 6.4vw, 72px); }
  .hero.solo .video { width: min(1120px, 100%); margin-top: 28px; }
  .hero.solo .lede { margin-inline: auto; max-width: 46ch; }
  .hero.solo .cta-row { justify-content: center; }

/* ---- shared by the account pages (home, what, sign in, dashboard, connect) ---- */
.center { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; text-align: center; }
.home-links { display: grid; gap: 14px; margin-top: 36px; width: min(360px, 100%); margin-inline: auto; }
.home-links .btn { width: 100%; font-size: 20px; min-height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 14px; font: 900 clamp(44px, 9vw, 72px)/1 var(--display); letter-spacing: -.03em; color: var(--text); text-decoration: none; }
.mark svg { width: 1em; height: 1em; }
.tagline { color: var(--muted); font-size: 20px; margin: 16px 0 0; }
.what { max-width: 900px; margin: 0 auto; padding-block: 24px 72px; text-align: center; }
.what h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.05; font-weight: 900; letter-spacing: -.025em; }
.what .lede { margin: 18px auto 0; max-width: 54ch; font-size: clamp(18px, 2.2vw, 21px); }
.what .video { margin-top: 32px; }
.what .cta-row { justify-content: center; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); text-align: left; }
.card h2 { font-size: 24px; }
.card p { color: var(--muted); margin: 8px 0 0; }
.stack { display: grid; gap: 18px; }
.narrow { width: min(560px, 100%); margin-inline: auto; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field label { font: 700 16px var(--display); }
.field input { min-height: 54px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); color: var(--text); font: 18px var(--body); width: 100%; }
.field .hint { color: var(--dim); font-size: 15px; }
.error { color: var(--stop); font-weight: 700; margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.list { display: grid; gap: 10px; margin-top: 16px; }
.item { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground); }
.item .name { font: 700 18px var(--display); overflow-wrap: anywhere; }
.item .meta { color: var(--dim); font-size: 15px; }
.item .grow { flex: 1; min-width: 180px; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 700 13px var(--display); background: var(--sunk); color: var(--muted); }
.meter { height: 12px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: 16px; border-radius: 12px; }
.btn.danger { background: transparent; color: var(--stop); border-color: var(--line); }
.code-big { font: 700 clamp(28px, 6vw, 40px)/1 var(--mono); letter-spacing: .08em; margin: 14px 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding-block: 18px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 22px var(--display); }
.topbar .who { margin-left: auto; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.soon { color: var(--muted); }
#clerk { display: flex; justify-content: center; margin-top: 18px; }
#install pre { white-space: pre-wrap; overflow-wrap: anywhere; }
