/* GharPe — the signed-out welcome. Loaded after app.css, only on the welcome page. */
.welcome { --wa-green: #1daa61; --wa-paper: #f3ece0; --wa-out: #d9fdd3; --wa-meta: #667781; --wa-blue: #027eb5; --wa-tick: #53bdeb;
  --after-h2: clamp(24px, 3vw, 36px); --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --ease: cubic-bezier(.16, 1, .3, 1); font-family: var(--sans); }
.welcome h1, .welcome h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.welcome h1 { font-size: clamp(40px, 5vw, 68px); }
.welcome h2 { font-size: clamp(32px, 3.6vw, 48px); }
.welcome .btn { border-radius: 10px; transition: transform .5s var(--ease), background .25s; }
.welcome .btn:hover { transform: translateY(-1px); box-shadow: inset 0 -3px 0 var(--saffron); }
.welcome main a:not(.btn) { text-decoration-color: var(--saffron); }

/* The same measure as the shared header and footer, so every left edge lines up. */
.wrap { max-width: 1440px; margin: auto; padding-inline: var(--gutter); }

/* Load-in: the hero copy arrives in order, then the conversation plays once. */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Scroll entry for everything below the fold. Hidden only once JS is present. */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(22px); }

/* Hero: copy left, the real chat component right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { margin: 0 0 22px; max-width: 11ch; }
.hero .lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { min-height: 52px; padding: 14px 24px; }
/* The hero phone: an iPhone 15 Pro's proportions (a 393 x 852 pt screen), a thin bezel, the Dynamic Island. */
.phone { --pw: min(330px, calc(100vw - 2 * var(--gutter) - 22px)); position: relative; width: calc(var(--pw) + 22px); margin: 0 auto; }
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #3a3a3c; }
.phone::before { left: -2px; top: calc(var(--pw) * .5); height: calc(var(--pw) * .17); box-shadow: 0 calc(var(--pw) * -.24) 0 #3a3a3c; }
.phone::after { right: -2px; top: calc(var(--pw) * .62); height: calc(var(--pw) * .27); }
.phone-screen { position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 393 / 852; overflow: hidden;
  border: 11px solid #1c1c1e; border-radius: calc(var(--pw) * .14 + 11px); background: #f7f7f7;
  box-shadow: 0 0 0 1.5px #5b5b5f, 0 44px 80px -48px #163c2e80; }
.phone-screen::before { content: ''; position: absolute; z-index: 2; top: calc(var(--pw) * .028); left: 50%; width: 32%; height: calc(var(--pw) * .094); border-radius: 99px; background: #000; transform: translateX(-50%); }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pw) * .045) 22px 6px 30px; font: 600 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; color: #000; }
.phone-icons { display: flex; align-items: center; gap: 5px; }
.phone-home { position: absolute; bottom: 7px; left: 50%; width: 36%; height: 5px; border-radius: 3px; background: #111; transform: translateX(-50%); }
.phone figcaption { margin: 18px auto 0; max-width: 34ch; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
/* WhatsApp's light theme on iOS, inside the phone. */
/* Type scales with the phone, as a screenshot would: 14.2px on the full 330px screen. */
.wa { font: 400 calc(var(--pw) * .043)/1.34 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #111b21; }
.wa svg { flex-shrink: 0; }
.wa-top { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px 4px; border-bottom: 1px solid #e2e2e2; color: var(--wa-green); }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; }
.wa-name { flex: 1; min-width: 0; color: #111b21; }
.wa-name strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.wa-name span { font-size: 12px; color: var(--wa-meta); }
.wa-tools { display: flex; gap: 16px; }
.wa-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 10px 12px 12px;
  background: var(--wa-paper) url("/assets/wa-wallpaper.svg") 0 0 / 260px; }
.wa-msg { position: relative; display: flow-root; max-width: 88%; padding: 6px 7px 6px 9px; border-radius: 7.5px; background: #fff; box-shadow: 0 1px .5px #0b141a21; animation: msg .5s var(--ease) both; animation-delay: calc(var(--i) * 1.1s + .8s); }
.wa-msg.in { align-self: flex-start; border-top-left-radius: 0; margin-top: 6px; }
.wa-msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 0; margin-top: 6px; }
.wa-msg::before { content: ''; position: absolute; top: 0; width: 0; height: 0; border-top: 10px solid #fff; }
.wa-msg.in::before { left: -8px; border-left: 8px solid transparent; }
.wa-msg.out::before { right: -8px; border-top-color: var(--wa-out); border-right: 8px solid transparent; }
.wa-msg p { margin: 0; max-width: none; padding-right: 10px; color: #111b21; }
.wa-msg strong { font-weight: 700; }
.wa-meta { float: right; margin: 2px 0 0 10px; font-size: 11px; line-height: 15px; color: var(--wa-meta); }
.wa-meta b { color: var(--wa-tick); font-weight: 400; letter-spacing: -3px; }
.wa-btns { display: grid; gap: 3px; width: 88%; align-self: flex-start; animation: msg .5s var(--ease) both; animation-delay: calc(var(--i) * 1.1s + 1s); }
.wa-btns span { display: block; padding: 7px; border-radius: 7.5px; background: #fff; color: var(--wa-blue); text-align: center; font-size: 1em; box-shadow: 0 1px .5px #0b141a21; }
.wa-compose { display: flex; align-items: center; gap: 10px; padding: 7px 12px calc(var(--pw) * .085); color: var(--wa-green); }
.wa-input { flex: 1; min-height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 18px; border: 1px solid #e3e3e3; background: #fff; color: #8696a0; font-size: 15px; }
.status .wa-msg { max-width: none; align-self: stretch; animation: none; min-height: 96px; }
.status .wa-msg::before { display: none; }
.status .wa-msg { border-top-left-radius: 7.5px; }

/* Each message first opens its room, pushing the older ones up as a real chat scrolls, then fades in. */
@keyframes msg { 0% { max-height: 0; margin-top: 0; opacity: 0; transform: translateY(10px); } 45% { opacity: 0; transform: translateY(10px); } 100% { max-height: 400px; } }

/* How it works: numbered steps beside the courtyard. */
.how { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.how h2 { margin: 0 0 var(--after-h2); max-width: 16ch; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.walk { list-style: none; margin: 0; padding: 0; counter-reset: walk; display: grid; gap: 8px; }
.walk li { counter-increment: walk; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.walk li::before { content: counter(walk); font: 500 40px/1 var(--sans); letter-spacing: -.04em; color: var(--saffron-ink); }
.walk strong { display: block; color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 6px; }
.how figure { margin: 0; }
.how img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 50%; border-radius: var(--radius); }

/* What you see before approving: the product's own terms table, then three plain facts. */
.before { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.before h2 { margin: 0 0 16px; max-width: 16ch; }
.before > .wrap > p { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin-bottom: var(--after-h2); }
.before-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.before .card { margin: 0; }
.before .card h3 { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.before .terms { margin: 16px 0 0; overflow: visible; }  /* app.css clips the total row's 16px bleed; let it show, inside the card's padding */
.before .card > p:last-child { margin: 16px 0 0; }
.before .terms div.total dd { font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; }
.facts div { padding: 24px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Who handles what: four plain columns under the hero. */
.rails { border-top: 1px solid var(--line); }
.rails-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 26px; }
.rails strong { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 4px; }
.rails p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.5; }

/* Every step as a message: four real status messages in a row. */
.follow { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); background: #f3f1e8; }
.follow h2 { margin: 0 0 16px; max-width: 16ch; }
.follow .sub { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin-bottom: var(--after-h2); }
.status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.status p { margin: 14px 4px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.status:nth-child(2) { margin-top: 20px; }
.status:nth-child(3) { margin-top: 40px; }
.status:nth-child(4) { margin-top: 60px; }

/* Reaching India: the words beside the turning globe (reachingIndia(), styled in app.css). */
.journey { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.journey h2 { margin: 0 0 16px; max-width: 13ch; }
.journey .sub { font-size: 18px; color: var(--ink-2); max-width: 44ch; margin: 0; }

/* Safety: the door photograph beside four plain points. */
.safe { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.safe-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.safe figure { margin: 0; }
.safe img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); }
.safe h2 { margin: 0 0 var(--after-h2); max-width: 14ch; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.plain li:last-child { border-bottom: 1px solid var(--line); }
.plain strong { display: block; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 4px; }

/* Questions: native disclosure, one column. */
.faq { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.faq h2 { margin: 0 0 var(--after-h2); }
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 300; color: var(--saffron); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 60ch; color: var(--ink-2); font-size: 16px; }

/* The close: one forest band. */
.close { background: var(--brand); color: var(--brand-ink); padding-block: clamp(56px, 7vw, 96px); }
.close h2 { color: var(--brand-ink); margin: 0 0 20px; max-width: 12ch; font-size: clamp(36px, 4.4vw, 60px); }
.close p { color: #d8e1d2; font-size: 18px; max-width: 44ch; }
.close .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.close .btn { background: var(--card); color: var(--brand); min-height: 52px; padding: 14px 24px; }
.close .btn:hover { background: #fff; }

@media (max-width: 980px) {
  .hero, .how-grid, .before-grid, .safe-grid, .journey-grid { grid-template-columns: 1fr; }
  .rails-grid, .status-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status:nth-child(n) { margin-top: 0; }
  .safe figure { order: -1; }
  .safe img { aspect-ratio: 3 / 2; }
  .hero { padding-top: 40px; }
  .hero h1 { max-width: none; }
  .how figure { order: -1; }
  .how img { aspect-ratio: 3 / 2; }
}
@media (max-width: 640px) {
  .welcome h1 { font-size: 38px; }
  .walk li { grid-template-columns: 44px 1fr; padding: 20px 0; }
  .walk li::before { font-size: 30px; }
  .hero .btn, .close .btn { width: 100%; }
  .rails-grid, .status-row { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
}
