/* ============================================================
   Homio — landing system
   Porcelain canvas · slate ink · orange + mint accents
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Quicksand:wght@400;500;600;700&display=swap');

/* ---- Tokens ---- */
:root {
  --porcelain: #F4F2EA;
  --porcelain-2: #EEEBE0;
  --surface: #FFFFFF;
  --ink: #262B33;
  --ink-strong: #191D24;
  --muted: #6A7180;
  --muted-2: #8A909C;
  --line: #E7E3D7;
  --line-soft: #EFEDE4;

  /* mint family (always available as a secondary) */
  --mint: #DAE4CD;
  --mint-soft: #E7EDDD;
  --mint-deep: #5E7C4C;

  /* category tints (from the app) */
  --tint-amber: #FBE7C9;
  --tint-amber-ink: #C98A2E;
  --tint-green: #D8EBDC;
  --tint-green-ink: #3E9C6D;
  --tint-purple: #E9E2F8;
  --tint-purple-ink: #7F56D9;
  --tint-blue: #E2E8FB;
  --tint-blue-ink: #3F62D6;

  /* accent (tweakable) — default ORANGE */
  --accent: #EE7B4E;
  --accent-strong: #E2683A;
  --accent-soft: #FCEADF;
  --accent-ink: #FFFFFF;
  --accent-text: #C2542A;

  /* type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill: 999px;

  --shadow-sm: 0 2px 8px rgba(25,29,36,.05);
  --shadow: 0 10px 30px -12px rgba(25,29,36,.14), 0 2px 8px rgba(25,29,36,.04);
  --shadow-lg: 0 30px 70px -28px rgba(25,29,36,.30), 0 8px 24px -10px rgba(25,29,36,.10);

  --maxw: 1180px;
  --ease: cubic-bezier(.2,0,0,1);

  /* subtle paper grain (URL-encoded fractal noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* accent variants */
[data-accent="mint"] {
  --accent: #5E7C4C;
  --accent-strong: #4F6A3F;
  --accent-soft: #E7EDDD;
  --accent-ink: #FFFFFF;
  --accent-text: #4C6640;
}
[data-accent="slate"] {
  --accent: #353B47;
  --accent-strong: #262B33;
  --accent-soft: #E9E8E2;
  --accent-ink: #FFFFFF;
  --accent-text: #353B47;
}

/* heading font variants */
[data-heading-font="bricolage"] { --font-display: 'Bricolage Grotesque', system-ui, sans-serif; }
[data-heading-font="quicksand"] { --font-display: 'Quicksand', system-ui, sans-serif; }

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--porcelain);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent-soft); color: var(--accent-text); }

/* copy-length helper */
[data-copy="short"] .long-only { display: none !important; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 132px) 0; }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink-strong); letter-spacing: -0.02em; line-height: 1.05; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); border-radius: 2px;
}
.eyebrow.center::before { display: none; }

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 0; }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin-top: 16px; max-width: 540px; }
.center { text-align: center; }
.center .section-head, .section-head.center { margin: 0 auto; }
.center .section-head p, .section-head.center p { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink-strong); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* ---- Store badges ---- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink-strong); color: #fff;
  padding: 11px 18px 11px 16px; border-radius: var(--radius-sm);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .15s var(--ease);
  position: relative;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: 11px; opacity: .82; font-weight: 500; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; }
