/* ==========================================================================
   Graft — trustworthy, warm accent
   Soft powder-blue base (professional, calm — the property/healthcare-brand
   register, not "generic SaaS blue" or "warm AI-app cream") with navy for
   structure and one warm coral/terracotta accent reserved for CTAs and
   highlights, so it stays a clear focal point rather than one of three
   competing hues. Rounded and soft, no monospace anywhere; badges are
   solid-color chips, not typewriter codes.
   ========================================================================== */

:root {
  /* Light — powder-blue paper, navy for structure, coral as the one warm accent */
  --paper: #eef3f5;
  --surface: #ffffff;
  --surface-2: #e4ecef;
  --ink: #1c2733;
  --ink-soft: #47566a;
  --ink-faint: #7c8b9c;
  --accent: #e2673b;
  --accent-strong: #c8502a;
  --accent-soft: #fbe4d9;
  --accent-2: #23446b;
  --accent-2-soft: #d8e4ee;
  --rule: #d7e3e9;
  --rule-soft: #e1eaef;
  --shadow: 0 20px 50px -25px rgba(28, 39, 51, 0.18);

  --radius-card: 16px;
  --radius-pill: 999px;
  --font-display: "Plus Jakarta Sans", "Segoe UI", -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, sans-serif;
  --max-width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Dark — deep navy night, coral accent brightened to stay warm on dark */
    --paper: #0e1720;
    --surface: #16212c;
    --surface-2: #121b24;
    --ink: #e7eef3;
    --ink-soft: #aebecb;
    --ink-faint: #71828f;
    --accent: #f2895f;
    --accent-strong: #f7a67d;
    --accent-soft: #3a2a22;
    --accent-2: #6fa8d8;
    --accent-2-soft: #1c2e3d;
    --rule: #23323f;
    --rule-soft: #1b2731;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --paper: #0e1720;
  --surface: #16212c;
  --surface-2: #121b24;
  --ink: #e7eef3;
  --ink-soft: #aebecb;
  --ink-faint: #71828f;
  --accent: #f2895f;
  --accent-strong: #f7a67d;
  --accent-soft: #3a2a22;
  --accent-2: #6fa8d8;
  --accent-2-soft: #1c2e3d;
  --rule: #23323f;
  --rule-soft: #1b2731;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Barely-there grain for warmth, not a ruled-paper/ledger texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

@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;
  }
}

/* ---------- Feature badges: solid-color chips, not typewriter codes ---------- */
.reg-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.reg-code.seal { background: var(--accent-2-soft); color: var(--accent-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.brand-mark { color: var(--accent); display: flex; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.current { color: var(--accent-strong); font-weight: 700; }

/* Solutions dropdown — too many verticals to fit as flat nav links */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer; padding: 0; font: inherit;
  font-size: 0.94rem; font-weight: 500; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease;
}
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-dropdown-trigger::after { content: "▾"; font-size: 0.7em; position: relative; top: 1px; }

.nav-dropdown-panel {
  display: none;
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 10px; min-width: 240px; flex-direction: column; gap: 2px; z-index: 60;
}

.nav-dropdown.is-open .nav-dropdown-panel { display: flex; }

.nav-dropdown-panel a {
  padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-panel a:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown-panel a.current { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }

.nav-cta {
  background: var(--accent);
  border: none;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  font-family: var(--font-body);
  font-size: 0.88rem !important;
  letter-spacing: 0;
}

.nav-cta:hover { background: var(--accent-strong); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.98rem;
  font-family: var(--font-body);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }

.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 84px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.eyebrow {
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.eyebrow.center { text-align: center; }

h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); max-width: 15ch; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.15rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 18px; }
.hero-actions.center { justify-content: center; }

.hero-note { font-size: 0.85rem; color: var(--ink-faint); font-family: var(--font-body); }
.hero-note.center { text-align: center; }

/* Phone mockup — soft rounded card, not a stamped ticket */
.hero-visual { position: relative; display: flex; justify-content: center; }

/* Soft brand-tinted glow behind the phone mockup */
.glow {
  position: absolute;
  inset: -10% -15%;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 42%,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    color-mix(in srgb, var(--accent-2) 14%, transparent) 45%,
    transparent 75%
  );
  filter: blur(30px);
  pointer-events: none;
}

.phone-mock {
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 0 0 18px;
  box-shadow: var(--shadow);
  position: relative;
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
}

.hero-copy { animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 12px;
}

.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.74rem;
}

