/* Oolo landing page — standalone static site.
   Aesthetic: warm dark, value-first, tea-green used sparingly. Hanken Grotesk
   throughout; a mono face only for small technical marks (the number, the
   "live" tag). Kept deliberately un-flashy — the product flow is the hero. */

:root {
  --bg: #0d0f0e;          /* warm near-black */
  --bg-2: #121512;        /* card base */
  --surface: #171b18;     /* raised surface */
  --ink: #f4f1ea;         /* warm off-white */
  --muted: #99a39b;       /* warm gray-green */
  --faint: #6b746d;
  --line: rgba(244, 241, 234, 0.09);
  --line-2: rgba(244, 241, 234, 0.05);
  --accent: #4f9c7f;      /* tea green */
  --accent-ink: #84c8aa;  /* lighter accent for text on dark */
  --accent-soft: rgba(79, 156, 127, 0.14);
  --accent-line: rgba(79, 156, 127, 0.34);
  --warn: #d8a657;

  --max: 1140px;
  --r: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: a soft tea-green glow up top + a faint grain so the dark isn't flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 38rem at 72% -12%, rgba(79, 156, 127, 0.16), transparent 60%),
    radial-gradient(50rem 40rem at 8% 4%, rgba(79, 156, 127, 0.06), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.78em 1.35em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #07120d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn-primary:hover { transform: translateY(-2px); background: #5cae8f; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.btn-lg { font-size: 1.05rem; padding: 0.92em 1.7em; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(13, 15, 14, 0.66);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.link { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a.link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 1.1rem 0 1.2rem;
}
.hero h1 .accent { color: var(--accent-ink); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 33ch; }
.hero-actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.3rem; font-size: 0.86rem; color: var(--faint); display: flex; align-items: center; gap: 0.5rem; }
.hero-note b { color: var(--muted); font-weight: 600; }

/* ---------- the live call card ---------- */
.call-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-2);
}
.call-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.2rem 0.4rem 0.9rem;
  border-bottom: 1px solid var(--line-2);
}
.call-biz { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.call-num { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-soft); } 50% { opacity: 0.55; box-shadow: 0 0 0 6px transparent; } }

