/* Sarthi · landing page v5. Board: Landing5 on the Sarthi design canvas. */

:root {
  --night: #0A0F2E;
  --lapis: #1D2777;
  --gold: #F2C45C;
  --gold2: #E5A93A;
  --teal: #2BB3A6;
  --emerald: #0E7A5A;
  --coral: #F26B4F;
  --cream: #F3EDE0;
  --paper: #FFFCF5;
  --ink: #121A4A;
  --ink2: #3D4470;
  --muted: #615E75;
  --mute-on-lapis: #B9C1EC;
  --line: #E0D6C0;
  --line-strong: #CBBE9F;
  --success: #0B8A5E;
  --strike: #C24E26;
  --sarthi-surface: #FFF4DA;
  --sarthi-line: #E5BE5C;
  --sarthi-ink: #7A5300;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
.coral { color: var(--coral); }

/* ── Header ── */
.top { background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.top-cta { font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.top-cta:hover { border-color: var(--gold2); }

/* ── Hero ── */
.hero { background: var(--paper); padding: clamp(40px, 6vw, 88px) 0 clamp(80px, 10vw, 140px); }
.hero-grid { display: grid; grid-template-columns: 620fr 500fr; gap: 80px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(48px, 6.7vw, 96px); line-height: .98; letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink2); }

.was li { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ring { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
.was s { font-size: clamp(19px, 1.7vw, 24px); color: #8A8698; text-decoration: none; }
.was s span {
  background: linear-gradient(var(--strike), var(--strike)) 0 58% / 100% 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.now {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 24px 28px; border-radius: 20px;
  background: var(--ink); color: var(--cream); box-shadow: 0 30px 60px -24px rgba(18, 26, 74, .55);
  font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600;
}
.tick { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--night); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Waitlist form (both copies) ── */
.join { display: flex; flex-direction: column; gap: 10px; width: min(100%, 460px); }
.join-row {
  display: flex; align-items: center; height: 60px; padding: 6px 6px 6px 24px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(18, 26, 74, .35);
}
.join-row:focus-within { box-shadow: 0 0 0 4px rgba(229, 169, 58, .45), 0 20px 40px -24px rgba(18, 26, 74, .35); }
.join input[type=email] { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.join input[type=email]:focus { outline: none; }
.join input::placeholder { color: var(--muted); opacity: 1; }
.join button {
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--gold);
  font: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.join button:hover { background: #1D2777; }
.join button:disabled { cursor: progress; opacity: .8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-status { font-size: 15px; line-height: 1.4; min-height: 0; }
.join-status:empty { display: none; }
.join.is-done .join-row { display: none; }
.join.is-done .join-status { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.join.is-error .join-status { color: var(--strike); font-weight: 600; }

/* ── Habits ── */
.habits { background: var(--cream); padding: clamp(80px, 8vw, 120px) 0 clamp(64px, 7vw, 100px); }
.habits .wrap { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { font-size: clamp(34px, 4.45vw, 64px); line-height: 1.02; text-wrap: balance; }
.section-head.ruled { border-top: 1px solid var(--line-strong); padding-top: clamp(48px, 5.5vw, 80px); }
.eb.coral { color: var(--coral); }
.eb.emerald { color: var(--emerald); }
.bridge { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; }
.habit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.habit-cards li { padding: 32px; border-radius: 24px; background: var(--paper); font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; font-weight: 600; }
.habit-cards .ink { background: var(--ink); color: var(--cream); }
.habit-cards .gold { background: var(--gold); color: var(--night); }

/* ── How it works ── */
.how { background: var(--cream); padding: 40px 0 clamp(80px, 10vw, 140px); }
.how-wrap, .steps { display: flex; flex-direction: column; gap: clamp(72px, 8.3vw, 120px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.step.flip .stage { order: -1; }
.step-text { display: flex; flex-direction: column; gap: 20px; }
.num { font-family: var(--serif); font-size: clamp(64px, 6.7vw, 96px); line-height: .8; font-weight: 600; color: var(--gold2); }
.step h3 { font-size: clamp(34px, 4.45vw, 64px); line-height: 1; }
.step-text p { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--ink2); max-width: 460px; }
.stage {
  display: flex; justify-content: center; align-items: center; min-height: 380px; padding: 24px; border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(242, 196, 92, .35), rgba(43, 179, 166, .12) 60%, transparent 75%);
}
.card { width: min(100%, 440px); border-radius: 24px; display: flex; flex-direction: column; box-shadow: 0 40px 80px -30px rgba(10, 15, 46, .55); }
.eb { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }

.plan { width: min(100%, 460px); padding: 32px; gap: 24px; background: var(--lapis); color: var(--cream); border: 1px solid rgba(160, 172, 255, .45); }
.plan .eb { color: var(--mute-on-lapis); }
.meter { display: flex; flex-direction: column; gap: 10px; }
.meter div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; }
.meter span { font-size: 15px; opacity: .65; white-space: nowrap; }
.meter i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(var(--gold), var(--gold)) 0 0 / var(--v) 100% no-repeat, rgba(243, 237, 224, .18); }

.from-sarthi { padding: 26px; gap: 16px; background: var(--sarthi-surface); border: 1px solid var(--sarthi-line); }
.who { display: flex; align-items: center; gap: 10px; color: var(--sarthi-ink); font-size: 15px; }
.who img { height: 26px; width: auto; }
.who span { font-size: 14px; opacity: .7; }
.from-sarthi p { font-family: var(--serif); font-size: clamp(19px, 1.55vw, 22px); line-height: 1.4; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.act { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--ink); color: var(--cream); }
.act.quiet { background: transparent; color: var(--sarthi-ink); }

.count { padding: 30px; gap: 18px; background: var(--paper); }
.count .eb { color: var(--emerald); }
.tiles { display: flex; gap: 10px; }
.tiles i { width: 44px; height: 44px; border-radius: 12px; border: 1.5px dashed var(--line-strong); }
.tiles i.done {
  border: 0; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat;
}
.count p { font-size: 18px; line-height: 1.45; }
.count q { font-family: var(--serif); font-size: 20px; }

/* ── Strip ── */
.strip { background: var(--night); color: var(--cream); padding: 72px 0; }
.strip ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strip li { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: clamp(24px, 2.1vw, 30px); font-weight: 600; }
.strip i { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.strip .gold { background: var(--gold); }
.strip .teal { background: var(--teal); }
.strip .coral { background: var(--coral); }

/* ── The name ── */
.name { background: var(--paper); padding: clamp(80px, 8vw, 120px) 0; }
.name-grid { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: center; }
.deva {
  font-family: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Kohinoor Devanagari', serif;
  font-size: clamp(88px, 12.5vw, 180px); line-height: 1.2; padding: .22em .04em .08em; color: var(--lapis);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .deva { background: linear-gradient(120deg, #1D2777, #0E7A5A 50%, #E5A93A); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.name-copy { display: flex; flex-direction: column; gap: 20px; }
.name-head { font-size: 34px; letter-spacing: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.name-head small { font-family: var(--sans); font-size: 18px; font-weight: 400; color: var(--muted); }
.story { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.45; }
.after { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.5; color: var(--ink2); }

/* ── Close ── */
.close { position: relative; overflow: hidden; background: linear-gradient(120deg, #F2C45C, #F26B4F); padding: clamp(96px, 8.3vw, 120px) 0; }
.close-feather { position: absolute; right: 180px; top: -30px; width: 180px; height: auto; transform: rotate(16deg); pointer-events: none; }
.close-copy { position: relative; display: flex; flex-direction: column; gap: 32px; }
.close h2 { font-size: clamp(56px, 7.65vw, 110px); line-height: .95; color: var(--night); }
.close .join { width: min(100%, 520px); }
.close .join-row { height: 64px; padding-left: 26px; border: 0; box-shadow: 0 24px 48px -20px rgba(10, 15, 46, .5); }
.close .join input[type=email] { font-size: 18px; }
.close .join button { height: 52px; padding: 0 26px; background: var(--night); }
.close .join.is-error .join-status { color: var(--night); }
.for { font-size: 15px; color: rgba(10, 15, 46, .7); }

/* ── Footer ── */
.foot { background: var(--night); color: var(--cream); padding: 40px 0; }
.foot .wrap { display: flex; align-items: center; gap: 14px; }
.foot img { height: 28px; width: auto; }
.foot-name { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.foot .grow { flex: 1; }
.foot small { font-size: 14px; opacity: .6; }

/* ── 404 and short pages ── */
.page { background: var(--paper); min-height: calc(100vh - 96px - 108px); padding: 80px 0 120px; }
.page h1 { font-size: clamp(48px, 6.7vw, 96px); line-height: 1; margin-bottom: 24px; }
.page p { font-size: 20px; line-height: 1.5; color: var(--ink2); }
.page a { font-weight: 600; color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ── Narrower than the board ── */
@media (max-width: 1023px) {
  .hero-grid, .step, .name-grid { grid-template-columns: 1fr; gap: 48px; }
  .step { gap: 32px; }
  .step.flip .stage { order: 0; }
  .habit-cards, .strip ul { grid-template-columns: 1fr; }
  .habit-cards { gap: 16px; }
  .strip ul { gap: 20px; }
  .strip { padding: 56px 0; }
  .stage { min-height: 0; padding: 40px 16px; background: radial-gradient(circle at 50% 50%, rgba(242, 196, 92, .22), rgba(43, 179, 166, .08) 60%, transparent 75%); }
  .name-grid { gap: 16px; }
  .deva { padding-block: .1em 0; }
  .close-feather { right: -24px; top: -20px; width: 120px; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; }
  .top-row { height: 72px; }
  .brand span { font-size: 24px; }
  .top-cta { font-size: 14px; }
  .join-row, .close .join-row { flex-direction: column; align-items: stretch; height: auto; padding: 0; gap: 10px; background: none; border: 0; box-shadow: none; }
  .join-row:focus-within { box-shadow: none; }
  .join input[type=email] { flex: none; height: 56px; padding: 0 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
  .join input[type=email]:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
  .join button, .close .join button { height: 52px; width: 100%; }
  .habit-cards li, .plan, .count { padding: 24px; }
  .from-sarthi { padding: 22px; }
  .now { padding: 20px; }
}

/* ── Motion: only with JS and when motion is welcome ── */
@media (prefers-reduced-motion: no-preference) {
  .js .was s span { background-size: 0 2px; animation: strike .35s ease-out forwards; }
  .js .was li:nth-child(1) s span { animation-delay: .35s; }
  .js .was li:nth-child(2) s span { animation-delay: .65s; }
  .js .was li:nth-child(3) s span { animation-delay: .95s; }
  .js .now { opacity: 0; transform: translateY(16px); animation: rise .5s cubic-bezier(.2, .7, .2, 1) 1.35s forwards; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .habit-cards .reveal:nth-child(2), .js .strip .reveal:nth-child(2) { transition-delay: .1s; }
  .js .habit-cards .reveal:nth-child(3), .js .strip .reveal:nth-child(3) { transition-delay: .2s; }
}
@keyframes strike { to { background-size: 100% 2px; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
