/* ==========================================================================
   UangRumah — site stylesheet
   One file for every page. Sections:
   1. Tokens (light + dark)   2. Base   3. Layout & utilities
   4. Header & navigation     5. Buttons & badges
   6. Home sections           7. Phone mockups
   8. Help / contact / legal  9. Footer   10. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand — teal from the original site, plus the app icon's cream, sage, gold, coral */
  --teal-900: #063d3a;
  --teal-800: #08514d;
  --teal-700: #0a5f5b;
  --teal-600: #0d7377;
  --teal-500: #14918f;
  --teal-100: #d6efec;
  --teal-50:  #eef8f6;
  --sage:     #82b6a9;
  --sage-100: #e3f0ec;
  --gold:     #f5c961;
  --gold-600: #d99e0c;
  --gold-100: #fdf1d2;
  --coral:    #f28c70;
  --coral-100:#fde3da;
  --cream:    #f7f2e7;
  --cream-200:#efe7d6;

  /* Semantic */
  --bg: #fffdf8;
  --bg-alt: var(--cream);
  --surface: #ffffff;
  --surface-2: #f8f6f1;
  --border: #e8e1d2;
  --border-strong: #d6ccb8;
  --text: #17211f;
  --text-2: #4a5754;
  --text-3: #6b7774;
  --primary: var(--teal-600);
  --primary-hover: var(--teal-700);
  --primary-soft: var(--teal-50);
  --on-primary: #ffffff;
  --accent: var(--gold);
  --focus: #1b8fd6;
  --ok: #1f9d55;
  --warn: #d98a0c;
  --bad: #d64545;
  --shadow-sm: 0 1px 2px rgba(23, 33, 31, .06), 0 1px 3px rgba(23, 33, 31, .05);
  --shadow-md: 0 6px 20px -6px rgba(23, 33, 31, .14), 0 2px 6px rgba(23, 33, 31, .05);
  --shadow-lg: 0 30px 60px -20px rgba(6, 61, 58, .28), 0 10px 24px -10px rgba(23, 33, 31, .14);

  /* Phone UI (mimics iOS light) */
  --ph-bg: #f2f2f7;
  --ph-card: #ffffff;
  --ph-text: #111;
  --ph-text-2: #6b6b72;
  --ph-sep: #e5e5ea;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1513;
    --bg-alt: #111c1a;
    --surface: #15211f;
    --surface-2: #1a2826;
    --border: #253532;
    --border-strong: #33504b;
    --text: #edf3f1;
    --text-2: #b5c3c0;
    --text-3: #8fa09c;
    --primary: #3fbdb3;
    --primary-hover: #5fd0c6;
    --primary-soft: rgba(63, 189, 179, .12);
    --on-primary: #04211f;
    --teal-50: rgba(63, 189, 179, .10);
    --teal-100: rgba(63, 189, 179, .18);
    --sage-100: rgba(130, 182, 169, .16);
    --gold-100: rgba(245, 201, 97, .14);
    --coral-100: rgba(242, 140, 112, .14);
    --cream: #111c1a;
    --cream-200: #1a2826;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    --ph-bg: #000;
    --ph-card: #1c1c1e;
    --ph-text: #f2f2f7;
    --ph-text-2: #98989f;
    --ph-sep: #2c2c2e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1513;
  --bg-alt: #111c1a;
  --surface: #15211f;
  --surface-2: #1a2826;
  --border: #253532;
  --border-strong: #33504b;
  --text: #edf3f1;
  --text-2: #b5c3c0;
  --text-3: #8fa09c;
  --primary: #3fbdb3;
  --primary-hover: #5fd0c6;
  --primary-soft: rgba(63, 189, 179, .12);
  --on-primary: #04211f;
  --teal-50: rgba(63, 189, 179, .10);
  --teal-100: rgba(63, 189, 179, .18);
  --sage-100: rgba(130, 182, 169, .16);
  --gold-100: rgba(245, 201, 97, .14);
  --coral-100: rgba(242, 140, 112, .14);
  --cream: #111c1a;
  --cream-200: #1a2826;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --ph-bg: #000;
  --ph-card: #1c1c1e;
  --ph-text: #f2f2f7;
  --ph-text-2: #98989f;
  --ph-sep: #2c2c2e;
  color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Hide the page briefly while a non-English language is applied (removed by i18n.js, with a timeout fallback) */
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #17211f; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-primary); }

