/* ============================================================
   APNO — Design System
   Calm clinical blue · light editorial · Vercel/Stripe-clean
   ============================================================ */

:root {
  /* Ink / neutral scale (slightly cool) */
  --ink:        #0A0F16;
  --ink-2:      #1B232E;
  --slate:      #3D4754;
  --muted:      #69727E;
  --muted-2:    #939BA6;
  --line:       #E7EBF0;
  --line-2:     #EFF2F6;
  --surface:    #F6F8FB;
  --surface-2:  #F0F4F9;
  --white:      #FFFFFF;

  /* Primary — calm clinical blue */
  --blue:       #2563E8;
  --blue-600:   #1E54CC;
  --blue-700:   #1A45A6;
  --blue-300:   #7FA8F4;
  --blue-tint:  #EAF1FE;
  --blue-tint-2:#F2F6FE;

  /* Semantic (healthcare status) */
  --green:      #16A34A;
  --green-tint: #E7F6ED;
  --amber:      #D98A04;
  --amber-tint: #FBF1DC;
  --red:        #E5484D;
  --red-tint:   #FCEBEC;

  /* Typography */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Clash Display", "Geist", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1320px;
  --container-wide: 1440px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Shadows — soft, layered, premium */
  --shadow-sm: 0 1px 2px rgba(13,24,40,.04), 0 1px 3px rgba(13,24,40,.06);
  --shadow:    0 4px 12px rgba(13,24,40,.05), 0 12px 28px rgba(13,24,40,.07);
  --shadow-lg: 0 8px 24px rgba(13,24,40,.07), 0 32px 64px rgba(13,24,40,.12);
  --shadow-blue: 0 10px 30px rgba(37,99,232,.20), 0 2px 8px rgba(37,99,232,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  /* white across the whole page — the hero keeps its own gradient + mountain scene; everything else is clean white */
  background: #FFFFFF;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01", "cv11";
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--blue); color: #fff; }

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: var(--container-wide); }
/* uniform vertical rhythm — every section uses the SAME spacing top-to-bottom */
.section { position: relative; padding: 72px 0; }
.section-sm { padding: 72px 0; }
@media (max-width: 720px){ .container { padding: 0 22px; } .section, .section-sm { padding: 52px 0; } }
/* sections are transparent — the page's single continuous background shows through (cohesive, no slide effect) */
.tinted { background: transparent; }
.tinted-blue { background: transparent; }

/* ----------------------------- Type ------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-size: clamp(48px, 8.2vw, 116px);
  color: var(--ink);
}
.h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(38px, 5.2vw, 70px); }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.018em; line-height: 1.06; font-size: clamp(30px, 3.6vw, 50px); }
.h3 { font-weight: 560; letter-spacing: -0.022em; line-height: 1.12; font-size: clamp(22px, 2.2vw, 30px); }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--slate); font-weight: 420; letter-spacing: -0.01em; }
.body { font-size: 17px; line-height: 1.6; color: var(--slate); }
.small { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 540; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); font-family: var(--mono);
}
.eyebrow.muted { color: var(--muted); }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint);
}
.eyebrow.muted::before { background: var(--muted-2); box-shadow: 0 0 0 4px var(--line-2); }

.grad-text {
  background: linear-gradient(100deg, var(--blue) 0%, #4E83F2 50%, #15B0C9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 520; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,15,22,.22); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { transform: translateY(-2px); background: var(--blue-600); }
.btn-ghost { background: rgba(10,15,22,.03); color: var(--ink); }
.btn-ghost:hover { background: rgba(10,15,22,.06); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 500; font-size: 15px; }
.textlink .arrow { transition: transform .3s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ----------------------------- Pills / chips ---------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--slate);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.dot-blue  { background: var(--blue);  box-shadow: 0 0 0 3px var(--blue-tint); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 7px;
}
.badge-green { background: var(--green-tint); color: #0E7A37; }
.badge-amber { background: var(--amber-tint); color: #9A6105; }
.badge-blue  { background: var(--blue-tint);  color: var(--blue-700); }
.badge-gray  { background: var(--surface-2);  color: var(--muted); }

/* ----------------------------- Cards ------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }

/* ----------------------------- Reveal animations ------------------ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

/* char-split */
.split-line { display: block; overflow: hidden; }
.split-char { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease-out); will-change: transform; }
.split-char.space { width: 0.28em; }
.split.in .split-char { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-char { transform: none !important; }
}
