/* Self-hosted fonts (Phase 2) — replaces fonts.googleapis.com CDN */
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/nunito-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/nunito-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/nunito-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-sans-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/nunito-sans-900.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/fraunces-600.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/fraunces-700.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/fraunces-800.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/fraunces-900.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600; font-display: swap; src: url('/assets/fonts/fraunces-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/fraunces-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 800; font-display: swap; src: url('/assets/fonts/fraunces-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 900; font-display: swap; src: url('/assets/fonts/fraunces-900-italic.woff2') format('woff2'); }

/* =====================
   RESET & TOKENS
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #192133;
  --navy-mid:   #253D5B;
  --navy-deep:  #0D1720;
  --blue:       #3A78C9;
  --blue-hover: #2D65B0;
  --blue-light: #A8C8F0;
  --blue-pale:  #E8EDF4;
  --yellow:     #EED202;
  --gray-bg:    #F2F4F7;
  --gray-light: #F8F9FB;
  --text:       #192133;
  --text-mid:   #4A5A72;
  --text-muted: #8A9BB8;
  --border:     #D8E0EC;
  --white:      #FFFFFF;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Nunito Sans', sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(24px, 5vw, 64px);
  --pad-y: clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible,
.community :focus-visible,
.about :focus-visible,
.cta-section :focus-visible,
#nav :focus-visible,
footer :focus-visible {
  outline-color: var(--yellow);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-avatar, .cta-avatar, .error-avatar { animation: none; }
  .marquee-track { animation: none; }
}


/* =====================
   LAYOUT HELPERS
===================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* =====================
   SCROLL REVEAL
===================== */
.rv {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(.16,1,.3,1),
              transform 0.75s cubic-bezier(.16,1,.3,1);
}
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

/* =====================
   NAV
===================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  padding: 22px 0;
  transition: padding .35s ease, background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}

#nav.solid {
  background: rgba(13, 23, 32, 0.94);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: rgba(58,120,201,.18);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 700; font-size: 22px;
  color: var(--white);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.nav-logo img { width: 36px; height: 36px; flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.65);
  font-size: 14px; font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-btn {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background .2s, transform .2s !important;
}
.nav-btn:hover { background: var(--blue-hover) !important; transform: translateY(-1px); }

.nav-link-signin {
  color: rgba(255,255,255,.55) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.nav-link-signin:hover { color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all .3s ease;
}

/* Mobile overlay menu */
#mob-menu {
  position: fixed; inset: 0;
  background: var(--navy-deep);
  z-index: 900;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 36px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
#mob-menu.open { transform: none; }
#mob-menu a {
  font-family: var(--ff-display);
  font-size: 38px; font-weight: 700;
  color: var(--white); letter-spacing: -.02em;
  transition: color .2s;
}
#mob-menu a:hover { color: var(--yellow); }
#mob-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white); cursor: pointer; padding: 8px;
}

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  padding-top: 90px;
}

/* Dot grid */
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(58,120,201,.22) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .45;
  pointer-events: none;
}

/* Radial glow behind avatar */
.hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 65%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(58,120,201,.2) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: var(--pad-y) 0;
}


.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}
.hero-h1 em { font-style: italic; color: var(--yellow); }

.hero-sub {
  font-size: clamp(16px, 1.5vw, 18px);
  color: rgba(255,255,255,.6);
  line-height: 1.72;
  max-width: 420px;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700; font-size: 15px;
  letter-spacing: .01em;
  transition: all .25s ease;
}

.btn-blue {
  background: var(--blue); color: var(--white);
}
.btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58,120,201,.4);
}

.btn-outline {
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.18);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.38);
  color: var(--white);
  background: rgba(255,255,255,.05);
}
.btn-outline svg { transition: transform .2s; }
.btn-outline:hover svg { transform: translateX(3px); }

.btn-yellow {
  background: var(--yellow); color: var(--navy);
  font-weight: 800; font-size: 16px;
  padding: 15px 38px; border-radius: 12px;
}
.btn-yellow:hover {
  background: #FFE000;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(238,210,2,.35);
}

/* Avatar visual */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
}

.hero-avatar {
  width: clamp(260px, 33vw, 460px);
  position: relative; z-index: 2;
  animation: levitate 5s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.55));
}
@keyframes levitate {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}



