/* ProCabinet.App — landing page styles.
   Self-contained: reuses the app's design tokens (see styles.css) but loads
   none of the app CSS. Motion is transform/opacity-only and gated behind
   prefers-reduced-motion. Reveal-on-scroll initial states apply only when the
   `.js` class is present, so the page is fully visible if JS never runs. */

:root {
  --accent: #e8a838;
  --accent-dim: rgba(232, 168, 56, 0.12);
  --ink: #111111;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --border: #e0e0e0;
  --text: #111111;
  --text-2: #444444;
  --muted: #888888;
  --tabbar: #e2e2e2;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.16);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }

/* ── Scroll-progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width .1s linear;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease),
              background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.full { width: 100%; }

.btn-amber { background: var(--accent); color: #1a1a1a; box-shadow: 0 6px 18px rgba(232, 168, 56, .35); }
.btn-amber:hover { box-shadow: 0 11px 28px rgba(232, 168, 56, .45); }
.btn-amber-sm { background: var(--accent); color: #1a1a1a; padding: 9px 15px; font-size: 13px; border-radius: 8px; }
.btn-amber-sm:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232, 168, 56, .4); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); background: rgba(0, 0, 0, .03); }

.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }

.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); padding: 9px 14px; font-size: 13px; border-radius: 8px; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }

.amber { color: var(--accent); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--accent);
}
.section-lede { font-size: 17px; color: var(--text-2); margin: 12px auto 0; max-width: 56ch; }

/* ══════════════════════════════════════
   STICKY TAB-BAR NAV (replica of app header)
   ══════════════════════════════════════ */
.tabbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--tabbar);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow .25s var(--ease);
}
.tabbar.condensed { box-shadow: var(--shadow-md); }

.tabbar-top {
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
  overflow: hidden;
  transition: height .25s var(--ease);
}
.tabbar.condensed .tabbar-top { height: 42px; }
/* Header logo — matches the app header exactly (text + BETA badge) */
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-text { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.brand .logo-badge {
  font-size: 9px; font-weight: 700;
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.55);
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.8px;
  text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.12);
}
.tabbar-actions { display: flex; align-items: center; gap: 10px; }

.tabbar-tabs {
  display: flex; align-items: flex-end; gap: 2px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 8px 24px 0;
  transition: padding .2s var(--ease);
}
.tabbar.condensed .tabbar-tabs { padding-top: 5px; }

.tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1 1 0; min-width: max-content;
  padding: 9px 12px 11px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid transparent; border-bottom: none;
  border-radius: 8px 8px 0 0;
  white-space: nowrap; position: relative;
  transition: color .15s, background .15s;
}
/* Icon painted in currentColor (mask) so it matches the tab's text colour exactly, like the app */
.tab .ico { width: 17px; height: 17px; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: transform .15s var(--ease); }
.tab:hover { color: var(--text); background: rgba(128, 128, 128, .14); }
.tab:hover .ico { transform: translateY(-1px); }
.tab.active {
  color: var(--text); background: var(--surface); font-weight: 700;
  border-color: var(--border);
  /* Chrome-tab: the active tab punches through the bar's bottom hairline.
     The 1px bridge matches the page bg below, so no line shows under it. */
  border-bottom: 1px solid var(--bg);
  margin-bottom: -1px;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
  font-weight: 800; letter-spacing: -1px; margin: 14px 0 0;
}
.lede { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 20px 0 0; max-width: 44ch; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.micro { font-size: 13px; color: var(--muted); margin-top: 14px; }
/* Hero founders-offer line — scarcity surfaced above the fold. The seat count
   is kept live by the founderSeats() IIFE in landing.js (#founder-hero-left). */
.micro-founder { margin-top: 6px; }
.micro-founder a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.micro-founder a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Browser frame around screenshots */
.hero-media { perspective: 1200px; }
.browser-frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative;
}
.browser-dots { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d8d8; }
.browser-frame img { width: 100%; }

