/* ============================================================
   AUTO BUDGET — Global Stylesheet
   ============================================================ */

@import url('https://use.typekit.net/vrf8dax.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --green:        #2EA84E;
  --green-dark:   #1B6B32;
  --green-light:  #E8F7ED;
  --green-mid:    #C4EDD0;
  --gold:         #F5C518;
  --ink:          #111827;
  --ink-60:       #4B5563;
  --ink-30:       #9CA3AF;
  --surface:      #FFFFFF;
  --surface-alt:  #F4FAF6;
  --border:       #D1FAE5;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-serif:   'Plus Jakarta Sans', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  100px;

  --shadow-sm:    0 2px 8px rgba(17,24,39,.06);
  --shadow-md:    0 8px 32px rgba(17,24,39,.10);
  --shadow-lg:    0 20px 60px rgba(17,24,39,.14);

  --max-w:        1040px;
  --nav-h:        72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── Typography scale ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; box-shadow: 0 8px 24px rgba(17,24,39,.22); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}

.btn-disabled {
  position: relative;
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-store {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  gap: 12px;
}
.btn-store:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(46,168,78,.18); transform: translateY(-2px); }
.btn-store svg { flex-shrink: 0; }
.btn-store .store-text { display: flex; flex-direction: column; text-align: left; }
.btn-store .store-small { font-size: 10px; font-weight: 400; color: var(--ink-60); line-height: 1; }
.btn-store .store-name  { font-size: 15px; font-weight: 700; line-height: 1.2; }

.coming-soon-wrap {
  position: relative;
  display: inline-flex;
}
.coming-soon-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245,197,24,.4);
  pointer-events: none;
}

/* ── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav-logo img.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: none;
}
.nav-logo img.logo-text {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,168,78,.30); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 48px) 32px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--green-light);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  overflow: hidden;
  background: var(--surface);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,168,78,.18) 0%, rgba(46,168,78,0) 70%);
  top: -120px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,197,24,.12) 0%, rgba(245,197,24,0) 70%);
  bottom: 0; left: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-content { max-width: 540px; }

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .6s .1s ease forwards;
}
.eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .6s .2s ease forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--green);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow .5s .8s cubic-bezier(.4,0,.2,1) forwards;
}

.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--ink-60);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp .6s .3s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp .6s .4s ease forwards;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeIn .8s .5s ease forwards;
}
.hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,168,78,.22) 0%, rgba(46,168,78,0) 70%);
  pointer-events: none;
}
.hero-logo-img {
  width: clamp(120px, 22vw, 280px);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 48px rgba(17,24,39,.16));
  animation: floatLogo 4s ease-in-out infinite;
}

/* ── FEATURES ────────────────────────────────────────────────── */
#features {
  padding: 100px 0;
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}
#features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-mid), transparent);
}
#features::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-mid), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .eyebrow { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-60);
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  opacity: 0;
  transition: opacity .22s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-mid);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: background .22s, transform .22s;
}
.feature-card:hover .feature-icon {
  background: var(--green);
  transform: scale(1.08);
}
.feature-card:hover .feature-icon .fi { filter: brightness(0) invert(1); }

.feature-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.badge-pro  { background: rgba(46,168,78,.12); color: var(--green-dark); }
.badge-ai   { background: rgba(245,197,24,.18); color: #7A5C00; }
.badge-android { background: rgba(17,24,39,.07); color: var(--ink-60); }
.badge-soon { background: rgba(17,24,39,.07); color: var(--ink-60); }

.feature-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-60);
  line-height: 1.65;
}

/* ── Green button variant ────────────────────────────────────── */
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-dark); box-shadow: 0 8px 24px rgba(46,168,78,.30); }

/* ── PRICING ─────────────────────────────────────────────────── */
#pricing {
  padding: 100px 0;
  background: var(--surface);
}

.pricing-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  max-width: 760px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: box-shadow .22s ease, transform .22s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card-pro {
  border-color: var(--green);
  background: linear-gradient(160deg, rgba(46,168,78,.04) 0%, rgba(46,168,78,.01) 100%);
  box-shadow: 0 0 0 1px rgba(46,168,78,.12), var(--shadow-sm);
  position: relative;
}
.pricing-card-pro:hover {
  box-shadow: 0 0 0 1px rgba(46,168,78,.25), var(--shadow-lg);
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.pricing-card-pro .pricing-plan-name {
  color: var(--green-dark);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
}
.pricing-period {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-60);
  letter-spacing: 0;
}

