/* Landing page, public pages, auth */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: var(--r-s); background: var(--btn); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 15px; line-height: 1; }
.logo-word b { font-weight: 800; }
.logo-word { font-weight: 500; }

.l-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.l-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.l-nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.l-links { display: none; }
.l-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.l-links a:hover { color: var(--accent-text); text-decoration: none; }
.l-nav-end { display: flex; align-items: center; gap: 8px; }
.l-menu { display: inline-grid; color: var(--text); }
.l-links.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; gap: 0; box-shadow: var(--shadow); }
.l-links.open a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
.l-m-only { display: block; }
@media (max-width: 599px) { .l-signin { display: none; } .l-nav-end .seg { display: none; } }
@media (min-width: 900px) {
  .l-links { display: flex; gap: 28px; }
  .l-menu, .l-m-only { display: none; }
}

/* Hero */
.l-hero { padding-top: clamp(40px, 8vw, 96px); overflow: hidden; }
.l-h1 { font-size: clamp(2.4rem, 10.5vw, 7.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: .94; }
.l-hero-row { display: grid; gap: 28px; margin-top: clamp(24px, 4vw, 44px); align-items: end; }
.l-lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.45; color: var(--muted); max-width: 34ch; }
.l-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.l-cta .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
@media (min-width: 860px) { .l-hero-row { grid-template-columns: 1fr auto; } }

/* Dashboard preview: the real component styles on the dark theme */
.l-preview { margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 56px) 0 clamp(32px, 6vw, 72px); background: var(--pastel-soft); }
.pv { display: grid; gap: 28px; }
.pv-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pv-h { font-size: 15px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; margin-bottom: 4px; color: var(--muted); }
@media (min-width: 860px) { .pv { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; } .pv-side { padding-top: 6px; } }

/* Sections */
.l-sec { padding: clamp(64px, 9vw, 120px) 0; }
.l-soft { background: var(--pastel-soft); }
.l-h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -0.035em; margin-bottom: clamp(28px, 5vw, 56px); text-wrap: balance; }

.steps { display: grid; gap: 28px; }
.steps li { border-top: 1px solid var(--border-strong); padding-top: 18px; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pastel); color: var(--on-pastel); font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -0.015em; }
.steps p { color: var(--muted); font-size: 15px; max-width: 30ch; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.rates li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border-strong); align-items: baseline; }
.rates li:last-child { border-bottom: 1px solid var(--border-strong); }
.rate-amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; }
.rates h3 { font-size: 18px; margin-bottom: 4px; letter-spacing: -0.01em; }
.rates p { color: var(--muted); max-width: 56ch; }
.l-note { margin-top: 24px; color: var(--muted); max-width: 62ch; }
@media (min-width: 720px) { .rates li { grid-template-columns: 240px 1fr; gap: 40px; } }

.l-trust { background: var(--bg); color: var(--text); padding: clamp(64px, 9vw, 112px) 0; }
.l-trust-in { display: grid; gap: 40px; align-items: center; }
.l-trust .l-h2 { margin-bottom: 18px; max-width: 14ch; }
.trust-act { border: 1px solid var(--border); border-radius: var(--r-l); padding: 6px 24px; background: var(--surface); }
@media (min-width: 900px) { .l-trust-in { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

.l-faq { display: grid; gap: 24px; }
.l-faq .l-h2 { margin-bottom: 0; }
details { border-top: 1px solid var(--border-strong); }
details:last-child { border-bottom: 1px solid var(--border-strong); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
summary:hover { color: var(--accent-text); }
details p { color: var(--muted); padding: 0 0 24px; max-width: 60ch; }
@media (min-width: 900px) { .l-faq { grid-template-columns: 1fr 2fr; gap: 64px; } }

.l-foot { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.l-foot-in { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.l-foot nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.l-foot nav a { color: var(--muted); font-size: 14px; }
.l-foot nav a:hover { color: var(--text); }

/* Shared activity list (landing preview and app) */
.act li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.act li:last-child { border-bottom: 0; }
.act-t { font-weight: 600; font-size: 15px; }
.act-d { color: var(--muted); font-size: 13px; }
.act-a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.act-a.out, .out { color: var(--muted); }
.act-a.pend { color: var(--muted); font-weight: 500; }
.act-new { animation: rowin .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ico.draw path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .45s .05s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); background: var(--accent-soft); } }

/* Auth and public pages */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.auth-main { flex: 1; display: flex; justify-content: center; padding: 8px 20px 56px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 680px; }
.auth-h { font-size: clamp(1.7rem, 5vw, 2.25rem); letter-spacing: -0.035em; margin-bottom: 8px; text-wrap: balance; }
.auth-sub { margin-bottom: 24px; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 15px; }
.demo-box { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.demo-box .hint { margin-bottom: 10px; }
@media (min-width: 640px) { .auth-main { padding-top: 32px; } .auth-card { border: 1px solid var(--border); border-radius: var(--r-l); padding: 40px; align-self: flex-start; } }

.stepper { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 28px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 12px; }
.stepper li[aria-current="step"] { color: var(--text); }
.stepper li[aria-current="step"] span { background: var(--btn); border-color: var(--btn); color: var(--on-accent); }
.stepper li.done span { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
@media (max-width: 479px) { .stepper li:not([aria-current]) { font-size: 0; gap: 0; } }

.vstate { margin: 16px 0 0; }
.vstate li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--muted); }
.vstate li[data-done="true"] { color: var(--ok); }
.vstate.big li { font-size: 16px; padding: 8px 0; }
.submitted-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin-bottom: 18px; }
.submitted-ico .ico { width: 24px; height: 24px; }
.prose p { margin-bottom: 14px; color: var(--muted); max-width: 62ch; }
.prose h2 { font-size: 20px; margin: 24px 0 10px; }
.prose b { color: var(--text); }

.pp-handle { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: -0.035em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pp-handle .badge { font-family: var(--font-body); letter-spacing: 0; }
.pp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 24px 0; border-top: 1px solid var(--border); }
.pp-stats div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.pp-stats dt { color: var(--muted); font-size: 13px; }
.pp-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
@media (min-width: 640px) { .pp-stats { grid-template-columns: repeat(4, 1fr); } .pp-stats div { border-bottom: 0; } }

@media (max-width: 379px) { .l-nav-end > .btn { display: none; } }
