/* Mottle POS — website styles
   Palette from the app (ColorSystem.swift): navy #10243E, gold #B8893B,
   blue #1C5FB0, off-white #F4F6F8, ink #14181B. */

:root {
  --navy: #10243e;
  --navy-2: #1c3a5e;
  --navy-deep: #07121f;
  --gold: #b8893b;
  --gold-soft: #d9ba62;
  --blue: #1c5fb0;
  --blue-bright: #4a90e2;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --green: #216b4a;
  --red: #a33e42;
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1080px;
  --wide: 1240px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s var(--ease);
}
.nav.dark { background: rgba(10, 18, 31, 0.72); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav-inner {
  max-width: var(--wide); height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav.dark .brand { color: #f5f5f7; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { color: var(--ink-2); font-size: 13px; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav.dark .nav-links a { color: rgba(245, 245, 247, 0.78); }
.nav.dark .nav-links a:hover, .nav.dark .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta {
  font-size: 12px; font-weight: 500; color: #fff; background: var(--blue);
  padding: 6px 14px; border-radius: 980px; white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; background: #1a54a0; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.dark .menu-btn { color: #f5f5f7; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 22px 24px;
    background: rgba(251, 251, 253, 0.97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }
  .nav.dark .nav-links { background: rgba(10, 18, 31, 0.97); border-bottom-color: rgba(255,255,255,0.1); }
  .nav-links a { display: block; font-size: 22px; font-weight: 600; padding: 12px 0; color: var(--ink); }
  .nav.dark .nav-links a { color: #f5f5f7; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---------- Typography ---------- */
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--gold); margin: 0 0 10px; }
.display {
  font-size: clamp(44px, 8vw, 96px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.035em; margin: 0;
}
.headline { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--ink-2); font-weight: 500; letter-spacing: -0.015em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.43; }
.gradient-text {
  background: linear-gradient(100deg, #f5f5f7 10%, #d9ba62 45%, #8fb8ef 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold-text {
  background: linear-gradient(95deg, #d9ba62, #b8893b 60%, #f0d58c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Layout ---------- */
.section { padding: clamp(80px, 12vw, 160px) 22px; position: relative; }
.container { max-width: var(--max); margin: 0 auto; }
.wide { max-width: var(--wide); margin: 0 auto; }
.center { text-align: center; }
.dark-section { background: #000; color: #f5f5f7; }
.dark-section .lead { color: rgba(245, 245, 247, 0.72); }
.dark-section .muted { color: rgba(245, 245, 247, 0.56); }
.navy-section { background: radial-gradient(120% 90% at 50% 0%, #1c3a5e 0%, #10243e 45%, #07121f 100%); color: #f5f5f7; }
.navy-section .lead { color: rgba(245, 245, 247, 0.74); }
.white-section { background: var(--surface); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.center .actions, .hero .actions, .final .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 500; padding: 12px 24px; border-radius: 980px;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn:hover { text-decoration: none; background: #1a54a0; transform: translateY(-1px); }
.btn.light { background: #f5f5f7; color: var(--ink); }
.btn.light:hover { background: #fff; }
.link-arrow { font-size: 17px; font-weight: 500; color: var(--blue-bright); }
.white-section .link-arrow, .light-link .link-arrow { color: var(--blue); }
.link-arrow::after { content: " ›"; }
.appstore-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; padding: 8px 18px 8px 14px; transition: transform 0.25s var(--ease); }
.appstore-badge:hover { text-decoration: none; transform: translateY(-1px); }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge small { display: block; font-size: 11px; line-height: 1; opacity: 0.85; letter-spacing: 0; }
.appstore-badge strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Hero ---------- */
.hero {
  background: #000; color: #f5f5f7; text-align: center;
  padding: clamp(64px, 9vw, 120px) 22px 0; overflow: hidden; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(28, 95, 176, 0.38), rgba(184, 137, 59, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold-soft); font-size: 21px; }
.hero .lead { max-width: 720px; margin: 22px auto 34px; color: rgba(245, 245, 247, 0.74); }
.hero-device { position: relative; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1080px; perspective: 1600px; }
.hero-device .ipad {
  transform: translateY(calc((1 - var(--p, 0)) * 60px)) scale(calc(0.86 + var(--p, 0) * 0.14)) rotateX(calc((1 - var(--p, 0)) * 14deg));
  transform-origin: 50% 100%;
  transition: transform 0.08s linear;
}
.hero-note { position: relative; padding: 22px 0 46px; font-size: 12px; color: rgba(245, 245, 247, 0.48); }

/* ---------- Device frames ---------- */
.ipad {
  background: linear-gradient(145deg, #2b2b2e, #0b0b0d 60%, #1c1c1f);
  border-radius: clamp(22px, 3.2vw, 46px);
  padding: clamp(10px, 1.4vw, 18px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset, 0 50px 120px -30px rgba(0,0,0,0.65), 0 30px 60px -40px rgba(28,95,176,0.6);
}
.ipad .screen { border-radius: clamp(12px, 1.8vw, 28px); overflow: hidden; background: #0b0b0d; aspect-ratio: 4 / 3; position: relative; }
.ipad.portrait .screen { aspect-ratio: 3 / 4; }
.ipad .screen video, .ipad .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone {
  background: linear-gradient(145deg, #3a3a3d, #0d0d0f 55%, #232326);
  border-radius: 54px; padding: 11px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 40px 90px -30px rgba(0,0,0,0.55);
}
.phone .screen { border-radius: 44px; overflow: hidden; aspect-ratio: 1320 / 2868; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.scale { transform: scale(0.94); }
.reveal.scale.in { transform: none; }

/* ---------- Highlights strip ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.highlight { background: var(--surface); border-radius: var(--radius); padding: 34px 30px; }
.highlight .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef3fb; color: var(--blue); margin-bottom: 18px; }
.highlight h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.highlight p { margin: 0; color: var(--ink-3); }
@media (max-width: 820px) { .highlights { grid-template-columns: 1fr; } }

/* ---------- Scroll story ---------- */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { padding: 18vh 0; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.story-step.active { opacity: 1; }
.story-step .num { font-size: 14px; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 14px; }
.story-step h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.028em; margin: 0 0 16px; }
.story-step p { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 440px; }
.story-step ul { margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 15px; }
.story-step li { padding: 6px 0 6px 26px; position: relative; }
.story-step li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.story-visual { position: sticky; top: calc(var(--nav-h) + 6vh); height: 82vh; display: flex; align-items: center; justify-content: center; }
.story-visual .ipad { width: 100%; }
.story-visual .screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.story-visual .screen img.active { opacity: 1; transform: none; }
.story-mobile-img { display: none; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .story-steps { padding: 0; }
  .story-step { min-height: 0; opacity: 1; padding: 36px 0; }
  .story-mobile-img { display: block; margin-top: 26px; }
  .story-mobile-img .ipad { max-width: 560px; }
}

/* ---------- Big statement ---------- */
.statement .headline { max-width: 900px; margin: 0 auto; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; text-align: left; }
.stat { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 22px; }
.stat strong { display: block; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.035em; margin-bottom: 12px; }
.stat span { color: rgba(245, 245, 247, 0.66); font-size: 16px; }
@media (max-width: 820px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Mottle AI ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; margin-top: 72px; }
.ai-frame { border-radius: 34px; padding: 10px; background: linear-gradient(150deg, rgba(217,186,98,0.55), rgba(28,95,176,0.55) 55%, rgba(255,255,255,0.06)); box-shadow: 0 60px 120px -40px rgba(28, 95, 176, 0.55); }
.ai-frame .screen { border-radius: 26px; overflow: hidden; background: #f4f6f8; aspect-ratio: 780 / 900; }
.ai-frame video, .ai-frame img { width: 100%; height: 100%; object-fit: cover; }
.chat { display: grid; gap: 14px; }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 22px; font-size: 17px; line-height: 1.38; }
.bubble.ask { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble.answer { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #f5f5f7; border-bottom-left-radius: 6px; }
.bubble.answer b { color: var(--gold-soft); font-weight: 600; }
.ai-points { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.ai-points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: rgba(245,245,247,0.78); }
.ai-points svg { width: 24px; height: 24px; color: var(--gold-soft); margin-top: 2px; }
.ai-points strong { color: #fff; display: block; font-weight: 600; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } .ai-frame { max-width: 460px; margin: 0 auto; } }

/* ---------- iPhone fan ---------- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 72px; height: clamp(420px, 56vw, 640px); }
.phones .phone { width: clamp(170px, 23vw, 290px); transition: transform 0.1s linear; }
.phones .phone:nth-child(1) { transform: translateX(calc(var(--f, 1) * 38%)) rotate(calc(var(--f, 1) * -9deg)) scale(0.9); z-index: 1; }
.phones .phone:nth-child(2) { z-index: 2; margin: 0 -6%; }
.phones .phone:nth-child(3) { transform: translateX(calc(var(--f, 1) * -38%)) rotate(calc(var(--f, 1) * 9deg)) scale(0.9); z-index: 1; }

/* ---------- Film ---------- */
.film { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 50px 100px -40px rgba(0,0,0,0.5); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: rgba(30, 30, 32, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.film-toggle svg { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; text-align: left; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 40px 36px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.plan.featured { background: linear-gradient(160deg, #10243e, #07121f); color: #f5f5f7; position: relative; overflow: hidden; }
.plan.featured::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 80%; background: radial-gradient(circle, rgba(217,186,98,0.25), transparent 65%); }
.plan h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.plan .price { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; margin: 18px 0 4px; line-height: 1; }
.plan .price small { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); }
.plan.featured .price small, .plan.featured .muted { color: rgba(245,245,247,0.62); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan.featured li::before { border-color: var(--gold-soft); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--navy); background: var(--gold-soft); padding: 4px 10px; border-radius: 980px; margin-bottom: 14px; align-self: flex-start; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 32px 30px; }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--ink-3); }
.card .tag { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 12px; display: block; letter-spacing: 0.02em; }
.dark-section .card, .navy-section .card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.dark-section .card p, .navy-section .card p { color: rgba(245,245,247,0.68); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .app-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 24px 50px -18px rgba(28, 95, 176, 0.6); }

/* ---------- Document pages ---------- */
.page-hero { padding: clamp(72px, 10vw, 128px) 22px clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .lead { max-width: 720px; margin: 20px auto 0; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 22px clamp(80px, 10vw, 140px); }
.doc .updated { font-size: 14px; color: var(--ink-3); margin-bottom: 36px; }
.doc section { background: var(--surface); border-radius: var(--radius-sm); padding: 30px 32px; margin-bottom: 16px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 12px; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.toc a { font-size: 14px; padding: 7px 14px; border-radius: 980px; background: var(--surface); color: var(--ink-2); }
.toc a:hover { text-decoration: none; color: var(--ink); }

.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: var(--max); margin: 0 auto; }
.help-card { background: var(--surface); border-radius: var(--radius); padding: 34px 32px; display: flex; flex-direction: column; }
.help-card.primary { background: linear-gradient(160deg, #10243e, #07121f); color: #f5f5f7; grid-column: span 2; }
.help-card.primary p { color: rgba(245,245,247,0.74); }
.help-card h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.help-card p { color: var(--ink-2); margin: 0 0 18px; }
.help-card .actions { margin-top: auto; }
@media (max-width: 820px) { .help-grid { grid-template-columns: 1fr; } .help-card.primary { grid-column: auto; } }

details.faq { background: var(--surface); border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 26px; line-height: 0.8; transition: transform 0.3s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-2); margin: 14px 0 0; }

/* ---------- Support form ---------- */
[hidden] { display: none !important; }
.contact { max-width: 880px; margin: 72px auto 0; background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); box-shadow: 0 40px 80px -50px rgba(16, 36, 62, 0.35); scroll-margin-top: calc(var(--nav-h) + 24px); }
.contact-head { margin-bottom: 32px; }
.contact-head .muted { margin: 8px 0 0; }
.support-form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; letter-spacing: -0.01em; }
.field > legend { margin-bottom: 10px; }
.req, .opt { font-size: 12px; font-weight: 500; margin-left: 6px; color: var(--ink-3); }
.req { color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }
.support-form input[type=text], .support-form input[type=email], .support-form input[type=tel], .support-form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
  border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.support-form textarea { resize: vertical; min-height: 150px; line-height: 1.45; }
.support-form input:focus, .support-form textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28, 95, 176, 0.14); }
.support-form ::placeholder { color: #a1a1a6; }
.support-form .invalid { border-color: var(--red) !important; background: #fff6f6 !important; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; border-radius: 16px; }
.pills.invalid { box-shadow: 0 0 0 2px var(--red); padding: 4px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 11px 18px; border-radius: 980px; background: var(--bg); color: var(--ink-2); font-size: 15px; font-weight: 500; border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.pill:hover span { background: #e8e8ed; }
.pill input:checked + span { background: var(--navy); color: #fff; transform: scale(1.03); }
.pill input:focus-visible + span { border-color: var(--blue-bright); }
.hint { margin: 0; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.hint svg { width: 16px; height: 16px; flex: none; color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.form-foot p { margin: 0; max-width: 440px; }
.btn.send { position: relative; padding: 14px 30px; }
.btn.send[disabled] { opacity: 0.75; cursor: progress; transform: none; }
.btn.send .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.btn.send.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { margin: 0; color: var(--red); font-size: 15px; }
.form-done { text-align: center; padding: 24px 0 8px; outline: none; }
.form-done .muted { margin: 10px 0 22px; }
.form-done .again { background: none; border: 0; cursor: pointer; font: inherit; color: var(--blue); }
.done-check { width: 76px; height: 76px; margin: 0 auto 22px; }
.done-check svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease) forwards; }
.done-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.45s 0.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { background: #f5f5f7; border-top: 1px solid var(--line); padding: 48px 22px 34px; font-size: 13px; color: var(--ink-3); }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; }
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.scale { opacity: 1; transform: none; transition: none; }
  .hero-device .ipad, .phones .phone { transform: none !important; }
  .phones .phone:nth-child(2) { margin: 0 -2%; }
  .story-visual .screen img { transition: none; }
  .done-check circle, .done-check path { animation: none; stroke-dashoffset: 0; }
  .btn.send .spinner { animation-duration: 2s; }
}
