/* textbolo.com. Colors, type, spacing and radii come from tokens.css
   (generated from brand/tokens.json); this file only lays them out.
   Web-only additions: a larger display size for the hero line and a wider
   gutter on big screens. */

@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--type-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--space-5); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-8); } }

/* Type */
h1, h2, h3 { margin: 0; }
.display { font-weight: 700; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.title { font: var(--type-title); letter-spacing: var(--type-title-tracking); }
.subtitle { font: var(--type-subtitle); letter-spacing: var(--type-subtitle-tracking); }
.heading { font: var(--type-heading); letter-spacing: var(--type-heading-tracking); }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-2); margin: 0; }
.muted { color: var(--ink-2); }
.caption { font: var(--type-caption); color: var(--ink-2); }
.label { font: var(--type-label); color: var(--ink-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.wordmark { display: flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.wordmark img { width: 22px; height: 32px; }
.nav-links { display: none; gap: var(--space-6); margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font: var(--type-body-strong); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 720px) { .nav-links { display: flex; } .nav .btn { margin-left: var(--space-4); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-md); border: 0; font: var(--type-body-strong); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .15s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-pressed); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-quiet:hover { background: var(--border); }
.btn-sm { height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-sm); }

/* App Store button: official badge once live (see README). */
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 var(--space-5) 0 var(--space-4); border-radius: var(--radius-md); background: var(--ink); color: var(--on-ink); text-decoration: none; }
.store:hover { opacity: .88; }
.store svg { width: 22px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; opacity: .85; }
.store strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 12px 6px 8px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border); font: var(--type-label); color: var(--ink); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.promise-line { display: flex; align-items: center; gap: var(--space-2); }
.promise-line svg { width: 14px; height: 14px; stroke: var(--ink-2); fill: none; stroke-width: 2; flex: none; }

/* Hero */
.hero { padding: var(--space-8) 0 var(--space-12); }
.hero .wrap { display: grid; gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.actions > * { flex: 1 1 200px; }
@media (min-width: 560px) { .actions > * { flex: 0 0 auto; } }
/* Phones: Bolo waves above the headline. Wider: he leans on the phone. */
.hero-bolo { width: 132px; margin: 0 0 calc(-1 * var(--space-4)) -12px; }
.hero-art { position: relative; justify-self: center; }
.hero-art .bolo { display: none; }
@media (min-width: 900px) {
  .hero { padding: var(--space-12) 0 96px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; }
  .hero-bolo { display: none; }
  .hero-art { padding-left: 48px; }
  .hero-art .bolo { display: block; position: absolute; bottom: -12px; width: 220px; left: -72px; filter: drop-shadow(0 16px 24px rgb(46 46 46 / 0.12)); }
}

/* Phone frame + screenshot placeholder */
.phone { width: 260px; aspect-ratio: 1179 / 2556; padding: 10px; border-radius: 44px; background: var(--ink); box-shadow: 0 30px 60px rgb(46 46 46 / 0.18); margin: 0; }
.phone.sm { width: 220px; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--ground); object-fit: cover; }
.placeholder { display: grid; place-content: center; justify-items: center; gap: var(--space-2); text-align: center; background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); color: var(--ink-2); padding: var(--space-4); }
.placeholder img { width: 56px; opacity: .9; }
.placeholder b { font: var(--type-body-strong); color: var(--ink); }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 72px 0; }
.section-head { display: grid; gap: var(--space-3); max-width: 620px; margin-bottom: var(--space-8); }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps { display: grid; gap: var(--space-6); }
.step { display: grid; grid-template-rows: 1fr auto; gap: var(--space-5); justify-items: center; padding: var(--space-6) var(--space-5) 0; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.step-copy { display: grid; gap: var(--space-2); justify-self: stretch; align-content: start; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); font: var(--type-label); color: var(--ink); }
.step .phone { margin-bottom: -120px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.promises { display: grid; gap: var(--space-4); }
.promise { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; padding: var(--space-5); border-radius: var(--radius-md); background: var(--ground); border: 1px solid var(--border); }
.promise .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--positive-soft); }
.promise svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise p { margin: 2px 0 0; color: var(--ink-2); }
@media (min-width: 720px) { .promises { grid-template-columns: 1fr 1fr; } }

/* Final call to action + sign-up form */
.cta { display: grid; gap: var(--space-6); justify-items: center; text-align: center; padding: var(--space-8) var(--space-5) var(--space-12); border-radius: var(--radius-xl); background: var(--brand-soft); }
.cta .bolo { width: 160px; }
.cta .lede { max-width: 520px; }
.signup { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); width: 100%; max-width: 480px; }
.signup input[type=email] { flex: 1 1 240px; height: 52px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: var(--type-body); }
.signup input::placeholder { color: var(--ink-3); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note { min-height: 20px; margin: 0; }
.form-note.ok { color: var(--ink); font-weight: 600; }

/* Footer */
.footer { padding: var(--space-8) 0 var(--space-12); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-left: auto; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Legal and support pages */
.doc { max-width: 720px; padding: var(--space-8) var(--space-5) var(--space-12); margin: 0 auto; }
.doc h1 { font: var(--type-title); letter-spacing: var(--type-title-tracking); margin-bottom: var(--space-2); }
.doc h2 { font: var(--type-heading); letter-spacing: var(--type-heading-tracking); margin: var(--space-8) 0 var(--space-2); }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc li { margin: var(--space-1) 0; }
.doc .summary { padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); margin-top: var(--space-6); }
.doc .summary p { margin: 0 0 var(--space-2); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }

.notfound { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: var(--space-4); text-align: center; padding: var(--space-8) var(--space-5); }
.notfound img { width: 180px; }
