/* ============================================================
   TASKA — Apple-inspired design system
   Pure white & black, SF Pro typography, generous whitespace
   ============================================================ */

:root {
  /* Palette */
  --white:        #ffffff;
  --bg:           #ffffff;
  --bg-soft:      #fbfbfd;
  --bg-mute:      #f5f5f7;
  --bg-card:      #f5f5f7;
  --line:         #d2d2d7;
  --line-soft:    #e6e6eb;

  --ink:          #1d1d1f;
  --ink-2:        #424245;
  --ink-mute:     #6e6e73;
  --ink-subtle:   #86868b;

  --black:        #000000;
  --night:        #0a0a0a;
  --night-2:      #161617;

  /* Accents — keep Taska brand purple as subtle accent */
  --brand:        #7C6AF5;
  --brand-2:      #5B8DEF;
  --brand-3:      #B66BFF;
  --link:         #0066cc;
  --link-hover:   #0077ed;
  --apple-blue:   #0071e3;
  --green:        #30d158;
  --orange:       #ff9f0a;
  --red:          #ff453a;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1120px;
  --max-wide: 1340px;
  --section-y: clamp(80px, 14vh, 160px);
  --radius: 22px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --nav-h: 48px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit; border: 0; cursor: pointer;
  background: transparent; color: inherit;
}
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: rgba(124, 106, 245, .22); color: var(--ink); }

/* ============ LAYOUT HELPERS ============ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

/* ============ LANGUAGE VISIBILITY ============ */
[data-lang] { display: none; }
[data-lang].active-lang { display: inline; }
h1 [data-lang].active-lang,
h2 [data-lang].active-lang,
h3 [data-lang].active-lang,
h4 [data-lang].active-lang,
h5 [data-lang].active-lang,
h6 [data-lang].active-lang,
p [data-lang].active-lang,
li [data-lang].active-lang,
summary [data-lang].active-lang,
div[data-lang].active-lang,
a[data-lang].active-lang,
.eyebrow [data-lang].active-lang { display: inline; }
.block-lang[data-lang].active-lang { display: block; }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--brand);
  text-transform: none;
}
.eyebrow.on-dark { color: var(--brand-3); }

.display {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.display.on-dark { color: #f5f5f7; }
.h-1 { font-size: clamp(44px, 7.4vw, 96px); }
.h-2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.06; }
.h-3 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; }
.h-4 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; }