/* Hover-to-reveal second screenshot ("active edit" view) */
.shot-stack { position: relative; line-height: 0; }
.shot-stack img { width: 100%; display: block; }
.shot-hover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .45s var(--ease);
}
.hero-media:hover .shot-hover,
.feature-media:hover .shot-hover { opacity: 1; }

[data-tilt] { position: relative; transform-style: preserve-3d; will-change: transform; transition: transform .35s var(--ease); }
[data-scroll3d] { transform-origin: 50% 50%; will-change: transform; }

/* ══════════════════════════════════════
   TAB-BAR SHOWCASE
   ══════════════════════════════════════ */
.tabbar-show { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; text-align: center; }
.tabbar-show h2, .os-band h2, .pricing h2, .faq h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.5px;
}
/* Icon-only tab-bar showcase — grey bar of dark icons, rounded top / square
   bottom, no highlight. The grow animation scales the whole bar. */
.tabbar-hero {
  margin: 44px auto 0; max-width: 1040px; width: 100%;
  display: flex; gap: clamp(4px, .8vw, 8px);
  padding: clamp(10px, 1.4vw, 18px);
  background: var(--tabbar);
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
}
.sb-tab {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center;
  height: clamp(54px, 8vw, 92px);
  border-radius: 14px;
}
.sb-tab img { width: clamp(22px, 3.2vw, 38px); height: clamp(22px, 3.2vw, 38px); }
.stats { list-style: none; display: flex; justify-content: center; gap: 52px; margin: 44px 0 0; padding: 0; }
.stats strong { display: block; font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1; }
.stats span { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════
   FEATURE SECTIONS
   ══════════════════════════════════════ */
.feature {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  align-items: center;
}
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-media { order: 1; }
.anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--accent-dim); border-radius: 14px;
  transition: background .2s var(--ease);
}
.feature-icon img { width: 28px; height: 28px; transition: filter .2s var(--ease); }
.feature-icon.trio { width: auto; padding: 0 14px; gap: 8px; }
.feature-icon.trio img { width: 24px; height: 24px; }
/* Icon badge goes full app-orange (white glyph) when its feature is hovered */
.feature:hover .feature-icon { background: var(--accent); }
.feature:hover .feature-icon img { filter: brightness(0) invert(1); }

.feature h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 18px 0 0; }
.promise { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-dim); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.tick-pro { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #1a1a1a; background: var(--accent); padding: 1px 7px; border-radius: 20px; vertical-align: middle; }

/* DXF / external-app shot — already contains its own macOS window chrome,
   so no .browser-frame wrapper. Match the radius + shadow of other shots. */
.raw-shot { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow-lg); }

/* ══════════════════════════════════════
   MOBILE FEATURE — phone mockup
   Replaces the .browser-frame on the Optimised-for-mobile section. Mirrors the
   live tilt/hover pattern: [data-tilt] on .feature-media drives the 3D tilt
   (landing.js), and an .m-view.alt screen fades in on hover the same way
   .shot-hover does on the other features.
   ══════════════════════════════════════ */
.phone-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.phone-stage::before { content: ""; position: absolute; z-index: 0; width: 380px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-dim), transparent 70%); }
.phone { position: relative; z-index: 1; width: 272px; background: #0c0c0c; border-radius: 44px; padding: 11px; box-shadow: var(--shadow-lg), 0 0 0 2px #000 inset; animation: phone-float 5.4s ease-in-out infinite; }
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.phone-screen { position: relative; height: 558px; background: var(--bg); border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; }

/* Dynamic Island — compact idle state */
.phone-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; background: #000; border-radius: 14px; z-index: 6; box-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* Base/alt screen stack — like .shot-base / .shot-hover */
.m-views { position: relative; flex: 1; min-height: 0; }
.m-view { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .45s var(--ease); }
.m-view.alt { opacity: 0; }
.feature-media:hover .m-view.alt { opacity: 1; }

/* iOS status bar — hugs the corners around the island */
.m-status { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 8px; font-size: 11px; font-weight: 700; color: var(--text); min-height: 30px; }
.m-status .m-sig { display: flex; align-items: center; gap: 5px; }
.m-batt { width: 20px; height: 10px; border: 1px solid var(--text); border-radius: 3px; position: relative; }
.m-batt::before { content: ""; position: absolute; inset: 1.5px; right: 5px; background: var(--text); border-radius: 1px; }
.m-batt::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: var(--text); border-radius: 0 1px 1px 0; }

