/* Nutriva AI website: shared styles (Liquid Glass on the app's design tokens).
   Tokens mirror the LIGHT tokens in ios/NutrivaAI/Sources/DesignSystem/Theme.swift. Light only, by owner decision. */

:root {
  color-scheme: light;

  /* App tokens: light (the website is light only) */
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --card-hover: #F1F5F9;
  --border: #E2E8F0;
  --text: #0D1220;
  --text-2: #5F6B7E;
  --text-3: #94A3B8;           /* decoration only */
  --text-on-bg: #334155;       /* secondary text placed straight on the glowing page background (keeps >= 4.5:1 over the glows) */
  --accent-on-bg: #4C2FB8;     /* accent text straight on the page background */
  --accent: #6344D6;
  --accent-text: #6344D6;
  --teal: #00A896;
  --success: #16A34A;

  /* Brand gradients */
  --brand: linear-gradient(135deg, #7C5CFC 0%, #00E5CC 100%);          /* rings, glows, decorative fills */
  --brand-solid: linear-gradient(135deg, #6344D6 0%, #0F766E 100%);    /* behind white text */
  --brand-text: linear-gradient(120deg, #4C2FB8 0%, #1D4ED8 50%, #0F5F59 100%); /* large headline text, readable over the glows */

  /* Liquid Glass */
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.90);
  --glass-edge: #E2E8F0;
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 36px rgba(15, 23, 42, 0.07);
  --glow-violet: rgba(124, 92, 252, 0.30);
  --glow-teal: rgba(0, 229, 204, 0.28);
  --glow-coral: rgba(249, 115, 22, 0.20);
  --glow-pink: rgba(236, 72, 153, 0.22);
  --glow-green: rgba(16, 185, 129, 0.22);
  --glow-blue: rgba(59, 130, 246, 0.24);

  /* Shape and rhythm (8 / 16 / 24) */
  --r-card: 22px;
  --r-pill: 999px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --maxw: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Ambient background: soft colourful glows from the app palette, drifting slowly */
body::before, body::after {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(34vmax 34vmax at 18% 12%, var(--glow-violet), transparent 70%),
    radial-gradient(30vmax 30vmax at 86% 18%, var(--glow-teal), transparent 70%),
    radial-gradient(28vmax 28vmax at 70% 78%, var(--glow-pink), transparent 70%);
}
body::after {
  background:
    radial-gradient(26vmax 26vmax at 30% 70%, var(--glow-blue), transparent 70%),
    radial-gradient(24vmax 24vmax at 92% 52%, var(--glow-coral), transparent 70%),
    radial-gradient(26vmax 26vmax at 8% 45%, var(--glow-green), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift-a 38s ease-in-out infinite alternate; }
  body::after { animation: drift-b 46s ease-in-out infinite alternate; }
  @keyframes drift-a { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(4vmax, 3vmax, 0) rotate(8deg); } }
  @keyframes drift-b { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-4vmax, -2vmax, 0) rotate(-6deg); } }
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.3em; }
strong { color: var(--text); }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--card); color: var(--text); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border);
}
.skip-link:focus { top: var(--s2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
@media (max-width: 480px) { .container { padding: 0 var(--s2); } }

/* ── Liquid Glass ─────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--r-card);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--card); }
  .site-header .bar { background: var(--card); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .site-header .bar, .menu-panel { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  body::before, body::after { opacity: .5; }
}
@media (prefers-contrast: more) {
  .glass { background: var(--card); border-color: var(--text-2); }
}

/* ── Header: floating glass bar ───────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px var(--s2) 8px;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(0, 0, 0, 0) 100%);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: var(--s2);
  padding: 8px 8px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; min-height: 44px; }
.brand img, .brand picture img { width: 32px; height: 32px; border-radius: 22.37%; box-shadow: 0 0 0 1px var(--glass-edge); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-bottom: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(127, 127, 160, 0.14); }
.header-cta { flex: none; }

/* Mobile menu (no JS): <details> */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text);
  background: rgba(127, 127, 160, 0.14);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(260px, calc(100vw - 32px));
  padding: 8px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--glass-edge); /* solid: nested backdrop-filter can't see the page */
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .menu-panel { background: var(--card); } }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: rgba(127, 127, 160, 0.14); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .header-cta { display: none; }
}

/* ── Buttons & App Store badge ────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { color: #fff; background: var(--brand-solid); box-shadow: 0 8px 28px rgba(99, 68, 214, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(99, 68, 214, 0.45); }
.btn-glass { color: var(--text); background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-highlight); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
.btn-glass:hover { background: var(--card-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:active, .appstore-badge:active, .menu summary:active { transform: scale(0.97); }

/* Official-style "Download on the App Store" badge (black, per Apple's marketing guidelines) */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 7px 18px 7px 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #A6A6A6;
  font-family: var(--font);
  transition: transform .2s ease;
}
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge svg { width: 26px; height: 30px; flex: none; fill: #fff; }
.appstore-badge .l1 { display: block; font-size: 11px; line-height: 1.1; letter-spacing: 0.02em; }
.appstore-badge .l2 { display: block; font-size: 22px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.appstore-badge.sm { min-height: 40px; padding: 5px 12px 5px 10px; border-radius: 10px; gap: 7px; }
.appstore-badge.sm svg { width: 18px; height: 22px; }
.appstore-badge.sm .l1 { font-size: 8.5px; }
.appstore-badge.sm .l2 { font-size: 16px; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: var(--s8) 0; }
.section-head { max-width: 720px; margin: 0 auto var(--s6); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-bg);
  margin-bottom: var(--s2);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--text-on-bg); margin-top: var(--s2); }
