/* Clearroom site. Ink & cobalt, same as the app: neutral surfaces, one accent, no gradients. */
:root {
  /* Soft, slightly cool neutrals with a quiet cobalt. Flat colors, no gradients. */
  --ink: #15171C; --ink-2: #3F434C; --paper: #F6F7F9; --card: #FFFFFF; --muted: #6B707B;
  --line: rgba(21,23,28,.07); --cobalt: #3557E0; --cobalt-soft: rgba(53,87,224,.07); --cobalt-mist: #EDF0FA;
  --on-ink: #FFFFFF; --band: #171B2E; --band-text: #F3F5FB; --band-muted: #A9AFC6; --band-line: rgba(255,255,255,.1);
  --shadow: 0 1px 2px rgba(21,23,28,.04), 0 6px 20px -8px rgba(21,23,28,.08);
  --radius: 22px; --max: 1080px; --ease: cubic-bezier(.22,1,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1F2F5; --ink-2: #C9CCD4; --paper: #0C0D10; --card: #15171C; --muted: #8E93A0;
    --line: rgba(255,255,255,.08); --cobalt: #7290FF; --cobalt-soft: rgba(114,144,255,.12); --cobalt-mist: #12162A;
    --on-ink: #0C0D10; --band: #12162A; --band-muted: #9CA3BE;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -10px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 10; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 80%, transparent); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px -6px rgba(21,23,28,.12); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 15px; }
.top nav a { color: var(--ink-2); }
.top nav a.pill { background: var(--ink); color: var(--on-ink); padding: 7px 15px; border-radius: 999px; font-weight: 600; }
.top nav a.pill:hover { text-decoration: none; opacity: .88; }
@media (max-width: 720px) { .top nav a:not(.pill) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--on-ink);
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 17px; transition: transform .15s ease-out, box-shadow .3s var(--ease); box-shadow: 0 6px 18px -8px rgba(21,23,28,.45); }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(21,23,28,.5); }
.button:hover { text-decoration: none; }
.button:active { transform: scale(.96); }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--cobalt); }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 30px; max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
}

/* Phone frame around a real screen capture */
.phone { position: relative; width: 100%; max-width: 330px; margin: 0 auto; aspect-ratio: 1320 / 2868;
  border-radius: 54px; padding: 11px; background: #1D1D1F;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 30px 60px -20px rgba(0,0,0,.28), 0 12px 24px -12px rgba(0,0,0,.18); }
@media (prefers-color-scheme: dark) { .phone { background: #2C2C2E; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.8); } }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.phone.small { max-width: 280px; border-radius: 46px; padding: 9px; }
.phone.small img { border-radius: 38px; }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0 0; }
.proof div { background: var(--card); padding: 24px 22px; }
.proof b { font-variant-numeric: tabular-nums; }
.proof b { display: block; font-size: 28px; letter-spacing: -.02em; }
.proof div > span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .proof { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 88px 0 0; }
.head { max-width: 640px; margin: 0 0 40px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; }
h3 { font-size: 22px; letter-spacing: -.015em; margin: 0 0 10px; line-height: 1.25; }
.head p { color: var(--ink-2); font-size: 19px; margin: 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .text { order: 2; }
.feature .text p { color: var(--ink-2); font-size: 18px; margin: 0 0 14px; }
.feature .tag { letter-spacing: .01em; display: inline-block; font-size: 13px; font-weight: 600; color: var(--cobalt); background: var(--cobalt-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="10"/></svg>'); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .feature.flip .text { order: 0; }
}

/* Grid of small cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.grid3 .card:hover, .price:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(21,23,28,.04), 0 18px 36px -16px rgba(21,23,28,.16); }
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--on-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-size: 15px; font-weight: 700; color: var(--cobalt); margin-bottom: 10px; }

/* Ink band */
.band { background: var(--band); color: var(--band-text); border-radius: 32px; border: 1px solid var(--band-line); padding: 64px 56px; margin-top: 88px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.band h2 { color: var(--band-text); }
.band p, .band li { color: var(--band-muted); font-size: 18px; }
.band .ticks li { color: var(--band-text); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 44px 26px; } }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 16px; box-shadow: var(--shadow); }
.compare td:nth-child(2), .compare th:nth-child(2) { background: var(--cobalt-soft); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
.compare thead th:nth-child(2) { color: var(--cobalt); }
.compare td:first-child { color: var(--muted); width: 26%; }
.compare td:nth-child(2) { font-weight: 600; }
.compare td:nth-child(3) { color: var(--muted); }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px; font-size: 14px; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price.best { border: 1.5px solid var(--cobalt); background: color-mix(in srgb, var(--card) 94%, var(--cobalt)); }
.price .name { font-weight: 600; font-size: 15px; color: var(--muted); }
.price .amount { font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; }
.price .per { color: var(--muted); font-size: 14px; }
.price p { color: var(--ink-2); font-size: 15px; margin: 16px 0 0; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: #fff; background: var(--cobalt); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin: 10px 0; transition: border-color .3s var(--ease); }
.faq details[open] { border-color: color-mix(in srgb, var(--line) 50%, var(--cobalt)); }
.faq .answer { overflow: hidden; }
.faq summary { font-weight: 600; cursor: pointer; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.faq details[open] summary::after { color: var(--cobalt); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Closing call to action */
.cta { text-align: center; padding: 96px 0 24px; }
.cta img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.3); }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--ink-2); }

/* Text pages (privacy, support, press) */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 0; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .lede { font-size: 19px; }
.doc .card { margin: 22px 0; }
.doc .card p + p { margin-top: 12px; }
.muted { color: var(--muted); font-size: 15px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 8px; }
.summary div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.summary b { display: block; font-size: 16px; margin-bottom: 4px; }
.summary span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .summary { grid-template-columns: 1fr; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { font-size: 14px; background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--ink-2); }
.facts { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.facts tr:last-child td { border-bottom: 0; }
.facts td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots img { border-radius: 18px; border: 1px solid var(--line); }
.contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
[id] { scroll-margin-top: 76px; }

/* Hero phone sits on a quiet cobalt disc */
.stage { position: relative; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; width: min(440px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--cobalt-mist); z-index: 0; }
.stage .phone { position: relative; z-index: 1; }
/* Tinted section */
.mist { background: var(--cobalt-mist); border-radius: 32px; padding: 64px 40px; margin-top: 88px; }
.mist .card { box-shadow: none; }
@media (max-width: 860px) { .mist { padding: 44px 20px; } }

/* Motion: content starts hidden only when JavaScript runs and motion is allowed */
.motion [data-reveal], .motion [data-stagger] > *, .motion [data-hero-text] > *, .motion [data-hero-phone] { opacity: 0; }

.phone, .card, .price { will-change: transform; }