/* App header — brand wordmark + 4 small icon buttons */
.m-appbar { background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; }
.m-appbar .m-brand { font-size: 13px; font-weight: 800; letter-spacing: -.3px; }
.m-actions { display: flex; align-items: center; gap: 4px; }
.m-ic { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: rgba(255,255,255,.78); }
.m-ic svg { width: 13px; height: 13px; }

/* Tab strip — real brand icons, full 8 tabs */
.m-tabs { display: flex; gap: 3px; background: var(--tabbar); padding: 7px 8px 0; overflow: hidden; }
.m-tab { flex: 1 1 0; min-width: 0; height: 30px; border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; }
.m-tab img { width: 14px; height: 14px; opacity: .55; }
.m-tab.active { background: var(--surface); border: 1px solid var(--border); border-bottom: none; }
.m-tab.active img { opacity: 1; }

/* Sub-nav (Quote Builder | Cabinet Library) for the editor view */
.m-subnav { display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.m-subnav span { flex: 1; text-align: center; padding: 9px 6px; font-size: 11px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.m-subnav span.active { color: var(--text); border-bottom-color: var(--accent); }

/* Page header inside the editor view */
.m-page-head { display: flex; align-items: center; gap: 8px; padding: 10px 11px 4px; }
.m-page-head .back { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.m-page-head .back svg { width: 16px; height: 16px; }
.m-page-head .lib-ic { width: 18px; height: 18px; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.m-page-head .lib-ic svg { width: 16px; height: 16px; }
.m-page-head h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.3px; flex: 1; }

/* Editor form */
.m-form { padding: 0 11px 8px; display: flex; flex-direction: column; gap: 9px; flex: 1; overflow: hidden; }
.m-label { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.m-input { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.m-input .plus { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 800; font-size: 14px; line-height: 1; }
.m-section-hd { display: flex; align-items: center; gap: 6px; padding: 7px 0 2px; font-size: 12px; font-weight: 800; }
.m-section-hd .caret { color: var(--text-2); font-size: 9px; }
.m-section-hd .amt { color: var(--accent); margin-left: auto; }
.m-section-hd .dims { color: var(--muted); font-weight: 500; font-size: 11px; }
.m-dims { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.m-dims .m-input { padding: 7px 8px; }
.m-dims .m-label { margin-bottom: 2px; font-size: 9px; }
.m-form-scroll { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; gap: 9px; }
.m-form-scroll::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }

/* Body container */
.m-body { flex: 1; padding: 11px 11px 0; display: flex; flex-direction: column; gap: 11px; background: var(--bg); overflow: hidden; }

/* Quick-action shortcut pills (Dashboard view) */
.m-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.m-sc { font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); line-height: 1; }
.m-sc.amber { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }

/* Dashboard cards (Active Orders / Recent Quotes) */
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 11px 4px; }
.m-card h4 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: -.2px; padding-bottom: 8px; border-bottom: 1px solid var(--surface-2); }
.m-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--surface-2); }
.m-row:last-child { border-bottom: none; }
.m-row .ord { font-size: 11.5px; font-weight: 700; letter-spacing: -.1px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; }
.m-row .proj { grid-column: 1; font-size: 10.5px; color: var(--muted); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; }
.m-row .amt { grid-column: 2; grid-row: 1; font-size: 12px; font-weight: 800; text-align: right; }
.m-row .pill { grid-column: 2; grid-row: 2; justify-self: end; font-size: 9px; font-weight: 700; letter-spacing: .2px; padding: 2px 6px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.m-row .pill.prod  { background: rgba(232,168,56,.18); color: #8a6a1f; }
.m-row .pill.conf  { background: rgba(110,90,210,.16); color: #5a48b8; }
.m-row .pill.draft { background: var(--surface-2);    color: var(--muted); }

/* Reduced motion — disable the float */
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none !important; }
}

/* ══════════════════════════════════════
   OS / SOP BAND
   ══════════════════════════════════════ */
.os-band { background: var(--ink); color: #fff; text-align: center; padding: 84px 24px; margin-top: 32px; }
.os-band h2 { max-width: 800px; margin: 0 auto; }
.os-band p { max-width: 60ch; margin: 20px auto 0; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.os-band .cta-row { margin-top: 32px; }

/* ══════════════════════════════════════
   PRICING
   ══════════════════════════════════════ */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: 76px 24px; }
.pricing-head { text-align: center; margin-bottom: 44px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }

.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfcfcf; }
.price-tier { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.price-amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }
.price-amount span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-sub { font-size: 13px; color: var(--text-2); min-height: 18px; }
.price-sub s { color: var(--muted); }
.price-feats { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
/* Fixed row height so the bullet rows line up across all four cards (matches the in-app picker) */
.price-feats li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; min-height: 42px; }
.price-feats li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.price-feats li.muted { color: var(--muted); }
.price-feats li.muted::before { background: #cfcfcf; }

.hero-card { border-color: var(--accent); position: relative; animation: founderGlow 3.6s ease-in-out infinite; }
/* Absolutely positioned so it doesn't push the Founder card's rows out of line */
.price-flag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #1a1a1a; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
@keyframes founderGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 0 rgba(232, 168, 56, 0); }
  50% { box-shadow: 0 0 0 1px var(--accent), 0 0 34px rgba(232, 168, 56, .35); }
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.foot { background: var(--ink); color: #fff; padding: 40px 24px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 14px; color: rgba(255, 255, 255, .7); }
.foot-links a:hover { color: #fff; }
.foot small { color: rgba(255, 255, 255, .5); font-size: 13px; }

/* ══════════════════════════════════════
   REVEAL-ON-SCROLL (only when JS is present)
   ══════════════════════════════════════ */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* staggered bullets */
.js [data-reveal] .ticks li { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal].in .ticks li { opacity: 1; transform: none; }
.js [data-reveal].in .ticks li:nth-child(1) { transition-delay: .04s; }
.js [data-reveal].in .ticks li:nth-child(2) { transition-delay: .10s; }
.js [data-reveal].in .ticks li:nth-child(3) { transition-delay: .16s; }
.js [data-reveal].in .ticks li:nth-child(4) { transition-delay: .22s; }
.js [data-reveal].in .ticks li:nth-child(5) { transition-delay: .28s; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-copy, .feature.reverse .feature-media { order: initial; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 32px; }
  /* Icon-only tabs below desktop — 8 icons always fit, so no scroll needed */
  .tab { gap: 0; padding: 10px 8px; }
  .tab span:not(.ico) { display: none; }
  .tab .ico { width: 19px; height: 19px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 104px; }
  .tabbar-top { padding: 0 14px; }
  .tabbar-tabs { padding: 8px 12px 0; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 32px; letter-spacing: -.5px; }
  .cta-row .btn { flex: 1 1 auto; }
  .price-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
  .stats strong { font-size: 36px; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq { max-width: 760px; margin: 0 auto; padding: 0 24px 84px; text-align: center; }
.faq h2 { margin: 0 0 28px; }
.faq-list { text-align: left; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; padding: 15px 18px;
  font-weight: 650; font-size: 15px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 19px; font-weight: 500; color: var(--muted);
  flex-shrink: 0; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 18px 16px; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.faq .faq-a p { margin: 0; }

/* Currency note under the pricing header */
.price-currency { font-size: 12.5px; color: var(--muted); margin: 10px auto 0; }

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal] .ticks li { opacity: 1 !important; transform: none !important; }
  [data-tilt], [data-scroll3d] { transform: none !important; }
  .scroll-progress { display: none; }
}