/* =====================
   MARQUEE
===================== */
.marquee-wrap {
  background: var(--blue);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0 28px;
  white-space: nowrap;
  color: var(--white);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.marquee-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,.45);
  border-radius: 50%; flex-shrink: 0;
}


/* =====================
   SHARED SECTION HEADERS
===================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block; width: 18px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.eyebrow-light { color: var(--blue-light); }
.eyebrow-light::before { background: var(--blue-light); }

.section-h {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-h em { font-style: italic; color: var(--blue); }
.section-h-light { color: var(--white); }
.section-h-light em { color: var(--yellow); }

.section-p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 520px;
}

/* =====================
   FEATURES
===================== */
.features {
  padding: var(--pad-y) 0;
  background: var(--gray-light);
}

.features-head { margin-bottom: 60px; }
.features-head .section-p { margin-top: 14px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.f-card {
  background: var(--white);
  border-radius: 16px;
  padding: 34px 28px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s cubic-bezier(.16,1,.3,1),
              border-color .35s;
}
.f-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.f-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.08); border-color: transparent; }
.f-card:hover::after { transform: scaleX(1); }

.f-ico {
  width: 50px; height: 50px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.f-ico svg { width: 22px; height: 22px; stroke: var(--blue); }

.f-title {
  font-family: var(--ff-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text);
  margin-bottom: 10px;
}

.f-desc { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* =====================
   HOW IT WORKS
===================== */
.hiw {
  padding: var(--pad-y) 0;
  background: var(--white);
  overflow: hidden;
}

.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.steps { display: flex; flex-direction: column; gap: 36px; }

.step {
  display: flex; gap: 22px; align-items: flex-start;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px; top: 50px;
  width: 2px; height: calc(100% + 12px);
  background: linear-gradient(to bottom, rgba(58,120,201,.35), transparent);
}

.step-n {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 800;
  color: var(--white);
  position: relative; z-index: 1;
  transition: background .3s, box-shadow .3s;
}
.step.lit .step-n {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(58,120,201,.15);
}

.step-title {
  font-family: var(--ff-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text);
  margin-bottom: 6px;
}
.step-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

.hiw-img-wrap {
  position: relative;
}
.hiw-img-wrap img {
  border-radius: 22px;
  width: 100%;
}

/* =====================
   COMMUNITY
===================== */
.community {
  background: var(--navy-mid);
  padding: var(--pad-y) 0;
  overflow: hidden;
  position: relative;
}
.community::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(58,120,201,.2) 0%, transparent 60%);
  pointer-events: none;
}

.community-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}

.community-img {
  border-radius: 22px;
  width: 100%;
}

.community-h {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em; color: var(--white);
  margin-bottom: 18px;
}
.community-h em { font-style: italic; color: var(--yellow); }

.community-p {
  font-size: 15px; color: rgba(255,255,255,.62);
  line-height: 1.78; margin-bottom: 36px;
}

.check-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 44px;
}
.check-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: rgba(255,255,255,.82);
}
.check-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow); border-radius: 50%;
  flex-shrink: 0;
}

/* =====================
   ROLES / HANDSHAKE
===================== */
.roles {
  padding: var(--pad-y) 0;
  background: var(--gray-light);
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}

.roles-img {
  border-radius: 22px; width: 100%;
}