.store-badge.soon { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.store-badge.soon .sb-small { opacity: .7; }
.store-badge.soon .tag {
  position: absolute; top: -9px; right: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--mint); color: var(--mint-deep);
  padding: 3px 8px; border-radius: var(--pill);
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--porcelain) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--porcelain) 92%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.nav-menu { display: flex; align-items: center; gap: 20px; flex: 1; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 21px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 10px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* language toggle */
.lang {
  display: inline-flex; align-items: center; background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: var(--pill); padding: 3px; gap: 2px;
}
.lang button, .lang a {
  font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: var(--pill);
  transition: all .15s var(--ease);
}
.lang button.active, .lang a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---- Hero ---- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; place-items: center; text-align: center; }
.hero-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 7px 7px 14px; border-radius: var(--pill); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.hero-eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-eyebrow-pill b { color: var(--ink); font-weight: 600; }
.hero-eyebrow-pill .chip {
  background: var(--mint); color: var(--mint-deep); font-weight: 700; font-size: 12px;
  padding: 4px 10px; border-radius: var(--pill);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 82px); font-weight: 700; margin: 26px 0 0; max-width: 14ch;
  letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  font-size: clamp(17px, 2vw, 22px); color: var(--muted); margin: 22px auto 0; max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); display: flex; gap: 8px; align-items: center; justify-content: center; }
.hero-note svg { width: 15px; height: 15px; stroke: var(--mint-deep); }

/* hero stage with floating cards */
.hero-stage { position: relative; margin-top: clamp(48px, 6vw, 72px); display: grid; place-items: center; width: 100%; }
.hero-stage::before {
  content: ""; position: absolute; width: min(620px, 86%); height: 360px; top: 6%;
  background: radial-gradient(60% 60% at 50% 40%, var(--mint-soft), transparent 72%);
  filter: blur(8px); z-index: 0;
}
.float-card {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.float-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .fc-icon svg { width: 21px; height: 21px; }
.float-card .fc-t { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-strong); }
.float-card .fc-s { font-size: 12.5px; color: var(--muted); }
.fc-1 { top: 14%; left: -2%; }
.fc-2 { top: 44%; right: -3%; }
.fc-3 { bottom: 8%; left: 3%; }
@media (max-width: 820px){ .float-card { display: none; } }

/* ---- Phone ---- */
.phone {
  position: relative; z-index: 2;
  width: 300px; aspect-ratio: 1206 / 2622; flex: none;
  background: #20242B; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone.sm { width: 248px; }

/* ---- Feature rows ---- */
.features { background: var(--porcelain); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.frow + .frow { margin-top: clamp(72px, 10vw, 130px); }
.frow.reverse .ftext { order: 2; }
.ftext .badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  padding: 7px 13px 7px 9px; border-radius: var(--pill); margin-bottom: 18px;
}
.ftext .badge .bi { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.ftext .badge .bi svg { width: 15px; height: 15px; }
.ftext h3 { font-size: clamp(26px, 3.2vw, 38px); }
.ftext p { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 46ch; }
.fpoints { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.fpoints li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.fpoints li .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: none; margin-top: 1px; }
.fpoints li .tick svg { width: 13px; height: 13px; stroke: var(--mint-deep); stroke-width: 3; }
.fmedia { display: grid; place-items: center; position: relative; padding: clamp(18px, 3vw, 38px) 0; }
.fpanel {
  position: absolute; inset: 7% 3%; z-index: 0;
  border-radius: var(--radius-xl);
  background: var(--panel, var(--mint-soft));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 22px 48px -34px rgba(25,29,36,.4);
}
.fpanel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(125% 78% at 50% -12%, rgba(255,255,255,.6), transparent 58%);
}
.fpanel::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-size: 150px 150px;
  opacity: .14; mix-blend-mode: soft-light; pointer-events: none;
}
[data-texture="off"] .fpanel::after { display: none; }

