/* Site stylesheet: one small file, no frameworks.
   Design tokens come from apps/site/BLUEPRINT.md ("Night Shift"): change a token here
   and the whole site follows. Fonts (Sora + Inter) load in the page head. */
:root {
  --font-heading: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-h1: clamp(2.4rem, 6vw, 4.4rem);
  --text-h2: clamp(1.8rem, 4vw, 2.8rem);
  --text-h3: 1.25rem;
  --text-body: 1.0625rem;
  --line-body: 1.65;

  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --border: #2a2a30;
  --text: #fbfbfb;
  --muted: #a1a1aa;
  --accent: #f3792f;
  --accent-hover: #ff8c45;
  --accent-rgb: 243, 121, 47;
  --cream: #f7dca6;
  --ok: #4ade80;

  --content-max: 1160px;
  --content-narrow: 760px;
  --gutter: clamp(16px, 5vw, 48px);
  --space-section: clamp(72px, 10vw, 128px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --glow: 0 0 0 1px rgba(var(--accent-rgb), .55), 0 8px 32px rgba(var(--accent-rgb), .35);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: var(--text-body); line-height: var(--line-body);
  color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden;
  background-color: var(--bg);
  /* the faint grid from the reference site */
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
}
body > footer.site { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: var(--text-h1); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: var(--text-h3); font-weight: 600; margin-bottom: 10px; }
.hl { color: var(--accent); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- layout ---------- */
.section { padding: var(--space-section) var(--gutter); position: relative; }
.section.tight { padding-top: calc(var(--space-section) * .55); padding-bottom: calc(var(--space-section) * .55); }
.inner { max-width: var(--content-max); margin: 0 auto; }
.inner.narrow { max-width: var(--content-narrow); }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 44px; }
.sec-head.center .lede { margin-top: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 6px 14px; margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .8rem; color: #d4d4d8; border: 1px solid var(--border); background: rgba(255,255,255,.03);
  border-radius: var(--r-pill); padding: 5px 12px;
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center .btns { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font: 600 1rem/1 var(--font-body); padding: 14px 22px; border-radius: var(--r-md); cursor: pointer;
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent); box-shadow: var(--glow);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.04); color: var(--text); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .textlink:hover .arrow { transform: translateX(3px); }
.textlink { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px var(--gutter); background: rgba(11,11,12,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.05rem var(--font-heading); letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
.logo img { width: 40px; height: 40px; }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a { color: var(--muted); font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.topbar nav a:hover, .topbar nav a.on { color: var(--text); }
.topbar nav a.on { background: var(--surface-2); }
.topbar nav a.btn { color: var(--bg); padding: 10px 16px; min-height: 40px; margin-left: 8px; font-size: .9rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--r-sm); width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 20px; gap: 2px;
  }
  .topbar.open nav { display: flex; }
  .topbar nav a { padding: 12px; font-size: 1rem; }
  .topbar nav a.btn { margin: 10px 0 0; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 70% 40%, rgba(var(--accent-rgb), .16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 0; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-visual { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.hero-visual .robot { width: 78%; margin: 0 auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); }
.callcard {
  position: absolute; background: rgba(20,20,22,.92); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.4; max-width: 240px;
}
.callcard b { display: block; font-weight: 600; color: var(--text); }
.callcard span { color: var(--muted); }
.callcard .ic { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; }
.callcard.one { top: 6%; left: -6%; }
.callcard.one .ic { background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.callcard.two { bottom: 4%; right: -4%; }
.callcard.two .ic { background: rgba(74,222,128,.15); color: var(--ok); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; }
  .callcard.one { left: 0; }
  .callcard.two { right: 0; }
}

/* ---------- audience strip ---------- */
.strip { border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(20,20,22,.6); }
.strip .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.strip p { font-weight: 600; color: var(--muted); font-size: .95rem; }
.strip .chips { justify-content: center; }

/* ---------- problem ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pains { display: grid; gap: 14px; }
.pain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.pain .x { color: var(--accent); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
.pain h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pain p { color: var(--muted); font-size: .98rem; }
.turn { margin-top: 22px; padding: 20px 22px; border-left: 3px solid var(--accent); background: linear-gradient(90deg, rgba(var(--accent-rgb), .1), transparent); border-radius: 0 var(--r-md) var(--r-md) 0; }
.turn p { color: var(--text); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: #3a3a42; transform: translateY(-2px); }
.card::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -160px; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 65%);
}
/* Flagship spans the full row; the other three services sit in one row beneath it. */
.card.feature { grid-column: 1 / -1; background: linear-gradient(135deg, #1d1712 0%, var(--surface) 55%); border-color: rgba(var(--accent-rgb), .35); }
.card.feature::after { width: 520px; height: 520px; right: -160px; bottom: -260px; background: radial-gradient(circle, rgba(var(--accent-rgb), .25), transparent 65%); }
.card .num { font: 600 .8rem var(--font-heading); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.card h3 { font-size: 1.35rem; margin: 0; }
.card.feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.card p { color: var(--muted); }
.card .chips { margin-top: 4px; }
.card .textlink { margin-top: auto; padding-top: 8px; position: relative; z-index: 1; }
.card.feature .chips, .card.feature p { max-width: 720px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .card:last-child:nth-child(even) { grid-column: 1 / -1; } /* lone last card fills the row */
}
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--r-lg); border: 1px dashed #34343c; background: rgba(20,20,22,.5); }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  font: 700 1rem var(--font-heading); color: var(--bg); background: var(--accent);
}
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- person ---------- */
.person { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.portrait { position: relative; }
.portrait img { border-radius: var(--r-lg); border: 1px solid var(--border); aspect-ratio: 1; object-fit: cover; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--r-lg); border: 1px solid rgba(var(--accent-rgb), .45); z-index: -1; }
.person p + p { margin-top: 14px; }
.person .sig { margin-top: 22px; font: 600 1rem var(--font-heading); }
.person .sig span { display: block; font: 400 .9rem var(--font-body); color: var(--muted); }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: #d4d4d8; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--accent-rgb), .18); color: var(--accent); font-size: .75rem; display: grid; place-items: center; margin-top: 3px; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } .portrait { max-width: 340px; } }

/* ---------- service detail (services page) ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); padding: clamp(36px, 6vw, 56px) 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.svc:first-child { border-top: 0; }
.svc .num { font: 600 .8rem var(--font-heading); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.svc h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.svc .for { margin-top: 16px; font-size: .95rem; color: var(--muted); }
.svc .for b { color: var(--text); font-weight: 600; }
.svc .btns { margin-top: 22px; }
.svc-body p { color: #d4d4d8; }
.svc-body p + p { margin-top: 12px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.jump a { color: var(--text); }
.jump a:hover { border-color: var(--accent); color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid rgba(var(--accent-rgb), .35); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(var(--accent-rgb), .2), transparent 60%), var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.cta-band.solo { grid-template-columns: 1fr; text-align: center; }
.cta-band.solo .lede { margin: 0 auto; }
.cta-band.solo .btns { justify-content: center; }
.cta-band .contact-lines { margin-top: 22px; display: grid; gap: 8px; color: var(--muted); }
.cta-band .contact-lines a { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band:has(.calc) { align-items: start; }

/* ---------- missed-call calculator ---------- */
.calc { margin-top: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 24px); }
.calc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-fields > div { display: grid; gap: 6px; align-content: end; }
.calc label { font-size: .82rem; font-weight: 500; color: #d4d4d8; line-height: 1.3; }
.affix { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); min-height: 48px; padding: 0 12px; transition: border-color .2s, box-shadow .2s; }
.affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.affix span { color: var(--muted); font-weight: 500; }
.affix input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; color: var(--text); font: 600 1.05rem var(--font-body); padding: 12px 0; -moz-appearance: textfield; }
.affix.pre input { padding-left: 4px; }
.affix.post input { padding-right: 4px; }
.affix input::-webkit-outer-spin-button, .affix input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-out { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .04)); border: 1px solid rgba(var(--accent-rgb), .4); }
.calc-label { display: block; font: 600 .78rem var(--font-heading); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.calc-month { margin-top: 6px; color: var(--muted); }
.calc-month b { font: 700 clamp(2rem, 5vw, 2.6rem)/1.1 var(--font-heading); color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-year { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.calc-year b { color: var(--text); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 12px; font-size: .8rem; color: #71717a; }
@media (max-width: 560px) { .calc-fields { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.fform { display: grid; gap: 6px; text-align: left; width: 100%; }
.fform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fform .row > div { display: grid; gap: 6px; }
@media (max-width: 560px) { .fform .row { grid-template-columns: 1fr; } }
.fform label { font-size: .85rem; font-weight: 500; color: #d4d4d8; margin-top: 8px; }
.fform input, .fform textarea, .fform select {
  width: 100%; font: 400 1rem var(--font-body); color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px;
}
.fform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fform input::placeholder, .fform textarea::placeholder { color: #71717a; }
.fform input:focus, .fform textarea:focus, .fform select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.fform textarea { resize: vertical; min-height: 110px; }
.fform .btn { margin-top: 16px; width: 100%; }
.fform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fform .err { display: none; color: #fca5a5; font-size: .9rem; margin-top: 8px; }
.fform .fine { font-size: .8rem; color: #71717a; margin-top: 10px; }
.formcard { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.ways { display: grid; gap: 12px; margin-top: 26px; }
.way { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); }
.way:hover { border-color: #3a3a42; color: var(--text); }
.way .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .15); color: var(--accent); flex: none; }
.way small { display: block; color: var(--muted); font-size: .82rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- legal ---------- */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p, .legal li { color: #d4d4d8; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid rgba(255,255,255,.06); background: #08080a; padding: 56px var(--gutter) 28px; }
footer.site .grid { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
footer.site .tag { color: var(--muted); font-size: .95rem; margin-top: 12px; max-width: 320px; }
footer.site .colh { font: 600 .8rem var(--font-heading); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
footer.site .col a, footer.site .col span { display: block; color: #d4d4d8; font-size: .95rem; padding: 4px 0; }
footer.site .col a:hover { color: var(--accent); }
footer.site .base { max-width: var(--content-max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); color: #71717a; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 820px) { footer.site .grid { grid-template-columns: 1fr 1fr; } footer.site .grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
/* Only hidden when JS is running (html.js), so content never disappears without it. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .arrow { transition: none; }
}
