/* Public pages: header, footer, hero and marketing sections. */

.topbar { position: sticky; top: 0; z-index: 30; background: rgba(246, 240, 227, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; font: 400 1.3rem/1 var(--f-head); color: var(--accent-strong); text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border: 1.5px solid var(--gold); border-radius: 50%; font: 400 0.8rem/1 var(--f-head); letter-spacing: 0.04em; color: var(--gold-text); }
.topnav { display: flex; align-items: center; gap: 1.5rem; }
.topnav ul { display: flex; align-items: center; gap: 1.3rem; margin: 0; padding: 0; list-style: none; }
.topnav .links a { color: var(--ink); font-weight: 600; text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.topnav .links a:hover, .topnav .links a[aria-current='page'] { border-bottom-color: var(--gold); color: var(--accent-strong); }
.langs { padding: 0.15rem 0.5rem !important; border: 1px solid var(--line); border-radius: 6px; font-size: 0.85rem; gap: 0 !important; }
.langs li + li::before { content: '·'; margin-inline: 0.4rem; color: var(--gold); }
.langs b { color: var(--accent); }
.langs span { color: var(--ink-2); }
.top-actions { display: flex; gap: 0.5rem; }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1rem; border: 1.5px solid var(--accent); border-radius: var(--radius-sm); background: transparent; color: var(--accent); font: 600 1rem var(--f-body); cursor: pointer; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 0.5rem var(--gutter) 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .topnav.open { display: flex; }
  .topnav ul.links { flex-direction: column; align-items: stretch; gap: 0; }
  .topnav .links a { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
  .langs { align-self: flex-start; }
  .top-actions .btn { flex: 1; }
}
@media (max-width: 420px) { .wordmark { font-size: 1.1rem; } }

.section { padding-block: var(--section); }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-2); max-width: 60ch; }
.section-head.center { text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.section-head.split > a { font-weight: 600; }
.page-head { padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head.center { text-align: center; }
.page-head.center p { margin-inline: auto; }
.page-head p { max-width: 62ch; }

/* hero */
.hero { padding-block: clamp(2.25rem, 5vw, 4rem); background: radial-gradient(circle at 88% 18%, rgba(160, 124, 58, 0.12), transparent 42%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); line-height: 1.08; }
.hero .lede { max-width: 34rem; margin-bottom: 1.5rem; }
.hero.parent-mode .lede { font-size: 1.4rem; }
.hero-note { margin: 0.9rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.hero .seg { margin-bottom: 1.25rem; }
.hero-visual { display: grid; gap: 1rem; justify-items: center; max-width: 29rem; justify-self: end; width: 100%; }
.hero-logo-stage { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; min-height: 16rem; overflow: hidden; padding: 1.35rem 1.4rem 2.7rem; border: 1px solid rgba(160, 124, 58, .34); border-radius: 2rem; background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .9), transparent 42%), linear-gradient(145deg, #fffaf0, #f2e8d6); box-shadow: 0 22px 45px -28px rgba(74, 21, 32, .7), inset 0 1px rgba(255, 255, 255, .92); }
.hero-logo-stage::before { content: ''; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(211, 160, 61, .24), transparent 67%); filter: blur(4px); animation: hero-logo-pulse 4.5s ease-in-out infinite; }
.hero-logo-stage::after { content: ''; position: absolute; inset: .65rem; z-index: 0; border: 1px solid rgba(122, 30, 47, .12); border-radius: 1.55rem; pointer-events: none; }
.hero-logo-animated { position: relative; z-index: 2; display: block; width: min(100%, 25rem); height: auto; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(74, 21, 32, .17)); animation: hero-logo-float 5.5s ease-in-out infinite; }
.hero-logo-caption { position: absolute; z-index: 3; right: 1.5rem; bottom: .8rem; left: 1.5rem; margin: 0; color: var(--accent-strong); font: 400 1.05rem/1.2 var(--f-head); text-align: center; letter-spacing: .02em; }
.hero-logo-orbit { position: absolute; z-index: 1; width: 62%; aspect-ratio: 1.8; border: 1px solid rgba(160, 124, 58, .34); border-radius: 50%; pointer-events: none; }
.hero-logo-orbit-a { transform: rotate(22deg); animation: hero-logo-orbit-a 12s linear infinite; }
.hero-logo-orbit-b { width: 52%; transform: rotate(-25deg); border-color: rgba(122, 30, 47, .22); animation: hero-logo-orbit-b 15s linear infinite; }
.hero-logo-spark { position: absolute; z-index: 2; width: .42rem; height: .42rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 .25rem rgba(211, 160, 61, .12), 0 0 1rem rgba(211, 160, 61, .72); animation: hero-logo-spark 3.4s ease-in-out infinite; }
.hero-logo-spark-a { top: 22%; left: 15%; animation-delay: -.8s; }
.hero-logo-spark-b { top: 34%; right: 14%; width: .3rem; height: .3rem; animation-delay: -1.9s; }
.hero-logo-spark-c { bottom: 25%; left: 22%; width: .27rem; height: .27rem; animation-delay: -2.7s; }
@keyframes hero-logo-float { 0%, 100% { transform: translateY(0) rotate(-.35deg); } 50% { transform: translateY(-7px) rotate(.35deg); } }
@keyframes hero-logo-pulse { 0%, 100% { transform: scale(.9); opacity: .62; } 50% { transform: scale(1.08); opacity: .95; } }
@keyframes hero-logo-orbit-a { from { transform: rotate(22deg) rotate(0deg); } to { transform: rotate(22deg) rotate(360deg); } }
@keyframes hero-logo-orbit-b { from { transform: rotate(-25deg) rotate(360deg); } to { transform: rotate(-25deg) rotate(0deg); } }
@keyframes hero-logo-spark { 0%, 100% { transform: scale(.7); opacity: .45; } 50% { transform: scale(1.25); opacity: 1; } }
.stack { display: grid; min-height: 30rem; }
.stack > * { grid-area: 1 / 1; width: min(100%, 19rem); }
.stack .back { justify-self: start; margin-top: 0.5rem; transform: rotate(-4deg); opacity: 0.7; }
.stack .front { justify-self: end; margin-top: 3rem; transform: rotate(2deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 34rem; }
  .stack { min-height: 0; max-width: 26rem; width: 100%; margin-inline: auto; }
  .stack .back { display: none; }
  .stack .front { justify-self: center; margin-top: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-stage::before, .hero-logo-animated, .hero-logo-orbit-a, .hero-logo-orbit-b, .hero-logo-spark { animation: none; }
}

/* quick search */
.qs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; align-items: end; padding: 1rem; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.qs .field > label, .qs legend { font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; }
.qs legend { float: left; width: 100%; margin-bottom: 0.3rem; }
.qs .pair { clear: both; display: flex; align-items: center; gap: 0.4rem; color: var(--ink-2); }
.qs .go { grid-column: 1 / -1; }
.qs.stack-form { grid-template-columns: 1fr 1fr; }
.qs.stack-form fieldset { grid-column: 1 / -1; }
@media (max-width: 760px) { .qs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .qs, .qs.stack-form { grid-template-columns: 1fr; } }

/* trust ladder */
.ladder { padding-block: 2rem; border-block: 1px solid var(--line); background: var(--surface-2); }
.ladder-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; margin-bottom: 1.25rem; }
.ladder-head h2 { margin: 0; font-size: 1.5rem; }
.ladder-head p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.rungs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rungs li { display: grid; gap: 0.2rem; align-content: start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rungs .k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.rungs p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 900px) { .rungs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rungs { grid-template-columns: 1fr; } }

/* free vs paid */
.fair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.fair > div { display: flex; flex-direction: column; padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fair > div.paid { border: 1.5px solid var(--gold); }
.fair h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.fair .price { font: 600 1rem var(--f-body); color: var(--ink-2); }
.fair .promise { margin: auto 0 0; padding-top: 0.9rem; color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 700px) { .fair { grid-template-columns: 1fr; } }

/* numbered sequence */
.seq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.seq li { position: relative; display: grid; gap: 0.3rem; align-content: start; padding-right: 1.5rem; }
.seq li::after { content: ''; position: absolute; top: 1.2rem; left: 2.9rem; right: 0.4rem; border-top: 1px dashed var(--gold); }
.seq li:last-child::after { display: none; }
.num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.5rem; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--paper); font: 400 1.1rem/1 var(--f-head); color: var(--accent-strong); }
.seq p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.seq .priv { font-size: 0.85rem; font-weight: 600; color: var(--sage); }
@media (max-width: 860px) { .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 0; } .seq li:nth-child(2n)::after { display: none; } }
@media (max-width: 480px) { .seq { grid-template-columns: 1fr; } .seq li::after { display: none; } }