.gradient-text {
  background: linear-gradient(120deg, #7C6AF5 0%, #B66BFF 35%, #5B8DEF 65%, #2EC9FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.lead.on-dark { color: #f5f5f7; }
.lead.mute { color: var(--ink-mute); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
  padding: 6px 12px;
  background: var(--bg-mute);
  border-radius: 100px;
}
.tag.on-dark {
  background: rgba(255,255,255,.07);
  color: rgba(245,245,247,.85);
  border: 1px solid rgba(255,255,255,.08);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, .18);
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.nav.dark {
  background: rgba(22, 22, 23, 0.72);
  color: #f5f5f7;
}
.nav.scrolled { border-bottom-color: rgba(0,0,0,.08); }
.nav.dark.scrolled { border-bottom-color: rgba(255,255,255,.1); }

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
}
.brand img {
  width: 22px; height: 22px; border-radius: 5px;
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-size: 12px;
}
.nav-links a {
  color: inherit;
  opacity: .82;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.nav-links a:hover { opacity: 1; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 2px;
  opacity: .5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.lang-switch button {
  padding: 4px 8px;
  border-radius: 100px;
  transition: all .2s ease;
  letter-spacing: .04em;
}
.lang-switch button.active {
  background: currentColor;
}
.lang-switch button.active span { color: var(--bg); mix-blend-mode: difference; }
.nav.dark .lang-switch { color: #f5f5f7; }
.nav-links .nav-cta {
  padding: 4px 12px;
  background: var(--apple-blue);
  color: #fff;
  border-radius: 100px;
  font-weight: 500;
  opacity: 1;
}
.nav-links .nav-cta:hover { background: var(--link-hover); }

.hamburger {
  display: none; width: 26px; height: 26px;
  position: relative;
}
.hamburger span {
  position: absolute; left: 3px; right: 3px; height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 15px; }

@media (max-width: 820px) {
  .nav-inner { padding: 0 18px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 14px 22px 24px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.5,.1,.4,1);
    font-size: 17px;
  }
  .nav.dark .nav-links {
    background: rgba(22,22,23,.96);
    border-bottom-color: rgba(255,255,255,.1);
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 17px;
    opacity: 1;
  }
  .nav.dark .nav-links a { border-bottom-color: rgba(255,255,255,.08); }
  .nav-links .nav-cta {
    margin-top: 14px;
    text-align: center;
    padding: 12px 18px;
    font-size: 15px;
  }
  .nav-links .lang-switch { margin-top: 14px; align-self: flex-start; font-size: 12px; }
  .nav-links.mobile-open { transform: translateY(0); }
  .hamburger { display: block; }
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--apple-blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.022em;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.btn-primary:hover { background: var(--link-hover); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px;
  color: var(--apple-blue);
  font-weight: 400;
  letter-spacing: -0.022em;
  transition: color .2s ease;
}
.btn-ghost:hover { color: var(--link-hover); }
.btn-ghost::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .25s ease;
}
.btn-ghost:hover::after { transform: translate(2px, -1px); }

.btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 400;
  transition: background .25s ease;
}
.btn-light:hover { background: #fff; }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: 11px 22px;
  border-radius: 100px;
  transition: border-color .25s ease, background .25s ease;
}
.btn-outline-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.btn-pair {
  display: inline-flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
}

/* ============ HERO (DARK) ============ */
.hero {
  position: relative;
  background: #000;
  color: #f5f5f7;
  padding: clamp(70px, 12vh, 130px) 0 clamp(60px, 10vh, 100px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -10% -10% 0 -10%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 106, 245, .26), transparent 70%),
    radial-gradient(ellipse 80% 70% at 80% 30%, rgba(91, 141, 239, .14), transparent 60%),
    radial-gradient(ellipse 80% 60% at 10% 60%, rgba(182, 107, 255, .14), transparent 65%);
  filter: blur(0);
  z-index: -1;
  animation: heroBreathe 12s ease-in-out infinite;
}
@keyframes heroBreathe {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.06) translateY(-6px); opacity: .9; }
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gutter);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  color: rgba(245,245,247,.85);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, .18);
}
.hero-title {
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f5f5f7;
  margin: 0 0 24px;
}
.hero-title .grad {
  background: linear-gradient(180deg, #ffffff 0%, #bdb6ff 60%, #7c6af5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.35;
  color: rgba(245,245,247,.85);
  max-width: 720px;
  margin: 0 auto 36px;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.hero-actions {
  display: inline-flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

/* Hero device area */
.hero-device-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center;
}
.hero-device-wrap::before {
  content: "";
  position: absolute; inset: -10% 10% -10% 10%;
  background: radial-gradient(ellipse at center, rgba(124,106,245,.32), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

/* iPhone mockup (CSS-only frame) */
.phone {
  position: relative;
  width: clamp(260px, 28vw, 340px);
  aspect-ratio: 280 / 580;
  background: #0d0d10;
  border-radius: clamp(36px, 4.6vw, 52px);
  padding: 10px;
  box-shadow:
    inset 0 0 0 1.5px #2a2a2e,
    0 50px 100px -30px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.06);
  z-index: 1;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: clamp(28px, 3.6vw, 42px);
  background: linear-gradient(180deg, #1c1c1f 0%, #0d0d10 100%);
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 28%; height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}
.phone-screenshot {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.phone-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 18px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(124,106,245,.16), transparent 70%),
    linear-gradient(180deg, #0f0f13 0%, #0a0a0e 100%);
  color: rgba(245,245,247,.5);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .05em;
  gap: 8px;
}
.phone-placeholder .ph-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #7C6AF5, #5B8DEF);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(124,106,245,.4);
}

/* Hero credits row */
.hero-credits {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 32px 56px;
  justify-content: center;
  font-size: 13px;
  color: rgba(245,245,247,.55);
}
.hero-credits b {
  display: block;
  font-size: 17px;
  color: #f5f5f7;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) {
  .hero-credits { gap: 22px; font-size: 12px; }
  .hero-credits b { font-size: 15px; }
}

/* ============ MARQUEE BAR ============ */
.marquee {
  border-top: 1px solid rgba(255,255,255,.06);
  background: #000;
  color: rgba(245,245,247,.65);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after {
  content: "•";
  color: var(--brand);
  font-size: 14px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ HIGHLIGHT SECTIONS ============ */
.feature {
  padding: clamp(70px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}
.feature.dark {
  background: #000;
  color: #f5f5f7;
}
.feature.mute { background: var(--bg-mute); }

.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.feature-grid.reversed { grid-template-columns: 1fr 1.1fr; }
.feature-grid.reversed .feature-text { order: 2; }
.feature-grid.reversed .feature-visual { order: 1; }

.feature-text .eyebrow { margin-bottom: 16px; }
.feature-text h2 { margin: 0 0 24px; }
.feature-text p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 28px;
  letter-spacing: -0.015em;
}
.feature.dark .feature-text p { color: rgba(245,245,247,.78); }

.feature-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin: 28px 0 0;
}
.feature-stat b {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #7C6AF5, #5B8DEF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-stat span {
  font-size: 13px;
  color: var(--ink-mute);
}
.feature.dark .feature-stat span { color: rgba(245,245,247,.6); }

.feature-visual {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .feature-grid,
  .feature-grid.reversed { grid-template-columns: 1fr; gap: 50px; }
  .feature-grid.reversed .feature-text { order: 1; }
  .feature-grid.reversed .feature-visual { order: 2; }
  .feature-visual { min-height: 320px; }
}

/* ============ VISUAL CARDS / DEMOS ============ */
.demo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.15), 0 1px 0 rgba(0,0,0,.04);
  width: 100%;
  max-width: 440px;
  position: relative;
}
.demo-card.dark {
  background: #161618;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  color: #f5f5f7;
}
.demo-card .demo-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.demo-card .demo-head h4 {
  font-size: 15px; font-weight: 600; margin: 0;
  letter-spacing: -0.01em;
}
.demo-card .demo-head .pill {
  font-size: 11px; font-weight: 500;
  background: var(--bg-mute);
  color: var(--ink-mute);
  padding: 4px 10px;
  border-radius: 100px;
}
.demo-card.dark .demo-head .pill {
  background: rgba(255,255,255,.08);
  color: rgba(245,245,247,.7);
}

/* Budget bars demo */
.budget-list { display: grid; gap: 16px; }
.budget-row { display: grid; gap: 8px; }
.budget-row .row-top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 14px;
}
.budget-row .row-top .name { color: var(--ink); font-weight: 500; }
.budget-row .row-top .val  { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.demo-card.dark .budget-row .row-top .name { color: #f5f5f7; }
.demo-card.dark .budget-row .row-top .val  { color: rgba(245,245,247,.6); }

.budget-bar {
  height: 8px; border-radius: 100px;
  background: var(--bg-mute); overflow: hidden;
}
.demo-card.dark .budget-bar { background: rgba(255,255,255,.08); }
.budget-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #7C6AF5, #5B8DEF);
  border-radius: 100px;
  transform-origin: left;
}
.budget-bar i.warn { background: linear-gradient(90deg, #ff9f0a, #ff453a); }
.budget-bar i.good { background: linear-gradient(90deg, #34c759, #30d158); }

/* Chart demo */
.chart-bars {
  display: flex; align-items: end; justify-content: space-between; gap: 10px;
  height: 220px;
  padding: 4px 0 0;
}
.chart-bars i {
  flex: 1;
  background: linear-gradient(180deg, #7C6AF5 0%, #5B8DEF 100%);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  transition: opacity .25s ease;
  min-height: 6px;
}
.chart-bars i:hover { opacity: .8; }
.chart-bars i.accent {
  background: linear-gradient(180deg, #B66BFF 0%, #7C6AF5 100%);
}
.chart-bars i::after {
  content: attr(data-label);
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.demo-card.dark .chart-bars i::after { color: rgba(245,245,247,.5); }
.chart-bars-wrap { padding-bottom: 28px; }

/* Privacy/lock demo */
.privacy-card {
  background: linear-gradient(180deg, #f5f5f7 0%, #ebebef 100%);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.feature.dark .privacy-card {
  background: linear-gradient(180deg, #161618 0%, #0a0a0c 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.privacy-icon {
  width: 88px; height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, #7C6AF5, #5B8DEF);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 24px 48px -18px rgba(124,106,245,.5);
  margin-bottom: 22px;
}
.privacy-icon svg { width: 38px; height: 38px; }
.privacy-card h4 {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--ink);
}
.feature.dark .privacy-card h4 { color: #f5f5f7; }
.privacy-card .p { font-size: 16px; color: var(--ink-mute); margin: 0 0 24px; }
.feature.dark .privacy-card .p { color: rgba(245,245,247,.65); }
.privacy-badges {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 18px;
}
.privacy-badges .pb {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 100px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-soft);
}
.feature.dark .privacy-badges .pb {
  background: rgba(255,255,255,.06);
  color: rgba(245,245,247,.85);
  border-color: rgba(255,255,255,.08);
}

/* ============ BENTO GRID (everything section) ============ */
.everything {
  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--bg-mute);
}
.everything-head {
  text-align: center;
  margin: 0 auto clamp(48px, 6vw, 80px);
  max-width: 760px;
  padding: 0 var(--gutter);
}
.everything-head .eyebrow { margin-bottom: 16px; }
.everything-head h2 { margin: 0 0 18px; }
.everything-head p { font-size: 21px; color: var(--ink-mute); margin: 0; }

.bento {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.tile {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.tile:hover { transform: translateY(-4px); }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile.span-6 { grid-column: span 6; }
.tile.tall { min-height: 320px; }
.tile.dark {
  background: #161618;
  color: #f5f5f7;
}
.tile h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--ink);
  max-width: 90%;
}
.tile.dark h3 { color: #f5f5f7; }
.tile p {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0 0 18px;
  max-width: 36ch;
  line-height: 1.45;
}
.tile.dark p { color: rgba(245,245,247,.65); }
.tile .visual {
  margin-top: auto;
  display: flex; align-items: end; justify-content: flex-start;
  min-height: 100px;
}

/* Bento — sub visuals */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg-mute);
  color: var(--ink);
}
.tile.dark .pill {
  background: rgba(255,255,255,.06);
  color: #f5f5f7;
}
.pill.brand { background: rgba(124,106,245,.12); color: var(--brand); }
.tile.dark .pill.brand { background: rgba(124,106,245,.2); color: #b8aaff; }
.pill.solid { background: var(--ink); color: #fff; }

.icon-row {
  display: flex; gap: 12px;
}
.icon-row .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.icon-row .ic svg { width: 22px; height: 22px; }

.mini-widget {
  background: linear-gradient(135deg, #161618, #2a2a2e);
  border-radius: 18px;
  padding: 18px;
  color: #f5f5f7;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 110px;
}
.mini-widget .top {
  font-size: 11px; opacity: .55; letter-spacing: .04em; text-transform: uppercase;
}
.mini-widget .val {
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.mini-widget.light {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-soft);
}
.mini-widget.brand {
  background: linear-gradient(135deg, #7C6AF5, #5B8DEF);
}
.widget-pair { display: flex; gap: 12px; width: 100%; }

.receipt {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  width: 100%;
}
.tile.dark .receipt {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.15);
  color: #f5f5f7;
}
.receipt .merchant {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-mute);
}
.tile.dark .receipt .merchant { color: rgba(245,245,247,.65); }
.receipt .total {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 6px;
}
.tile.dark .receipt .total { color: #f5f5f7; }
.receipt .date {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.span-3, .tile.span-2, .tile.span-6 { grid-column: span 2; }
  .tile { min-height: 220px; }
}

/* ============ HOW IT WORKS ============ */
.how {
  padding: clamp(80px, 14vh, 160px) 0;
  background: #000;
  color: #f5f5f7;
  position: relative;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124,106,245,.16), transparent 60%);
  z-index: 0;
}
.how > * { position: relative; z-index: 1; }
.how-head { text-align: center; margin: 0 auto 64px; max-width: 760px; padding: 0 var(--gutter); }
.how-head .eyebrow { margin-bottom: 16px; }
.how-head h2 { color: #f5f5f7; margin: 0 0 18px; }
.how-head p { color: rgba(245,245,247,.7); font-size: 21px; margin: 0; }

.steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.step:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.step .num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-3);
  margin-bottom: 18px;
}
.step h4 {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: #f5f5f7;
}
.step p {
  font-size: 15px; line-height: 1.5;
  color: rgba(245,245,247,.65);
  margin: 0;
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ PRICING ============ */
.pricing {
  padding: clamp(80px, 14vh, 160px) 0;
  background: #fff;
}
.pricing-head { text-align: center; max-width: 760px; margin: 0 auto 64px; padding: 0 var(--gutter); }
.pricing-head .eyebrow { margin-bottom: 16px; }
.pricing-head h2 { margin: 0 0 18px; }
.pricing-head p { font-size: 21px; color: var(--ink-mute); margin: 0; }

.plans {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plan {
  background: var(--bg-mute);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  position: relative;
  transition: transform .3s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  background: linear-gradient(180deg, #161618 0%, #2a2a2e 100%);
  color: #f5f5f7;
}
.plan .plan-tag {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7C6AF5, #5B8DEF);
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(124,106,245,.55);
}
.plan-name {
  font-size: 14px; font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.plan.featured .plan-name { color: rgba(245,245,247,.65); }

.plan-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan.featured .plan-price { color: #f5f5f7; }
.plan-price .cur { font-size: 24px; vertical-align: top; line-height: 1.2; margin-right: 2px; font-weight: 600; }

.plan-period {
  font-size: 14px; color: var(--ink-mute);
  margin-top: 6px;
}
.plan.featured .plan-period { color: rgba(245,245,247,.6); }

.plan-equiv {
  font-size: 13px; color: var(--ink-mute);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.plan.featured .plan-equiv {
  color: rgba(245,245,247,.6);
  border-top-color: rgba(255,255,255,.1);
}

.pricing-cta { text-align: center; margin-top: 56px; }
.pricing-cta .small {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-mute);
  max-width: 560px; margin-left: auto; margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
}

/* ============ TRUST GRID ============ */
.trust {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg-mute);
}
.trust-head {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 0 var(--gutter);
  text-align: center;
}
.trust-head .eyebrow { margin-bottom: 16px; }
.trust-head h2 { margin: 0 0 18px; }
.trust-head p { font-size: 19px; color: var(--ink-mute); margin: 0; }

.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  transition: transform .3s ease;
}
.trust-item:hover { transform: translateY(-3px); }
.trust-item .ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(124,106,245,.15), rgba(91,141,239,.15));
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.trust-item .ic svg { width: 20px; height: 20px; }
.trust-item h5 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
.trust-item p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ FAQ ============ */
.faq-section {
  padding: clamp(80px, 12vh, 140px) 0;
  background: #fff;
}
.faq-head {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 var(--gutter);
  text-align: center;
}
.faq-head .eyebrow { margin-bottom: 16px; }
.faq-head h2 { margin: 0; }

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  font-size: 22px;
  font-weight: 300;
  transition: transform .3s ease, color .3s ease;
  line-height: 1;
}
.faq details[open] summary .plus { transform: rotate(45deg); color: var(--apple-blue); }
.faq-answer {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mute);
  padding: 16px 40px 4px 0;
  max-width: 640px;
}
.faq-answer a { color: var(--apple-blue); }

/* ============ FINAL CTA ============ */
.final-cta {
  padding: clamp(100px, 16vh, 180px) 0;
  background: #000;
  color: #f5f5f7;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(124,106,245,.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(91,141,239,.18), transparent 60%);
  z-index: 0;
  animation: heroBreathe 14s ease-in-out infinite;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta .eyebrow { margin-bottom: 18px; color: var(--brand-3); }
.final-cta h2 { color: #f5f5f7; margin: 0 auto 24px; max-width: 780px; padding: 0 var(--gutter); }
.final-cta .lead { color: rgba(245,245,247,.78); margin: 0 auto 40px; max-width: 600px; padding: 0 var(--gutter); }
.final-cta .small {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(245,245,247,.5);
  letter-spacing: -0.01em;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-mute);
  color: var(--ink-mute);
  padding: 30px 0 22px;
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid var(--line-soft);
}
.footer .wrap-wide { max-width: 980px; }
.footer-top { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.footer-top p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.footer-grid .col-brand {
  grid-column: span 5;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.footer-grid .col-brand img { width: 22px; height: 22px; border-radius: 5px; }
.footer-grid .col-brand strong {
  font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em;
}
.footer-grid h6 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.footer-grid ul li {
  margin-bottom: 9px;
}
.footer-grid ul a {
  color: var(--ink-mute);
  font-size: 12px;
  transition: color .2s ease;
}
.footer-grid ul a:hover { color: var(--ink); text-decoration: underline; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center;
  padding-top: 18px;
  font-size: 12px;
  color: var(--ink-subtle);
}
.footer-bottom .right { margin-left: auto; }

@media (max-width: 740px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid .col-brand { grid-column: span 2; }
  .footer-bottom .right { margin-left: 0; }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ INNER PAGES (privacy / terms / support) ============ */
.page-hero {
  padding: clamp(70px, 12vh, 130px) 0 clamp(40px, 6vh, 80px);
  background: #fff;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 auto 18px;
  max-width: 760px;
  color: var(--ink);
}
.page-hero .lead {
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink-mute);
  font-size: clamp(17px, 1.6vw, 21px);
}

.page-body {
  background: #fff;
  padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 12vh, 140px);
}
.page-body .wrap { max-width: 760px; }
.page-body h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  color: var(--ink);
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.page-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.page-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 6px 0 18px;
}
.page-body ul li {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 8px;
  line-height: 1.5;
}
.page-body strong { color: var(--ink); font-weight: 600; }
.page-body a { color: var(--apple-blue); }
.page-body a:hover { text-decoration: underline; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px auto 80px;
  max-width: var(--max);
  padding: 0 var(--gutter);
}
.support-card {
  background: var(--bg-mute);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: transform .3s ease;
}
.support-card:hover { transform: translateY(-4px); }
.support-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C6AF5, #5B8DEF);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.support-card .ic svg { width: 22px; height: 22px; }
.support-card h3 {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.support-card p {
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0 0 18px;
  line-height: 1.5;
}
.support-card .link {
  font-size: 15px;
  color: var(--apple-blue);
  font-weight: 500;
}
.support-card .link:hover { text-decoration: underline; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px auto 80px;
  max-width: var(--max);
  padding: 0;
}
.info-grid .item {
  background: var(--bg-mute);
  padding: 24px 26px;
}
.info-grid .item .k {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info-grid .item .v {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

@media (max-width: 820px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* Page-level FAQ wrapper (support page) */
.page-body .faq { max-width: 760px; padding: 0; margin: 0 auto; }
.page-body .faq-block-head {
  text-align: left;
  margin: 60px 0 24px;
}
.page-body .faq-block-head h2 { margin: 0 0 8px; }
.page-body .faq-block-head .eyebrow { margin-bottom: 10px; }

/* ============ LEGAL PAGE (terms) — wide layout with side TOC ============ */
.legal-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}
.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 32px);
  font-size: 13px;
  line-height: 1.45;
  padding-right: 12px;
  max-height: calc(100vh - var(--nav-h) - 60px);
  overflow-y: auto;
}
.legal-toc h6 {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.legal-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  margin-bottom: 7px;
}
.legal-toc a {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink-mute);
  transition: color .2s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--apple-blue); }
.legal-toc a.active::before { color: var(--apple-blue); }

.legal-body section {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  padding-bottom: 8px;
}
.legal-body section + section { margin-top: 28px; }
.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 14px;
}
.legal-body h2::before {
  content: attr(data-num);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-subtle);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  width: 28px;
  flex-shrink: 0;
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 22px 0 8px;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.legal-body h3::before {
  content: attr(data-num);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.legal-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.legal-body a { color: var(--apple-blue); }
.legal-body a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .legal-shell { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc {
    position: static; max-height: none; padding: 20px 24px;
    background: var(--bg-mute);
    border-radius: var(--radius);
  }
}