/* 3. Layout & utilities ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); line-height: 1.65; }
.muted { color: var(--text-3); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 4. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-main { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .94rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-links + .nav-tools { margin-left: 8px; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: var(--text-3); padding: 5px 10px; border-radius: 999px; min-width: 38px;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.icon-btn {
  appearance: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.menu-btn { display: none; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: grid; gap: 2px; }
.mobile-menu ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 5. Buttons & badges ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; border-radius: 12px; }
.btn .icon { width: 18px; height: 18px; }

/* App Store button (custom, follows Apple's badge proportions & wording) */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #000;
  transition: transform .15s ease, box-shadow .15s;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}
.appstore-btn:hover { color: #fff; transform: translateY(-1px); }
.appstore-btn .icon { width: 28px; height: 28px; }
.appstore-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore-btn small { font-size: .7rem; font-weight: 500; opacity: .9; }
.appstore-btn strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
:root[data-theme="dark"] .appstore-btn { border-color: #3a3a3c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appstore-btn { border-color: #3a3a3c; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .86rem; font-weight: 600; color: var(--text-2);
}
.badge-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); }
.badge-dot .icon { width: 13px; height: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.chip .icon { width: 18px; height: 18px; color: var(--primary); }

/* 6. Home sections --------------------------------------------------------- */
/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sage) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -15%; bottom: -30%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; z-index: -1;
  background: var(--gold); opacity: .55; border-radius: 4px;
}
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.hero-visual { position: relative; display: flex; justify-content: flex-end; padding-right: 4%; }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 10px 14px; font-size: .82rem; line-height: 1.3; max-width: 230px;
}
.float-card strong { display: block; color: var(--text); font-size: .86rem; }
.float-card strong + span { color: var(--text-3); }
.float-card .fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.float-card .fc-icon .icon { width: 18px; height: 18px; }
.float-card--a { left: 0; top: 30%; }
.float-card--b { right: -3%; bottom: 5%; }
.fc-gold { background: var(--gold-100); color: var(--gold-600); }
.fc-teal { background: var(--teal-100); color: var(--primary); }
.fc-coral { background: var(--coral-100); color: #c2512f; }

/* Trust strip */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.trust-list li { display: flex; align-items: center; gap: 12px; padding: 22px 16px; }
.trust-list li + li { border-left: 1px solid var(--border); }
.trust-list .icon { width: 26px; height: 26px; color: var(--primary); }
.trust-list strong { display: block; font-size: .95rem; line-height: 1.25; }
.trust-list strong + span { display: block; font-size: .8rem; color: var(--text-3); line-height: 1.3; }

/* Pillars */
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.pillar-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 20px; }
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar p { color: var(--text-2); margin: 0; }
.tone-teal { background: var(--teal-100); color: var(--primary); }
.tone-gold { background: var(--gold-100); color: var(--gold-600); }
.tone-coral { background: var(--coral-100); color: #c2512f; }
.tone-sage { background: var(--sage-100); color: #3f7a6c; }
:root[data-theme="dark"] .tone-coral, :root[data-theme="dark"] .fc-coral { color: var(--coral); }
:root[data-theme="dark"] .tone-sage { color: var(--sage); }
:root[data-theme="dark"] .hero h1 .hl::after { opacity: .3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-coral, :root:not([data-theme="light"]) .fc-coral { color: var(--coral); }
  :root:not([data-theme="light"]) .tone-sage { color: var(--sage); }
  :root:not([data-theme="light"]) .hero h1 .hl::after { opacity: .3; }
}

/* Feature showcase rows */
.showcase { display: grid; gap: clamp(72px, 10vw, 128px); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature-copy .lead { margin-bottom: 24px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--teal-100); color: var(--primary); flex: none; margin-top: 1px; }
.checklist .tick .icon { width: 15px; height: 15px; stroke-width: 3; }
.feature-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  padding: clamp(28px, 5vw, 56px) 16px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-200) 100%);
  border: 1px solid var(--border); overflow: hidden; min-height: 420px;
}
.feature-visual.v-teal { background: linear-gradient(160deg, var(--teal-50), var(--teal-100)); }
.feature-visual.v-gold { background: linear-gradient(160deg, var(--gold-100), color-mix(in srgb, var(--gold) 26%, var(--bg))); }
.feature-visual.v-sage { background: linear-gradient(160deg, var(--sage-100), color-mix(in srgb, var(--sage) 30%, var(--bg))); }