/* ---- Leaderboard band ---- */
.band-mint { background: linear-gradient(180deg, var(--mint-soft), var(--mint)); position: relative; }
.band-mint::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); background-size: 150px 150px;
  opacity: .1; mix-blend-mode: soft-light;
}
[data-texture="off"] .band-mint::after { display: none; }
.band-mint > .wrap { position: relative; z-index: 1; }
.lb-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.podium {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 34px 30px 30px; position: relative;
}
.podium .pd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.podium .pd-head h4 { font-size: 22px; display: flex; align-items: center; gap: 9px; }
.podium .pd-pill { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--porcelain); padding: 6px 13px; border-radius: var(--pill); }
.podium-row { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 14px; }
.pod { text-align: center; }
.pod .ava { width: 64px; height: 64px; border-radius: 50%; background: var(--porcelain-2); display: grid; place-items: center; margin: 0 auto 10px; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); position: relative; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.pod.win .ava { width: 84px; height: 84px; font-size: 30px; background: var(--mint); }
.pod .rank { position: absolute; bottom: -2px; right: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-strong); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.pod .nm { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.pod .pt { font-size: 13px; color: var(--muted); }
.pod.win .pt { color: var(--accent-text); font-weight: 600; }
.pod .bar { margin-top: 14px; border-radius: 12px 12px 0 0; background: var(--porcelain-2); }
.pod.win .bar { background: var(--accent); }

/* ---- Multi-household ---- */
#households { background: var(--surface); }
#households .house-card { background: var(--porcelain); border-color: var(--line-soft); }
#households .house-card.active { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint-deep) 40%, var(--line)); }
.mh-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.house-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.house-card + .house-card { margin-top: 16px; }
.house-card.active { border-color: color-mix(in srgb, var(--mint-deep) 40%, var(--line)); background: var(--mint-soft); }
.house-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.house-card .hc-emoji { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; font-size: 24px; }
.house-card .hc-body { flex: 1; }
.house-card .hc-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.house-card .hc-meta { font-size: 13.5px; color: var(--muted); }
.house-card .hc-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.house-card.active .hc-check { border-color: var(--mint-deep); background: var(--mint-deep); }
.house-card.active .hc-check svg { stroke: #fff; }
.house-card .hc-check svg { width: 14px; height: 14px; stroke: transparent; stroke-width: 3; }
.avatars { display: flex; }
.avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }

/* ---- Star rating ---- */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--tint-amber-ink); }

