/* AskSathi — public marketing homepage stylesheet.
   Fork F-2 / XIV.1: the homepage is a re-designable layer — every visual
   value resolves through a token below, NO hardcoded value in the markup.
   This is the approved V1 "calm care" direction (sage on warm paper,
   Newsreader headlines), scoped to the landing page so it never touches the
   role surfaces (caretaker/supervisor/operator), which ride ui/tokens.css.
   WCAG 2.2 AA: text-bearing sage surfaces use the DEEP sage so white text
   clears 4.5:1; focus is always visible; targets >= 44px. */

.home {
  /* 1 — primitives (the care palette) */
  --paper: #faf8f4;
  --surface: #ffffff;
  --panel-warm: #fcfaf6;
  --sage-tint: #eff3ee;
  --ink: #23221f;          /* 15:1 on paper */
  --ink-soft: #5f5a4e;     /* >= 5.4:1 on surface — body/secondary */
  --ink-mute: #6b6657;     /* >= 4.5:1 — small meta text stays legible */
  --sage: #5e7c6b;         /* brand accent (decorative fills, borders) */
  --sage-deep: #46604f;    /* text-bearing sage: white-on-this >= 5.4:1 */
  --sage-deeper: #3f5648;
  --line: #ece7dd;
  --line-soft: #ddd6c9;
  --focus: #1d4ed8;

  /* 2 — type */
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 3 — scale */
  --wrap-max: 1140px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --target-min: 44px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lift: 0 22px 44px -22px rgba(94, 124, 107, 0.45);
  --shadow-float: 0 26px 48px -22px rgba(54, 62, 52, 0.4);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.home * { box-sizing: border-box; }
.home { scroll-behavior: smooth; }
.home a { color: inherit; }
.home ::selection { background: #d9e3dc; }
.home .serif { font-family: var(--font-serif); }
.home .mono { font-family: var(--font-mono); }

.home .wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.home main { max-width: none; margin: 0; padding: 0; }

.home .lift { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.home .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* buttons / CTAs — deep sage so white text clears AA */
.home .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--target-min);
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: #fff; background: var(--sage-deep);
  text-decoration: none; padding: 14px 34px;
  border-radius: 12px; border: none; cursor: pointer;
  transition: background 0.18s ease;
}
.home .cta:hover { background: var(--sage-deeper); }
.home .btn-ghost {
  display: inline-flex; align-items: center; min-height: var(--target-min);
  font-size: 16px; font-weight: 600; color: var(--sage-deeper);
  text-decoration: none; padding: 14px 26px;
  border-radius: 12px; background: var(--surface); border: 1px solid #dde7dd;
}
.home .btn-ghost:hover { border-color: var(--sage); }

.home :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- header ---------- */
.home .site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.home .brand-logo { height: 60px; width: auto; display: block; }
.home .nav { display: flex; align-items: center; gap: 10px; }
.home .nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-mute);
  text-decoration: none; padding: 11px 14px; border-radius: 9px;
  display: inline-flex; align-items: center; min-height: var(--target-min);
}
.home .nav-btn {
  font-size: 14.5px; font-weight: 600; color: #fff; background: var(--sage-deep);
  text-decoration: none; padding: 11px 18px; border-radius: 9px;
  white-space: nowrap; display: inline-flex; align-items: center;
  min-height: var(--target-min);
}
.home .nav-btn:hover { background: var(--sage-deeper); }
.home .nav-btn--soon { background: var(--ink-mute); }

