/* GharPe — the reviewed home direction. All photography is served locally. */
:root {
  --ink: #17392c; --ink-2: #46594e; --ink-3: #647064;
  --bg: #f8f6ef; --card: #fffefa; --line: #dfded2;
  --brand: #163c2e; --brand-ink: #fffefa; --brand-soft: #e8eddf;
  --warn-bg: #fff3d4; --warn-line: #e7cd91; --warn-ink: #70521d;
  --bad: #a34232; --bad-soft: #faeee7; --good: #285b3c;
  --wood: #805333; --saffron: #e2761b; --saffron-ink: #b85a0c; --radius: 16px; --gutter: clamp(20px, 5.5vw, 84px);
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
a { color: var(--brand); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #6b8857; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .45em; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.2vw, 60px); }
h2 { font-size: clamp(26px, 2.6vw, 38px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
svg { vertical-align: middle; }
.home-atmosphere { position: fixed; top: 106px; right: 0; bottom: 0; width: min(56vw, 820px); z-index: -1; background: linear-gradient(90deg, var(--bg) 1%, #f8f6efb3 40%, #f8f6ef00 76%), url('/assets/home-window.webp') right center / cover no-repeat; pointer-events: none; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 5; padding: 12px 20px; border-radius: 8px; background: var(--brand); color: var(--card); }
.skip-link:focus { top: 10px; }
.demo-bar { background: #e4e9dc; border-bottom: 1px solid #d8dfd0; color: #405444; padding: 7px 20px; text-align: center; font-size: 12px; line-height: 1.5; }
header.site { background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .inner { max-width: 1440px; min-height: 84px; margin: auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font: 600 31px/1 var(--display); letter-spacing: -1.3px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 25px; height: 32px; }
.brand-tag { align-self: flex-start; margin: 2px 0 0 -4px; padding: 3px 7px; border-radius: 6px; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--saffron-ink); background: #f6ead2; }
header.site nav { display: flex; align-items: center; gap: 30px; flex: 1; }
header.site nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; position: relative; white-space: nowrap; }
header.site nav a[aria-current] { color: var(--ink); font-weight: 600; }
header.site nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
header.site form { margin: 0; }
header.site .btn { font-size: 13px; padding: 10px 20px; min-height: 42px; }
main { max-width: 1440px; padding: 48px var(--gutter) 76px; margin: auto; min-height: calc(100dvh - 244px); }
main.narrow { max-width: 750px; padding: 48px 24px 76px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); margin: 0 0 24px; }
.card.tight { padding: 22px 28px; }
.card > p { color: var(--ink-2); }
.muted { color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.eyebrow { display: block; color: var(--ink-3); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 13px 24px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: 500 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-decoration: none; text-align: center; transition: background .18s, transform .18s, border-color .18s; }
.btn:hover { background: #285441; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--brand-soft); border-color: #a2b294; }
.btn.danger { background: transparent; color: var(--bad); border-color: #e1c5b8; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; }
.btn.light { background: var(--card); color: var(--brand); border-radius: 99px; }
.btn.light:hover { background: #e8eddf; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.text-link { font-size: 14px; font-weight: 500; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d4d6ca; border-radius: 8px; color: var(--ink); background: #fffefa; }
input::placeholder, textarea::placeholder { color: #788071; }
input:focus, select:focus, textarea:focus { border-color: #6b8857; }
input[type=checkbox], input[type=radio] { width: auto; min-height: auto; accent-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { flex: 0 0 auto; margin: 4px 0 0; }
.field { margin-bottom: 22px; }
.field .hint { color: var(--ink-3); font-size: 12px; line-height: 1.6; margin-top: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.terms { margin: 24px 0; overflow: hidden; }
.terms dl { margin: 0; }
.terms div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms div.total { margin: 8px -16px; padding: 20px 16px; border: 0; border-radius: 10px; background: var(--brand-soft); }
.terms dt { margin: 0; color: var(--ink-2); font-size: 14px; }
.terms dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.terms div.total dd { font-family: var(--display); font-size: 30px; font-weight: 400; letter-spacing: -.04em; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 500; color: var(--good); background: var(--brand-soft); }
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.wait { background: #f4edda; color: #785e2e; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a { text-decoration: none; font-weight: 500; }
.rows .muted { font-size: 12px; }
.notice { padding: 16px 20px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.6; background: #f2f1e9; color: var(--ink-2); }
.notice.error { color: #803a2c; border-color: #e8c9bc; background: var(--bad-soft); }
.notice.ok { color: var(--good); border-color: #cfdcc4; background: var(--brand-soft); }
.steps { display: flex; counter-reset: journey; align-items: flex-start; gap: 0; list-style: none; padding: 0; margin: 0 0 36px; font-size: 12px; }
.steps li { counter-increment: journey; flex: 1; position: relative; text-align: center; color: var(--ink-3); padding-top: 44px; }
.steps li::before { content: counter(journey); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 1px solid #aeb4a5; position: absolute; top: 0; left: calc(50% - 15px); z-index: 1; color: var(--ink); }
.steps li::after { content: ''; height: 1px; background: #cbd0c0; position: absolute; top: 15px; left: 50%; width: 100%; }
.steps li:last-child::after { display: none; }
.steps li[aria-current] { color: var(--ink); font-weight: 600; }
.steps li[aria-current]::before { color: var(--card); background: var(--brand); border-color: var(--brand); }
footer.site { max-width: 1440px; margin: auto; padding: 24px var(--gutter) 32px; color: var(--ink-3); background: var(--bg); font-size: 11px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 32px; }
footer.site p { margin: 0; }
footer.site a { color: var(--ink-2); }
.welcome .home-atmosphere, .auth .home-atmosphere, .overview .home-atmosphere { display: none; }
.welcome main { max-width: none; padding: 0; }
.welcome-hero { background: linear-gradient(90deg, #09201624, transparent 70%), url('/assets/home-courtyard.webp') center 56% / cover; color: var(--card); min-height: 580px; height: clamp(500px, 46vw, 680px); padding: 60px max(var(--gutter), calc((100vw - 1272px)/2)); display: flex; align-items: center; }
.welcome-copy { max-width: 750px; }
.welcome-hero .eyebrow { color: #ecf0e7; letter-spacing: 0; text-transform: none; font-size: 16px; margin-bottom: 16px; }
.welcome-hero h1 { color: var(--card); font-size: clamp(48px, 5.8vw, 86px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 22px; }
.welcome-hero p { max-width: 560px; font-size: 18px; color: #f5f5ec; }
.welcome-hero .btn { padding: 16px 30px; min-height: 56px; }
.welcome-hero .text-link { display: inline-block; color: var(--card); margin-top: 20px; }
.journey-rail { display: flex; justify-content: space-between; max-width: 1272px; margin: auto; padding: 34px var(--gutter); gap: 24px; }
.journey-rail span { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.journey-rail svg { width: 46px; height: 46px; padding: 12px; background: var(--brand-soft); border-radius: 50%; flex-shrink: 0; }
.walkthrough { max-width: 1440px; margin: auto; padding: 70px var(--gutter) 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 84px; border-top: 1px solid var(--line); }
.walkthrough h2 { font-size: clamp(36px, 4vw, 54px); }
.walkthrough p { color: var(--ink-2); font-size: 14px; }
.walkthrough-list { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: walkthrough; }
.walkthrough-list li { counter-increment: walkthrough; border-top: 1px solid var(--line); padding: 18px 0 18px 40px; position: relative; font-size: 14px; }
.walkthrough-list li::before { content: '0' counter(walkthrough); position: absolute; left: 0; top: 19px; color: var(--wood); font-size: 12px; }
.walkthrough-list strong { display: block; margin-bottom: 4px; }
.walkthrough-visual { min-height: 420px; border-radius: 16px; background: url('/assets/home-window.webp') right center / cover; display: flex; align-items: center; padding: 26px; }
.walkthrough-visual .card { width: min(340px, 100%); margin: 0; padding: 28px; box-shadow: 0 12px 48px #29412512; }
.auth main { max-width: 1440px; padding: 34px var(--gutter) 56px; }
.auth-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: stretch; }
.auth-scene { border-radius: 16px; min-height: 590px; background: url('/assets/home-door.webp') 55% center / cover; padding: 42px; }
.auth-scene h2 { max-width: 340px; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.04; color: #132d20; }
.auth-scene p { max-width: 280px; font-size: 16px; color: #293d29; }
.auth-form { min-width: 0; display: flex; flex-direction: column; }
.auth-form > .card:first-child { flex: 1; margin: 0; padding: clamp(26px, 4vw, 54px); }
.auth-form .card + .card { margin: 20px 0 0; }
.auth-form h1 { font-size: clamp(36px, 3.5vw, 52px); margin-bottom: 12px; }
.auth-form form { margin-top: 28px; }
.auth-form .actions form { margin-top: 0; }
.auth-note { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.auth .field-row .field { margin-bottom: 22px; }
.overview h1 { margin-bottom: 32px; }
.overview .greeting { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.overview-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; margin-bottom: 34px; }
.overview-hero { background: linear-gradient(90deg, #102d218f, #102d211a 65%), url('/assets/home-courtyard.webp') center 58% / cover; border-radius: 14px; padding: 38px; min-height: 270px; display: flex; align-items: center; }
.overview-hero h2 { color: var(--card); max-width: 320px; font-size: 40px; line-height: 1.04; }
.overview-hero p { color: #e6eddf; font-size: 13px; }
.overview-hero .actions { margin-top: 20px; }
.overview-side { padding: 28px; background: #eef0e5; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; justify-content: center; }
.overview-side h2 { font: 600 18px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.02em; }
.overview-side .balance { margin: 4px 0 12px; font: 600 32px/1.1 var(--display); letter-spacing: -.02em; }
.overview-side p { font-size: 13px; color: var(--ink-2); }
.overview-side > div + div { margin-top: 24px; }
/* The dashboard's "Paying from" list: white rows like Recent transfers, the bank and its Default
   on one line, its actions under it as small pills the same shape as Default. */
.banks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.banks li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.bank-icon { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--ink); }
.bank-icon svg { width: 18px; height: 18px; }
.bank-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
.bank-name > span:first-child { overflow-wrap: anywhere; }
/* Floated, so Remove stays beside Make default and its confirmation opens below both. */
.bank-actions { display: flow-root; margin-top: 6px; font-size: 12px; }
.bank-actions > form { float: left; margin: 0 6px 0 0; }
.bank-actions summary, button.link { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.bank-actions summary:hover, button.link:hover { background: var(--brand-soft); border-color: #a2b294; }
.bank-actions details:not([open]) summary { color: var(--ink-3); }
.bank-actions details:not([open]) summary:hover { color: var(--bad); background: var(--bad-soft); border-color: #e1c5b8; }
.bank-actions summary { list-style: none; }
.bank-actions summary::-webkit-details-marker { display: none; }
.bank-actions details:not([open]) .if-open, .bank-actions details[open] .if-closed { display: none; }
.bank-confirm { clear: left; margin-top: 10px; padding: 12px 14px; border: 1px solid #e1c5b8; border-radius: 10px; background: var(--bad-soft); }
.overview-side .bank-confirm p { margin: 0 0 10px; color: var(--ink); }
.bank-confirm .btn { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.banks li.add { display: block; padding: 0; background: none; border: 0; }
.bank-add { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px dashed #b9c1ad; border-radius: 12px; color: var(--brand); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .18s, border-color .18s; }
.bank-add:hover { background: var(--brand-soft); border-style: solid; border-color: #a2b294; }
.bank-add .bank-icon { background: var(--card); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.section-head h2 { font: 500 18px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.01em; margin: 0; }
.recent-activity { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-bottom: 28px; }
.recent-activity .rows li { padding: 19px 0; }
.activity-name { display: inline-flex; gap: 14px; align-items: center; }
.person-initial { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--ink); font-size: 11px; flex-shrink: 0; }
.activity-meta { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.pending-rail { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; margin-bottom: 28px; }
.pending-rail h2 { font: 500 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0 0 4px; letter-spacing: 0; }
.pending-rail p { margin: 0; font-size: 12px; color: var(--warn-ink); }
.pending-rail .btn { min-height: 42px; font-size: 13px; padding: 10px 20px; }
.send main { max-width: 1440px; padding: 48px var(--gutter) 80px; }
.send h1 { max-width: 950px; margin-bottom: 34px; font-size: clamp(40px, 4.7vw, 68px); }
.send-form { max-width: 760px; }
.send .steps { max-width: 760px; }
.amount-entry { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.amount-symbol { font: 400 58px/1 var(--display); letter-spacing: -.04em; }
.amount-entry input { min-width: 0; font: 400 clamp(44px, 5vw, 68px)/1.1 var(--display); letter-spacing: -.04em; border: 0; border-radius: 0; padding: 12px 0 20px; background: transparent; }
.currency { border-radius: 8px; background: #f1efe6; padding: 8px 14px; font-size: 13px; flex-shrink: 0; }
.destination-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 0 20px; }
.destination-row select { width: min(280px, 80%); }
.send-form .btn { min-height: 56px; }
.transaction-summary h1 { font-size: 38px; margin-top: 16px; }
.transaction-summary .pill { margin-bottom: 4px; }
.transfer-exception { border-left: 3px solid var(--warn-line); }
.receipt .card { border-radius: 4px; box-shadow: 0 12px 44px #3549290d; }
.receipt h1 { font-size: 40px; }
.secure main.narrow { max-width: 620px; padding-top: 44px; }
.secure header.site { border: 0; background: transparent; }
.secure header.site nav { justify-content: flex-end; }
.secure .home-atmosphere { width: min(42vw, 560px); background-position: right center; opacity: .75; }
.secure h1 { font-size: clamp(34px, 3.2vw, 48px); }
.secure footer.site { max-width: 1272px; }
.error-code { font: 400 80px/1 var(--display); color: #869778; margin-bottom: 14px; }
.empty-state { padding: 30px 0; max-width: 520px; }
.empty-state h2 { font-size: 30px; }
/* The local chat console keeps its real controls, distinct from real WhatsApp. */
.chat main { max-width: 1080px; padding-top: 34px; }
.chat-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.chat-heading h1 { font-size: 42px; margin: 0; }
.chat-heading > .muted { margin: 0; max-width: 260px; flex-shrink: 0; padding: 6px 12px; border-radius: 8px; background: var(--bg); font-size: 12px; }
.chat-frame { min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 16px; overflow: hidden; }
.chat-frame .chat-top { display: flex; align-items: center; gap: 12px; padding: 17px 24px; border-bottom: 1px solid var(--line); background: #eef1e7; }
.chat-frame .chat-top strong { font-weight: 500; }
.chat-frame .chat-top .muted { margin-left: auto; font-size: 12px; }
.log { display: flex; flex-direction: column; gap: 16px; min-height: 300px; height: 48dvh; overflow-y: auto; padding: 28px; background: #fbfaf5; }
.msg { max-width: min(85%, 620px); padding: 14px 18px; border-radius: 12px 12px 12px 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.msg.outbound { align-self: flex-start; background: #ecefdf; }
.msg.inbound { align-self: flex-end; background: var(--brand); color: var(--card); border-radius: 12px 12px 2px 12px; }
.msg.inbound a { color: #f0f4e7; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btns button { min-height: 42px; padding: 9px 15px; border: 1px solid #aab99d; border-radius: 8px; background: #fffefa; color: var(--ink); font-size: 13px; }
.btns button:hover { background: #e3e9d7; }
.compose { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line); }
.compose input { flex: 1; min-width: 0; background: #f8f7ef; }
.compose button { min-height: 48px; padding: 12px 24px; border: 0; border-radius: 8px; background: var(--brand); color: var(--card); }
.panel { border-top: 1px solid var(--line); padding: 20px 24px; font-size: 12px; color: var(--ink-3); background: #f3f3e9; }
.scenario-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.panel select { width: auto; max-width: 100%; min-height: 42px; font-size: 12px; flex: 1 1 250px; }
.panel button { padding: 10px 14px; border: 1px solid #c7cebb; border-radius: 8px; background: var(--card); color: var(--ink); min-height: 42px; font-size: 12px; }
.chat-empty { color: var(--ink-3); text-align: center; margin: auto; max-width: 360px; font-size: 14px; }
@media (min-width: 1100px) {
  body:not(.secure):not(.auth):not(.receipt) main.narrow { margin-left: max(var(--gutter), calc((100vw - 1272px)/2 + 44px)); margin-right: auto; }
}
@media (max-width: 1000px) {
  header.site .inner { gap: 24px; }
  header.site nav { gap: 18px; }
  .auth-scene { padding: 32px; }
  .walkthrough { gap: 36px; }
  .overview-grid { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 780px) {
  header.site .inner { flex-wrap: wrap; min-height: auto; gap: 16px; }
  .brand { font-size: 28px; }
  header.site nav { order: 3; width: 100%; flex-basis: 100%; overflow-x: auto; padding: 10px 0; }
  header.site nav:empty { display: none; }
  header.site nav a[aria-current]::after { bottom: -8px; }
  .header-actions { margin-left: auto; }
  .header-actions .text-link { display: none; }  /* the footer carries the personal/business link here */
  .home-atmosphere { width: 100%; opacity: .4; top: 130px; background-size: cover; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-scene { min-height: 220px; background-position: center 42%; background-image: linear-gradient(90deg, #f8f1e2eb, #f8f1e291 68%, #f8f1e233), url('/assets/home-door.webp'); padding: 30px; }
  .auth-scene h2 { font-size: 42px; max-width: 340px; }
  .auth-scene p { max-width: 240px; font-size: 14px; }
  .auth-form > .card:first-child { min-height: auto; }
  .welcome-hero { min-height: 520px; height: auto; background-position: 62% center; background-image: linear-gradient(90deg, #102819d9, #10281980), url('/assets/home-courtyard.webp'); }
  .welcome-hero h1 { font-size: clamp(44px, 8vw, 62px); }
  .welcome-hero p { font-size: 16px; max-width: 420px; }
  .journey-rail { gap: 18px; padding: 26px var(--gutter); flex-wrap: wrap; }
  .journey-rail span { font-size: 12px; gap: 10px; }
  .journey-rail svg { width: 38px; height: 38px; padding: 9px; }
  .walkthrough { grid-template-columns: 1fr; padding-top: 40px; gap: 30px; }
  .walkthrough-visual { min-height: 350px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-hero { min-height: 280px; background-image: linear-gradient(90deg, #102d21dc, #102d2180), url('/assets/home-courtyard.webp'); }
  .pending-rail { align-items: flex-start; flex-wrap: wrap; }
  footer.site { flex-direction: column; gap: 16px; }
}
@media (max-width: 480px) {
  main, main.narrow, .auth main, .send main { padding: 30px 20px 48px; }
  h1 { font-size: 36px; }
  .card, .card.tight { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .terms div { flex-direction: column; gap: 5px; }
  .terms dd { text-align: left; }
  .steps { margin-bottom: 28px; }
  .steps li { font-size: 10px; padding-top: 38px; }
  .steps li::before { width: 26px; height: 26px; left: calc(50% - 13px); }
  .steps li::after { top: 13px; }
  .rows li { gap: 12px; flex-wrap: wrap; }
  .activity-meta { margin-left: 50px; gap: 14px; }
  .recent-activity { padding: 22px; }
  .journey-rail { flex-direction: column; }
  .walkthrough { padding: 36px 20px 48px; }
  .auth-scene { padding: 26px; min-height: 200px; }
  .auth-scene h2 { font-size: 38px; max-width: 240px; }
  .auth-form > .card:first-child { padding: 26px; }
  .send h1 { font-size: 40px; }
  .amount-symbol { font-size: 44px; }
  .overview-hero { padding: 28px; }
  .overview-hero h2 { font-size: 36px; }
  .secure main.narrow { padding: 26px 18px 48px; }
  .chat-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .chat-heading h1 { font-size: 36px; }
  .log { padding: 20px 16px; }
  .msg { max-width: 94%; }
  .compose { padding: 16px; gap: 8px; }
  .compose button { padding: 12px 16px; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; color: #17261d; }
  .home-atmosphere, .skip-link, .demo-bar, header.site, footer.site, .actions, .steps { display: none !important; }
  main, main.narrow { max-width: none; margin: 0; padding: 0; min-height: auto; }
  .card, .receipt .card { box-shadow: none; border: 0; padding: 0; }
  .terms div.total { background: transparent; border-block: 1px solid #bbb; }
}

/* Reaching India (reachingIndia() in site.ts): the turning globe above three stops. The canvas shows
   only once assets/globe.js runs; the stops alone tell the whole story. */
.reach { margin: 0; --globe-land: #b4c4a5; --globe-india: var(--saffron); }
.reach canvas { display: none; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; transition: opacity .3s; }
.reach.live canvas { display: block; }
.reach ol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reach li { position: relative; padding-top: 24px; font-size: 14px; line-height: 1.45; color: var(--ink-2); transition: opacity .5s; }
.reach li::before { content: ''; position: absolute; z-index: 1; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--saffron); background: var(--saffron); transition: background .4s; }
.reach li:not(:last-child)::after { content: ''; position: absolute; top: 6px; left: 14px; right: -14px; height: 2px; background: var(--line); }
.reach strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.reach[data-stage] li { opacity: .45; }
.reach[data-stage] li::before { background: var(--bg); }
.reach[data-stage="0"] li:nth-child(1), .reach[data-stage="1"] li:nth-child(-n+2), .reach[data-stage="2"] li { opacity: 1; }
.reach[data-stage="0"] li:nth-child(1)::before, .reach[data-stage="1"] li:nth-child(-n+2)::before, .reach[data-stage="2"] li::before { background: var(--saffron); }
@media (max-width: 640px) {
  .reach ol { grid-template-columns: 1fr; gap: 14px; }
  .reach li { padding: 0 0 0 26px; }
  .reach li::before { top: 4px; }
  .reach li:not(:last-child)::after { top: 18px; bottom: -14px; left: 6px; right: auto; width: 2px; height: auto; }
}
