/* Envio Postal Store Builder. Apple-inspired, in the enviopostal.us look: navy noite
   everywhere, white type, one red accent (brand/brand.md). Used by index.html and obrigado.html. */

:root {
  --canvas: #03081C;
  --surface: #0C193C;
  --surface-2: #11224D;
  --surface-3: #0A1B43;
  --line: #2D3753;
  --line-soft: rgba(255, 255, 255, 0.08);
  --ink: #FFFFFF;
  --ink-body: #D1D5DB;
  --ink-soft: #9CA3AF;
  --accent: #E6000F;
  --accent-press: #C4000D;
  --accent-tint: rgba(230, 0, 15, 0.14);
  --error: #FF8A8A;
  --focus: #FF5C66;
  --font: "Helvetica Neue", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;
  --gutter: 16px;
  --section: 64px;
  --bar-h: 64px;
  --shadow-1: 0 2px 8px rgba(0, 2, 12, 0.4);
  --shadow-2: 0 16px 40px -12px rgba(0, 2, 12, 0.7);
  --shadow-3: 0 40px 80px -24px rgba(0, 2, 12, 0.85);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 96px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 48px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; font-weight: 700; }
p, li { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #FFFFFF; }
input, textarea { caret-color: var(--accent); }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); transition: text-decoration-color 160ms var(--ease-out); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, 0.08); padding: 2px 4px; border-radius: 4px; overflow-wrap: anywhere; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 8px 12px; border-radius: var(--r-md); background: var(--ink); color: var(--canvas); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Grain keeps the flat navy from banding on real screens. */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 24px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--accent); color: #FFFFFF; font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-1);
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); background: var(--accent-press); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: #3A4566; color: #C9CED9; box-shadow: none; transform: none; }
.btn--small { min-height: 36px; padding: 4px 16px; font-size: 14px; line-height: 20px; }
.btn--big { min-height: 52px; padding: 12px 32px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); box-shadow: none; }
.btn--ghost:active { background: rgba(255, 255, 255, 0.06); }
.btn--light { background: var(--ink); color: var(--canvas); }
.btn--light:active { background: #E5E7EB; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-2); }
  .btn:active { transform: scale(0.97); }
  .btn--ghost:hover { border-color: #4A5677; background: rgba(255, 255, 255, 0.04); box-shadow: none; }
  .btn:disabled:hover { transform: none; box-shadow: none; }
}

.link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(4px); } }