.home .navabout { position: relative; }
.home .navabout > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px); margin-left: 7px; opacity: 0.55;
  transition: transform 0.18s ease;
}
.home .navabout:hover > a::after,
.home .navabout:focus-within > a::after { transform: rotate(-135deg) translateY(-1px); }
.home .navabout .panel {
  position: absolute; top: calc(100% + 12px); left: 0; width: 360px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 26px 56px -22px rgba(35, 34, 31, 0.42);
  padding: 22px 24px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 60;
}
.home .navabout:hover .panel,
.home .navabout:focus-within .panel { opacity: 1; visibility: visible; transform: translateY(0); }
.home .navabout .panel h3 { font-weight: 500; font-size: 20px; margin: 0 0 10px; color: #2c342d; }
.home .navabout .panel p { font-size: 14px; line-height: 1.6; color: var(--ink-mute); margin: 0; }

/* ---------- hero ---------- */
.home .hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.home .hero-bg { position: absolute; inset: 0; z-index: 0; }
.home .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; opacity: 0.5;
}
.home .hero-veil {
  position: absolute; inset: 0;
  background: radial-gradient(125% 105% at 50% 32%,
    rgba(250, 248, 244, 0.82) 0%, rgba(250, 248, 244, 0.62) 48%,
    rgba(250, 248, 244, 0.94) 88%, var(--paper) 100%);
}
.home .hero-inner {
  position: relative; z-index: 1; max-width: 780px; margin: 0 auto;
  padding: 96px 32px 104px; text-align: center;
}
.home .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--sage-deep); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 22px;
}
.home .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.home .hero-h1 {
  font-weight: 500; font-size: 60px; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 22px;
}
.home .hero-sub { font-size: 19px; color: #3f4a40; max-width: 580px; margin: 0 auto 32px; }
.home .hero-ctas { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.home .hero-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 30px;
  font-size: 14px; color: var(--ink-mute); flex-wrap: wrap; justify-content: center;
}
.home .hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: #d6cfc2; }

/* ---------- section scaffolding ---------- */
.home .section { padding-top: 56px; padding-bottom: 24px; }
.home .section-head { text-align: center; margin-bottom: 42px; }
.home .section-title { font-weight: 500; font-size: 38px; letter-spacing: -0.015em; margin: 0; }
.home .kicker {
  font-size: 11px; font-weight: 600; color: var(--sage-deep); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}

/* ---------- how it works ---------- */
.home .how-row { display: flex; align-items: stretch; gap: 22px; }
.home .how-photo {
  position: relative; flex: 0 0 30%; border-radius: var(--radius-lg);
  overflow: hidden; min-height: 260px;
}
.home .how-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 38% center;
}
.home .how-photo .fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.55) 80%, #fff 100%);
}
.home .grid3 { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home .step-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card);
}
.home .step-num { font-family: var(--font-serif); font-size: 22px; color: var(--sage-deep); margin-bottom: 14px; }
.home .step-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.home .step-card p { font-size: 15px; color: var(--ink-mute); margin: 0; }