.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.steps5 li { padding: 1.3rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps5 h3 { font-size: 1.12rem; }
.steps5 p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1050px) { .steps5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .steps5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .steps5 { grid-template-columns: 1fr; } }

/* privacy picker */
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.picker .opts { display: grid; gap: 0.6rem; }
.picker .opts button { display: grid; gap: 0.1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.picker .opts button span { color: var(--ink-2); font-size: 0.93rem; }
.picker .opts button[aria-pressed='true'] { border: 2px solid var(--accent); padding: calc(0.9rem - 1px) calc(1.1rem - 1px); background: var(--accent-soft); }
.picker .panel { padding: 1.25rem 1.4rem; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--paper); }
.picker dl { margin: 0; }
.picker dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.picker dt { font-weight: 600; }
.picker dd { margin: 0; text-align: right; font-weight: 600; }
.yes { color: var(--sage); }
.no { color: var(--accent); }
@media (max-width: 800px) { .picker { grid-template-columns: 1fr; } }

/* stories */
.story { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.story h3 { margin: 0 0 0.15rem; }
.story .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.timeline { display: grid; gap: 0.45rem; margin: 0; padding: 0 0 0 0.9rem; border-left: 1px dashed var(--gold); list-style: none; font-size: 0.93rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.5rem; }
.timeline li::before { content: ''; position: absolute; left: calc(-0.9rem - 4px); top: 0.55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.timeline .when { color: var(--gold-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.story blockquote { margin: auto 0 0; }
.story blockquote p { margin: 0; font: 400 1.08rem/1.5 var(--f-head); }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.team li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.9rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.avatar { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; flex: none; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--gold-soft); font: 400 1.3rem/1 var(--f-head); color: var(--accent-strong); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team span { color: var(--ink-2); font-size: 0.93rem; }
.team strong { display: block; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.browse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.browse h3 { padding-bottom: 0.5rem; border-bottom: 1px solid var(--gold); font-size: 1.12rem; }
.browse ul { margin: 0; padding: 0; list-style: none; }
.browse a { display: block; padding-block: 0.25rem; color: var(--ink); text-decoration: none; }
.browse a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 1000px) { .browse { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .browse { grid-template-columns: 1fr 1fr; } }

.tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1.75rem; color: var(--ink-2); font-weight: 600; }
.pill-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pill-links a { display: inline-block; padding: 0.3rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 400; text-decoration: none; }
.pill-links a:hover { border-color: var(--gold); color: var(--accent-strong); }

.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan.highlight { border: 1.5px solid var(--gold); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -0.8rem; left: 1.75rem; padding: 0.1rem 0.75rem; border-radius: 999px; background: var(--accent); color: var(--on-ink); font-size: 0.8rem; font-weight: 600; }
.plan .amount { font: 400 2.1rem var(--f-head); color: var(--accent-strong); }
.plan .period { color: var(--ink-2); }
.plan .ticks { flex: 1; margin: 1rem 0 1.5rem; }
.plan.current { border: 2px solid var(--sage); }

.band { padding-block: clamp(2.5rem, 5vw, 3.5rem); background: radial-gradient(circle at 92% 30%, rgba(216, 184, 120, 0.18), transparent 40%), var(--accent); color: var(--on-ink); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.band h2 { color: var(--on-ink); }
.band p { margin: 0; color: var(--on-ink-2); }

.foot { background: var(--band); color: var(--on-ink); padding-block: 2.5rem 1.5rem; font-size: 0.94rem; }
.foot .kolam { margin-bottom: 2.25rem; background-image: radial-gradient(circle, var(--gold-on-band) 1.4px, transparent 1.9px); opacity: 0.45; }
.foot a { color: var(--on-ink); text-decoration: none; }
.foot a:hover { color: var(--gold-on-band); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot-name { margin-bottom: 0.25rem; font: 400 1.4rem var(--f-head); }
.foot h2 { margin-bottom: 0.6rem; font: 700 0.75rem/1.2 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-on-band); }
.foot ul { margin: 0; padding: 0; list-style: none; line-height: 2; }
.foot .quiet { color: var(--on-ink-2); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(246, 238, 223, 0.15); color: var(--on-ink-2); font-size: 0.85rem; }
.foot-legal p { margin: 0; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.mobilebar { display: none; }
@media (max-width: 600px) {
  body.has-mobilebar { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
  .mobilebar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(74, 21, 32, 0.4); }
}

/* auth pages */
.auth { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: var(--section); }
.auth-card { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.progress { display: flex; gap: 0.35rem; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--accent); }
.step { display: grid; gap: 1.05rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.step > legend { padding: 0; margin-bottom: 0.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions .btn { flex: 1 1 9rem; }
.confirm-box { display: grid; gap: 0.25rem; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--sage-soft); }
.confirm-box span { color: var(--ink-2); }
.otp { letter-spacing: 0.5em; font-size: 1.4rem !important; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

/* Branded member entry: compact cards, a confident first impression, and the same OTP flow underneath. */
.auth-login { grid-template-columns: minmax(0, 1fr) minmax(25rem, 30rem); align-items: center; max-width: 1120px; }
.auth-register { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; max-width: 1180px; }
.auth-intro { min-width: 0; }
.auth-showcase { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: 1.8rem; color: #fffaf0; background: radial-gradient(circle at 88% 12%, rgba(211, 160, 61, .28), transparent 32%), linear-gradient(145deg, #7a1e2f, #481521 78%); box-shadow: 0 24px 44px -26px rgba(74, 21, 32, .78); }
.auth-showcase::before { content: ''; position: absolute; z-index: -1; width: 18rem; height: 18rem; right: -8rem; bottom: -9rem; border: 1px solid rgba(255, 250, 240, .2); border-radius: 50%; box-shadow: 0 0 0 1.25rem rgba(255, 250, 240, .04), 0 0 0 2.5rem rgba(255, 250, 240, .025); animation: auth-orbit 16s linear infinite; }
.auth-showcase::after { content: ''; position: absolute; z-index: -1; inset: .7rem; border: 1px solid rgba(211, 160, 61, .3); border-radius: 1.3rem; pointer-events: none; }
.auth-showcase > * { position: relative; z-index: 1; }
.auth-showcase .eyebrow { color: #e5bf70; }
.auth-showcase h1 { max-width: 13ch; margin: .65rem 0 .9rem; color: #fffaf0; font-size: clamp(2rem, 1.35rem + 2vw, 3.1rem); line-height: 1.04; }
.auth-showcase p { max-width: 34ch; margin-bottom: 0; color: rgba(255, 250, 240, .82); }
.auth-showcase-logo { display: block; width: min(100%, 18rem); height: auto; margin: 1.7rem auto 1.25rem; padding: .85rem; border-radius: 1rem; background: #fffaf0; box-shadow: 0 14px 25px -18px rgba(0, 0, 0, .6); }
.auth-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: 1.1rem; }
.auth-trust span { display: grid; gap: .18rem; padding: .6rem .55rem; border: 1px solid rgba(255, 250, 240, .18); border-radius: .7rem; color: rgba(255, 250, 240, .76); font-size: .72rem; line-height: 1.25; }
.auth-trust b { color: #e5bf70; font-size: .69rem; letter-spacing: .08em; }
.auth-switch { margin: 1rem 0 0; text-align: center; }
.auth-register .auth-intro > .field { margin: 1.4rem 0 0; }
.auth-register .auth-intro > .lede { margin-top: 1.25rem; }
.auth-register .auth-intro > .ticks { margin-top: 1.25rem !important; }
.auth-register .auth-intro > .muted { margin-top: 1rem; }
.auth-card--login { width: 100%; max-width: 30rem; justify-self: center; padding: clamp(1.35rem, 3vw, 2rem); }
.auth-card--register { width: 100%; padding: clamp(1.35rem, 3vw, 2.15rem); }
.auth-card-head { display: grid; gap: .35rem; padding-bottom: .35rem; }
.auth-card-head h2 { margin: 0; font-size: clamp(1.55rem, 1.2rem + .8vw, 2rem); }
.auth-card-head p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.auth-card--login form { gap: .95rem !important; }
.auth-card--login .btn[type="submit"] { min-height: 3rem; }
@keyframes auth-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-showcase::before { animation: none; } }
@media (max-width: 900px) {
  .auth-login, .auth-register { grid-template-columns: 1fr; max-width: 42rem; }
  .auth-login .auth-card--login { max-width: 34rem; justify-self: stretch; }
}
@media (max-width: 520px) {
  .auth { padding-block: 1.75rem 3rem; }
  .auth-showcase { padding: 1.35rem; border-radius: 1.25rem; }
  .auth-showcase h1 { font-size: 2rem; }
  .auth-showcase-logo { width: min(100%, 15rem); margin-block: 1.35rem 1rem; }
  .auth-trust span { font-size: .66rem; }
  .auth-card--login, .auth-card--register { padding: 1.15rem; }
}

/* A wide couple-photo backdrop: large enough to anchor the hero, still contained to the middle/lower area. */
.auth-page { overflow-x: hidden; background: var(--paper); }
.auth-page #main { position: relative; isolation: isolate; }
.auth-page .auth { position: relative; z-index: 2; }
.auth-marquee { position: absolute; z-index: 3; top: 54%; left: 0; width: 100%; height: clamp(22rem, 38vw, 32rem); overflow: hidden; transform: translateY(-50%); opacity: .18; mix-blend-mode: multiply; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.auth-marquee::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper), rgba(122, 30, 47, .05) 14%, rgba(122, 30, 47, .05) 86%, var(--paper)); pointer-events: none; }
.auth-marquee-track { display: flex; width: max-content; height: 100%; animation: auth-marquee-scroll 48s linear infinite; }
.auth-marquee-set { display: flex; align-items: center; gap: .85rem; padding-right: .85rem; }
.auth-marquee img { display: block; width: clamp(17rem, 24vw, 27rem); height: clamp(20rem, 33vw, 31rem); flex: none; object-fit: cover; border: 1px solid rgba(122, 30, 47, .22); border-radius: 1.2rem; filter: saturate(.82) sepia(.08); box-shadow: 0 22px 38px -20px rgba(74, 21, 32, .8); }
.auth-page[data-page="login.html"] .auth-marquee { top: 68%; height: clamp(24rem, 54vw, 38rem); }
.auth-page[data-page="register.html"] .auth-marquee { top: 44%; height: clamp(22rem, 48vw, 36rem); }
.auth-page[data-page="register.html"] .auth-marquee img { width: clamp(18rem, 26vw, 29rem); height: clamp(22rem, 38vw, 34rem); }
@keyframes auth-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px) {
  .auth-marquee { top: 40%; height: 18rem; }
  .auth-marquee img { width: 13rem; height: 15rem; }
  .auth-page[data-page="login.html"] .auth-marquee { top: 58%; height: 24rem; }
  .auth-page[data-page="register.html"] .auth-marquee { top: 34%; height: 22rem; }
  .auth-page[data-page="register.html"] .auth-marquee img { width: 15rem; height: 19rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-marquee-track { animation: none; transform: translateX(-12%); } }

/* test console */
.dbt { width: 100%; min-width: 60rem; border-collapse: collapse; font-size: 0.92rem; }
.dbt th, .dbt td { padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dbt thead th { background: var(--gold-soft); color: var(--ink-2); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dbt tr:last-child td { border-bottom: 0; }
.dbt code, .card code { font: 600 0.85rem ui-monospace, Consolas, monospace; color: var(--accent-strong); }
.scen { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: sc; }
.scen li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); counter-increment: sc; }
.scen li:last-child { border-bottom: 0; }
.scen li::before { content: counter(sc); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--gold); border-radius: 50%; font: 400 1rem/1 var(--f-head); color: var(--accent-strong); }
@media (max-width: 600px) { .scen li { grid-template-columns: 2.2rem minmax(0, 1fr); } .scen li > :last-child { grid-column: 2; justify-self: start; } }
.console-grid { display: grid; gap: 1.5rem; }
.console-grid > * { min-width: 0; }

/* ---------- We listened (research-led features) ---------- */
.listened { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.listened li { display: grid; align-content: start; gap: 0.35rem; padding: 1.2rem 1.2rem 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--surface); }
.listened .heard { margin: 0; color: var(--ink-2); font-style: italic; font-size: 0.92rem; }
.listened h3 { margin: 0.2rem 0 0; font-size: 1.15rem; color: var(--accent); }
.listened p { margin: 0; }
@media (min-width: 1100px) { .listened { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* details lists on public pages (the consent page) */
.kv { display: grid; grid-template-columns: minmax(8rem, 0.45fr) 1fr; gap: 0.45rem 1rem; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 0.1rem; } .kv dd { margin-bottom: 0.45rem; } }

/* Editorial photography: local responsive assets, independent of private profile photos. */
.editorial-photo { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.editorial-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.editorial-photo figcaption { padding: .55rem .85rem; color: var(--ink-2); font-size: .78rem; line-height: 1.4; }
.hero-photo { max-width: 29rem; justify-self: end; border-radius: 46% 46% var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-photo img { aspect-ratio: 4 / 5; object-position: 50% 35%; }
.hero-photo figcaption { text-align: center; padding-block: .75rem; }
.story-photo { flex: none; border: 0; border-radius: calc(var(--radius) / 2); }
.story-photo img { aspect-ratio: 3 / 2; }
.story-photo figcaption { padding: .45rem 0 0; font-size: .73rem; }
.journey-photo { padding-bottom: 2rem; }
.journey-photo .editorial-photo { max-width: 52rem; }
.journey-photo img { aspect-ratio: 2 / 1; object-position: 50% 42%; }
.support-photo { margin-block: 1rem; }
.auth-image { margin-top: 1.5rem; max-width: 32rem; }
.auth-image img { aspect-ratio: 3 / 2; object-position: 50% 10%; }
@media (max-width: 900px) {
  .hero-photo { justify-self: center; width: 100%; max-width: 34rem; border-radius: var(--radius); }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 10%; }
}
@media (max-width: 700px) {
  .auth-image { display: none; }
  .journey-photo img { aspect-ratio: 3 / 2; }
}


/* A warmer editorial rhythm, with consistent symbols and room to breathe. */
.visual-story { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,4vw,4rem); margin-bottom: 2rem; }
.visual-story > div { max-width: 36rem; }
.visual-story h3 { font-size: var(--step-2); }
.visual-story p { color: var(--ink-2); }
.visual-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.visual-tags span { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; color: var(--sage); background: var(--surface); font-size: .83rem; }
.rungs .visual-icon { margin-bottom: .3rem; }
.step-marker { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.step-marker .num, .step-marker .visual-icon { margin-bottom: 0; }
.seq li::after { top: 1.5rem; left: 7.2rem; }
.team-scene { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; }
.team-scene .team { grid-template-columns: 1fr; }
.team .visual-icon { margin: 0; }
.privacy-scene { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.6fr); align-items: center; gap: 2rem; }
.privacy-scene > * { min-width: 0; }
.band-photo { position: relative; overflow: hidden; isolation: isolate; }
.band-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: 75% 55%; opacity: .65; }
.band-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,var(--accent) 28%,#6b1f2ce8 49%,#4a15208c); }
.band-photo .band-inner > div { max-width: 52rem; }
.band-photo .visual-icon { background: #f6eedf14; border-color: #d8b87866; color: var(--gold-on-band); }
.qs .go { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.qs .go svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.browse .visual-icon { width: 2.5rem; height: 2.5rem; }
@media (prefers-reduced-motion: no-preference) {
 .story, .plan, .listened li { transition: transform .2s ease, box-shadow .2s ease; }
 .story:hover, .plan:hover, .listened li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
@media (max-width: 1000px) { .privacy-scene { grid-template-columns: 1fr; } .privacy-scene .editorial-photo { max-width: 38rem; } }
@media (max-width: 760px) { .visual-story, .team-scene { grid-template-columns: 1fr; } .visual-story > div { max-width: none; } .band-art { width: 100%; opacity: .35; } }
.band-art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }

/* An editorial browsing experience; scoped away from account and staff workflows. */
html.has-browse-experience { scroll-padding-top: 0; }
.browse-experience .wrap { max-width: 1320px; }
.browse-experience #site-header { position: sticky; top: 0; z-index: 45; }
.browse-experience .topbar { position: relative; }
.browse-experience #main h2[id] { scroll-margin-top: calc(var(--experience-header, 70px) + var(--experience-chapters, 0px) + 24px); }
.browse-experience .section-head h2 { max-width: 24ch; }
.chapter-nav { position: sticky; top: var(--experience-header, 70px); z-index: 35; background: #fffcf5f5; border-block: 1px solid var(--line); backdrop-filter: blur(12px); }
.chapter-nav .wrap { display: flex; align-items: center; gap: 1.2rem; padding-block: .7rem; }
.chapter-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); flex: none; }
.chapter-links { display: flex; gap: .5rem; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: .25rem; }
.chapter-links a { white-space: nowrap; font-size: .9rem; text-decoration: none; padding: .4rem .9rem; border-radius: 999px; color: var(--ink-2); }
.chapter-links a:hover, .chapter-links a[aria-current] { background: var(--accent); color: var(--on-ink); }
.city-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.2rem; }
.discovery-card, .next-stop { display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.explore-image { display: block; overflow: hidden; }
.explore-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.explore-copy { display: grid; position: relative; gap: .35rem; padding: 1.1rem 3rem 1.2rem 1.2rem; }
.explore-copy strong { font: 400 1.45rem/1.2 var(--f-head); color: var(--accent-strong); }
.explore-copy > span:not(.explore-arrow) { font-size: .86rem; color: var(--ink-2); }
.explore-arrow { position: absolute; right: 1rem; top: 1.2rem; font-size: 1.5rem; color: var(--gold-text); }
.explore-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: .85rem 0 0; font-size: .78rem; color: var(--ink-2); }
.explore-footnote a { font-size: .95rem; font-weight: 600; }
.life-gallery { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(2, 18rem); gap: 1.2rem; }
.life-tile { position: relative; overflow: hidden; border-radius: 18px; display: block; color: white; text-decoration: none; isolation: isolate; }
.life-tile-wide { grid-row: span 2; }
.life-tile .explore-image, .life-tile img { height: 100%; }
.life-tile img { object-position: center; }
.life-tile::after { content: ''; position: absolute; inset: 30% 0 0; z-index: 0; background: linear-gradient(transparent, #211417e8); pointer-events: none; }
.life-tile .explore-copy { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.5rem 3.2rem 1.5rem 1.5rem; }
.life-tile .explore-copy strong { color: #fffaf0; font-size: clamp(1.4rem,2.3vw,2.1rem); }
.life-tile .explore-copy > span { color: #fffaf0; }
.life-tile .explore-arrow { top: auto; bottom: 1.5rem; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.25rem; }
.next-stop .explore-image img { aspect-ratio: 2 / 1; }
.explore-next { background: var(--surface-2); border-top: 1px solid var(--line); }
.place-banner { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); max-width: 50rem; }
.place-banner img { width: 12rem; height: 7rem; object-fit: cover; border-radius: 8px; }
.place-banner p { margin-bottom: .2rem; }
.place-banner small { color: var(--ink-2); }
.reading-progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.back-to-top { position: fixed; z-index: 40; right: 1.2rem; bottom: 1.2rem; width: 2.8rem; height: 2.8rem; border: 1px solid var(--gold); border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); font: 600 1.4rem var(--f-body); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
 .discovery-card, .next-stop { transition: transform .22s ease, box-shadow .22s ease; }
 .explore-image img { transition: transform .45s ease; }
 .discovery-card:hover, .next-stop:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -18px #4a152066; }
 .discovery-card:hover img, .life-tile:hover img, .next-stop:hover img { transform: scale(1.035); }
 .experience-enter { animation: experience-arrive .55s ease both; }
 @keyframes experience-arrive { from { transform: translateY(12px); opacity: .92; } to { transform: translateY(0); opacity: 1; } }
}
@media (max-width: 1000px) { .city-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } .life-gallery { grid-template-rows: repeat(2,16rem); } }
@media (max-width: 700px) { .chapter-label { display: none; } .chapter-nav .wrap { width: 100%; padding-inline: .75rem; } .chapter-links a { font-size: .82rem; padding: .35rem .7rem; } .life-gallery { grid-template-columns: 1fr; grid-template-rows: 25rem 18rem 18rem; } .life-tile-wide { grid-row: auto; } .back-to-top { bottom: 5.2rem; } }
@media (max-width: 480px) { .city-gallery { gap: .75rem; } .discovery-card .explore-copy { padding: .9rem .75rem; } .discovery-card .explore-copy strong { font-size: 1.25rem; } .discovery-card .explore-arrow { position: static; font-size: 1.25rem; } .discovery-card .explore-copy > span:not(.explore-arrow) { font-size: .8rem; } .place-banner { align-items: stretch; gap: .8rem; } .place-banner img { width: 6rem; height: auto; } }

/* Keep the family introduction and checklist together beside the photo. */
.family-access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "photo intro" "photo details"; column-gap: clamp(2rem, 4vw, 4rem); row-gap: 1.25rem; align-items: center; }
.family-access-intro { grid-area: intro; align-self: end; min-width: 0; }
.family-access-intro > :last-child { margin-bottom: 0; }
.family-access-photo { grid-area: photo; margin: 0; }
.family-access-details { grid-area: details; align-self: start; margin: 0; }
@media (max-width: 900px) {
  .family-access { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "photo" "details"; gap: 1.5rem; }
}

/* Photos never enter the DOM when the viewer lacks permission. */
.profile-placeholder { height: 100%; min-height: 10rem; display: grid; place-items: center; color: #9e8271; background: linear-gradient(145deg, #eee5d5, #e0e8dd); }
.profile-placeholder svg { height: 90%; width: 90%; max-width: 20rem; }
.bd-photo img, .avatar img, .m-face img { object-position: 50% 35%; }
.photo-credit { position: absolute; bottom: .65rem; left: .65rem; padding: .18rem .5rem; border-radius: 4px; background: rgba(255,253,247,.94); color: var(--ink-2); font-size: .7rem; line-height: 1.4; }
.avatar > svg { width: 60%; height: 60%; }

.browse section { display: flex; flex-direction: column; align-items: stretch; }
.browse .catalog-browse-more { margin-top: .75rem; padding-top: .25rem; font-weight: 600; }

/* Keep all five browse previews and shared footer directories aligned. */
.browse section > ul { flex: 1; }
.foot .catalog-browse-more { display: inline-block; margin-top: .75rem; font-weight: 600; }