.transcript { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 0.3rem 0.4rem; min-height: 280px; }
.bubble {
  max-width: 86%;
  padding: 0.6rem 0.85rem;
  border-radius: 13px;
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.bubble.show { opacity: 1; transform: none; }
.bubble .who { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; opacity: 0.7; }
.bubble.ai { align-self: flex-start; background: var(--accent-soft); border: 1px solid var(--accent-line); border-bottom-left-radius: 4px; }
.bubble.ai .who { color: var(--accent-ink); }
.bubble.caller { align-self: flex-end; background: rgba(244, 241, 234, 0.06); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.bubble.caller .who { color: var(--muted); text-align: right; }

.typing { align-self: flex-start; display: none; gap: 4px; padding: 0.7rem 0.9rem; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 13px; border-bottom-left-radius: 4px; }
.typing.show { display: flex; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.call-outcome {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.9rem; padding-top: 0.95rem; border-top: 1px solid var(--line-2);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.call-outcome.show { opacity: 1; transform: none; }
.tag { font-size: 0.76rem; font-weight: 600; padding: 0.32em 0.7em; border-radius: 999px; background: rgba(244,241,234,0.06); border: 1px solid var(--line); color: var(--muted); }
.tag.good { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 56ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0.7rem 0 0.7rem; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* value cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ROI band */
.roi { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.roi-eyebrow { text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin-top: 2.4rem; }
.metric { background: var(--bg); padding: 1.7rem 1.1rem; text-align: center; }
.metric .n { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.metric .n.accent { color: var(--accent-ink); }
.metric .l { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.roi-foot { text-align: center; color: var(--faint); font-size: 0.82rem; margin-top: 1.3rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 600;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink);
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* trades */
.trades { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 760px; margin: 0 auto; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1.05em; font-size: 0.9rem; color: var(--muted); transition: border-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--accent-line); color: var(--ink); }

/* healthcare / HIPAA */
.hipaa { border-block: 1px solid var(--line-2); }
.hipaa-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hipaa-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0.7rem 0 0.9rem; font-weight: 800; }
.hipaa-copy > p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.hipaa-copy > p b { color: var(--ink); font-weight: 700; }
.hipaa-points { list-style: none; display: grid; gap: 1.05rem; margin: 1.7rem 0 0; }
.hipaa-points li { display: flex; gap: 0.8rem; align-items: flex-start; }
.hipaa-points li > div { display: flex; flex-direction: column; gap: 0.12rem; }
.hipaa-points b { font-size: 0.98rem; letter-spacing: -0.01em; }
.hipaa-points span { color: var(--muted); font-size: 0.9rem; }
.hp-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); }
.hipaa-trades { justify-content: flex-start; max-width: none; margin: 1.8rem 0 0; }

.hipaa-badge {
  justify-self: center;
  width: 100%; max-width: 280px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  padding: 2.3rem 1.5rem;
  text-align: center;
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.8);
}
.badge-shield {
  width: 84px; height: 84px; margin: 0 auto 1.1rem;
  border-radius: 20px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink);
}
.badge-label { font-family: var(--mono); font-weight: 600; letter-spacing: 0.16em; font-size: 1.15rem; }
.badge-sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }

/* pricing — understated two-segment cards (Linear/Stripe feel), un-priced in pilot */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; max-width: 880px; margin: 0 auto; align-items: stretch; }
.price-card {
  max-width: 460px; margin: 0 auto;
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2.1rem 2rem 2rem;
  transition: border-color 0.3s var(--ease);
}
.price-card:hover { border-color: var(--accent-line); }
.price-grid .price-card { max-width: none; margin: 0; }
/* .alt = the higher-value segment; a faint accent so it reads premium, not louder. */
.price-card.alt { border-color: var(--accent-line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.price-card .plan { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
/* price slot — swap .price-headline for .amount when a real price lands */
.price-headline { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0.55rem 0 0.15rem; }
.price-card .amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; margin: 0.6rem 0 0.1rem; }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .sub { color: var(--muted); margin-bottom: 0.4rem; font-size: 0.96rem; }
.feat { list-style: none; text-align: left; display: grid; gap: 0.7rem; margin: 1.5rem 0; flex: 1 1 auto; }
.feat li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink); font-size: 0.94rem; }
.feat li svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.price-card .btn { width: 100%; justify-content: center; }
.price-note { color: var(--faint); font-size: 0.82rem; margin-top: 1rem; }

/* closing CTA */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 800; max-width: 18ch; margin: 0 auto 1.2rem; }
.cta-final p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; margin: 0 auto 2rem; }

/* footer */
footer { border-top: 1px solid var(--line-2); padding: 3rem 0 3.5rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.6rem; color: var(--muted); font-size: 0.92rem; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--faint); font-size: 0.85rem; }

/* ---------- contact / waitlist modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 7, 0.66); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  max-height: calc(100vh - 2.4rem); overflow-y: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem 1.8rem 1.8rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
}
.modal-x { position: absolute; top: 0.9rem; right: 0.9rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.modal-x:hover { color: var(--ink); background: var(--accent-soft); }
.modal-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0.45rem 0 0.3rem; }
.modal-sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.2rem; }
#contactForm { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.3rem; }
.field > span { font-size: 0.82rem; color: var(--muted); }
.field > span i { color: var(--accent-ink); font-style: normal; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.6rem 0.7rem; width: 100%; transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); }
.field textarea { resize: vertical; min-height: 64px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#contactSubmit { width: 100%; justify-content: center; margin-top: 0.35rem; }
#contactSubmit:disabled { opacity: 0.65; cursor: default; transform: none; }
.modal-status { font-size: 0.86rem; margin-top: 0.6rem; min-height: 1.1em; color: var(--muted); }
.modal-status.is-ok { color: var(--accent-ink); }
.modal-status.is-err { color: var(--warn); }
/* waitlist mode is deliberately lighter — hide name + message */
.modal[data-mode="waitlist"] .field-name,
.modal[data-mode="waitlist"] .field-message { display: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubble, .call-outcome { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .call-card { order: 2; max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .hipaa-grid { grid-template-columns: 1fr; }
  .hipaa-badge { order: -1; max-width: 240px; padding: 1.9rem 1.4rem; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; gap: 1.4rem; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(13,15,14,0.97); border-bottom: 1px solid var(--line); padding: 1.5rem 24px;
  }
  .nav.open .nav-cta { display: none; }
  .cards { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
