/* =============================================================
   Ojasya — design tokens
   Semantically named so the "why" is visible in the stylesheet.
   ============================================================= */

:root {
  /* Ground: bone cream. Not pure white — warmth signals "human,
     not clinical waiting room". Pure white reserved for cards
     sitting on the ground. */
  --bone: #faf8f2;
  --paper: #ffffff;

  /* Ink: a touch off true black. Prints softer, feels like ink
     not digital void. Used for primary type + primary CTA. */
  --ink: #0c0c0c;
  --ink-700: #1a1a1a;
  --ink-500: #4b4b4b;
  --ink-400: #6b6b6b;
  --ink-300: #8e8e8e;
  --ink-200: #cfcfcf;
  --ink-100: #e7e6e1;
  --hairline: #e3e1dc;

  /* Two gradient stages — the flagship treatment cards.
     Dusk blue = precision / GLP-1 / medical instruments.
     Forest  = biology / hormones / living systems.
     The 'deep' and 'rise' stops let us hand-tune each gradient
     per composition instead of a blunt two-color ramp. */
  --dusk-deep: #071d35;
  --dusk-rise: #4d87bf;
  --dusk-lift: #86b6e0;

  --forest-deep: #0a2c1e;
  --forest-rise: #4c9a70;
  --forest-lift: #7bb493;

  /* Product pastels. Each keyed to the treatment it represents.
     Not interchangeable — swapping them would break the mnemonic
     tie between color and category. */
  --peach: #f1d9c1;    /* weight management — warmth, body */
  --stone: #d6dde2;    /* hair restoration — cool, calm */
  --blush: #ecd5d1;    /* skin care — tender, tissue */
  --clay:  #ebd6bc;    /* men's health — grounded, earthen */
  --sage:  #d8e1d6;    /* wellness / daily health */
  --amber: #e8c88a;    /* accent — used sparingly for highlights */

  /* Success + warn. Muted, not stoplight colors. */
  --verify: #2f7d5a;
  --caution: #a36b12;

  /* Type scale — Hanken Grotesk.
     Generous jumps; premium wellness brands breathe. */
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Hanken Grotesk", ui-sans-serif, system-ui;

  /* Radii — 20px is the 'card' vernacular, 9999 the pill,
     10 the form field. Consistent across the system. */
  --r-pill: 9999px;
  --r-card: 20px;
  --r-card-lg: 28px;
  --r-field: 12px;

  /* Motion — slow enough to feel considered, fast enough to
     avoid impatience. Standard ease-out for UI, custom cubic
     for the step transitions in the intake. */
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slip: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout rhythm — 128 on desktop sections, 88 on tablet,
     64 on mobile. Consistently applied so the whole site
     breathes at the same tempo. */
  --space-section: clamp(64px, 8vw, 128px);
  --container: 1320px;
}

