/* ==========================================================================
   Appvecto — "Bright app UI"
   White + soft grey surfaces, near-black text, one coral > magenta > violet
   gradient. iOS-like shapes: squircle tiles, 32px cards, segmented controls,
   switches, notification banners. Bottom tab bar under 820px.
   ========================================================================== */
:root {
  --white: #ffffff;
  --grey: #f4f5f9;
  --ink: #14151f;
  --muted: #555768;
  --line: #e3e5ee;
  --edge: #8b8ea3;
  --coral: #ff5f6d;
  --magenta: #d946ef;
  --violet: #7a5cff;
  --danger: #b3123a;
  --grad: linear-gradient(125deg, #ff5f6d 0%, #d946ef 55%, #7a5cff 100%);
  --grad-btn: linear-gradient(120deg, #ff5f6d 0%, #d946ef 60%, #7a5cff 135%);
  --shadow-1: 0 1px 2px rgba(20, 21, 31, .05), 0 8px 24px rgba(20, 21, 31, .06);
  --shadow-2: 0 2px 6px rgba(20, 21, 31, .06), 0 20px 48px rgba(20, 21, 31, .11);
  --glow: 0 10px 26px rgba(217, 70, 239, .28);
  --r-card: 32px;
  --head: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Lexend Deca", "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tabbar: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 300 1.0625rem/1.65 var(--body);
  color: var(--ink);
  background: var(--grey);
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { display: block; background: var(--white); }
svg { max-width: 100%; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }
html:not(.js) .js-only { display: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--grey { background: var(--grey); }
.section-head { max-width: 700px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:last-child { color: var(--muted); margin: 0; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.split { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 .8125rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 28%; background: var(--grad); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.grad-text { color: var(--magenta); padding-bottom: .08em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.hint { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Header + navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--head); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 28%; background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .4); }
.logo-mark .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.header-tag { display: none; font-size: .8rem; font-weight: 400; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 999px; font-size: .94rem; font-weight: 400; white-space: nowrap; color: var(--ink); text-decoration: none; }
.main-nav a:hover { background: var(--grey); }
.main-nav .tab-ico, .main-nav .lbl-short { display: none; }
.main-nav a[aria-current="page"] { font-weight: 500; background: var(--grey); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--grad); }

@media (min-width: 821px) {
  .site-header { -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
}
@media (min-width: 821px) and (max-width: 960px) {
  .main-nav a { padding: 8px 9px; font-size: .88rem; }
}

/* Under 820px: no hamburger — the nav is a fixed bottom tab bar */
@media (max-width: 820px) {
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); }
  .site-header { position: static; background: var(--white); }
  .header-inner { min-height: 60px; }
  .header-tag { display: block; }
  .main-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    min-height: var(--tabbar);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20, 21, 31, .07);
  }
  .main-nav a { flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 3px 2px; border-radius: 16px; font: 500 .6875rem/1.2 var(--head); color: var(--muted); white-space: normal; }
  .main-nav a:hover { background: none; }
  .main-nav a:focus-visible { outline-offset: -2px; }
  .main-nav .tab-ico { display: grid; place-items: center; width: 40px; height: 34px; border-radius: 28%; transition: background-color .2s; }
  .main-nav .tab-ico .ico { width: 22px; height: 22px; }
  .main-nav .lbl-long { display: none; }
  .main-nav .lbl-short { display: block; }
  .main-nav a[aria-current="page"] { background: none; color: var(--ink); font-weight: 600; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] .tab-ico { background: var(--grad); color: #fff; box-shadow: var(--glow); }
}

/* ---------- Buttons, chips, tiles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px; font: 600 1rem var(--head); color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-btn); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--primary:hover { box-shadow: 0 14px 32px rgba(217, 70, 239, .36), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--ghost { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 14px 7px 9px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); font: 500 .8125rem var(--head); }
.chip::before { content: ""; width: 18px; height: 18px; border-radius: 28%; background: var(--grad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--grey); font-size: .85rem; font-weight: 400; }
.tile { display: grid; place-items: center; flex: none; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 28%; background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .4); }
.tile .ico { width: 28px; height: 28px; }
.tile--b { background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.tile--c { background: linear-gradient(135deg, var(--coral), var(--magenta)); }
.tile--d { background: linear-gradient(135deg, var(--violet), var(--magenta) 60%, var(--coral)); }
.tile--sm { width: 44px; height: 44px; margin: 0; }
.tile--sm .ico { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(60% 50% at 88% 8%, rgba(122, 92, 255, .14), transparent 70%), radial-gradient(50% 45% at 6% 96%, rgba(255, 95, 109, .12), transparent 70%), var(--white); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-device { position: relative; min-width: 0; }
.hero-device::before { content: ""; position: absolute; inset: 10% 16% 26%; z-index: 0; border-radius: 50%; background: var(--grad); filter: blur(64px); opacity: .32; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* ---------- Phone mockup (pure CSS) ---------- */
.phone { position: relative; z-index: 1; display: grid; width: min(290px, 78vw); aspect-ratio: 9 / 18.5; margin-inline: auto; padding: 10px; border-radius: 46px; background: var(--ink); box-shadow: inset 0 0 0 2px #34364a, var(--shadow-2), 0 44px 80px -28px rgba(122, 92, 255, .45); }
.phone::before { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #34364a; }
.phone-notch { position: absolute; top: 19px; left: 50%; z-index: 3; width: 78px; height: 22px; margin-left: -39px; border-radius: 999px; background: var(--ink); }
.phone-screen { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 36px; background: var(--white); overflow: hidden; }
.status-bar { display: flex; flex: none; align-items: center; justify-content: space-between; height: 42px; padding: 0 20px; font: 600 .75rem var(--head); }
.status-icons { display: flex; align-items: center; gap: 5px; }
.status-icons i { display: block; background: var(--ink); }
.si-signal { width: 15px; height: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.si-wifi { width: 9px; height: 9px; border-radius: 50%; }
.si-batt { width: 21px; height: 10px; border-radius: 3px; }
.screens-view { display: flex; flex: 1; min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.js .screens-view { overflow: hidden; }
.screens { display: flex; flex: 0 0 100%; min-width: 0; transition: transform .55s cubic-bezier(.3, .8, .25, 1); }
.js .screens { transform: translateX(calc(var(--i, 0) * -100%)); }
.screen { display: flex; flex: 0 0 100%; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 6px 14px 16px; overflow: hidden; scroll-snap-align: start; }

/* placeholder blocks inside the mock screens */
.b { display: block; flex: none; border-radius: 12px; background: var(--grey); }
.b-title { height: 16px; border-radius: 8px; background: var(--ink); }
.b-line { height: 9px; border-radius: 5px; background: #d9dce6; }
.b-pill { height: 44px; border-radius: 999px; background: var(--grad); }
.b-pill--ghost { margin-top: auto; background: none; box-shadow: inset 0 0 0 2px #d9dce6; }
.b-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); }
.b-search { height: 36px; border-radius: 999px; }
.b-feature { display: flex; flex: 1 1 90px; flex-direction: column; justify-content: flex-end; gap: 7px; min-height: 0; padding: 16px; border-radius: 22px; background: var(--grad); }
.b-feature i { display: block; width: 62%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .88); }
.b-feature i + i { width: 38%; background: rgba(255, 255, 255, .55); }
.w-20 { width: 20%; } .w-40 { width: 40%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-90 { width: 90%; }
.mx { margin-inline: auto; }
.s-art { position: relative; flex: 1; min-height: 0; margin: 4px 2px 8px; border-radius: 28px; background: var(--grad); overflow: hidden; }
.s-art span { position: absolute; aspect-ratio: 1; border-radius: 28%; background: rgba(255, 255, 255, .28); }
.s-art span:nth-child(1) { left: 12%; top: 16%; width: 46%; transform: rotate(-10deg); }
.s-art span:nth-child(2) { right: 10%; bottom: 14%; width: 34%; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.s-art span:nth-child(3) { right: 22%; top: 14%; width: 22%; background: rgba(255, 255, 255, .88); }
.s-dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.s-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d9dce6; }
.s-dots i.on { width: 18px; border-radius: 3px; background: var(--magenta); }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-col { display: grid; flex: 1; gap: 7px; min-width: 0; }
.s-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.s-tiles i { aspect-ratio: 1; border-radius: 28%; background: var(--grey); }
.s-tiles i:nth-child(1) { background: rgba(255, 95, 109, .24); }
.s-tiles i:nth-child(2) { background: rgba(217, 70, 239, .22); }
.s-tiles i:nth-child(3) { background: rgba(122, 92, 255, .24); }
.s-item { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 16px; background: var(--grey); }
.s-item .thumb { flex: none; width: 34px; height: 34px; border-radius: 28%; background: var(--white); }
.s-item .tag { flex: none; width: 38px; height: 18px; border-radius: 9px; background: var(--white); }
.s-item .b-line, .s-set .b-line { background: #cfd3df; }
.s-checkout .thumb { background: var(--grad); }
.s-tabbar { display: flex; align-items: center; justify-content: space-around; margin-top: auto; padding: 9px 6px; border-radius: 20px; background: var(--white); box-shadow: 0 4px 16px rgba(20, 21, 31, .13); }
.s-tabbar i { width: 20px; height: 20px; border-radius: 28%; background: #d9dce6; }
.s-tabbar i.on { background: var(--grad); }
.s-sum { display: grid; gap: 11px; padding: 14px; border-radius: 20px; border: 1.5px dashed #cfd3df; }
.s-sum .s-row:last-child .b-line { height: 11px; background: var(--ink); }
.s-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.s-pay i { height: 40px; border-radius: 14px; background: var(--grey); }
.s-pay i.on { background: var(--white); box-shadow: inset 0 0 0 2px var(--magenta); }
.s-me { display: grid; gap: 9px; justify-items: center; padding-top: 6px; }
.s-me .ring { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle closest-side, var(--grey) 0 78%, var(--white) 79% 90%, transparent 91%), var(--grad); }
.s-set { display: grid; padding: 4px 14px; border-radius: 20px; background: var(--grey); }
.s-set .s-row { padding: 11px 0; }
.s-set .s-row + .s-row { border-top: 1px solid #e1e4ec; }
.tg { position: relative; flex: none; width: 36px; height: 22px; border-radius: 11px; background: #cfd3df; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(20, 21, 31, .25); }
.tg.on { background: var(--grad); }
.tg.on::after { left: 16px; }

/* ---------- Segmented control ---------- */
.segmented { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(360px, 100%); margin: 26px auto 0; padding: 4px; border-radius: 999px; background: #e7e9f1; }
.segmented button { position: relative; z-index: 1; min-width: 0; min-height: 40px; padding: 8px 2px; border: 0; border-radius: 999px; background: none; font: 500 .8125rem var(--head); color: var(--muted); cursor: pointer; transition: color .2s; }
.segmented button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.segmented-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 21, 31, .12), 0 4px 12px rgba(20, 21, 31, .1); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .4s cubic-bezier(.3, .8, .25, 1); }

/* ---------- Cards, lists, steps ---------- */
.card { min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card--link { display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card--link .more { margin-top: auto; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.card-head h3, .card-head .tile { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font: 600 .95rem var(--head); }
.more::after { content: "\2192"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.dots { display: grid; gap: 8px; list-style: none; margin: 4px 0 22px; padding: 0; font-size: .95rem; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 28%; background: var(--grad); }
.checks { display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 8px; top: calc(.2em + 5px); width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks--todo li::before { background: none; box-shadow: inset 0 0 0 2px var(--magenta); border-radius: 28%; }
.checks--todo li::after { display: none; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps--5 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.steps li { counter-increment: step; min-width: 0; padding: 24px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 28%; background: var(--grad-btn); font: 700 1rem var(--head); color: var(--ink); }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 620px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 780px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Notification-style banners ---------- */
.banner { display: flex; align-items: flex-start; gap: 14px; max-width: 660px; margin-top: clamp(24px, 4vw, 40px); padding: 16px 18px; border-radius: 24px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.banner-body { flex: 1; min-width: 0; }
.banner-app { display: flex; justify-content: space-between; gap: 12px; margin: 0; font: 500 .72rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.banner-title { margin: 3px 0 2px; font: 600 1rem/1.3 var(--head); }
.banner-body p:last-child { margin: 0; font-size: .95rem; color: var(--muted); }
.float-note { display: none; }
@media (min-width: 1100px) {
  .float-note { position: absolute; left: -56px; top: 92px; z-index: 2; display: flex; width: 212px; margin: 0; padding: 12px 14px; gap: 10px; border-radius: 20px; }
  .float-note .banner-title { font-size: .86rem; }
}

/* ---------- Settings list + switches ---------- */
.settings { list-style: none; margin: 0 0 18px; padding: 0; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.settings li + li { border-top: 1px solid var(--line); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; cursor: pointer; }
.switch-txt { min-width: 0; }
.switch-txt strong { display: block; font: 600 1rem/1.3 var(--head); }
.switch-txt small { display: block; font-size: .85rem; color: var(--muted); }
.switch { position: relative; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--edge); transition: background-color .25s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(20, 21, 31, .28); transition: transform .25s cubic-bezier(.3, .8, .25, 1); }
.switch input:checked + .switch-track { background: var(--grad); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--violet); outline-offset: 3px; }
.scope-summary { margin: 0 0 16px; font-size: .95rem; color: var(--muted); }

/* ---------- Mini phones: wireframe > design > build ---------- */
.page-hero .hero-grid { align-items: center; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.5vw, 26px); width: 100%; max-width: 520px; margin: 0 auto; padding: 0; list-style: none; }
.stage { min-width: 0; text-align: center; }
.mini { position: relative; display: grid; width: 100%; max-width: 150px; aspect-ratio: 9 / 17; margin-inline: auto; padding: 5px; border-radius: 24px; background: var(--ink); box-shadow: var(--shadow-2); }
.mini-screen { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 17px 8px 8px; border-radius: 19px; background: var(--white); overflow: hidden; }
.mini-screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 28%; height: 5px; margin-left: -14%; border-radius: 5px; background: var(--ink); }
.m { display: block; flex: 1 1 0; min-height: 0; border-radius: 7px; background: var(--grey); }
.m--hero { flex-grow: 3; border-radius: 10px; }
.m--line { flex: 0 0 5px; border-radius: 3px; background: #d5d8e3; }
.m--short { width: 60%; }
.m--btn { flex: 0 0 14px; border-radius: 999px; }
.m-row { display: grid; flex: 1.6 1 0; grid-template-columns: 1fr 1fr; gap: 6px; min-height: 0; }
.mini--wire .mini-screen { background-image: linear-gradient(#eef0f6 1px, transparent 1px), linear-gradient(90deg, #eef0f6 1px, transparent 1px); background-size: 10px 10px; }
.mini--wire .m { background: none; box-shadow: inset 0 0 0 1.5px var(--edge); }
.mini--wire .m--line { background: var(--edge); box-shadow: none; }
.mini--color .m--hero, .mini--color .m--btn { background: var(--grad); }
.mini--color .m-row .m:first-child { background: rgba(255, 95, 109, .24); }
.mini--color .m-row .m:last-child { background: rgba(122, 92, 255, .24); }
.mini-badge { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 28%; background: var(--grad); color: #fff; box-shadow: 0 0 0 3px var(--white), var(--glow); }
.mini-badge .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.stage.is-current .mini { box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--magenta), var(--shadow-2); }
.stage-label { margin: 16px 0 0; font: 600 .82rem/1.3 var(--head); }
.stage-label small { display: block; margin-top: 2px; font: 300 .78rem/1.35 var(--body); color: var(--muted); }
.stages--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; max-width: 320px; }
.stages--4 .mini { max-width: 112px; }
@media (min-width: 560px) {
  .stage-label { font-size: .92rem; }
  .stages--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 600px; }
  .stages--4 .mini { max-width: 150px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 24px; font: 600 1.02rem/1.35 var(--head); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: -4px 4px 0 0; border-right: 2.5px solid var(--magenta); border-bottom: 2.5px solid var(--magenta); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p:last-child { margin: 0; }

/* ---------- CTA card ---------- */
.cta-card { margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 5vw, 56px); border: 2px solid transparent; border-radius: var(--r-card); background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-2); }
.cta-card:first-child { margin-top: 0; }
.cta-card h2 { max-width: 20ch; }
.cta-card p { max-width: 58ch; color: var(--muted); }
.cta-card .actions { align-items: center; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}
.side { display: grid; gap: 24px; min-width: 0; }
.side .banner { margin-top: 0; }
.form { display: grid; gap: 18px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; font: 600 .9rem var(--head); }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 14px 16px; border: 1.5px solid var(--edge); border-radius: 16px; background-color: var(--white); font: 400 1rem/1.5 var(--body); color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 46px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 23px) 50%, calc(100% - 17px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--violet); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: .875rem; font-weight: 400; color: var(--danger); }
.field-hint { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 0; font-size: .95rem; font-weight: 400; }
.form-status:empty { display: none; }
.company-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(40px, 6vw, 72px) 0 28px; background: var(--grey); font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.footer-grid > * { min-width: 0; }
.footer-note { max-width: 34ch; margin: 14px 0 0; color: var(--muted); }
.footer-h { margin: 0 0 12px; font: 600 .8125rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #dcdfe9; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (hidden state only exists with JS) ---------- */
.js .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.3, .8, .25, 1); }
.js .reveal.is-waiting { opacity: 0; transform: translateY(22px); transition: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal.is-waiting { opacity: 1; transform: none; }
  .btn:hover, .card--link:hover { transform: none; }
}