/* ---- Hero trust bar ---- */
.hero-trust { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; }
.hero-trust .avatars span { width: 36px; height: 36px; font-size: 13px; box-shadow: var(--shadow-sm); }
.hero-trust .ht-text { text-align: left; line-height: 1.3; }
.hero-trust .ht-text .stars svg { width: 15px; height: 15px; }
.hero-trust-cap { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.hero-trust-cap b { color: var(--ink); font-weight: 700; }
[data-hero="dark"] .hero-trust-cap { color: rgba(255,255,255,.7); }
[data-hero="dark"] .hero-trust-cap b { color: #fff; }
[data-hero="dark"] .hero-trust .avatars span { border-color: var(--ink-strong); }

/* ---- Testimonials ---- */
.testimonials { background: var(--porcelain); }
.t-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.t-rating b { color: var(--ink); font-weight: 700; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 60px); }
.tcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tquote { font-size: 16.5px; line-height: 1.62; color: var(--ink); flex: 1; text-wrap: pretty; }
.tfeature { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
@media (max-width: 900px){ .tgrid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

/* ---- CTA reassurance ---- */
.cta-reassure { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 26px; }
.cta-reassure span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.74); font-weight: 500; }
.cta-reassure svg { width: 16px; height: 16px; stroke: var(--mint); flex: none; }

/* ---- Download CTA band ---- */
.cta-dark { background: var(--ink-strong); color: #fff; position: relative; overflow: hidden; }
.cta-dark::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(238,123,78,.22), transparent 70%); top: -180px; right: -120px; }
.cta-dark::after { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(218,228,205,.16), transparent 70%); bottom: -220px; left: -120px; }
.cta-inner { position: relative; z-index: 2; text-align: center; display: grid; place-items: center; }
.cta-inner img.mark { width: 60px; height: 60px; margin-bottom: 22px; }
.cta-inner h2 { color: #fff; font-size: clamp(32px, 5vw, 56px); max-width: 16ch; }
.cta-inner p { color: rgba(255,255,255,.7); font-size: clamp(16px,1.6vw,19px); margin: 18px auto 0; max-width: 48ch; }
.cta-dark .stores { justify-content: center; margin-top: 32px; }
.cta-dark .store-badge { background: #fff; color: var(--ink-strong); }
.cta-dark .store-badge.soon { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.cta-dark .store-badge.soon .tag { background: var(--mint); color: var(--mint-deep); }

/* ---- Footer ---- */
.footer { background: var(--porcelain); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .brand img.word { height: 24px; }
.footer-col h5 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-blurb { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.footer-bottom small { color: var(--muted-2); font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all .15s; }
.footer-social a:hover { color: var(--ink); border-color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

/* ---- Hero dark mode ---- */
[data-hero="dark"] .hero { background: var(--ink-strong); color: #fff; }
[data-hero="dark"] .hero h1 { color: #fff; }
[data-hero="dark"] .hero .lead { color: rgba(255,255,255,.72); }
[data-hero="dark"] .hero-eyebrow-pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
[data-hero="dark"] .hero-eyebrow-pill b { color: #fff; }
[data-hero="dark"] .hero-note { color: rgba(255,255,255,.55); }
[data-hero="dark"] .hero .btn-dark { background: #fff; color: var(--ink-strong); }
[data-hero="dark"] .hero-stage::before { background: radial-gradient(60% 60% at 50% 40%, rgba(238,123,78,.22), transparent 72%); }
[data-hero="dark"] .nav { background: color-mix(in srgb, var(--ink-strong) 80%, transparent); }
[data-hero="dark"] .nav .brand img.word.dark-word,
[data-hero="dark"] .nav .brand img.mark.mint-mark { display: none; }
[data-hero="dark"] .nav .brand img.word.light-word,
[data-hero="dark"] .nav .brand img.mark.white-mark { display: inline; }
[data-hero="dark"] .nav.scrolled { background: color-mix(in srgb, var(--ink-strong) 92%, transparent); border-bottom-color: rgba(255,255,255,.08); }
[data-hero="dark"] .nav-links a { color: rgba(255,255,255,.65); }
[data-hero="dark"] .nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
[data-hero="dark"] .nav .lang { background: rgba(255,255,255,.1); }
[data-hero="dark"] .nav .lang button { color: rgba(255,255,255,.6); }
[data-hero="dark"] .nav .lang button.active { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
[data-hero="dark"] .nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); }
/* default: hide the light logos */
.brand img.light-word, .brand img.white-mark { display: none; }

/* ---- Reveal animation (progressive enhancement) ---- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .js-reveal .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Responsive ---- */
@media (max-width: 900px){
  .frow, .frow.reverse .ftext { grid-template-columns: 1fr; order: 0; }
  .frow .fmedia { order: -1; }
  .lb-grid, .mh-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .menu-toggle { display: flex; margin-left: auto; }
  .nav-menu {
    display: none;
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 18px 28px 22px; box-shadow: var(--shadow);
  }
  body.nav-open .nav-menu { display: flex; }
  .nav-menu .nav-links { flex-direction: column; gap: 2px; }
  .nav-menu .nav-right { margin-left: 0; flex-direction: column; align-items: stretch; gap: 14px; }
  .nav-menu .nav-right .lang { align-self: flex-start; }
  .nav-menu .nav-right .btn-dark { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- Legal / document pages ---- */
.legal-wrap { max-width: 1080px; }
.legal-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 40px); }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; }
.legal-updated { margin-top: 16px; font-size: 14.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.legal-updated svg { width: 16px; height: 16px; stroke: var(--muted-2); }

.legal-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint-deep) 24%, var(--line));
  border-radius: var(--radius); padding: 18px 20px; margin-top: 28px;
}
.legal-notice svg { width: 20px; height: 20px; stroke: var(--mint-deep); flex: none; margin-top: 2px; }
.legal-notice p { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.legal-notice b { font-weight: 700; }

.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(64px, 9vw, 110px); }
.legal-toc { position: sticky; top: 98px; }
.legal-toc h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: block; font-size: 14px; color: var(--muted); padding: 7px 10px; border-radius: 9px; line-height: 1.35; transition: color .15s var(--ease), background .15s var(--ease); }
.legal-toc a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.legal-toc a.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }

.legal-body { max-width: 70ch; }
.legal-body section { scroll-margin-top: 96px; }
.legal-body section + section { margin-top: 40px; }
.legal-body h2 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.015em; display: flex; align-items: baseline; gap: 12px; }
.legal-body h2 .n { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--accent-text); flex: none; }
.legal-body h3 { font-size: 17px; margin-top: 22px; }
.legal-body p { color: var(--ink); font-size: 16px; line-height: 1.7; margin-top: 14px; }
.legal-body ul { margin: 14px 0 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-body ul li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.65; color: var(--ink); }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-deep); }
.legal-body a.inline { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-body .muted { color: var(--muted); }

@media (max-width: 860px){
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
}

/* ---- Contact ---- */
.contact-main { min-height: calc(100vh - 74px); display: grid; place-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.contact-inner { max-width: 640px; }
.contact-inner .eyebrow { justify-content: center; }
.contact-inner .eyebrow::before { display: none; }
.contact-inner h1 { font-size: clamp(38px, 6vw, 66px); letter-spacing: -.035em; margin-top: 16px; }
.contact-inner h1 em { font-style: normal; color: var(--accent); }
.contact-inner .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); margin: 20px auto 0; max-width: 46ch; }
.contact-card {
  margin-top: clamp(34px, 5vw, 48px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(30px, 4vw, 44px); display: flex; flex-direction: column; align-items: center;
}
.contact-card .cc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.contact-card .cc-icon svg { width: 26px; height: 26px; stroke: var(--accent-text); }
.contact-card .cc-label { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.contact-card .cc-email { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 3vw, 30px); color: var(--ink-strong); letter-spacing: -.02em; margin-top: 6px; }
.email-btn { margin-top: 22px; font-size: 16px; padding: 15px 30px; }
.email-btn svg { width: 18px; height: 18px; }

/* ---- Print / full-page export ---- */
@media print {
  @page { margin: 0; }
  html, body { background: var(--porcelain) !important; }
  .nav { position: static !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float-card { display: flex !important; }
  .section { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ---- Download page ---- */
.dl-main { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding: clamp(48px,7vw,90px) 0; }
.dl-copy .eyebrow { margin-bottom: 18px; }
.dl-copy h1 { font-size: clamp(38px, 5.5vw, 66px); letter-spacing: -.035em; }
.dl-copy h1 em { font-style: normal; color: var(--accent); }
.dl-copy .lead { color: var(--muted); font-size: clamp(17px,1.7vw,20px); margin-top: 20px; max-width: 46ch; }
.dl-stores { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; max-width: 320px; }
.dl-stores .store-badge { justify-content: flex-start; padding: 14px 22px; }
.dl-stores .store-badge .sb-big { font-size: 18px; }
.qr-card { display: flex; align-items: center; gap: 20px; margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); max-width: 380px; }
.qr-card .qr { width: 104px; height: 104px; border-radius: 12px; background: #fff; padding: 6px; flex: none; border: 1px solid var(--line-soft); }
.qr-card .qr img { width: 100%; height: 100%; }
.qr-card .qr-t { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink-strong); }
.qr-card .qr-s { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dl-visual { display: grid; place-items: center; position: relative; }
.dl-visual::before { content:""; position:absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--mint-soft), transparent 70%); z-index: 0; }
.dl-visual .phone { z-index: 2; width: 320px; }
.dl-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.dl-back:hover { color: var(--ink); }
.dl-back svg { width: 18px; height: 18px; }
@media (max-width: 880px){
  .dl-main { grid-template-columns: 1fr; text-align: center; }
  .dl-copy .eyebrow, .dl-stores, .qr-card { margin-left: auto; margin-right: auto; }
  .dl-copy .lead { margin-left: auto; margin-right: auto; }
  .dl-visual { order: -1; }
}