.phone-title { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.phone-subtitle { font-family: var(--font-body); font-size: 0.72rem; color: var(--accent-strong); font-weight: 600; }

.phone-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 10px; }

.bubble { padding: 10px 14px; border-radius: 16px; font-size: 0.82rem; line-height: 1.4; max-width: 88%; color: var(--ink); }

.bubble-in { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-stack { margin-top: -4px; opacity: 0.85; }

.bubble-out { background: var(--accent); color: #fff; align-self: flex-end; font-weight: 500; border-bottom-right-radius: 4px; }

.bubble-sys {
  align-self: center; background: var(--accent-2-soft);
  color: var(--accent-2); font-family: var(--font-body); font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  text-align: center; border-radius: var(--radius-pill); padding: 7px 14px;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }

.section-title { font-size: clamp(1.7rem, 3vw, 2.25rem); max-width: 22ch; }
.section-title.center { margin: 0 auto 52px; text-align: center; max-width: 32ch; }

.section-intro { font-size: 1.05rem; margin: -24px auto 52px; max-width: 58ch; }

/* Business-impact callout — sits between the hero and the day-to-day problem grid */
.impact-box {
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  border-radius: var(--radius-card); padding: 26px 30px; max-width: 720px; margin: 0 auto;
}
.impact-box p { margin: 0 0 12px; font-size: 1.02rem; color: var(--ink); max-width: none; }
.impact-box p:last-child { margin-bottom: 0; }
.impact-box strong { color: var(--accent-strong); }
.center { text-align: center; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards — soft rounded, gentle rest shadow, no hard-edged top rule */
.card, .feature-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
  box-shadow: 0 18px 36px -30px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--accent) 55%, transparent);
}

.card h3, .feature-card h3 { font-size: 1.02rem; }
.card p, .feature-card p { font-size: 0.92rem; margin: 0; max-width: none; }

/* Vertical picker — homepage only. Five items, so a fluid wrap reads better than a fixed
   column count that leaves an orphaned card on its own row. */
.picker-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.picker-card {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-card); padding: 26px 24px 24px;
  box-shadow: 0 18px 36px -30px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.picker-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px color-mix(in srgb, var(--accent) 55%, transparent);
}
.picker-card h3 { font-size: 1.02rem; }
.picker-card p { font-size: 0.92rem; margin: 0; max-width: none; }

.picker-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700;
  color: var(--accent-strong);
}
.picker-link::after { content: "→"; transition: transform 0.15s ease; }
.picker-card:hover .picker-link::after { transform: translateX(3px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; }

.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.92rem; max-width: none; }

/* Trust */
.section-trust { background: var(--surface-2); }
.trust-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.trust-copy { font-size: 1.05rem; }

.trust-pillars { display: flex; flex-direction: column; gap: 22px; }
.trust-pillar { display: flex; gap: 16px; align-items: flex-start; }

.pillar-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--font-body); font-size: 0.9rem;
}

.trust-pillar h4 { margin: 0 0 4px; font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.trust-pillar p { margin: 0; font-size: 0.9rem; max-width: none; }

/* CTA */
.cta-section { position: relative; text-align: center; overflow: hidden; }

/* Same glow treatment as the hero, fainter, warming up the closing pitch */
.cta-section::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 45%,
    color-mix(in srgb, var(--accent-2) 16%, transparent) 0%,
    color-mix(in srgb, var(--accent) 10%, transparent) 45%,
    transparent 75%
  );
  filter: blur(30px);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 44px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand-footer { justify-content: center; }
.footer-tagline { font-size: 0.92rem; margin: 0; }
.footer-copy { font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-faint); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .trust-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed; inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    padding: 32px 24px; gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }

  /* On mobile the dropdown is already inside a full-height panel with room to spare —
     show the verticals expanded as a static list instead of a second tap to open. */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { pointer-events: none; color: var(--ink); font-weight: 700; }
  .nav-dropdown-trigger::after { content: ""; }
  .nav-dropdown-panel {
    display: flex !important; position: static; transform: none; width: 100%;
    border: none; box-shadow: none; background: transparent; padding: 8px 0 0 4px; min-width: 0;
  }

  .hero { padding: 52px 0 48px; }
  .section { padding: 52px 0; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .phone-mock { width: 100%; max-width: 320px; }
}