/* Everything-else grid */
.mini-feature {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.mini-feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.mini-feature .pillar-icon { width: 42px; height: 42px; border-radius: 12px; margin: 0; flex: none; }
.mini-feature .pillar-icon .icon { width: 21px; height: 21px; }
.mini-feature h3 { font-size: 1rem; margin-bottom: 4px; }
.mini-feature p { font-size: .9rem; color: var(--text-2); margin: 0; line-height: 1.5; }

/* Privacy band */
.privacy-band { background: var(--teal-900); color: #e6f3f1; position: relative; overflow: hidden; }
.privacy-band::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 201, 97, .16), transparent 70%);
}
:root[data-theme="dark"] .privacy-band { background: #0a2523; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .privacy-band { background: #0a2523; } }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band .eyebrow { color: var(--gold); }
.privacy-band .lead { color: #b9d6d1; }
.privacy-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.privacy-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.privacy-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 22px; }
.privacy-item .pillar-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; background: rgba(245, 201, 97, .14); color: var(--gold); }
.privacy-item .pillar-icon .icon { width: 22px; height: 22px; }
.privacy-item p { color: #b9d6d1; font-size: .93rem; margin: 0; }
.privacy-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.privacy-band .btn-ghost:hover { border-color: #fff; }

/* Audience cards */
.audience-card { padding: 30px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.audience-card p { color: var(--text-2); margin: 0; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 1.1rem;
}
.step p { color: var(--text-2); margin: 0; font-size: .95rem; }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.spec { padding: 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.spec:nth-child(3n) { border-right: 0; }
.spec:nth-last-child(-n+3) { border-bottom: 0; }
.spec .icon { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.spec dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.spec dd { margin: 2px 0 0; font-weight: 700; color: var(--text); }

/* FAQ (shared by home + help) */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 1.02rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-2); }
.faq-body p:last-child, .faq-body ul:last-child, .faq-body ol:last-child { margin-bottom: 0; }
.faq-body ul, .faq-body ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.faq-body strong { color: var(--text); }
.faq-more { text-align: center; margin-top: 28px; }

/* Final CTA */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 80px) var(--gutter); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: #e6f3f1;
}
.cta-panel::before, .cta-panel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-panel::before { width: 380px; height: 380px; left: -120px; top: -160px; background: rgba(245, 201, 97, .18); }
.cta-panel::after { width: 300px; height: 300px; right: -80px; bottom: -150px; background: rgba(130, 182, 169, .25); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel img { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 22px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #cfe6e2; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-panel .appstore-btn { border-color: rgba(255, 255, 255, .25); }

/* 7. Phone mockups --------------------------------------------------------- */
.phone {
  --w: 290px;
  position: relative; z-index: 2; width: var(--w); aspect-ratio: 9 / 19.2;
  border-radius: 46px; padding: 11px; background: #111;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2a, inset 0 0 0 4px #0a0a0a;
  flex: none; text-align: left;
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 20px; background: #000; z-index: 5;
}
.phone-screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--ph-bg); color: var(--ph-text);
  display: flex; flex-direction: column; font-size: 11px; line-height: 1.35;
  font-family: -apple-system, "SF Pro Text", var(--font);
}
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 0; height: 44px; font-weight: 600; font-size: 11.5px; }
.ph-status i { display: inline-block; width: 22px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: .9; }
.ph-status i::after { content: ""; position: absolute; inset: 1px; right: 5px; background: currentColor; border-radius: 1px; }
.ph-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 6px; }
.ph-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.ph-title .ph-book { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--teal-600); color: #fff; }
.ph-title .ph-book .icon { width: 14px; height: 14px; }
.ph-nav .ph-act { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ph-card); color: var(--teal-500); }
.ph-nav .ph-act .icon { width: 15px; height: 15px; }
.ph-body { flex: 1; overflow: hidden; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.ph-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ph-text-2); padding: 4px 4px 0; }
.ph-card { background: var(--ph-card); border-radius: 14px; padding: 11px 12px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-muted { color: var(--ph-text-2); }
.ph-big { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.ph-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; }
.pill-ok { background: rgba(31, 157, 85, .14); color: #1f9d55; }
.pill-warn { background: rgba(217, 138, 12, .16); color: #c57a06; }
.ph-bar { height: 7px; border-radius: 99px; background: var(--ph-sep); overflow: hidden; margin: 8px 0 4px; position: relative; }
.ph-bar > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f9d55, #34c46e); }
.ph-bar.warn > b { background: linear-gradient(90deg, #e3a21a, #f5c961); }
.ph-bar .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ph-text); opacity: .5; border-radius: 2px; }
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ph-stat { background: var(--ph-bg); border-radius: 10px; padding: 7px 9px; }
.ph-stat b { display: block; font-size: 12.5px; }
.ph-insight { margin-top: 8px; font-size: 10px; color: var(--ph-text-2); display: flex; gap: 6px; align-items: flex-start; }
.ph-insight .icon { width: 12px; height: 12px; color: #1f9d55; margin-top: 1px; }
.ph-list { display: grid; }
.ph-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.ph-item + .ph-item { border-top: 1px solid var(--ph-sep); }
.ph-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; flex: none; }
.ph-ico .icon { width: 15px; height: 15px; }
.ph-item .grow { flex: 1; min-width: 0; }
.ph-item .grow b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-item .grow span { font-size: 9.5px; color: var(--ph-text-2); }
.ph-item .amt { font-weight: 700; font-size: 11.5px; white-space: nowrap; flex: none; }
.ph-tabs { display: flex; justify-content: space-around; padding: 8px 10px 20px; border-top: 1px solid var(--ph-sep); background: color-mix(in srgb, var(--ph-card) 90%, transparent); font-size: 9px; color: var(--ph-text-2); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ph-tabs .icon { width: 19px; height: 19px; }
.ph-tabs .on { color: var(--teal-500); }
.ph-fab { position: absolute; right: 26px; bottom: 76px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-600); color: #fff; box-shadow: 0 8px 18px -6px rgba(13, 115, 119, .7); z-index: 4; }
.ph-fab .icon { width: 22px; height: 22px; stroke-width: 2.5; }
.c-food { background: #ff6b6b; } .c-trans { background: #4ecdc4; } .c-house { background: #45b7d1; }
.c-health { background: #ff1493; } .c-edu { background: #3498db; } .c-comm { background: #1abc9c; }
.c-kids { background: #f49ab1; } .c-biz { background: #34495e; } .c-misc { background: #607d8b; }

/* Donut */
.ph-donut { display: flex; align-items: center; gap: 12px; }
.donut { width: 78px; height: 78px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(#ff6b6b 0 34%, #45b7d1 34% 58%, #4ecdc4 58% 74%, #3498db 74% 86%, #1abc9c 86% 100%); }
.donut::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--ph-card); }
.legend { display: grid; gap: 4px; font-size: 9.5px; flex: 1; min-width: 0; }
.legend span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend em { margin-left: auto; font-style: normal; font-weight: 700; }
.ph-week { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-week .ph-stat b { font-size: 12px; }
.ph-trend { color: #1f9d55; font-weight: 700; font-size: 10px; }

/* Form mockup */
.ph-form { background: var(--ph-card); border-radius: 12px; }
.ph-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; font-size: 11.5px; }
.ph-field + .ph-field { border-top: 1px solid var(--ph-sep); }
.ph-field .val { color: var(--ph-text-2); display: flex; align-items: center; gap: 5px; }
.ph-field .val.on { color: var(--ph-text); font-weight: 600; }
.ph-field .dot { width: 9px; height: 9px; border-radius: 50%; }
.ph-amount { text-align: center; padding: 14px 0 6px; }
.ph-amount b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.ph-suggest { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.ph-suggest span { background: var(--teal-50); color: var(--teal-600); border-radius: 99px; padding: 3px 9px; font-size: 10px; font-weight: 600; }
.ph-switch { width: 34px; height: 20px; border-radius: 99px; background: #34c759; position: relative; flex: none; }
.ph-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ph-button { margin-top: 4px; text-align: center; background: var(--teal-600); color: #fff; font-weight: 700; padding: 10px; border-radius: 12px; font-size: 12px; }
.ph-sheet-head { text-align: center; font-weight: 700; font-size: 13px; padding: 6px 0 2px; }
.ph-grabber { width: 36px; height: 5px; border-radius: 99px; background: var(--ph-sep); margin: 4px auto 6px; }

/* Book switcher mockup */
.ph-books { display: grid; gap: 8px; }
.ph-bookrow { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--ph-card); }
.ph-bookrow.active { box-shadow: inset 0 0 0 2px var(--teal-500); }
.ph-bookrow .ph-ico { border-radius: 9px; }
.ph-bookrow .grow b { display: block; font-size: 12.5px; }
.ph-bookrow .grow span { font-size: 10px; color: var(--ph-text-2); }
.ph-check { color: var(--teal-500); }
.ph-check .icon { width: 18px; height: 18px; stroke-width: 3; }
.ph-limit { text-align: center; font-size: 10px; color: var(--ph-text-2); padding-top: 2px; }
.ph-pm { display: grid; gap: 7px; }
.ph-pm .ph-row b { font-size: 11px; }
.ph-mini-bar { height: 5px; background: var(--ph-sep); border-radius: 99px; overflow: hidden; }
.ph-mini-bar b { display: block; height: 100%; border-radius: inherit; }

/* Notification bubble (iOS style) */
.ios-notif {
  position: absolute; z-index: 4; left: 50%; top: 8%; transform: translateX(-50%);
  width: min(320px, 92%); display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 18px; font-size: 12px; line-height: 1.35;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); color: var(--text);
}
.ios-notif img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.ios-notif b { display: block; font-size: 12.5px; }
.ios-notif .t { display: flex; justify-content: space-between; gap: 8px; }
.ios-notif .t small { color: var(--text-3); font-size: 10.5px; flex: none; }
.ios-notif p { margin: 1px 0 0; color: var(--text-2); }
.feature-visual .phone { --w: 270px; margin-top: 40px; }

/* 8. Help / contact / legal pages ------------------------------------------ */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin: 14px 0 14px; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }
.search-box { position: relative; max-width: 560px; margin: 28px auto 0; }
.search-box .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 20px; height: 20px; pointer-events: none; }
.search-box input {
  width: 100%; height: 56px; padding: 0 20px 0 50px; border-radius: 16px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem; box-shadow: var(--shadow-sm);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
.search-empty { display: none; text-align: center; padding: 24px; color: var(--text-2); }
.search-empty.show { display: block; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.topic-card:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.topic-card .pillar-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.topic-card .pillar-icon .icon { width: 22px; height: 22px; }
.topic-card strong { display: block; font-size: 1rem; }
.topic-card strong + span { display: block; font-size: .86rem; color: var(--text-3); }

.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-head { display: flex; align-items: center; gap: 12px; max-width: 820px; margin: 0 auto 18px; }
.faq-group-head .pillar-icon { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.faq-group-head .pillar-icon .icon { width: 20px; height: 20px; }
.faq-group-head h2 { font-size: 1.5rem; margin: 0; }

.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: var(--gold-100); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); color: var(--text);
}
.callout .icon { color: var(--gold-600); width: 22px; height: 22px; margin-top: 2px; }
.callout p { margin: 0; color: var(--text-2); }
.callout strong { color: var(--text); }

.contact-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.card h2 { font-size: 1.6rem; }
.card p { color: var(--text-2); }
.email-link { display: inline-block; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 20px; word-break: break-all; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .pillar-icon { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: none; }
.info-list .pillar-icon .icon { width: 20px; height: 20px; }
.info-list small { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.info-list strong { color: var(--text); }
.tip-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tip-card h3 { display: flex; align-items: center; gap: 10px; }
.tip-card h3 .icon { color: var(--primary); width: 20px; height: 20px; }
.tip-card ul { list-style: none; display: grid; gap: 6px; color: var(--text-2); font-size: .94rem; }
.tip-card li::before { content: "•"; color: var(--primary); font-weight: 800; margin-right: 8px; }
.link-card { display: block; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.link-card:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.link-card p { color: var(--text-2); font-size: .94rem; margin: 0 0 12px; }
.link-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: .92rem; }
.link-card .more .icon { width: 16px; height: 16px; }
.link-card .pillar-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.link-card .pillar-icon .icon { width: 22px; height: 22px; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.toc strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.toc a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.legal-meta { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 20px; font-size: .9rem; color: var(--text-3); }
.prose { max-width: 760px; }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); padding-bottom: 8px; }
.prose section + section { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 32px; }
.prose h2 { font-size: 1.45rem; margin-bottom: 14px; }
.prose h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose .summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 8px; }
.prose .summary-grid div { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.prose .summary-grid b { display: block; color: var(--text); margin-bottom: 4px; }
.prose .summary-grid p { margin: 0; font-size: .94rem; }
.prose .note { padding: 16px 18px; border-radius: var(--radius); background: var(--primary-soft); color: var(--text-2); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--primary); margin-bottom: 8px; }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 32px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--text-2); max-width: 340px; margin: 14px 0 18px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-legal { margin-top: 16px; font-size: .78rem; color: var(--text-3); }

/* 10. Motion & responsive -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-list li:nth-child(4) { border-left: 0; }
  .trust-list li:nth-child(n+4) { border-top: 1px solid var(--border); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
}
@media (max-width: 960px) {
  .nav-main, .nav-tools .lang-switch, .nav-tools .btn { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-tools { margin-left: auto; }
  .hero-grid, .feature-row, .privacy-grid, .contact-main { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero-visual { justify-content: center; padding-right: 0; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .feature-row:nth-child(even) .feature-copy { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3n) { border-right: 1px solid var(--border); }
  .spec:nth-child(2n) { border-right: 0; }
  .spec:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .spec:nth-last-child(-n+1) { border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { padding: 16px 10px; gap: 10px; }
  .trust-list li:nth-child(n) { border-left: 0; border-top: 1px solid var(--border); }
  .trust-list li:nth-child(-n+2) { border-top: 0; }
  .trust-list li:nth-child(even) { border-left: 1px solid var(--border); }
  .grid-2, .grid-4, .steps, .privacy-items, .topic-grid, .prose .summary-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .spec, .spec:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .spec:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { --w: 260px; }
  .feature-visual { min-height: 0; padding: 24px 12px; }
  .feature-visual .phone { --w: 250px; }
  .float-card { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .appstore-btn, .hero-cta .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; }
}
