/* UI fidelity refresh v3 */
body { background: #f8fbfd; }
.site-header {
  position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(220,228,234,.92); backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; min-height: 76px;
  display: flex; align-items: center; gap: 1.2rem; position: relative;
}
.brand { margin-right: auto; display: inline-flex; align-items: center; }
.brand-logo { width: 196px; height: auto; display: block; }
.desktop-nav { display: flex; align-items: center; gap: 1.3rem; }
.desktop-nav a { color: #374957; text-decoration: none; font-size: .88rem; font-weight: 700; padding: .4rem 0; position: relative; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; border-radius: 999px; background: var(--brand-secondary); transition: right .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { right: 0; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--brand-primary); }
.desktop-actions { display: flex; align-items: center; gap: .8rem; }
.menu-toggle, .tablet-menu { display: none; }
.menu-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-default); background: #fff; color: var(--brand-primary); cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; display: block; margin: 5px auto; background: currentColor; border-radius: 99px; transition: .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tablet-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 2rem));
  padding: 1rem; border: 1px solid var(--border-default); border-radius: 22px; background: linear-gradient(180deg,#133b64,#0d2e4e);
  box-shadow: 0 26px 60px rgba(10,35,60,.24);
}
.tablet-menu.is-open { display: block; }
.tablet-menu-head img { width: 160px; filter: brightness(1.2); }
.tablet-menu nav { display: grid; gap: .35rem; margin-top: .75rem; }
.tablet-menu nav a { color: #fff; text-decoration: none; padding: .85rem .95rem; border-radius: 14px; font-weight: 700; }
.tablet-menu nav a:hover { background: rgba(255,255,255,.08); }
.tablet-actions { display: grid; gap: .7rem; margin-top: 1rem; }
.drawer-copy { margin: 1rem 0 0; color: rgba(255,255,255,.72); font-size: .82rem; text-align: center; }

.hero { padding: clamp(2rem, 5vw, 3.2rem) 0 2rem; }
.hero-home { background: radial-gradient(circle at 65% 18%, rgba(46,191,115,.08) 0, rgba(46,191,115,0) 24%), linear-gradient(180deg,#fbfeff 0%,#f2f8fc 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero-copy-wrap { max-width: 620px; }
.eyebrow, .step-label { display: inline-flex; align-items: center; padding: .55rem .9rem; border-radius: 999px; background: #e7f5ea; color: var(--brand-primary); font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.hero h1, .page-hero h1 { margin: 1rem 0 .9rem; color: var(--brand-primary); font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: .96; letter-spacing: -.04em; max-width: 9ch; }
.hero-copy, .section-intro { max-width: 60ch; color: var(--text-secondary); font-size: 1.03rem; line-height: 1.7; }
.hero-feature-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 2rem 0 2.1rem; }
.mini-feature { display: grid; gap: .55rem; }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; box-shadow: 0 10px 24px rgba(18,59,99,.10); }
.feature-icon.green { background: linear-gradient(160deg,#16945b,#2ebf73); color: #fff; }
.feature-icon.blue { background: linear-gradient(160deg,#2b86ff,#2564d8); color: #fff; }
.mini-feature h3 { margin: 0; color: var(--brand-primary); font-size: 1.02rem; line-height: 1.25; }
.mini-feature p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.hero-actions { display: flex; align-items: center; gap: .95rem; flex-wrap: wrap; }
.link-arrow { color: var(--brand-primary); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(18,59,99,.2); padding-bottom: .15rem; }
.hero-photo-frame { position: relative; min-height: 610px; display: grid; align-items: center; }
.hero-photo-frame::before, .hero-photo-frame::after { content: ''; position: absolute; border-radius: 50%; background: rgba(128,201,145,.22); z-index: 0; }
.hero-photo-frame::before { width: 260px; height: 260px; top: 15px; right: 30px; }
.hero-photo-frame::after { width: 220px; height: 220px; bottom: 35px; left: 20px; }
.hero-photo-shell { position: relative; z-index: 1; border-radius: 34px; overflow: hidden; box-shadow: 0 28px 70px rgba(17,46,73,.12); }
.hero-photo-shell img { width: 100%; height: 610px; object-fit: cover; display: block; }
.floating-card { position: absolute; right: -4%; bottom: 8%; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; min-width: min(88%, 360px); background: rgba(255,255,255,.98); padding: 1.1rem 1.2rem; border-radius: 24px; border: 1px solid rgba(220,228,234,.9); box-shadow: 0 18px 45px rgba(17,46,73,.15); }
.floating-mark, .floating-growth { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #e7f6ec; color: var(--brand-secondary); font-size: 1.25rem; }
.floating-card h3 { margin: 0; color: var(--brand-primary); font-size: 1.05rem; line-height: 1.18; }
.floating-card p { margin: .35rem 0 0; color: var(--text-muted); font-size: .86rem; }

.page-hero { padding: 2.6rem 0 1rem; }
.content-narrow { max-width: 820px; }
.about-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 2rem; align-items: center; }
.about-photo-card { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-md); }
.about-photo-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.about-values-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; }
.value-card { background: #fff; border: 1px solid var(--border-default); border-radius: 24px; padding: 1.3rem; box-shadow: var(--shadow-sm); }
.value-card h3 { margin: .95rem 0 .45rem; color: var(--brand-primary); }
.value-card p { margin: 0; color: var(--text-secondary); }

.timeline-list { display: grid; gap: 1rem; }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid rgba(220,228,234,.85); }
.step-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ec; color: var(--brand-secondary); font-weight: 800; }
.timeline-item h3 { margin: 0 0 .25rem; color: var(--brand-primary); font-size: 1.08rem; }
.timeline-item p { margin: 0; color: var(--text-secondary); }

.faq-list { display: grid; gap: .9rem; }
.faq-item { border: 1px solid var(--border-default); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 1.1rem 1.2rem; color: var(--brand-primary); font-weight: 760; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: #7d8b97; font-size: 1.2rem; transition: transform .2s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--text-secondary); }

.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 2rem; align-items: start; padding-top: 2.4rem; }
.contact-copy { padding-top: .6rem; }
.contact-points { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-point { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; }
.contact-point h3 { margin: 0 0 .2rem; color: var(--brand-primary); }
.contact-point p { margin: 0; color: var(--text-secondary); }
.contact-card { border: 1px solid var(--border-default); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); padding: 1.35rem; display: grid; gap: 1rem; }

.auth-page { padding: 2rem 0 2.5rem; }
.auth-shell { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.auth-shell-register { max-width: 620px; }
.auth-shell-login { max-width: 540px; }
.auth-card { border: 1px solid var(--border-default); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); padding: 1.4rem; }
.auth-card-heading h1, .auth-card-heading h2 { margin: .4rem 0 .4rem; color: var(--brand-primary); font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.02; letter-spacing: -.03em; }
.auth-card-heading p { margin: 0; color: var(--text-secondary); }
.auth-center { text-align: center; }
.auth-card-heading-compact h2 { font-size: clamp(1.9rem, 3vw, 2.45rem); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.25rem; }
.field-group { display: grid; gap: .45rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field-group label { font-size: .84rem; font-weight: 760; color: #33424d; }
.input-with-icon, .phone-input { position: relative; }
.input-with-icon > span, .phone-input > .phone-flag { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: #6a7784; font-size: .95rem; pointer-events: none; }
.field-group input, .field-group textarea, .field-group select { width: 100%; min-height: 52px; border: 1px solid var(--border-default); border-radius: 12px; padding: .86rem .9rem; background: #fff; color: var(--text-primary); font-size: .96rem; outline: none; transition: border .16s ease, box-shadow .16s ease; }
.input-with-icon input, .phone-input input { padding-left: 2.6rem; }
.field-group input:focus, .field-group textarea:focus, .field-group select:focus { border-color: #a8c3db; box-shadow: 0 0 0 4px rgba(18,59,99,.08); }
.field-group textarea { min-height: 150px; resize: vertical; }
.phone-flag { font-size: 1.05rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 5rem; }
.password-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--brand-primary); font-size: .78rem; font-weight: 800; cursor: pointer; }
.consent-stack { border: 1px solid var(--border-default); border-radius: 16px; background: #fbfcfd; display: grid; gap: .65rem; padding: 1rem; }
.consent-stack-tight { margin-top: .2rem; }
.check-row { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-secondary); font-size: .9rem; }
.check-row input { width: 17px; height: 17px; margin-top: .15rem; accent-color: var(--brand-secondary); flex: 0 0 auto; }
.check-row a { color: var(--brand-primary); }
.form-message { min-height: 1px; font-size: .88rem; }
.form-message.is-info { padding: .8rem; border: 1px solid #cae0ee; border-radius: 12px; background: #edf6fc; color: #234b67; }
.form-message.is-error { padding: .8rem; border: 1px solid #f0c6c1; border-radius: 12px; background: #fff3f1; color: #8f2219; }
.form-meta-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .88rem; }
.form-meta-right { justify-content: flex-end; }
.form-meta-row a, .auth-switch a { color: var(--brand-primary); font-weight: 700; }
.auth-switch { margin: 1rem 0 0; text-align: center; color: var(--text-secondary); }
.support-box { margin-top: 1.4rem; padding: 1rem; border: 1px solid var(--border-default); border-radius: 18px; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; background: #f7fbf8; }
.support-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #e7f6ec; font-size: 1.15rem; }
.support-box h3 { margin: 0 0 .2rem; color: var(--brand-primary); font-size: 1rem; }
.support-box p { margin: 0; color: var(--text-secondary); font-size: .9rem; }

.site-footer { background: linear-gradient(180deg,#163a62,#102b49); color: rgba(255,255,255,.92); padding: 1.5rem 0; margin-top: 3rem; }
.footer-inner { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo { width: 180px; filter: brightness(0) invert(1) saturate(0); opacity: .95; }
.footer-inner nav { display: flex; justify-content: center; gap: 1rem 1.35rem; flex-wrap: wrap; }
.footer-inner nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .88rem; }
.footer-social { display: flex; gap: .6rem; align-items: center; }
.footer-social span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .8rem; font-weight: 800; }
.copyright { grid-column: 1 / -1; text-align: right; font-size: .82rem; color: rgba(255,255,255,.8); }
.mobile-bottom-nav { display: none; }

@media (max-width: 1060px) {
  .desktop-nav, .desktop-actions { display: none; }
  .menu-toggle { display: inline-block; }
  .hero-grid, .about-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo-frame { min-height: auto; }
  .floating-card { right: 4%; left: 4%; bottom: 3%; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
  .header-inner { width: 100%; min-height: 68px; padding: 0 1rem; }
  .brand-logo { width: 174px; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .desktop-nav, .desktop-actions { display: none; }
  .hero { padding: 1.1rem 0 1.5rem; }
  .hero-grid { gap: 1.2rem; }
  .hero h1, .page-hero h1 { font-size: clamp(2.25rem, 10vw, 3.6rem); max-width: none; }
  .hero-copy, .section-intro { font-size: .98rem; }
  .hero-feature-row { grid-template-columns: 1fr; gap: 1rem; margin: 1.4rem 0 1.7rem; }
  .hero-photo-shell img { height: 330px; }
  .hero-photo-frame::before { width: 155px; height: 155px; right: 6px; top: 6px; }
  .hero-photo-frame::after { width: 140px; height: 140px; left: 8px; bottom: 14px; }
  .floating-card { position: relative; right: auto; left: auto; bottom: auto; margin: -24px 12px 0; min-width: auto; }
  .page-hero { padding: 1.8rem 0 1rem; }
  .about-values-grid { grid-template-columns: 1fr; }
  .contact-card, .auth-card { padding: 1.1rem; }
  .auth-page { padding: .5rem 0 1.2rem; }
  .auth-card-heading h1, .auth-card-heading h2 { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; gap: .9rem; }
  .field-full { grid-column: auto; }
  .site-footer { display: none; }

  .mobile-bottom-nav {
    position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5,1fr); align-items: end; padding: 8px 6px max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98); border-top: 1px solid #dce4ea; box-shadow: 0 -10px 28px rgba(20,48,72,.10); backdrop-filter: blur(14px);
  }
  .mobile-nav-item, .mobile-register { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; color: #71808c; text-decoration: none; font-size: .67rem; font-weight: 720; padding: 6px 2px 2px; }
  .mobile-nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-item.is-active { color: var(--brand-primary); }
  .mobile-nav-item.is-active::after { content: ''; position: absolute; top: 0; width: 24px; height: 3px; border-radius: 99px; background: var(--brand-secondary); }
  .mobile-register { margin-top: -30px; color: var(--brand-primary); font-weight: 800; }
  .mobile-register-button { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg,var(--brand-secondary),var(--brand-accent)); color: #fff; border: 5px solid #fff; box-shadow: 0 10px 24px rgba(22,148,91,.28); }
  .mobile-register-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .mobile-register.is-active .mobile-register-button { background: var(--brand-primary); }
}

@media (max-width: 430px) {
  .brand-logo { width: 166px; }
  .header-inner { min-height: 64px; }
  .contact-grid { gap: 1.4rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
}


/* Complete public website body v4 */
.home-trust-bar { background: #fff; border-top: 1px solid #e5edf2; border-bottom: 1px solid #e5edf2; }
.home-trust-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-trust-item { display: grid; grid-template-columns: 46px 1fr; gap: .85rem; align-items: center; padding: 1.25rem 1.4rem; border-right: 1px solid #e5edf2; }
.home-trust-item:last-child { border-right: 0; }
.home-trust-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e8f6ed; color: var(--brand-secondary); font-weight: 900; }
.home-trust-item h3 { margin: 0 0 .18rem; color: var(--brand-primary); font-size: .98rem; }
.home-trust-item p { margin: 0; color: var(--text-muted); font-size: .82rem; }

.home-section { padding: clamp(4rem,7vw,6.5rem) 0; }
.home-how-section { background: #fff; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading-row h2, .section-heading-center h2, .home-split-copy h2, .mobile-story-copy h2, .home-faq-copy h2, .final-cta-card h2 { margin: .85rem 0 .55rem; color: var(--brand-primary); font-size: clamp(2rem,4vw,3.3rem); line-height: 1.04; letter-spacing: -.035em; }
.section-heading-row h2 { max-width: 16ch; }
.section-link { color: var(--brand-primary); font-weight: 760; text-decoration: none; white-space: nowrap; }
.home-step-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.home-step-card { min-height: 220px; padding: 1.35rem; background: #f9fcfd; border: 1px solid var(--border-default); border-radius: 22px; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.home-step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.home-step-card::after { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(46,191,115,.07); right: -55px; bottom: -55px; }
.home-step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #dff4e6; color: var(--brand-secondary); font-weight: 850; }
.home-step-card h3 { margin: 1.15rem 0 .55rem; color: var(--brand-primary); font-size: 1.08rem; }
.home-step-card p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

.home-about-section { background: linear-gradient(180deg,#f3f8fb 0%,#eef6f2 100%); }
.home-split-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.home-image-panel { position: relative; }
.home-image-panel > img { width: 100%; height: 570px; object-fit: cover; display: block; border-radius: 34px; box-shadow: var(--shadow-md); }
.home-image-badge { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; padding: 1rem 1.15rem; border-radius: 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.65); backdrop-filter: blur(8px); display: grid; gap: .2rem; }
.home-image-badge strong { color: var(--brand-primary); }
.home-image-badge span { color: var(--text-secondary); font-size: .88rem; }
.home-split-copy > p:not(.eyebrow) { color: var(--text-secondary); line-height: 1.75; }
.benefit-list { display: grid; gap: 1rem; margin: 1.8rem 0 2rem; }
.benefit-item { display: grid; grid-template-columns: 36px 1fr; gap: .9rem; align-items: start; }
.benefit-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dff4e6; color: var(--brand-secondary); font-weight: 900; }
.benefit-item h3 { margin: 0 0 .22rem; color: var(--brand-primary); font-size: 1rem; }
.benefit-item p { margin: 0; color: var(--text-secondary); font-size: .92rem; }

.home-documents-section { background: #fff; }
.section-heading-center { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section-heading-center p:last-child { color: var(--text-secondary); line-height: 1.7; }
.document-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.document-card { padding: 1.35rem; border: 1px solid var(--border-default); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(18,59,99,.05); }
.document-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #edf7f1; color: var(--brand-secondary); font-size: 1.25rem; font-weight: 850; }
.document-card h3 { margin: 1rem 0 .45rem; color: var(--brand-primary); }
.document-card p { margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: .92rem; }

.home-mobile-section { background: linear-gradient(140deg,#0f3154,#173f68); color: #fff; }
.mobile-story-card { display: grid; grid-template-columns: 1fr .78fr; gap: 3rem; align-items: center; }
.mobile-story-copy .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.mobile-story-copy h2 { color: #fff; }
.mobile-story-copy > p:not(.eyebrow) { color: rgba(255,255,255,.78); line-height: 1.75; max-width: 58ch; }
.mobile-story-pills { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.mobile-story-pills span { padding: .65rem .8rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: .84rem; }
.mobile-story-visual { display: grid; place-items: center; }
.phone-preview { width: min(300px,80vw); border: 8px solid #1d2630; border-radius: 38px; background: #fff; color: var(--text-primary); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.26); }
.phone-preview-top { padding: 1rem 1rem .65rem; border-bottom: 1px solid #e5edf2; }
.phone-preview-top img { width: 140px; }
.phone-preview-body { padding: 1.7rem 1.2rem 1.3rem; display: grid; gap: .8rem; text-align: center; }
.phone-chip { justify-self: center; display: inline-flex; padding: .45rem .7rem; border-radius: 999px; background: #e5f6e9; color: var(--brand-secondary); font-size: .72rem; font-weight: 800; }
.phone-preview-body strong { color: var(--brand-primary); font-size: 1.55rem; line-height: 1.05; }
.phone-preview-body small { color: var(--text-secondary); }
.phone-preview-button { margin-top: .4rem; background: var(--brand-secondary); color: #fff; border-radius: 12px; padding: .8rem; font-weight: 800; font-size: .82rem; }
.phone-preview-nav { display: grid; grid-template-columns: repeat(5,1fr); align-items: center; padding: .65rem .4rem; border-top: 1px solid #e5edf2; color: #647583; text-align: center; }
.phone-preview-nav b { width: 48px; height: 48px; margin: -24px auto 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand-secondary); color: #fff; border: 4px solid #fff; font-size: 1.4rem; }

.home-faq-preview { background: #f7fafc; }
.home-faq-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 3rem; align-items: center; }
.home-faq-copy > p:not(.eyebrow) { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
.home-faq-list { display: grid; gap: .7rem; }
.home-faq-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--border-default); color: var(--brand-primary); text-decoration: none; font-weight: 730; }
.home-faq-list a span { color: var(--brand-secondary); font-size: 1.2rem; }

.home-final-cta { padding: 0 0 clamp(4rem,7vw,6rem); background: #f7fafc; }
.final-cta-card { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem,4vw,2.6rem); border-radius: 30px; background: linear-gradient(140deg,#e8f6ed,#f8fcff); border: 1px solid #d8e9df; }
.final-cta-card h2 { max-width: 18ch; }
.final-cta-card p:last-child { color: var(--text-secondary); max-width: 62ch; line-height: 1.7; }
.final-cta-actions { display: grid; gap: .75rem; min-width: 245px; }

/* subtle motion */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1060px) {
  .home-step-grid, .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-split-grid, .mobile-story-card, .home-faq-grid { grid-template-columns: 1fr; }
  .home-image-panel { max-width: 720px; }
  .final-cta-card { grid-template-columns: 1fr; }
  .final-cta-actions { min-width: 0; grid-template-columns: auto auto; justify-content: start; }
}

@media (max-width: 820px) {
  .home-trust-grid { grid-template-columns: 1fr; }
  .home-trust-item { border-right: 0; border-bottom: 1px solid #e5edf2; }
  .home-trust-item:last-child { border-bottom: 0; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 1rem; }
  .home-step-grid, .document-grid { grid-template-columns: 1fr; }
  .home-step-card { min-height: auto; }
  .home-image-panel > img { height: 390px; }
  .mobile-story-card { gap: 2rem; }
  .final-cta-actions { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .home-section { padding: 3.5rem 0; }
  .home-image-panel > img { height: 330px; }
  .home-image-badge { left: .8rem; right: .8rem; bottom: .8rem; }
  .phone-preview { width: min(290px,86vw); }
}


/* Reference-board fidelity corrections v7 */
.hero-home .hero-copy-wrap h1 { max-width: 10ch; }
.hero-home .hero-copy-wrap h1 span { color: var(--brand-secondary); }
.hero-home .hero-copy { max-width: 56ch; }
.hero-home .hero-photo-frame { min-height: 500px; }
.hero-home .hero-photo-shell img { height: 500px; }
.floating-card-reference { min-width: 250px; max-width: 300px; grid-template-columns: auto 1fr; }
.floating-card-reference .floating-mark { background: #e7f6ec; color: var(--brand-secondary); }
.floating-card-reference h3 { font-size: .95rem; }
.floating-card-reference p { line-height: 1.45; }
.section-subtitle { margin: -.3rem 0 .7rem; color: var(--text-muted); font-size: 1rem; }
.header-inner { min-height: 72px; }
.brand-logo { width: 205px; }

@media (max-width: 1060px) {
  .tablet-menu {
    position: fixed; inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; padding: max(1.1rem, env(safe-area-inset-top)) 1.25rem max(1.2rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg,#123b63 0%,#0d2f50 100%); overflow-y: auto; box-shadow: none; z-index: 160;
  }
  .tablet-menu.is-open { display: flex; flex-direction: column; }
  .drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .drawer-logo { width: 180px; filter: brightness(0) invert(1) saturate(0); }
  .drawer-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
  .tablet-menu nav { margin-top: 2rem; display: grid; gap: .5rem; }
  .tablet-menu nav a { color: #fff; font-size: 1.05rem; padding: .95rem .8rem; border-radius: 12px; }
  .tablet-actions { margin-top: 1rem; grid-template-columns: 1fr; }
  .drawer-copy { margin-top: auto; padding-top: 2rem; color: rgba(255,255,255,.74); text-align: center; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 64px; }
  .brand-logo { width: 162px; }
  .hero-home { padding-top: .85rem; }
  .hero-home .hero-copy-wrap { text-align: center; }
  .hero-home .eyebrow { font-size: .7rem; padding: .45rem .7rem; }
  .hero-home .hero-copy-wrap h1 { font-size: clamp(2.05rem, 9.2vw, 3rem); line-height: 1.01; max-width: 12ch; margin-left: auto; margin-right: auto; }
  .hero-home .hero-copy { font-size: .94rem; max-width: 34ch; margin-left: auto; margin-right: auto; }
  .hero-home .hero-actions { max-width: 360px; margin: 1.15rem auto 0; display: grid; gap: .7rem; }
  .hero-home .hero-actions .button { width: 100%; }
  .hero-home .hero-photo-frame { min-height: auto; margin-top: .25rem; }
  .hero-home .hero-photo-shell { border-radius: 24px; }
  .hero-home .hero-photo-shell img { height: 290px; object-fit: cover; }
  .floating-card-reference { position: relative; inset: auto; margin: -26px 16px 0; max-width: none; min-width: 0; }
  .home-trust-bar { border-top: 0; }
  .home-trust-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-trust-item { display: flex; flex-direction: column; gap: .45rem; align-items: center; text-align: center; padding: 1rem .35rem; border-right: 0; border-bottom: 0; }
  .home-trust-icon { width: 38px; height: 38px; }
  .home-trust-item h3 { font-size: .77rem; line-height: 1.15; }
  .home-trust-item p { font-size: .68rem; line-height: 1.3; }
  .home-how-section { padding-top: 2.4rem; }
}

@media (max-width: 430px) {
  .hero-home .hero-photo-shell img { height: 245px; }
  .home-trust-item p { display: none; }
  .home-trust-item h3 { font-size: .72rem; }
}


/* AUTH UI HOTFIX v8 — explicitly overrides legacy auth markup */
.auth-logo-mobile { display: none !important; max-width: 180px !important; height: auto !important; }
.auth-intro { display: none !important; }
.auth-page {
  min-height: calc(100vh - 76px - 120px);
  padding: clamp(2rem, 5vw, 4.4rem) 0;
  background: linear-gradient(180deg,#fbfdff 0%,#f4f9fc 100%);
}
.auth-shell {
  width: min(calc(100% - 2rem), 640px);
  margin: 0 auto;
  display: block !important;
}
.auth-shell-login { max-width: 520px; }
.auth-shell-register { max-width: 640px; }
.auth-card {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dce4ea;
  border-radius: 26px;
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 24px 65px rgba(17,46,73,.10);
  overflow: hidden;
}
.auth-card-heading { margin-bottom: 1.35rem; }
.auth-card-heading h1,
.auth-card-heading h2 {
  margin: 0 0 .45rem;
  color: var(--brand-primary);
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.auth-card-heading p { margin: 0; color: var(--text-secondary); }
.auth-center { text-align: center; }
.auth-form { margin-top: 1rem; }
.auth-submit { min-height: 54px; border-radius: 12px; }
.input-with-icon { position: relative; }
.input-with-icon > span {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  color: #667886; font-size: .9rem; z-index: 1; pointer-events: none;
}
.input-with-icon input { padding-left: 2.65rem !important; }
.field-group input {
  background: #fff;
  border: 1px solid #d4dee6;
}
.field-group input::placeholder { color: #9aa7b2; }
.consent-stack { border: 0; padding: .25rem 0 0; background: transparent; }
.support-box { margin-top: 1.4rem; }

/* Defensive styling for legacy list content if an old view remains cached momentarily. */
.auth-page ul { list-style: none; margin: 1.2rem 0; padding: 0; }
.auth-page ul li { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; }
.auth-page ul li::before { content: '✓'; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e9f7ee; color: var(--brand-secondary); font-weight: 900; }

@media (max-width: 820px) {
  .auth-page { min-height: auto; padding: .65rem 0 1.5rem; background: #fff; }
  .auth-shell { width: 100%; max-width: none; }
  .auth-card {
    border: 0; border-radius: 0; box-shadow: none;
    padding: 1.45rem 1rem 1.8rem;
  }
  .auth-card-heading { margin-bottom: 1.1rem; }
  .auth-card-heading h1, .auth-card-heading h2 { font-size: 2rem; }
  .auth-center { text-align: left; }
  .form-grid { grid-template-columns: 1fr !important; gap: .82rem; }
  .field-full { grid-column: auto !important; }
  .field-group input { min-height: 50px; font-size: 16px; }
  .support-box { margin-bottom: .75rem; }
}