/* =============================================================
   Base
   ============================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--ink);
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

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

::selection { background: var(--ink); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   Typography primitives
   ============================================================= */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.h-display {
  /* The voice of the brand. Tight leading, generous size,
     weight 700. Letter-spacing -0.01em because bold sans
     grotesques photo-optically widen; a touch of negative
     tracking restores the intended presence. */
  font-size: clamp(40px, 6.2vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.h-section {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.h-card {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.lede {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--ink-500);
  line-height: 1.55;
  max-width: 58ch;
}

.caption {
  font-size: 13px;
  color: var(--ink-400);
  letter-spacing: 0.01em;
}

/* =============================================================
   Layout
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section { padding-block: var(--space-section); }

/* =============================================================
   Button — the black pill with arrow
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 28px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 180ms var(--ease-ui),
    background-color 180ms var(--ease-ui),
    color 180ms var(--ease-ui),
    box-shadow 180ms var(--ease-ui);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-ui); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--bone);
  box-shadow: 0 12px 32px -18px rgba(12,12,12,0.7);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px -10px rgba(12,12,12,0.6); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

.btn-lg { padding: 20px 30px 20px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================================
   Surface cards
   ============================================================= */
.card {
  border-radius: var(--r-card);
  padding: 32px;
  background: var(--paper);
}

.card-dusk {
  background:
    radial-gradient(120% 140% at 85% 0%, var(--dusk-lift) 0%, var(--dusk-rise) 40%, var(--dusk-deep) 100%);
  color: #fff;
}
.card-forest {
  background:
    radial-gradient(120% 140% at 80% 0%, var(--forest-lift) 0%, var(--forest-rise) 35%, var(--forest-deep) 100%);
  color: #fff;
}
.card-ink {
  background: #0f0f0f;
  color: #e9e9e7;
  border: 1px solid rgba(255,255,255,0.04);
}
.card-peach { background: var(--peach); color: var(--ink); }
.card-stone { background: var(--stone); color: var(--ink); }
.card-blush { background: var(--blush); color: var(--ink); }
.card-clay  { background: var(--clay);  color: var(--ink); }
.card-sage  { background: var(--sage);  color: var(--ink); }

/* =============================================================
   The ancestral-precision pattern — a layered SVG drawn with
   pure CSS via data-uri so any surface can opt in.
   Uses interlocking hexagons + diagonal rays. This is the
   visual glue the whole brand leans on.
   ============================================================= */
.motif {
  position: relative;
  isolation: isolate;
}
.motif::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><g fill='none' stroke='%23000' stroke-width='1' stroke-opacity='0.07'><polygon points='120,20 200,65 200,155 120,200 40,155 40,65'/><polygon points='120,55 170,83 170,140 120,168 70,140 70,83'/><polygon points='120,85 150,102 150,137 120,154 90,137 90,102'/><line x1='40' y1='65' x2='120' y2='20'/><line x1='120' y1='20' x2='200' y2='65'/><line x1='200' y1='65' x2='200' y2='155'/><line x1='40' y1='65' x2='40' y2='155'/><line x1='0' y1='120' x2='240' y2='120'/><line x1='120' y1='0' x2='120' y2='240'/></g></svg>");
  background-size: 280px 280px;
  background-position: right -40px top -60px;
  background-repeat: no-repeat;
  opacity: 0.9;
}
.motif > * { position: relative; z-index: 1; }

/* Variant for dark surfaces — draws with light strokes */
.motif-light::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><g fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.14'><polygon points='120,20 200,65 200,155 120,200 40,155 40,65'/><polygon points='120,55 170,83 170,140 120,168 70,140 70,83'/><polygon points='120,85 150,102 150,137 120,154 90,137 90,102'/><line x1='40' y1='65' x2='120' y2='20'/><line x1='120' y1='20' x2='200' y2='65'/><line x1='200' y1='65' x2='200' y2='155'/><line x1='40' y1='65' x2='40' y2='155'/><line x1='0' y1='120' x2='240' y2='120'/><line x1='120' y1='0' x2='120' y2='240'/></g></svg>");
}

/* Concentric topographic rings — secondary pattern for
   'how it works' and instructional surfaces. Suggests
   calibration, precision, signal. */
.rings {
  position: relative;
}
.rings::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%23000' stroke-opacity='0.055'><circle cx='400' cy='200' r='60'/><circle cx='400' cy='200' r='110'/><circle cx='400' cy='200' r='160'/><circle cx='400' cy='200' r='210'/><circle cx='400' cy='200' r='260'/><circle cx='400' cy='200' r='310'/><circle cx='400' cy='200' r='360'/></g></svg>");
  background-size: 480px 480px;
  background-position: right -80px center;
  background-repeat: no-repeat;
}
.rings > * { position: relative; z-index: 1; }