.role-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.rtag {
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
}
.rtag-mgr    { background: #F0EAFF; color: #5A2DA8; }
.rtag-owner  { background: #E3F2FD; color: #1565C0; }
.rtag-tenant { background: #E8F5E9; color: #2E7D32; }

.role-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 18px;
}
.role-ico {
  width: 36px; height: 36px;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.role-text { font-size: 15px; color: var(--text-mid); line-height: 1.65; }
.role-text strong { color: var(--text); font-weight: 700; }

/* =====================
   ABOUT / QUOTE
===================== */
.about {
  background: var(--navy-deep);
  padding: var(--pad-y) 0;
  position: relative; overflow: hidden;
}
.about::before {
  content: '\201C';
  position: absolute;
  font-family: var(--ff-display);
  font-size: 700px; line-height: 1;
  color: rgba(255,255,255,.014);
  top: -120px; left: -40px;
  pointer-events: none;
}

.about-center {
  max-width: 740px; margin: 0 auto;
  text-align: center; position: relative; z-index: 1;
}

.about-q {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600; font-style: italic;
  color: var(--white); line-height: 1.45;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.about-q em { font-style: normal; color: var(--yellow); }

.about-body {
  font-size: 15px; color: rgba(255,255,255,.56);
  line-height: 1.82; margin-bottom: 44px;
}
.about-company-link {
  color: var(--blue-light);
  font-weight: 600;
  transition: color .2s;
}
.about-company-link:hover { color: var(--white); }


/* =====================
   CTA
===================== */
.cta-section {
  background: var(--navy);
  padding: var(--pad-y) 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(58,120,201,.18) 0%, transparent 68%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-avatar {
  width: 150px; margin: 0 auto 28px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
  animation: levitate 5s ease-in-out infinite;
}

.cta-h {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900; color: var(--white);
  letter-spacing: -.035em; line-height: 1.08;
  margin-bottom: 18px;
}
.cta-h em { font-style: italic; color: var(--yellow); }

.cta-p {
  font-size: 17px; color: rgba(255,255,255,.58);
  max-width: 400px; margin: 0 auto 44px;
  line-height: 1.68;
}

.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

.contact-block {
  display: flex; align-items: center; justify-content: center;
  gap: 14px 28px; flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.contact-item {
  color: rgba(255,255,255,.62);
  font-size: 15px; font-weight: 600;
  transition: color .2s;
}
.contact-item:hover { color: var(--white); }
@media (max-width: 540px) {
  .contact-block { flex-direction: column; gap: 12px; }
}

/* =====================
   FOOTER
===================== */
footer {
  background: var(--navy-deep);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 21px; font-weight: 700;
  color: var(--white); letter-spacing: -.02em;
  margin-bottom: 14px;
}
.footer-logo img { width: 32px; height: 32px; }

.footer-tag {
  font-size: 14px; color: rgba(255,255,255,.38);
  line-height: 1.68; max-width: 230px; margin-bottom: 24px;
}

.fcol-h {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 18px;
}
.flinks { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.flinks a { color: rgba(255,255,255,.5); font-size: 14px; transition: color .2s; }
.flinks a:hover { color: var(--white); }

.footer-legal {
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-legal p {
  font-size: 12px;
  color: rgba(255,255,255,.32);
  line-height: 1.7;
}
.footer-legal a {
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--white); }
.footer-legal strong {
  color: rgba(255,255,255,.55);
  font-weight: 700;
}

.footer-bot {
  padding-top: 16px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.28); }
.footer-badge { font-size: 12px; color: rgba(255,255,255,.22); }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center; gap: 40px;
  }
  .hero-sub { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }

  .features-grid { grid-template-columns: 1fr; }

  .hiw-grid,
  .community-grid,
  .roles-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .community-img-wrap { order: -1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bot { flex-direction: column; text-align: center; }

}

/* =====================
   SUB-PAGE NAV OVERRIDES
===================== */
.subpage-nav {
  background: rgba(13, 23, 32, 0.94);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-color: rgba(58,120,201,.18);
}

/* =====================
   LEGAL PAGES
===================== */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px var(--pad-x) 80px;
}

.legal-content h1 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.15;
}

.legal-content .legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--blue);
  font-weight: 600;
  transition: color .2s;
}
.legal-content a:hover {
  color: var(--blue-hover);
}

.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

.legal-draft-notice {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 40px;
  font-size: 14px;
  color: #5D4037;
  line-height: 1.6;
}

/* =====================
   404 PAGE
===================== */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--pad-x) 80px;
}

.error-avatar {
  width: 150px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
  margin-bottom: 32px;
  animation: levitate 5s ease-in-out infinite;
}

.error-h {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.error-p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}
/* =====================
   FAQ
===================== */
.faq {
  padding: var(--pad-y) 0;
  background: var(--white);
}

.faq-head {
  max-width: 780px;
  margin: 0 auto 52px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(58,120,201,.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234A5A72' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform .3s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.78;
}
.faq-answer p {
  margin-bottom: 10px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* =====================
   APP STORE BADGES
===================== */
.store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-block;
  transition: transform .2s, opacity .2s;
}
.store-badges a:hover {
  transform: translateY(-2px);
  opacity: .85;
}

.store-badges img {
  height: 44px;
  width: auto;
}

.hero-badges {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .hero-badges .store-badges { justify-content: center; }
}
