/* Barwise — palette sampled from the app icon so site, app and icon are one system. */
:root {
  --ground:       #0B0A14;
  --surface:      #14121F;
  --surface-high: #1E1B2E;
  --hairline:     #2E2851;
  --accent:       #00F9FC;
  --accent-fill:  #00CFDA;
  --ink:          #F6F2E8;
  --ink-soft:     #9A94AE;
  --ink-faint:    #6A6480;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1080px;
  --gap: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is essential: the <img> tags carry width/height attributes for
   layout stability, and without this the images distort when max-width shrinks them. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7.5vw, 76px); line-height: 1.03; font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0; }

.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 14px; }

/* ---------- nav ---------- */

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 55%, transparent);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.02em; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 620px) { .nav-links a.hide-sm { display: none; } }

/* ---------- hero ---------- */

/* padding-block, not the shorthand: these elements also carry .wrap, and a
   four-sided shorthand here would wipe out .wrap's horizontal padding — leaving
   text flush against the screen edge on phones. */
.hero { padding-block: clamp(56px, 9vw, 104px) var(--gap); }
.hero-grid {
  display: grid; gap: clamp(36px, 6vw, 72px);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 .accent { color: var(--accent); }

.brackets {
  display: inline-flex; align-items: stretch; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  border-left: 3px solid var(--accent); border-right: 3px solid var(--accent);
  padding: 7px 13px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
}
.btn-primary { background: var(--accent-fill); color: var(--ground); }
.btn-primary:hover { background: var(--accent); text-decoration: none; }
.btn-ghost { border-color: var(--hairline); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- phone frame ---------- */

.phone {
  position: relative; width: min(340px, 82vw); margin-inline: auto;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #34304f, #16141f 55%, #2a2645);
  box-shadow: 0 40px 90px -30px rgba(0, 249, 252, 0.16),
              0 24px 60px -20px rgba(0, 0, 0, 0.9);
}
.phone::after {
  content: ""; position: absolute; inset: 9px; border-radius: 38px;
  box-shadow: inset 0 0 0 1px rgba(246, 242, 232, 0.07); pointer-events: none;
}
.phone img { border-radius: 38px; }
.phone-tall { width: min(300px, 74vw); }

/* ---------- sections ---------- */

section { padding: var(--gap) 0; border-top: 1px solid color-mix(in srgb, var(--hairline) 45%, transparent); }
section:first-of-type { border-top: none; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 62ch; }

/* two-column prose */
.split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr 1fr; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
  border-radius: 20px; padding: 26px;
  display: flex; flex-direction: column; gap: 11px;
}
.card.bad { border-color: color-mix(in srgb, #E3944A 35%, transparent); }
.card .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint);
}
.card.bad .tag { color: #E3944A; }
.card.good .tag { color: var(--accent); }

/* feature grid */
.features { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--hairline) 55%, transparent);
  border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 9px;
}
.feature .ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 700;
  margin-bottom: 3px;
}
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* shots */
.shots { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 780px) { .shots { grid-template-columns: 1fr; } }
.shot { display: flex; flex-direction: column; gap: 18px; }
.shot-cap { display: flex; flex-direction: column; gap: 6px; text-align: center; max-width: 40ch; margin-inline: auto; }
.shot-cap p { font-size: 14.5px; color: var(--ink-soft); }

/* pricing */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } }
.price {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
  border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.price.featured { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.price .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .per { font-size: 14px; color: var(--ink-faint); }
.price ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--ink-soft); }
.price li::marker { color: var(--accent); }
.badge {
  align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ground); background: var(--accent);
  padding: 3px 8px; border-radius: 999px;
}

/* faq */
details {
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 45%, transparent);
  padding: 18px 0;
}
details summary {
  cursor: pointer; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em;
  list-style: none; display: flex; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; margin-left: auto; color: var(--accent);
  font-family: var(--mono); font-size: 19px; line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; max-width: 66ch; }

/* footer */
footer.site {
  border-top: 1px solid color-mix(in srgb, var(--hairline) 45%, transparent);
  padding: 44px 0 60px; color: var(--ink-faint); font-size: 14px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--ink-soft); }

/* ---------- article pages ---------- */

.doc { padding-block: clamp(44px, 7vw, 80px) var(--gap); max-width: 74ch; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.doc h2 { font-size: 22px; margin-top: 42px; margin-bottom: 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16.5px; }
.doc p { margin-bottom: 16px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 9px; margin: 0 0 18px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--ink); font-weight: 650; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; }
.doc .callout {
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 20px 22px; margin: 26px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