.link { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Top bar ---------- */

.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: rgba(3, 8, 28, 0.78); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.bar__inner { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.bar__logo { flex: none; }
.bar__logo img { height: 40px; width: auto; }
.bar__title { color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; }
.bar__progress { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 360px; margin-left: auto; }
.bar__label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.bar__track { flex: 1; height: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); transition: transform 600ms var(--ease); }
.bar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body[data-view="builder"] .bar__actions { margin-left: 0; }
@media (max-width: 767px) {
  .bar__title { display: none; }
  .bar__progress { max-width: none; }
  .bar__label { font-size: 12px; letter-spacing: 0.02em; }
  [data-action="show-intro"] { display: none; }
}

/* ---------- Devices (the real store template, scaled into a frame) ---------- */

.browser { position: relative; border-radius: var(--r-md); background: #0E1834; border: 1px solid var(--line); box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); }
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2F3A5C; }
.browser__url { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; max-width: 320px; height: 24px; margin: 0 auto; padding: 0 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.06); color: var(--ink-soft); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-28px); }
.browser__url > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.browser__lock { transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.browser__lock.is-off { opacity: 0; transform: scale(0.95); width: 0; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #FFFFFF; }
.browser__screen iframe, .phone__screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #FFFFFF; }
[data-screen] iframe[aria-hidden="true"] { pointer-events: none; }

.phone { position: relative; padding: 8px; border-radius: 40px; background: #0B1022; border: 1px solid var(--line); box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.phone__screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 32px; background: #FFFFFF; }
.phone__screen::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 30%; height: 20px; border-radius: var(--r-pill); background: #0B1022; transform: translateX(-50%); }

/* ---------- Intro: hero ---------- */

.hero { position: relative; padding: 48px 0 var(--section); overflow: hidden; }
.hero__inner { display: grid; gap: 48px; }
.hero__copy { text-align: center; max-width: 680px; margin: 0 auto; }
.hero__title { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.hero__sub { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink-body); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 32px; }
.hero__stage { position: relative; max-width: 1040px; width: 100%; margin: 0 auto; padding-bottom: 96px; }
.hero__plane--back { width: 88%; }
.hero__plane--front { position: absolute; right: 0; bottom: 48px; width: 34%; max-width: 220px; min-width: 120px; }
.hero__plane { will-change: transform; }
.hero__try { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; width: min(100%, 360px); padding: 12px 16px; border-radius: var(--r-lg); background: rgba(12, 25, 60, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero__try span { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.hero__try input { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--canvas); color: var(--ink); font-size: 16px; }
.hero__try input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(255, 92, 102, 0.25); }
.demo-label { position: absolute; right: 0; bottom: 0; max-width: 260px; text-align: right; font-size: 12px; line-height: 16px; color: var(--ink-soft); }

@media (max-width: 767px) {
  .hero__stage { padding-bottom: 0; }
  .hero__plane--back { width: 100%; }
  .hero__plane--front { bottom: auto; top: 40%; right: -8px; width: 36%; }
  .hero__try { position: relative; width: 100%; margin-top: 64px; }
  .demo-label { position: static; max-width: none; margin-top: 12px; text-align: left; }
}
@media (min-width: 768px) {
  .hero { padding-top: 80px; }
  .hero__title { font-size: 60px; line-height: 60px; }
  .hero__sub { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 72px; line-height: 72px; }
  .hero__inner { gap: 64px; }
}

/* ---------- Intro: how it works ---------- */

.how { padding: var(--section) 0; border-top: 1px solid var(--line-soft); }
.how__head { max-width: 680px; }
.how__head h2, .need h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.how__intro { margin-top: 16px; font-size: 18px; line-height: 28px; }
.how__grid { display: grid; gap: 32px; margin-top: 48px; }
.how__steps { display: grid; gap: 16px; counter-reset: none; }
.how__step { position: relative; padding: 24px 24px 24px 72px; border-radius: var(--r-lg); border: 1px solid transparent; transition: background-color 400ms var(--ease), border-color 400ms var(--ease), opacity 400ms var(--ease); opacity: 0.5; }
.how__step.is-active { opacity: 1; background: var(--surface); border-color: var(--line); }
.how__num { position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.how__step.is-active .how__num { background: var(--accent); border-color: var(--accent); }
.how__step h3 { font-size: 20px; line-height: 28px; }
.how__step p { margin-top: 8px; }
.how__stage { position: sticky; top: calc(var(--bar-h) + 16px); align-self: start; }
.how__stage .browser__screen iframe { transition: opacity 240ms var(--ease-out); }
.how__stage.is-swapping .browser__screen iframe { opacity: 0; }
.how__caption { margin-top: 16px; text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 20px; min-height: 20px; }
@media (max-width: 1023px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__stage { order: -1; z-index: 2; padding: 12px 0; background: var(--canvas); }
  .how__caption { display: none; }
}
@media (min-width: 768px) {
  .how__head h2, .need h2 { font-size: 48px; line-height: 48px; }
}
@media (min-width: 1024px) {
  .how__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .how__steps { gap: 24px; padding: 64px 0 160px; }
  .how__step { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; }
  .how__num { top: 50%; transform: translateY(-50%); }
}

/* ---------- Intro: price (the tagline moment) ---------- */

.price { padding: var(--section) 0; text-align: center; border-top: 1px solid var(--line-soft); }
.price__big { max-width: 880px; margin: 0 auto; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.price__big .word { color: rgba(255, 255, 255, 0.28); transition: color 700ms var(--ease); }
.price__big .word.is-lit { color: var(--ink); }
.price__note { margin-top: 24px; font-size: 18px; line-height: 28px; }
.price__note strong { font-size: 20px; }
@media (min-width: 768px) {
  .price { padding: 128px 0; }
  .price__big { font-size: 60px; line-height: 60px; }
  .price__note { font-size: 20px; }
}
@media (min-width: 1024px) {
  .price__big { font-size: 72px; line-height: 72px; }
}

/* ---------- Intro: what you need ---------- */

.need { padding: var(--section) 0; border-top: 1px solid var(--line-soft); }
.need__grid { display: grid; gap: 32px; }
.need__list li { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-soft); }
.need__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.need__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.need__list h3 { font-size: 20px; line-height: 28px; }
.need__list p { margin-top: 4px; }
@media (min-width: 1024px) {
  .need__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

/* ---------- Intro: the lead form ---------- */

.start { padding: var(--section) 0 96px; border-top: 1px solid var(--line-soft); }
.start__panel { max-width: 560px; margin: 0 auto; padding: 32px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.start__panel h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.start__form { display: grid; gap: 24px; margin-top: 32px; }
.start__form .field { margin: 0; }
.start__form .field label:not(.check) { font-size: 18px; line-height: 28px; color: var(--ink); font-weight: 700; }
.start__back p { margin-top: 12px; }
.start__back .btn { margin-top: 24px; }
@media (min-width: 768px) {
  .start__panel { padding: 48px; }
  .start__panel h2 { font-size: 36px; line-height: 40px; }
}

/* ---------- Footer ---------- */

.foot { padding: 32px 0 40px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 14px; line-height: 20px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.foot__inner img { height: 32px; width: auto; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }
body[data-view="builder"] .foot { display: none; }

/* ---------- Builder layout ---------- */

.builder__layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.step { min-width: 0; padding: 24px var(--gutter) 128px; outline: none; }
.step__inner { max-width: 640px; margin: 0 auto; }

.steps-nav { position: sticky; top: var(--bar-h); z-index: 20; background: rgba(3, 8, 28, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.steps-nav__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.steps-nav__summary::-webkit-details-marker { display: none; }
.steps-nav__summary .icon { transition: transform 300ms var(--ease); }
.steps-nav__menu[open] .steps-nav__summary .icon { transform: rotate(180deg); }
.steps-nav__groups { padding: 0 var(--gutter) 16px; max-height: calc(100vh - var(--bar-h) - 56px); overflow: auto; }
.steps-nav__title { margin: 16px 0 8px; padding: 0 12px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.nav-step { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-body); font-size: 14px; line-height: 20px; text-align: left; cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.nav-step:disabled { cursor: not-allowed; opacity: 0.4; }
.nav-step.is-current { background: var(--surface); color: var(--ink); font-weight: 700; }
.nav-step__num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-step.is-current .nav-step__num { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.nav-step.is-done .nav-step__num { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nav-step:not(:disabled):not(.is-current):hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
}

@media (min-width: 1024px) {
  .builder__layout { grid-template-columns: 240px minmax(0, 1fr); }
  .steps-nav { top: var(--bar-h); align-self: start; height: calc(100vh - var(--bar-h)); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; border-right: 1px solid var(--line-soft); overflow: auto; }
  .steps-nav__summary { display: none; }
  .steps-nav__groups { padding: 16px 16px 32px; max-height: none; overflow: visible; }
  .step { padding-top: 48px; }
}
@media (min-width: 1280px) {
  body[data-preview="on"] .builder__layout { grid-template-columns: 240px minmax(0, 640px) minmax(0, 1fr); }
  body[data-preview="on"] .step { padding-right: 32px; }
  body[data-preview="on"] .step__inner { margin: 0; }
}

/* ---------- Preview panel ---------- */

.preview { display: none; }
body[data-preview="on"] .preview-toggle { display: inline-flex; }
.preview-toggle { display: none; position: fixed; z-index: 40; right: 16px; bottom: 16px; box-shadow: var(--shadow-2); }
.preview__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.preview__bar > p { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.preview__devices { display: flex; gap: 4px; padding: 4px; margin-left: auto; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 12px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-soft); font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.preview__close { display: none; }
.preview__stage { position: relative; }
.browser--preview .browser__screen { aspect-ratio: auto; height: calc(100vh - var(--bar-h) - 136px); min-height: 360px; }
.phone--preview { width: 300px; max-width: 100%; margin: 0 auto; }
.phone--preview .phone__screen { aspect-ratio: auto; height: min(640px, calc(100vh - var(--bar-h) - 152px)); }

@media (min-width: 1280px) {
  body[data-preview="on"] .preview { display: block; position: sticky; top: var(--bar-h); align-self: start; padding: 32px var(--gutter) 32px 16px; }
  body[data-preview="on"] .preview-toggle { display: none; }
}
@media (max-width: 1279px) {
  body[data-preview-open="true"] .preview { display: block; position: fixed; inset: 0; z-index: 70; padding: 16px; background: var(--canvas); overflow: auto; }
  body[data-preview-open="true"] .preview__close { display: inline-flex; }
  body[data-preview-open="true"] .preview-toggle { display: none; }
  .browser--preview .browser__screen { height: calc(100vh - 120px); }
}
@media (max-width: 767px) {
  .preview__bar > p { display: none; }
  .preview__devices { margin-left: 0; }
}

/* ---------- Step content ---------- */

.step__kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.step h1 { margin-top: 8px; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.lead { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--ink-body); }
.step h2.subhead { margin: 48px 0 16px; font-size: 20px; line-height: 28px; }
.step h1 + .lead + *, .step .lead + .error-box { margin-top: 32px; }
@media (min-width: 768px) {
  .step h1 { font-size: 36px; line-height: 40px; }
}
.step__body > * + * { margin-top: 24px; }
.step__body { margin-top: 32px; }

.field { margin-top: 24px; }
.field:first-child { margin-top: 0; }
.field > label:not(.check):not(.upload), .label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; }
.optional { color: var(--ink-soft); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input:not([type]), .field textarea, .field select,
.variants input[type="text"], .variants select {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 24px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder, .variants input::placeholder { color: #6B7590; }
.field input:focus, .field textarea:focus, .field select:focus, .variants input:focus, .variants select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(255, 92, 102, 0.25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { margin-top: 8px; color: var(--ink-soft); font-size: 14px; line-height: 20px; }
.field-error { margin-top: 8px; color: var(--error); font-size: 14px; line-height: 20px; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.two { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } .two .field:nth-child(2) { margin-top: 0; } }

.check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-body); font-size: 14px; line-height: 20px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--ink); }

.error-box, .success-box { padding: 16px; border-radius: var(--r-md); font-size: 14px; line-height: 20px; }
.error-box { background: rgba(255, 138, 138, 0.08); border: 1px solid rgba(255, 138, 138, 0.4); color: var(--ink); }
.error-box ul { margin-top: 8px; display: grid; gap: 4px; }
.error-box li::before { content: "•"; margin-right: 8px; color: var(--error); }
.success-box { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }

/* Notes, tips and warnings: always a full border, never a coloured side stripe. */
.callout { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.callout > .icon, .callout > [data-icon] { margin-top: 2px; color: var(--ink); }
.callout p + p { margin-top: 8px; }
.callout--warn { padding: 24px; background: var(--accent-tint); border: 2px solid var(--accent); font-size: 16px; line-height: 24px; color: var(--ink); }
.callout--warn > [data-icon] { color: #FF4D58; }
.callout--warn strong { display: block; margin-bottom: 4px; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }

/* Click-by-click instructions. */
.howto { display: grid; gap: 0; counter-reset: howto; }
.howto > li { position: relative; min-width: 0; padding: 0 0 24px 48px; counter-increment: howto; }
.howto > li::before { content: counter(howto); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.howto > li::after { content: ""; position: absolute; left: 15px; top: 40px; bottom: 8px; width: 1px; background: var(--line); }
.howto > li:last-child { padding-bottom: 0; }
.howto > li:last-child::after { display: none; }
.howto h3 { padding-top: 4px; font-size: 16px; line-height: 24px; }
.howto p, .howto ul { margin-top: 4px; }
.howto ul { display: grid; gap: 4px; padding-left: 16px; list-style: disc; }
.howto li li::marker { color: var(--ink-soft); }
.howto .example { margin-top: 8px; color: var(--ink-soft); font-size: 14px; line-height: 20px; }

.part { margin-top: 48px; }
.part:first-child { margin-top: 0; }
.part > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 20px; line-height: 28px; }
.part > h2 .part__tag { padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); color: var(--ink-soft); font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; }

.fieldmap { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.fieldmap th, .fieldmap td { padding: 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.fieldmap thead th { border-top: 0; color: var(--ink-soft); font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.fieldmap td:first-child { width: 40%; color: var(--ink); font-weight: 700; }

.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.row-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Choices: style, palettes, colors, the "has variations" fork. */
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choice, .palette, .fork__option {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-body); cursor: pointer; text-align: left;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.choice:active, .palette:active, .fork__option:active { transform: scale(0.98); }
.choice { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); }
.choice__sample { color: var(--ink); font-size: 30px; line-height: 36px; }
.choice__label { color: var(--ink); font-weight: 700; }
.choice__note { color: var(--ink-soft); font-size: 12px; line-height: 16px; }
.is-selected { border-color: var(--ink) !important; background: var(--surface-2) !important; box-shadow: inset 0 0 0 1px var(--ink); }
.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.palette { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-md); font-size: 14px; line-height: 20px; }
.palette__dots { display: flex; }
.palette__dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -6px; }
.palette__dots i:first-child { margin-left: 0; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.color { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: 14px; line-height: 20px; cursor: pointer; }
.color input { width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; }
.warning { margin-top: 12px; color: #FFD38A; font-size: 14px; line-height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .choice:hover, .palette:hover, .fork__option:hover { border-color: #4A5677; }
}

.fork { display: grid; gap: 12px; }
@media (min-width: 640px) { .fork { grid-template-columns: 1fr 1fr; } }
.fork__option { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-lg); }
.fork__option strong { font-size: 18px; line-height: 28px; }
.fork__option span { color: var(--ink-soft); font-size: 14px; line-height: 20px; }
.fork__option .fork__cta { color: var(--ink); font-weight: 700; }

/* Uploads and photos. */
.upload { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-md); border: 1px dashed #4A5677; color: var(--ink); font-weight: 700; cursor: pointer; transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.upload:hover, .upload:focus-within { border-color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload--tile { aspect-ratio: 1; flex-direction: column; text-align: center; font-size: 14px; line-height: 20px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(3, 8, 28, 0.85); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 700; }
.photo__actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(3, 8, 28, 0.85); color: var(--ink); cursor: pointer; font-size: 14px; }
.icon-btn:hover { background: var(--canvas); }
.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-row img { max-height: 64px; max-width: 200px; padding: 8px; border-radius: var(--r-sm); background: #FFFFFF; }

.specs { display: grid; gap: 4px; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04); font-size: 14px; line-height: 20px; }
.specs strong { font-weight: 700; }

/* Variations. */
.options-list { display: grid; gap: 16px; margin-top: 24px; }
.option-row { padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.option-row .field { margin-top: 16px; }
.option-row .field:first-child { margin-top: 0; }
.option-row .btn { margin-top: 12px; }
.table-wrap { margin-top: 24px; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.variants { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.variants th, .variants td { padding: 8px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.variants thead th { border-top: 0; background: var(--surface); color: var(--ink-soft); font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.variants tbody th { color: var(--ink); white-space: nowrap; }
.variants input[type="text"], .variants select { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.variants input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }

.benefit-row, .faq-row { padding: 16px; margin-top: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.benefit-row .field:first-child, .faq-row .field:first-child { margin-top: 0; }
.faq-row .btn { margin-top: 12px; }

/* Final checklist. */
.checklist { display: grid; gap: 12px; }
.check-item { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color 200ms var(--ease-out); }
.check-item.is-checked { border-color: rgba(255, 255, 255, 0.4); }
.check-item > .check { padding: 16px; font-size: 16px; line-height: 24px; color: var(--ink); font-weight: 700; }
.check-item details { border-top: 1px solid var(--line-soft); }
.check-item summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--ink-soft); font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.check-item summary::-webkit-details-marker { display: none; }
.check-item summary .icon { transition: transform 300ms var(--ease); }
.check-item details[open] summary .icon { transform: rotate(180deg); }
.check-item details > div { padding: 0 16px 16px; }

.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Copy-to-clipboard code. */
.code-copy { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-md); border: 1px dashed #4A5677; background: rgba(255, 255, 255, 0.04); }
.code-copy code { background: none; padding: 0; font-size: 18px; line-height: 28px; letter-spacing: 0.06em; }

/* ---------- Thank-you page ---------- */

.thanks { padding: 80px 0 64px; text-align: center; }
.thanks h1 { max-width: 760px; margin: 0 auto; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.thanks p { max-width: 600px; margin: 16px auto 0; font-size: 18px; line-height: 28px; }
@media (min-width: 768px) {
  .thanks { padding: 128px 0 96px; }
  .thanks h1 { font-size: 60px; line-height: 60px; }
  .thanks p { font-size: 20px; }
}
.tips { display: grid; gap: 24px; padding-bottom: 96px; }
.tip-block > * { min-width: 0; }
.tip-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.tip-block__head { display: flex; gap: 16px; align-items: flex-start; }
.tip-block__num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip-block h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.tip-block__head p { margin-top: 8px; }
.tip-block__tag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-tint); color: #FF9AA0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tip-block__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 768px) {
  .tip-block { padding: 48px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .tip-block h2 { font-size: 30px; line-height: 36px; }
}
.partners { display: grid; gap: 8px; }
.partner { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--canvas); color: var(--ink); text-decoration: none; transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.partner:active { transform: scale(0.99); }
.partner__name { font-weight: 700; }
.partner__note { display: block; color: var(--ink-soft); font-size: 14px; line-height: 20px; font-weight: 400; }
.partner > [data-icon] { margin-left: auto; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .partner:hover { border-color: #4A5677; } }
.myus-frame { display: block; width: 100%; height: 72px; border: 0; border-radius: var(--r-md); background: transparent; }

/* ---------- Motion ---------- */

[data-reveal] { will-change: transform, opacity; }
.split-word { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .price__big .word { color: var(--ink); }
  .how__step { opacity: 1; }
}