/* ---------- what Sathi handles (flow) ---------- */
.home .feat-card {
  background: var(--panel-warm); border: 1px solid #ebe6dc;
  border-radius: 28px; padding: 48px 48px 0; overflow: hidden;
}
.home .feat-head { margin: 0 0 28px; }
.home .feat-head h2 { font-weight: 500; font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; color: #2c342d; }
.home .feat-head p { font-size: 16px; line-height: 1.6; color: #7c857a; margin: 0; max-width: 440px; }
.home .feat-rule { height: 1px; width: 58%; background: #e7e2d8; margin: 0 0 8px; }
.home .flow-row { position: relative; display: flex; align-items: stretch; min-height: 360px; }
.home .flow-text {
  position: relative; z-index: 2; width: 58%; margin-left: 7%;
  display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 10px 0;
}
.home .flow-item { display: flex; gap: 14px; align-items: flex-start; max-width: 440px; }
.home .flow-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: #7e9e88;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.home .flow-item h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 2px; color: #2c342d; }
.home .flow-item p { font-size: 13.5px; line-height: 1.4; color: #6b746b; margin: 0; }
.home .flow-phone {
  position: absolute; top: 0; left: -200px; height: 100%; width: auto;
  object-fit: contain; object-position: center left;
  -webkit-mask-image: linear-gradient(to right, #000 18%, transparent 64%);
  mask-image: linear-gradient(to right, #000 18%, transparent 64%);
}
.home .flow-dash { position: absolute; right: -48px; bottom: 0; z-index: 3; width: 40%; max-width: 380px; }
.home .flow-dash .cap { margin-bottom: 14px; }
.home .flow-dash h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 2px; color: #2c342d; }
.home .flow-dash p { font-size: 14px; line-height: 1.5; color: #6b746b; margin: 0; }
.home .dash-frame {
  border: 1px solid #e2ddd2; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-float);
}
.home .dash-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f4f0e8; border-bottom: 1px solid #e7e2d8; }
.home .dash-bar span { width: 8px; height: 8px; border-radius: 50%; background: #d8d1c4; }
.home .dash-frame img { display: block; width: 100%; height: auto; }

/* ---------- end-to-end diagram ---------- */
.home .diagram-title { font-weight: 500; font-size: 34px; letter-spacing: -0.015em; margin: 0; color: var(--sage-deeper); }
.home .diagram-frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card);
}
.home .diagram-frame img { display: block; width: 100%; height: auto; }
.home .diagram-cap { position: absolute; left: 24px; bottom: 18px; margin: 0; font-size: 12.5px; font-style: italic; color: rgba(35, 34, 31, 0.42); }

/* ---------- who it's for ---------- */
.home .who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.home .who-card { border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.home .who-card--family { background: var(--sage-tint); border: 1px solid #dde7dd; }
.home .who-card--team { background: var(--surface); border: 1px solid var(--line); }
.home .who-photo { border-radius: var(--radius); overflow: hidden; height: 200px; }
.home .who-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home .who-card h3 { font-weight: 500; font-size: 24px; margin: 0 0 8px; }
.home .who-card p { font-size: 15px; color: var(--ink-mute); margin: 0 0 18px; }

/* ---------- waitlist ---------- */
.home .waitlist { padding-top: 40px; padding-bottom: 8px; }
.home .wl-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sage-deep) 0%, #3f5648 100%);
  border-radius: var(--radius-2xl); padding: 52px 44px; color: #faf8f4;
}
.home .wl-glow {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.16), transparent 70%);
  top: -130px; right: 8%; pointer-events: none;
}
.home .wl-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.home .wl-copy .kicker { color: #cfe0d4; }
.home .wl-copy h2 { color: var(--surface); font-weight: 500; font-size: 34px; letter-spacing: -0.015em; margin: 0 0 12px; line-height: 1.12; }
.home .wl-copy p { font-size: 15.5px; color: rgba(255, 255, 255, 0.9); margin: 0; max-width: 380px; }
.home .wl-form { background: var(--surface); border-radius: 20px; padding: 26px; color: var(--ink); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.45); }
.home .wl-form .row { display: flex; flex-direction: column; gap: 13px; }
.home .wl-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); margin-bottom: 6px; }
.home .field {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 13px 15px; font-family: inherit; font-size: 15px; color: var(--ink);
  width: 100%; min-height: var(--target-min);
}
.home .field:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(94, 124, 107, 0.2); }
.home .field::placeholder { color: #cfc8ba; }
.home .wl-done { margin: 4px 0 0; font-size: 13.5px; color: var(--sage-deeper); text-align: center; min-height: 1.2rem; }
.home .wl-fineprint { margin: 2px 0 0; font-size: 10px; color: #8a857c; text-align: center; letter-spacing: 0.02em; }

/* ---------- footer ---------- */
.home .site-foot {
  padding-top: 44px; padding-bottom: 56px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 18px;
  border-top: 1px solid var(--line); margin-top: 40px;
}
.home .foot-brand { display: flex; align-items: center; gap: 10px; }
.home .foot-brand img { height: 26px; width: auto; display: block; }
.home .foot-brand span { font-size: 13px; color: var(--ink-mute); margin-left: 6px; }
.home .foot-nav { display: flex; gap: 24px; font-size: 14px; }
.home .foot-nav a { color: var(--ink-soft); text-decoration: none; }
.home .foot-nav a:hover { color: var(--sage-deeper); }
.home .foot-note { flex-basis: 100%; font-size: 13px; color: var(--ink-mute); line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .home .grid3, .home .who-grid, .home .wl-grid { grid-template-columns: 1fr; }
  .home .hero-h1 { font-size: 42px; }
  .home .how-row { flex-direction: column; }
  .home .how-photo { flex: 0 0 220px; }
  .home .flow-row { flex-direction: column; min-height: 0; }
  .home .flow-text { width: 100%; margin-left: 0; padding-bottom: 24px; }
  .home .flow-phone {
    position: relative; height: auto; width: 78%; max-width: 300px;
    margin: 0 auto; left: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .home .flow-dash { position: relative; right: 0; width: 100%; max-width: none; margin-top: 24px; }
  .home .feat-head h2 { white-space: normal; }
}
@media (max-width: 480px) {
  .home .wrap { padding-left: 20px; padding-right: 20px; }
  .home .hero-inner { padding: 64px 20px 72px; }
  .home .feat-card { padding: 32px 24px 0; }
  .home .wl-panel { padding: 36px 24px; }
  .home .cta, .home .btn-ghost, .home .nav-btn { width: 100%; }
  .home .hero-ctas { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .home .lift, .home .cta, .home .navabout .panel { transition: none; }
  .home { scroll-behavior: auto; }
}
