/* Sakshi waitlist. Palette lifted from the app icon (plum gradient + white), Montserrat throughout. */

:root {
  --plum-950: #22061E;
  --plum-900: #2E0A29;
  --plum-800: #3C0D36;
  --plum-700: #4A1042;   /* banner background */
  --plum-600: #5C1552;   /* icon top */
  --plum-500: #71195F;   /* icon bottom */
  --lilac: #EBD9E8;
  --lilac-dim: #C7A6C1;
  --marigold: #F4B23E;
  --white: #FFFFFF;
  --ink: #2E0A29;
  --ink-soft: #6B4A66;
  --line: #E4D3E0;
  --field: #FBF7FA;
  --error: #B3261E;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--plum-700);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }      /* .field / .count set display, so hidden needs to win */
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }

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

/* ------------------------------------------------ header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { border-radius: 10px; }

.wordmark {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.top-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lilac);
  text-decoration: none;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}
.top-link:hover { border-bottom-color: var(--lilac); }

/* ------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 0 var(--gutter) clamp(64px, 9vw, 112px);
  background: linear-gradient(180deg, var(--plum-700) 0%, var(--plum-600) 55%, var(--plum-500) 100%);
}

/* The roof: the one bold gesture on the page. Drawn once on load. */
.roof {
  display: block;
  width: 100%;
  max-width: var(--maxw);
  height: clamp(90px, 16vw, 200px);
  margin: 8px auto 0;
  overflow: visible;
}
.roof polyline {
  fill: none;
  stroke: var(--white);
  stroke-width: 3px;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: 0.9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-roof 1.3s cubic-bezier(.65, 0, .35, 1) 0.15s forwards;
}
@keyframes draw-roof { to { stroke-dashoffset: 0; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  max-width: var(--maxw);
  margin: clamp(-24px, -2vw, -8px) auto 0;
  padding-top: clamp(16px, 3vw, 40px);
}

.pitch { padding-top: 12px; }

h1 {
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.9rem);
  line-height: 1.06;
  font-weight: 700;
  max-width: 13ch;
}

.lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--lilac);
}

.count {
  margin-top: 28px;
  font-size: 1rem;
  color: var(--lilac);
}
.count strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--marigold);
  letter-spacing: -0.02em;
}

.facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-weight: 500;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.facts li::before {           /* tiny roof as the bullet */
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2.5px solid var(--marigold);
  border-top: 2.5px solid var(--marigold);
  transform: translateY(3px) rotate(45deg);
  flex: none;
}

/* ------------------------------------------------ form panel */

.panel {
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 40px 80px -30px rgba(20, 0, 18, 0.65);
  scroll-margin-top: 24px;
}

.panel h2 { font-size: 1.6rem; }
.panel-sub { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }

form { display: grid; gap: 18px; }
form h2 + .panel-sub { margin-bottom: 4px; }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label, legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
legend { padding: 0; margin-bottom: 8px; }

.opt { font-weight: 500; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input::placeholder { color: #A48C9F; }

input:focus, select:focus {
  outline: none;
  border-color: var(--plum-500);
  box-shadow: 0 0 0 4px rgba(113, 25, 95, 0.18);
}

[aria-invalid="true"] { border-color: var(--error) !important; }

.field-msg {
  min-height: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--error);
}
.field-msg:empty { display: none; }

/* pills: radio + checkbox chips */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill { position: relative; cursor: pointer; }
.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.pill span {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--field);
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pill:hover span { border-color: var(--lilac-dim); }
.pill input:checked + span {
  background: var(--plum-700);
  border-color: var(--plum-700);
  color: var(--white);
}
.pill input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* checkboxes with text */
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--plum-700);
  cursor: pointer;
}
.check a { color: var(--plum-500); font-weight: 600; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--plum-700);
  border: 2px solid var(--plum-700);
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
form .btn { width: 100%; margin-top: 4px; }
.btn:hover { background: var(--plum-900); border-color: var(--plum-900); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-ghost {
  background: transparent;
  color: var(--plum-700);
  border-color: var(--plum-700);
}
.btn-ghost:hover { background: var(--plum-700); color: var(--white); }

.form-error {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--error);
  text-align: center;
}

/* success state */
.done { text-align: center; padding: 24px 4px; outline: none; }
.done-roof { width: 96px; height: 42px; margin: 0 auto 18px; display: block; }
.done-roof polyline { fill: none; stroke: var(--plum-700); stroke-width: 6; stroke-linecap: square; }
.done h2 { font-size: 1.7rem; }
.done p { margin: 12px auto 24px; max-width: 34ch; color: var(--ink-soft); }