.gradient-text { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (prefers-contrast: more) { .gradient-text { background: none; color: var(--text); -webkit-text-fill-color: currentColor; } }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 112px) 0 var(--s6); text-align: center; }
.hero-icon { position: relative; width: clamp(112px, 22vw, 152px); margin: 0 auto var(--s4); }
.hero-icon::before {
  content: ""; position: absolute; inset: -38%; z-index: -1; border-radius: 50%;
  background: var(--brand); filter: blur(48px); opacity: 0.55;
}
.hero-icon img {
  width: 100%; aspect-ratio: 1; border-radius: 22.37%;
  box-shadow: 0 0 0 1px var(--glass-edge), 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--text);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.hero h1 {
  font-size: clamp(42px, 8.4vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
  margin: var(--s3) auto 0; max-width: 14ch;
}
.hero .lead { max-width: 620px; margin: var(--s3) auto 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: var(--s4); }
.hero-note { margin-top: var(--s3); font-size: 14px; color: var(--text-on-bg); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: var(--s6) 0 0; padding: 0; list-style: none; }
.fact { padding: var(--s3) var(--s2); text-align: center; }
.fact .num { font-family: var(--font-rounded); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.fact .lbl { font-size: 14px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ── Feature grid ─────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.card { padding: var(--s4) var(--s3); position: relative; overflow: hidden; }
.card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.card p, .card li { color: var(--text-2); font-size: 16px; }
.card ul { list-style: none; padding: 0; margin: var(--s2) 0 0; display: grid; gap: 10px; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-solid);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 7.3-7.3 1.7 1.7-9 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 7.3-7.3 1.7 1.7-9 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: var(--s3);
  background: var(--brand-solid); color: #fff; box-shadow: 0 8px 24px rgba(99, 68, 214, 0.3);
}
.card .icon svg { width: 26px; height: 26px; }
/* Colourful icon tiles, like the app's settings icons */
.icon.violet { background: linear-gradient(145deg, #8B6DFE, #6344D6); box-shadow: 0 8px 22px rgba(99, 68, 214, .30); }
.icon.teal   { background: linear-gradient(145deg, #14B8A6, #0F766E); box-shadow: 0 8px 22px rgba(15, 118, 110, .28); }
.icon.pink   { background: linear-gradient(145deg, #F472B6, #DB2777); box-shadow: 0 8px 22px rgba(219, 39, 119, .28); }
.icon.blue   { background: linear-gradient(145deg, #60A5FA, #2563EB); box-shadow: 0 8px 22px rgba(37, 99, 235, .28); }
.icon.indigo { background: linear-gradient(145deg, #818CF8, #4F46E5); box-shadow: 0 8px 22px rgba(79, 70, 229, .28); }
.icon.sky    { background: linear-gradient(145deg, #38BDF8, #0284C7); box-shadow: 0 8px 22px rgba(2, 132, 199, .28); }
.icon.green  { background: linear-gradient(145deg, #34D399, #059669); box-shadow: 0 8px 22px rgba(5, 150, 105, .28); }
.icon.orange { background: linear-gradient(145deg, #FB923C, #EA580C); box-shadow: 0 8px 22px rgba(234, 88, 12, .28); }
.icon.violet2 { background: linear-gradient(145deg, #7C5CFC, #0F766E); box-shadow: 0 8px 22px rgba(99, 68, 214, .28); }
.card .note { margin-top: var(--s2); font-size: 14px; color: var(--text-2); padding: 12px 14px; border-radius: 14px; background: rgba(127, 127, 160, 0.10); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .span-6 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  .card { padding: var(--s3) var(--s2); }
}

/* Languages */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: var(--s3) 0 0; }
.langs li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(127, 127, 160, 0.10); color: var(--text); font-size: 15px; font-weight: 500;
}
.langs li::before { display: none; }
.langs .flag { font-size: 20px; line-height: 1; width: 24px; display: inline-grid; place-items: center; flex: none; }
.langs .flag svg { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 .5px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.2); }
.langs .glyph { font-size: 13px; font-weight: 700; width: 22px; height: 16px; border-radius: 3px; display: inline-grid; place-items: center; background: rgba(127,127,160,.22); color: var(--text); }

/* ── Pricing ──────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: var(--s2); justify-content: center; }
.plan { padding: var(--s4) var(--s3); display: flex; flex-direction: column; }
.plan.featured { border: 1px solid transparent; background:
  linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
  var(--brand) border-box; }
.plan .tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: #fff; background: var(--brand-solid); padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: var(--s2); }
.plan h3 { font-size: 26px; font-weight: 800; }
.plan .price { font-family: var(--font-rounded); font-size: 20px; font-weight: 700; margin: 10px 0 4px; }
.plan .period { color: var(--text-2); font-size: 15px; margin-bottom: var(--s3); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: var(--s3); }
.plan li { color: var(--text-2); padding-left: 26px; position: relative; font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-text); font-weight: 800; }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.terms-box { max-width: 780px; margin: var(--s3) auto 0; padding: var(--s3); font-size: 14.5px; color: var(--text-2); }
.terms-box p:last-child { margin-bottom: 0; }

/* ── FAQ ──────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 17px; color: var(--text); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 24px 20px; color: var(--text-2); }
.faq .answer p:last-child, .faq .answer ul:last-child, .faq .answer ol:last-child { margin-bottom: 0; }

/* ── CTA band ─────────────────────────────────────── */
.cta-band { text-align: center; padding: clamp(40px, 7vw, 72px) var(--s3); border-radius: 28px; background: var(--brand-solid); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.92); position: relative; z-index: 1; margin: var(--s2) auto var(--s3); max-width: 560px; }
.cta-band .appstore-badge { position: relative; z-index: 1; }

/* Updates form */
.updates { max-width: 640px; margin: var(--s6) auto 0; padding: var(--s4) var(--s3); text-align: center; }
.updates h2 { font-size: 24px; font-weight: 700; }
.updates form { display: flex; gap: 10px; margin-top: var(--s3); }
.updates input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--card); color: var(--text); font: 16px var(--font);
}
.updates input:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 1px; }
.updates .msg { min-height: 1.4em; margin-top: 12px; font-size: 14px; }
.updates .msg.ok { color: var(--success); }
.updates .msg.err { color: #B91C1C; }
@media (max-width: 480px) { .updates form { flex-direction: column; } }

/* ── Footer ───────────────────────────────────────── */
.site-footer { padding: var(--s6) 0 var(--s4); }
.site-footer .inner { padding: var(--s4) var(--s3); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-start; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 10px; }
.footer-links a:hover { color: var(--text); background: rgba(127,127,160,.12); }
.footer-small { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); display: grid; gap: 10px; }
.footer-small p { margin: 0; }
.footer-small a { color: var(--text-2); }

/* ── Page header (inner pages) ────────────────────── */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 var(--s4); text-align: center; }
.page-hero h1 { font-size: clamp(36px, 6.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
.page-hero .meta { margin-top: var(--s2); color: var(--text-on-bg); font-size: 15px; }

/* ── Legal pages ──────────────────────────────────── */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); }
.legal h2 {
  font-size: 22px; font-weight: 750; letter-spacing: -0.02em;
  margin: var(--s6) 0 var(--s2); padding-top: var(--s3); border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: var(--s3); }
.legal h3 { font-size: 17px; font-weight: 700; margin: var(--s3) 0 var(--s1); }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal li { margin-bottom: 6px; }
.legal .notice, .legal .critical {
  border-radius: 16px; padding: var(--s2) 20px; margin: var(--s3) 0;
  background: rgba(124, 92, 252, 0.10); border: 1px solid rgba(124, 92, 252, 0.28); color: var(--text);
  font-size: 15.5px;
}
.legal .notice strong { display: block; margin-bottom: 4px; }
.legal .critical { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.35); font-weight: 600; }
.legal .legal-bold { font-weight: 700; color: var(--text); }
.legal .toc { padding: var(--s3); border-radius: 18px; background: rgba(127, 127, 160, 0.08); border: 1px solid var(--border); margin: var(--s3) 0; }
.legal .toc h3 { margin-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.legal .toc ol { columns: 2; column-gap: var(--s4); margin: var(--s2) 0 0; }
.legal .toc li { font-size: 15px; break-inside: avoid; }
.legal .toc a { text-decoration: none; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s2) 0 var(--s3); border-radius: 14px; border: 1px solid var(--border); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.legal th { text-align: left; padding: 12px 14px; background: rgba(127, 127, 160, 0.10); color: var(--text); font-weight: 700; border-bottom: 1px solid var(--border); }
.legal td { padding: 12px 14px; color: var(--text-2); vertical-align: top; border-bottom: 1px solid var(--border); }
.legal tr:last-child td { border-bottom: 0; }
.legal p a, .legal li a { overflow-wrap: anywhere; }
.legal td a { white-space: nowrap; }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; margin: var(--s2) 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--text-2); min-height: 30px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px/1 var(--font-rounded); color: #fff; background: var(--brand-solid);
}
.card .steps li::before { -webkit-mask: none; mask: none; margin: 0; }
.card .steps li { display: block; }

/* Motion: cards fade and rise in on scroll (class added by a tiny inline script) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .card, .js-reveal .plan, .js-reveal .fact, .js-reveal .faq details,
  .js-reveal .cta-band, .js-reveal .terms-box {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease;
  }
  .js-reveal .in { opacity: 1 !important; transform: none !important; }
  .card:hover, .plan:hover { box-shadow: var(--glass-highlight), 0 18px 48px rgba(15, 23, 42, 0.10); }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .16s; }
  .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.card .card-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
