/* =========================================================
   Costa Co Studio — landing page (one job: book a call)
   "The Atmosphere" system: ink + cream + one voltage accent.
   ========================================================= */

:root {
  --ink: #0A0A0A;
  --cream: #F5F5F0;
  --muted: #F5F5F099;
  --voltage: #2962FF;
  --voltage-deep: #1E54FF;
  --hairline: #F5F5F014;
  --hairline-strong: #F5F5F024;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  --shell: 1180px;
  --prose: 720px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--voltage); color: var(--cream); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.section { padding-block: clamp(80px, 12vw, 144px); }
.divider { border-top: 1px solid var(--hairline); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: #F5F5F04D; }

/* Headlines — lowercase, tight */
.display, .headline, .title { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-transform: lowercase; }
.display { font-weight: 700; font-size: clamp(44px, 7.5vw, 96px); line-height: 0.92; letter-spacing: -0.045em; }
.headline { font-size: clamp(36px, 6vw, 72px); }
.title { font-size: clamp(24px, 3.2vw, 40px); }

.lead { font-weight: 300; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.4; color: var(--cream); max-width: 38ch; }
.lead .dim { color: #F5F5F073; }
.body-muted { color: var(--muted); max-width: 60ch; }

/* Buttons — pill only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  border-radius: 9999px; padding: 16px 32px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
  min-height: 52px; line-height: 1;
}
.btn-primary { background: var(--voltage); color: var(--cream); position: relative; overflow: hidden; }
.btn-primary:hover { background: var(--voltage-deep); transform: translateY(-2px); box-shadow: 0 10px 50px -12px #2962FFB3; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%; background: linear-gradient(100deg, transparent, #FFFFFF33, transparent); transform: skewX(-18deg); animation: shimmer 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shimmer { 0% { left: -60%; } 55%, 100% { left: 150%; } }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { animation: none; display: none; } }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--voltage); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--voltage); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* The voltage dot (book-a-call signature) */
.dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--voltage); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 9999px; border: 1px solid var(--voltage); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%,100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; } }

/* Header — NO nav links (landing page = no exits). Logo + single CTA only. */
.site-header { position: sticky; top: 0; z-index: 50; background: #0A0A0ACC; backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--hairline); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--cream); }
.wordmark b { color: var(--voltage); font-weight: 600; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.92rem; color: var(--muted); text-transform: lowercase; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--cream); }
@media (max-width: 720px) { .nav-links { display: none; } }
.header-cta { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; font-weight: 500; padding: 10px 18px; border-radius: 9999px; border: 1px solid var(--hairline-strong); transition: border-color 0.3s var(--ease); }
.header-cta:hover { border-color: var(--voltage); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; top: -10%; left: 50%; width: 900px; height: 900px; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, #2962FF40 0%, #2962FF12 35%, transparent 68%); filter: blur(20px); animation: breathe 9s var(--ease) infinite; }
@keyframes breathe { 0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(90px, 16vw, 170px) clamp(60px, 10vw, 110px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .display { margin-top: 1.5rem; max-width: 16ch; }
.hero .lead { margin-top: 1.75rem; text-align: center; max-width: 46ch; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero-trust { margin-top: 1.5rem; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* Problem */
.prob .headline { max-width: 18ch; }
.prob-grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.prob-item { padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.prob-item .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--voltage); }
.prob-item p { margin-top: 0.85rem; color: var(--muted); font-size: 1rem; }
.prob-item b { color: var(--cream); font-weight: 500; }

/* What you get */
.get-grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden; }
.get-cell { background: var(--ink); padding: clamp(1.75rem, 3vw, 2.75rem); }
.get-cell h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.7rem; }
.get-cell h3 .mk { width: 6px; height: 6px; border-radius: 9999px; background: var(--voltage); flex: none; }
.get-cell p { margin-top: 0.75rem; color: var(--muted); }

/* Proof */
.proof { text-align: center; }
.proof-card { margin: clamp(2.5rem,5vw,3.5rem) auto 0; max-width: 768px; border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(2rem, 4vw, 3.5rem); background: #F5F5F004; }
.proof-quote { font-weight: 300; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.02em; }
.proof-quote .hl { color: var(--cream); font-weight: 400; }
.proof-attr { margin-top: 1.75rem; font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.proof-attr b { color: var(--cream); font-weight: 500; }
.proof-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Calculator */
.calc-grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.calc-inputs .field { margin-bottom: 1.1rem; }
.calc-assume { font-size: 12px; color: #F5F5F059; margin-top: 0.6rem; max-width: 46ch; line-height: 1.5; }
.calc-out { border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(1.75rem, 3vw, 2.5rem); background: #F5F5F004; text-align: center; }
.calc-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.calc-figure { font-weight: 700; font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.04em; color: var(--voltage); line-height: 1; margin: 0.85rem 0 0.3rem; }
.calc-figure span { font-size: 0.34em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.calc-year { font-size: 1rem; color: var(--cream); margin-bottom: 1.5rem; }
.calc-out .btn { width: 100%; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { margin-top: clamp(2.5rem,5vw,4rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem,5vw,4rem); }
.faq-item { border-top: 1px solid var(--hairline); padding-top: 1.5rem; }
.faq-item h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; }
.faq-item p { margin-top: 0.6rem; color: var(--muted); }

/* Book (form) */
.book { position: relative; overflow: hidden; }
.book-glow { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 800px; height: 700px; background: radial-gradient(circle, #2962FF2E 0%, transparent 65%); filter: blur(20px); pointer-events: none; z-index: 0; }
.book-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.book-copy .headline { margin-top: 1.25rem; max-width: 12ch; }
.book-copy .body-muted { margin-top: 1.5rem; }
.book-meta { margin-top: 2rem; display: grid; gap: 0.9rem; }
.book-meta li { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; list-style: none; }
.book-meta .dot { width: 6px; height: 6px; }
.book-meta .dot::after { display: none; }
.book-proof { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.book-proof p { font-weight: 300; font-size: 1.05rem; line-height: 1.45; color: var(--cream); letter-spacing: -0.01em; }
.book-proof figcaption { margin-top: 0.85rem; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.book-proof figcaption b { color: var(--cream); font-weight: 500; }

form { background: #F5F5F005; border: 1px solid var(--hairline); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field label .req { color: var(--voltage); }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--cream);
  background: #F5F5F008; border: 1px solid var(--hairline-strong); border-radius: 12px;
  padding: 0.85rem 1rem; min-height: 52px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #F5F5F040; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--voltage); background: #F5F5F00D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { width: 100%; margin-top: 0.4rem; }
.form-note { margin-top: 0.9rem; font-size: 12px; color: #F5F5F059; text-align: center; }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; padding: 0.75rem 1rem; border-radius: 12px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #2962FF1A; border: 1px solid #2962FF40; color: var(--cream); }
.form-status.err { background: #F5F5F00D; border: 1px solid var(--hairline-strong); color: var(--cream); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.footer-row { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-row .label { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.footer-row a:hover { color: var(--cream); }

/* Reveal (JS-gated so content shows without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 860px) {
  .prob-grid { grid-template-columns: 1fr; }
  .get-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .book-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .header-cta span.label-hide { display: none; }
}