/* ------------------------------------------------ how it works */

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.how h2, .privacy h2, .orgs h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.15; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--marigold);
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 10px; color: var(--lilac); max-width: 34ch; }

/* ------------------------------------------------ privacy */

.privacy { background: var(--plum-900); }
.privacy-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.privacy h2 { max-width: 16ch; }
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.promises li {
  padding: 18px 0;
  border-top: 1px solid rgba(235, 217, 232, 0.18);
  font-size: 1.05rem;
  color: var(--lilac);
}
.promises li:last-child { border-bottom: 1px solid rgba(235, 217, 232, 0.18); }

/* ------------------------------------------------ institutions */

.orgs {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  text-align: center;
}
.orgs p { margin: 16px auto 28px; max-width: 52ch; color: var(--lilac); font-size: 1.05rem; }
.orgs .btn-ghost { color: var(--white); border-color: var(--white); }
.orgs .btn-ghost:hover { background: var(--white); color: var(--plum-700); }

/* ------------------------------------------------ footer */

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid rgba(235, 217, 232, 0.18);
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--lilac-dim);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 8px; }
.foot-brand img { border-radius: 7px; }
.foot-brand .wordmark { font-size: 1.2rem; }
.foot a { color: var(--lilac); }
.foot-note { margin-top: 10px; font-weight: 600; color: var(--white); }

/* ------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; margin-top: 0; }
  h1 { max-width: 15ch; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .privacy-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .top-link { font-size: 0.82rem; text-align: right; }
  .wordmark { font-size: 1.35rem; }
  .brand img { width: 36px; height: 36px; }
  .lede { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roof polyline { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}

/* ------------------------------------------------ privacy policy page */

.policy-hero {
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--plum-700) 0%, var(--plum-600) 100%);
}
.roof-sm { height: clamp(60px, 9vw, 110px); }
.policy-head { max-width: var(--maxw); margin: clamp(-8px, -1vw, 0px) auto 0; text-align: center; }
.policy-head h1 { max-width: none; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.policy-head .lede { margin: 18px auto 0; }
.updated { margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: var(--marigold); }

.policy-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 104px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.toc { position: sticky; top: 24px; font-size: 0.9rem; }
.toc-title { font-weight: 700; margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 2px solid rgba(235, 217, 232, 0.18); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--lilac-dim); text-decoration: none; }
.toc a:hover { color: var(--white); border-left-color: var(--marigold); }

.policy { max-width: 68ch; color: var(--lilac); }
.policy section { scroll-margin-top: 24px; }
.policy section + section { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(235, 217, 232, 0.14); }
.policy h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.2; color: var(--white); margin-bottom: 16px; }
.policy h3 { font-size: 1.05rem; color: var(--white); margin: 24px 0 8px; }
.policy p + p { margin-top: 14px; }
.policy ul { margin: 14px 0; padding-left: 20px; display: grid; gap: 10px; }
.policy li::marker { color: var(--marigold); }
.policy strong { color: var(--white); font-weight: 600; }
.policy a { color: var(--white); text-underline-offset: 3px; }

.summary {
  list-style: none;
  padding: 24px 24px 24px 24px !important;
  background: var(--plum-800);
  border-radius: 18px;
  gap: 14px !important;
}
.summary li { position: relative; padding-left: 26px; color: var(--white); }
.summary li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 10px; height: 10px;
  border-left: 2.5px solid var(--marigold);
  border-top: 2.5px solid var(--marigold);
  transform: rotate(45deg);
}

.data-list { margin: 16px 0 0; display: grid; gap: 0; }
.data-list div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(235, 217, 232, 0.14); }
.data-list dt { font-weight: 700; color: var(--white); }
.data-list dd { margin: 0; }

.retention { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.95rem; }
.retention th { text-align: left; font-weight: 700; color: var(--white); padding: 10px 12px 10px 0; border-bottom: 2px solid rgba(235, 217, 232, 0.3); }
.retention td { padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(235, 217, 232, 0.14); vertical-align: top; }
.retention td:first-child { color: var(--white); font-weight: 500; width: 46%; }

.contact-card { background: var(--white); color: var(--ink); border-radius: 18px; padding: 22px 24px; display: grid; gap: 4px; }
.contact-card strong { color: var(--ink); }
.contact-card a { color: var(--plum-500); font-weight: 700; }
.emergency { margin-top: 20px !important; font-weight: 700; color: var(--white); }

@media (max-width: 900px) {
  .policy-body { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 560px) {
  .data-list div { grid-template-columns: 1fr; gap: 4px; }
  .policy-head { text-align: left; }
  .policy-head .lede { margin-left: 0; }
}