/* =============================================================
   Header / nav
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px clamp(20px, 4vw, 40px);
  max-width: 100%;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-primary {
  display: flex;
  gap: 28px;
  margin-left: 24px;
}
.nav-primary a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 150ms var(--ease-ui);
}
.nav-primary a:hover { color: var(--ink); }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-right a { font-weight: 500; color: var(--ink-700); }
@media (max-width: 900px) {
  .nav-primary { display: none; }
  .nav-right .nav-secondary { display: none; }
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: #0a0a0a;
  color: #d2d1cd;
  position: relative;
  overflow: hidden;
}
.site-footer-inner {
  padding: 80px clamp(20px, 4vw, 56px) 40px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 48px;
}
.site-footer h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #757474;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #e9e8e4; font-weight: 400; }
.site-footer a:hover { color: #fff; }
.site-footer-copy { font-size: 14px; color: #a3a29d; line-height: 1.55; margin: 0 0 20px; }
.site-footer-socials { display: flex; gap: 8px; margin-top: 24px; }
.site-footer-socials a {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid #2b2b2b;
  display: grid; place-items: center;
}
.site-footer-socials a:hover { border-color: #7a7a78; }
.site-footer-mono {
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -120px;
  font-weight: 700;
  font-size: clamp(180px, 24vw, 400px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.site-footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding: 20px clamp(20px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7e7d78;
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}

/* =============================================================
   Trust strip
   ============================================================= */
.trust-strip {
  background: #0a0a0a;
  color: #e9e8e4;
  padding: 26px 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  font-size: 15px;
}
.trust-strip-item { display: inline-flex; align-items: center; gap: 10px; }
.trust-dot { width: 6px; height: 6px; background: #fff; border-radius: 999px; display: inline-block; }
@media (max-width: 780px) {
  .trust-strip-item { font-size: 13px; }
  .trust-strip-inner { justify-content: flex-start; }
}

/* =============================================================
   Form primitives
   ============================================================= */
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
}
.field-hint { font-size: 12px; color: var(--ink-400); }
.field-error { font-size: 12px; color: #b8361c; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-field);
  border: 1px solid var(--ink-200);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 150ms var(--ease-ui), box-shadow 150ms var(--ease-ui);
}
.input::placeholder { color: var(--ink-300); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(12,12,12,0.06);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.checkbox, .radio {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-300);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.radio { border-radius: 999px; }
.checkbox:checked, .radio:checked { background: var(--ink); border-color: var(--ink); }
.checkbox:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 7 12l6-7.5'/></svg>") center/contain no-repeat;
}
.radio:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: #fff;
}

/* Option-card styled inputs (intake 'big tappable cards') */
.opt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1.5px solid var(--ink-100);
  background: var(--paper);
  cursor: pointer;
  transition: transform 160ms var(--ease-ui), border-color 160ms var(--ease-ui), background-color 160ms var(--ease-ui);
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.opt-card:hover { border-color: var(--ink-300); }
.opt-card[aria-checked="true"],
.opt-card.is-selected {
  border-color: var(--ink);
  background: #0c0c0c;
  color: #fff;
}
.opt-card[aria-checked="true"] .opt-icon,
.opt-card.is-selected .opt-icon {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.opt-card .opt-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bone);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 160ms var(--ease-ui), color 160ms var(--ease-ui);
}
.opt-card .opt-title { font-weight: 600; font-size: 17px; letter-spacing: -0.005em; }
.opt-card .opt-desc { font-size: 13px; opacity: 0.7; margin-top: 2px; }

/* =============================================================
   Progress bar + stepper
   ============================================================= */
.progress-track {
  height: 3px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--ink);
  transition: width 400ms var(--ease-slip);
}

/* =============================================================
   Step transition animation (intake)
   ============================================================= */
.step { display: none; }
.step.is-active {
  display: block;
  animation: slipIn 380ms var(--ease-slip) both;
}
@keyframes slipIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =============================================================
   Toast
   ============================================================= */
.toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  gap: 8px;
}
.toast {
  background: #0c0c0c;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
  animation: toastIn 240ms var(--ease-ui) both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   Utility bits
   ============================================================= */
.stack { display: grid; gap: 20px; }
.row { display: flex; gap: 20px; align-items: center; }
.divider { height: 1px; background: var(--hairline); margin-block: 32px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bone);
}
.badge-soft { background: var(--peach); color: var(--ink); }
.badge-outline { background: transparent; border: 1px solid currentColor; color: inherit; }

/* subtle skeleton for loading states */
.skeleton {
  background: linear-gradient(90deg, #eeece7 0%, #f6f4ef 50%, #eeece7 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* reduce motion — respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