.pricing-price-soon {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-60);
  letter-spacing: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: inline-block;
  width: fit-content;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  list-style: none;
}
.pricing-features li {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-60);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg width='13' height='9' viewBox='0 0 13 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L5 8L12 1' stroke='%232EA84E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.pricing-feature-all {
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.pricing-soon-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(17,24,39,.07);
  color: var(--ink-60);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  margin-left: 4px;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ── SCREENSHOTS ─────────────────────────────────────────────── */
#screenshots {
  padding: 100px 0;
  background: var(--surface);
  text-align: center;
  overflow: hidden;
}

.phones-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  padding: 0 24px;
}
.phone-frame {
  flex-shrink: 0;
  position: relative;
}
.phone-frame-inner {
  width: 220px;
  aspect-ratio: 9/19.5;
  background: var(--surface-alt);
  border: 2.5px solid var(--ink);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 0 0 6px #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.phone-frame:hover .phone-frame-inner {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg), inset 0 0 0 6px #fff;
}
/* Notch */
.phone-frame-inner::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 10px;
  background: var(--ink);
  border-radius: var(--radius-pill);
  z-index: 2;
}
/* Home indicator */
.phone-frame-inner::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--ink);
  border-radius: var(--radius-pill);
  opacity: .3;
  z-index: 2;
}
.phone-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.phone-placeholder .ph-icon {
  width: 56px; height: 56px;
  object-fit: contain;
  opacity: .8;
}
.phone-placeholder .ph-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-60);
  text-align: center;
}
.phone-placeholder .ph-sub {
  font-size: 11px;
  color: var(--ink-30);
  text-align: center;
  line-height: 1.5;
}

/* Center phone is bigger */
.phone-frame.center .phone-frame-inner {
  width: 240px;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,168,78,.15), var(--shadow-md), inset 0 0 0 6px #fff;
}
.phone-frame.center:hover .phone-frame-inner {
  box-shadow: 0 0 0 4px rgba(46,168,78,.25), var(--shadow-lg), inset 0 0 0 6px #fff;
}

.screenshots-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-30);
  font-style: italic;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img.logo-icon { width: 32px; height: 32px; object-fit: contain; }
.footer-logo img.logo-text {
  height: 18px;
  width: auto;
}
.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 260px;
  color: rgba(255,255,255,.55);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.3);
}
.footer-domain {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .02em;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(.5deg); }
  66%       { transform: translateY(-5px) rotate(-.5deg); }
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Scroll-reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-img { width: 120px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .pricing-grid { flex-direction: column; max-width: 420px; }
}

@media (max-width: 640px) {
  #hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .hero-visual { display: none; }
  .hero-inner { gap: 0; }
  .nav-logo img.logo-icon { display: block; width: 46px; height: 46px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }

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

  .phones-row { gap: 12px; }
  .phone-frame-inner { width: 160px; border-radius: 32px; }
  .phone-frame.center .phone-frame-inner { width: 178px; }
  .phone-frame.side-right { display: none; }

  .hero-actions { flex-direction: column; align-items: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── LEGAL PAGES ──────────────────────────────────────────────── */
.legal-hero {
  padding: calc(var(--nav-h) + 64px) 0 48px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-top: 16px;
}
.legal-meta {
  font-size: 13px;
  color: var(--ink-30);
  margin-top: 12px;
}

/* Two-column layout: content + sidebar TOC */
.legal-body {
  padding: 56px 0 100px;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 660px) 220px;
  gap: 56px;
  align-items: start;
}

/* ── Main content column ── */
.legal-content {
  min-width: 0; /* prevent grid blowout */
  font-size: 15px;
  line-height: 1.8;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-content p  { margin-bottom: 14px; color: var(--ink-60); font-weight: 300; }
.legal-content ul,
.legal-content ol {
  padding-left: 18px;
  margin-bottom: 14px;
  list-style: disc;
  color: var(--ink-60);
  font-weight: 300;
}
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 5px; line-height: 1.7; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--green); text-decoration: underline; }
.legal-content a:hover { color: var(--green-dark); }

/* ── Sidebar TOC ── */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.legal-toc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-30);
  margin-bottom: 12px;
}
.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc-list a {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-60);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  line-height: 1.4;
}
.legal-toc-list a:hover {
  color: var(--ink);
  background: var(--green-light);
  border-left-color: var(--green);
}
.legal-toc-list a.toc-active {
  color: var(--green-dark);
  font-weight: 600;
  background: var(--green-light);
  border-left-color: var(--green);
}

/* ── Doc switcher tabs ── */
.legal-tabs {
  display: flex;
  gap: 4px;
  background: var(--green-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  margin-bottom: 40px;
}
.legal-tab {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-60);
  transition: all .18s ease;
  text-decoration: none !important;
}
.legal-tab:hover { color: var(--ink); }
.legal-tab.active {
  background: var(--green);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(46,168,78,.3);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-toc { display: none; }
}
