:root {
  --paper: oklch(0.98 0.01 85);
  --paper-2: oklch(0.96 0.012 85);
  --ink: oklch(0.18 0.02 80);
  --ink-soft: oklch(0.38 0.02 80);
  --ink-mute: oklch(0.60 0.015 80);
  --line: oklch(0.18 0.02 80);
  --accent: oklch(0.72 0.19 45);
  --accent-ink: oklch(0.18 0.02 80);
  --font-display: 'Bricolage Grotesque', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --border: 2px;
  --shadow-card: 6px 6px 0 var(--ink);
  --shadow-card-hover: 10px 10px 0 var(--ink);
  /* The page gutter. The footer bleeds edge-to-edge by pulling itself out by
     exactly this much, so the two must never be set independently. */
  --page-pad: clamp(20px, 3vw, 48px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(circle at 1px 1px, oklch(0.18 0.02 80 / 0.08) 1px, transparent 0);
  background-size: 22px 22px;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px var(--page-pad) 0;
}

/* ── HEADER ─────────────────────────────────── */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px 22px;
  border: var(--border) solid var(--ink);
  border-radius: 60px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark svg { display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--accent); }
.brand-tag {
  font-size: 11px;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; gap: 26px; justify-content: center; }
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s;
}
.phone-chip:hover { transform: translateY(-2px); }
.phone-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.75 0.18 140);
  box-shadow: 0 0 0 4px oklch(0.75 0.18 140 / 0.25);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px oklch(0.75 0.18 140 / 0.25); }
  50% { box-shadow: 0 0 0 7px oklch(0.75 0.18 140 / 0.1); }
}
.phone-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.7;
  text-transform: lowercase;
}
.phone-num { font-weight: 600; letter-spacing: 0.01em; }

/* ── HERO ─────────────────────────────────── */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-bottom: 36px;
  background: var(--paper);
}
.meta-pill { display: inline-flex; align-items: center; gap: 8px; }
.blink-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.meta-sep { opacity: 0.4; }
.meta-mono { opacity: 0.6; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-headline .line { display: block; }
.hl-ai {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.02em 0.2em 0.08em;
  border-radius: 12px;
  transform: rotate(-1.5deg);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.hl-em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-arrows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.hero-arrows-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ── FORM STACK ─────────────────────────────────── */
.form-stack {
  display: grid;
  /* minmax(0, …) not 1fr: a grid item's default min-width is min-content, so the
     wide form card blew the track out to 650px and the whole page scrolled
     sideways on phones. */
  grid-template-columns: 52px minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 20px 0 60px;
  align-items: start;
}

.stack-rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 20px;
}
.rail-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.rail-node.active {
  background: var(--ink); color: var(--paper);
  transform: scale(1.1);
}
.rail-node.done {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--ink);
}
.rail-line {
  width: 2px; flex: 1; min-height: 80px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 4px, transparent 4px 8px);
}

.cards-col { display: flex; flex-direction: column; gap: 22px; }

/* ── FUN CARDS — playful, tactile, irresistible ─────────────────── */
.cards-col { gap: 28px; }

.fun-card {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 32px;
  /* Top padding reserves a band for .fc-sticker and the "✓ готово" badge. The
     card must keep overflow:hidden to crop .fc-bignum (which deliberately
     bleeds past the corner), and that same clip sliced the sticker in half when
     it hung above the edge — so the sticker now sits inside the band. */
  padding: 68px 36px 32px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s, filter 0.4s;
  overflow: hidden;
}
.fun-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, oklch(0.18 0.02 80 / 0.05) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.6;
}

.fc-1 {
  background: color-mix(in oklch, var(--accent) 22%, var(--paper));
  --tone: var(--accent);
  --tone-ink: var(--accent-ink);
  transform: rotate(-0.6deg);
}
.fc-2 {
  background: oklch(0.92 0.08 260);
  --tone: oklch(0.52 0.24 270);
  --tone-ink: oklch(0.98 0.01 85);
  transform: rotate(0.5deg);
}
.fc-3 {
  background: oklch(0.90 0.11 135);
  --tone: oklch(0.45 0.18 150);
  --tone-ink: oklch(0.98 0.01 85);
  transform: rotate(-0.4deg);
}
.fun-card:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 12px 12px 0 var(--ink);
}

.fun-card.done {
  filter: saturate(0.3);
  opacity: 0.75;
  transform: rotate(0) scale(0.985);
  box-shadow: 4px 4px 0 var(--ink);
}
.fun-card.done::after {
  content: '✓ готово';
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transform: rotate(6deg);
  z-index: 3;
}

/* Gigantic step numeral, bleeding off the card */
.fc-bignum {
  position: absolute;
  top: -20px; right: -12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(140px, 18vw, 240px);
  line-height: 1;
  color: var(--tone);
  opacity: 0.16;
  pointer-events: none;
  letter-spacing: -0.05em;
  z-index: 1;
  user-select: none;
}

/* Stamp-style sticker label */
.fc-sticker {
  position: absolute;
  top: 10px;
  left: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px 8px;
  background: var(--tone);
  color: var(--tone-ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 4;
}
.fc-sticker-2 { transform: rotate(3deg); left: auto; right: 130px; }
.fc-sticker-3 { transform: rotate(-2deg); left: 40px; }

.fc-head {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
  margin-top: 8px;
  max-width: 88%;
}
.fc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.fc-title em {
  font-style: italic;
  background: var(--tone);
  color: var(--tone-ink);
  padding: 0 0.15em 0.06em;
  border-radius: 10px;
  display: inline-block;
  transform: rotate(-1.5deg);
  box-shadow: 4px 4px 0 var(--ink);
  margin: 0 0.04em;
}
.fc-sub {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 500px;
  line-height: 1.5;
}

.fc-actions {
  margin-top: 24px;
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.fc-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ── STEP 1: DROPZONE with floating file stickers ─────────── */
.dz {
  position: relative; z-index: 2;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
  padding: 28px 24px 20px;
  background: var(--paper);
  border: 3px dashed var(--ink);
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
.dz:hover {
  border-style: solid;
  background: color-mix(in oklch, var(--tone) 8%, var(--paper));
  transform: scale(1.005);
}
.dz.over {
  border-style: solid;
  background: color-mix(in oklch, var(--tone) 18%, var(--paper));
  transform: scale(1.015);
  box-shadow: inset 0 0 0 4px var(--tone);
}
.dz.err { border-color: oklch(0.55 0.22 25); }

.dz-scene {
  position: relative;
  /* Tall enough to keep the centred arrow clear of the bottom format pill —
     see .dz-target's bottom inset. */
  height: 120px;
  margin: 4px auto 0;
  width: 280px;
}
.dz-ghost {
  position: absolute;
  padding: 10px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--ink);
  animation: drift 4s ease-in-out infinite;
}
.dz-g1 { top: 8px; left: 10px; transform: rotate(-10deg); background: var(--accent); animation-delay: 0s; }
.dz-g2 { top: 14px; right: 20px; transform: rotate(8deg); background: oklch(0.88 0.15 200); animation-delay: 0.7s; }
.dz-g3 { bottom: 0; left: 50%; transform: translateX(-50%) rotate(-3deg); background: oklch(0.85 0.18 340); animation-delay: 1.4s; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.dz-target {
  position: absolute;
  /* The bottom inset keeps the arrow centred in the space *above* the .dz-g3
     pill instead of the whole scene. Without it the arrow lands on top of the
     pill's label — harmless while the arrow pointed up and its mass sat high,
     but the head of a downward arrow covers the text. */
  inset: 0 0 44px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 0.25s;
}
.dz:hover .dz-target { transform: scale(1.15); }
.dz.over .dz-target { transform: scale(1.25) rotate(8deg); }

.dz-text { display: flex; flex-direction: column; gap: 4px; }
.dz-big {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dz-small { font-size: 14px; color: var(--ink-soft); }
.dz-small u {
  text-decoration-thickness: 3px;
  text-decoration-color: var(--tone);
  text-underline-offset: 4px;
}

.dz-pills {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.dz-pills span {
  padding: 4px 10px;
  border: 1.5px solid var(--ink-mute);
  border-radius: 999px;
  background: var(--paper-2);
}

.dz-error {
  font-size: 13px;
  color: oklch(0.5 0.22 25);
  font-weight: 600;
}

/* Uploaded file "got it!" state */
.got-it {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  animation: bounce-in 0.5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes bounce-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.got-thumb {
  position: relative;
  width: 110px; height: 110px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  transform: rotate(-3deg);
}
.got-thumb img { width: 100%; height: 100%; object-fit: cover; }
.got-pdf {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--tone); color: var(--tone-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
}
.got-stamp {
  position: absolute;
  bottom: -8px; right: -14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  padding: 5px 10px;
  background: oklch(0.65 0.22 25);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  transform: rotate(10deg);
  letter-spacing: 0.05em;
}
.got-info { display: flex; flex-direction: column; gap: 6px; }
.got-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; word-break: break-all; line-height: 1.15; }
.got-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.got-size { font-family: 'JetBrains Mono', monospace; color: var(--ink-soft); white-space: nowrap; }
.got-ok { color: oklch(0.48 0.18 150); font-weight: 600; }
.got-replace {
  align-self: flex-start;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.got-replace:hover { background: var(--ink); color: var(--paper); }

/* ── STEP 2: paper textarea + sliding examples ─────────── */
.ex-scroll {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  padding: 10px 0;
  overflow: hidden;
}
.ex-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.ex-track {
  display: flex; gap: 10px;
  flex-wrap: wrap;
}
.ex-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 15px;
  padding: 4px 14px;
  background: var(--paper);
  color: var(--tone);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(var(--r, 0));
  transition: transform 0.2s;
  white-space: nowrap;
}
.fun-card:hover .ex-pill { transform: rotate(0); }

.paper-ta {
  position: relative; z-index: 2;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 0 var(--tone);
  transition: box-shadow 0.3s, transform 0.2s;
  overflow: hidden;
}
.paper-ta.active, .paper-ta:focus-within {
  box-shadow: inset 0 -4px 0 0 var(--tone);
}
.paper-lines {
  position: absolute; inset: 64px 0 48px 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, oklch(0.5 0.02 80 / 0.18) 27px 28px);
  pointer-events: none;
}
.paper-input {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 20px 22px 14px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink);
  resize: vertical;
  min-height: 140px;
}
.paper-input::placeholder { color: var(--ink-mute); font-style: italic; }
.paper-footer {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px 12px;
  border-top: 2px dashed var(--ink-mute);
  background: color-mix(in oklch, var(--tone) 6%, var(--paper));
}
.mood {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 14px;
  transition: color 0.3s;
}
.mood-idle { color: var(--ink-mute); }
.mood-wait { color: var(--ink-soft); }
.mood-ok { color: var(--ink); }
.mood-good { color: var(--tone); }
.mood-great { color: oklch(0.5 0.22 25); font-weight: 700; }
.paper-stats {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.paper-dot { opacity: 0.4; }
.paper-count.low { color: oklch(0.65 0.18 70); font-weight: 600; }
.paper-count.over { color: oklch(0.55 0.22 25); font-weight: 700; }

/* CHONKY buttons — irresistible */
.btn-chonk {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--tone, var(--accent));
  transition: all 0.15s cubic-bezier(.4,0,.2,1);
}
.btn-chonk:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--tone, var(--accent));
}
.btn-chonk:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--tone, var(--accent));
}
.btn-chonk.off { opacity: 0.4; cursor: not-allowed; box-shadow: 3px 3px 0 var(--ink-mute); }
.btn-chonk-2 { background: var(--tone); color: var(--tone-ink); }
.chonk-arr {
  font-size: 24px;
  transition: transform 0.2s;
}
.btn-chonk:hover:not(:disabled) .chonk-arr { transform: translateX(4px); }

/* ── STEP 3: postcard fields + MEGA submit ─────────── */
.pc-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 22px;
}
.pc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  transition: all 0.2s;
  cursor: text;
}
.pc-field:focus-within {
  box-shadow: 6px 6px 0 var(--tone);
  transform: translate(-3px, -3px);
}
.pc-field.err { border-color: oklch(0.55 0.22 25); background: oklch(0.96 0.04 25); }
.pc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--tone);
  letter-spacing: -0.01em;
}
.pc-field input {
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  padding: 0;
}
.pc-field input::placeholder { color: var(--ink-mute); }

.pc-or {
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}
.pc-or span {
  padding: 4px 12px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-6deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.promise {
  position: relative; z-index: 2;
  padding: 16px 22px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.promise-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  padding: 4px 10px;
  background: var(--tone);
  color: var(--tone-ink);
  border-radius: 999px;
  white-space: nowrap;
  transform: rotate(-3deg);
  flex-shrink: 0;
  margin-top: 2px;
}
.promise ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}
.promise li { line-height: 1.4; }

.submit-row { margin-top: 24px; justify-content: center; }

.btn-mega {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 44px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--tone);
  color: var(--tone-ink);
  cursor: pointer;
  box-shadow: 8px 8px 0 var(--ink);
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  text-transform: lowercase;
}
.btn-mega:hover:not(:disabled) {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--ink);
}
.btn-mega:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-mega.off, .btn-mega:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: 4px 4px 0 var(--ink-mute); }
.mega-top { font-size: 0.6em; opacity: 0.8; font-weight: 700; }
.mega-bot { display: inline-flex; align-items: center; gap: 12px; }
.mega-arr { font-size: 1em; display: inline-block; transition: transform 0.2s; }
.btn-mega:hover:not(:disabled) .mega-arr { transform: translate(4px, -4px); }

.spinner {
  width: 22px; height: 22px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUCCESS — confetti celebration ─────────── */
.success-wrap {
  position: relative;
  animation: bounce-in 0.6s cubic-bezier(.34, 1.56, .64, 1);
}
.confetti {
  position: absolute; inset: -20px 0 auto 0;
  height: 400px;
  pointer-events: none;
  overflow: hidden;
}
.cf {
  position: absolute;
  top: -20px;
  width: 10px; height: 16px;
  animation: fall 2.8s linear infinite;
}
.cf-0 { background: var(--accent); }
.cf-1 { background: oklch(0.55 0.22 270); }
.cf-2 { background: oklch(0.55 0.22 150); }
.cf-3 { background: oklch(0.70 0.24 5); border-radius: 50%; }
@keyframes fall {
  0% { top: -20px; transform: rotate(0); opacity: 1; }
  100% { top: 500px; transform: rotate(720deg); opacity: 0; }
}

.success-card-fun {
  position: relative;
  text-align: center;
  padding: 60px 36px 44px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 10px 10px 0 var(--accent);
}
.success-emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 10px;
  animation: wiggle 1.8s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.success-head {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 5.5vw, 64px);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 0.95;
}
.success-copy {
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.success-copy strong { color: var(--ink); }
.success-copy u { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.success-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 28px 0;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
}
.success-strip > div {
  background: var(--paper-2);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.success-strip span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.success-strip strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}



/* ── SIDE (right col) ─────────────────────────────────── */
.stack-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 2px solid var(--ink);
}
.side-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.side-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.side-card strong { color: var(--accent); font-weight: 600; }
.side-divider { height: 1px; background: oklch(0.4 0.02 80); margin: 10px 0 16px; }
.side-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  font-family: 'JetBrains Mono', monospace;
}
.side-row span { opacity: 0.6; }

.side-quote {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transform: rotate(1.2deg);
}
.quote-mark {
  position: absolute;
  top: -8px; left: 18px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}
.side-quote p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  margin: 14px 0 10px;
  font-style: italic;
  font-weight: 500;
}
.quote-attr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ── INSPIRATION ─────────────────────────────────── */
.inspiration {
  padding: 80px 0 40px;
  border-top: 2px solid var(--ink);
  margin-top: 40px;
}
.ins-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}
.ins-kicker, .trust-kicker, .faq-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  padding-bottom: 8px;
}
.ins-title, .trust-title, .faq-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
}
.ins-title em { font-style: italic; color: var(--accent); }
.ins-link {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.ins-link:hover { background: var(--ink); color: var(--paper); }

.ins-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 30px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.ins-tile {
  flex: 0 0 auto;
  width: 280px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(var(--r));
  scroll-snap-align: start;
  transition: transform 0.3s;
  box-shadow: 4px 4px 0 var(--ink);
}
.ins-tile:hover { transform: rotate(0) translateY(-4px); }
.ins-tile[data-ratio="3/4"] { aspect-ratio: 3/4; }
.ins-tile[data-ratio="1/1"] { aspect-ratio: 1; }
.ins-tile[data-ratio="5/3"] { aspect-ratio: 5/3; }

.ins-placeholder {
  width: 100%; height: 100%;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, oklch(0.18 0.02 80 / 0.06) 14px 16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.tone-1 { background: color-mix(in oklch, var(--accent) 20%, var(--paper)); }
.tone-2 { background: var(--paper-2); }
.tone-3 { background: color-mix(in oklch, var(--ink) 8%, var(--paper)); }
.ins-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.ins-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
}

/* ── TRUST BAR ─────────────────────────────────── */
.trust-bar {
  padding: 60px 0 100px;
  border-top: 2px solid var(--ink);
}
.trust-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  position: relative;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.trust-card:nth-child(2) { background: var(--accent); color: var(--accent-ink); }
.trust-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }
.trust-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  opacity: 0.5;
}
.trust-glyph {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
}
.trust-body { margin-top: auto; }
.trust-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.trust-card-sub { font-size: 15px; opacity: 0.75; text-wrap: pretty; }

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin: 0 calc(-1 * var(--page-pad));
  padding: 70px clamp(28px, 5vw, 80px);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid oklch(0.4 0.02 80);
}
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-mark {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
}
.footer-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.footer-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.6; margin-top: 4px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  opacity: 0.85;
  cursor: pointer;
}
.footer-cols a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.5;
}

/* ── TWEAKS PANEL ─────────────────────────────────── */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
  width: 280px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--font-body);
}
.tweaks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
}
.tweaks-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.tweaks-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
}
.tweaks-section { margin-bottom: 14px; }
.tweaks-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.tweaks-swatches { display: flex; gap: 8px; }
.swatch {
  width: 36px; height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}
.tweaks-fonts { display: flex; flex-direction: column; gap: 6px; }
.font-opt {
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: all 0.15s;
}
.font-opt:hover { background: var(--paper-2); }
.font-opt.active { background: var(--ink); color: var(--paper); }

/* ── FAQ ─────────────────────────────────── */
.faq-sec {
  padding: 60px 0 90px;
  border-top: 2px solid var(--ink);
}
.faq-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}
.faq-item {
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.faq-item[open] {
  box-shadow: 7px 7px 0 var(--accent);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--paper-2); }
/* Plus turning into a minus — no icon font, no JS. */
.faq-sign {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}
.faq-sign::before,
.faq-sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-sign { background: var(--accent); }
.faq-item[open] .faq-sign::after { opacity: 0; }
.faq-a {
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
}
.faq-a p { margin: 0; }
.faq-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.faq-foot {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.faq-foot a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ── COOKIE CONSENT ─────────────────────────────────── */
.cc-banner {
  position: fixed;
  z-index: 9999;
  left: 16px; right: 16px; bottom: 16px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  animation: cc-in 0.35s cubic-bezier(.4,0,.2,1);
}
.cc-banner[hidden] { display: none; }
@keyframes cc-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cc-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cc-copy { flex: 1 1 auto; min-width: 0; }
.cc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 78ch;
}
.cc-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.cc-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
/* Both buttons share size, weight and border so refusing is visually as easy as
   accepting — a faint "reject" would invalidate the consent. */
.cc-btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 22px;
  min-width: 128px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cc-btn-yes { background: var(--accent); color: var(--accent-ink); box-shadow: 4px 4px 0 var(--ink); }
.cc-btn-no  { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.cc-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.cc-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cc-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons that have to look like links: the consent-withdrawal controls must be
   real <button>s for accessibility, but read as inline text. */
.inline-link-btn,
.footer-link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-link-btn { display: block; text-align: left; }
.static-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-mute); }

/* Cookie table on the policy page */
.cookie-table-wrap { overflow-x: auto; margin: 18px 0 28px; }
.cookie-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.cookie-table th, .cookie-table td {
  border: 2px solid var(--ink);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cookie-table th { background: var(--paper-2); font-family: var(--font-display); font-weight: 700; }
.cookie-table code { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* ── RESPONSIVE ───────────────────────────────────
   Note: .dropzone / .dz-visual / .contact-grid / .field-or used to be targeted
   here, but no template has carried those class names for a while — the rules
   were dead, which is why the dropzone and the phone/email row never actually
   got a phone layout. The live names are .dz / .dz-scene / .pc-grid / .pc-or.
*/
@media (max-width: 1080px) {
  .form-stack { grid-template-columns: minmax(0, 1fr); }
  .stack-rail, .stack-side { display: none; }
}

/* The brand, the five nav links and the call button only fit side by side from
   about 900px up; below that the call button was pushed off the right edge and
   the page scrolled sideways. Separate from the 780px block because only the
   header needs to change this early. */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; gap: 16px; }
  .site-header > div:empty { display: none; }
}

@media (max-width: 780px) {
  /* Header: logo + call button only, and the number must never wrap. */
  .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; }
  .site-nav { display: none; }
  .phone-chip { padding: 10px 14px; font-size: 13px; gap: 8px; white-space: nowrap; }
  /* Scoped to the call link: the thank-you header reuses .phone-chip for its
     "← нова идея" back link, which needs to keep its text. */
  .phone-chip[href^="tel:"] .phone-label { display: none; }
  .phone-num { white-space: nowrap; }
  /* Thank-you header has an empty middle cell for the 3-column desktop grid;
     in two columns it would push the chip onto its own full-width row. */
  .site-header > div:empty { display: none; }
  .brand { gap: 10px; }
  .brand-tag { display: none; }

  /* Hero */
  .hero { padding: 36px 0 26px; }
  .hero-meta { gap: 10px; margin-bottom: 26px; padding: 7px 14px; font-size: 11px; }
  .hero-headline { font-size: clamp(34px, 9.5vw, 56px); letter-spacing: -0.03em; }
  .hl-ai { box-shadow: 4px 4px 0 var(--ink); border-radius: 10px; }
  .hero-sub { font-size: 16px; }

  /* Step cards. The card clips its own overflow (for the dot pattern and the
     big background numeral), so a sticker hung above the top edge gets sliced
     in half. Bring the sticker inside and reserve a band across the top of the
     card for it and the "✓ готово" badge — side by side they used to land on
     top of the title, which at this width overlapped it by ~37px. */
  .cards-col { gap: 20px; }
  .fun-card { padding: 54px 18px 22px; border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); }
  .fc-bignum { font-size: 108px; top: -6px; }
  .fc-title { font-size: clamp(26px, 8vw, 34px); }
  .fc-sub { font-size: 15px; }

  /* Step 1 — dropzone */
  .dz { padding: 22px 14px 18px; gap: 12px; }
  .dz-scene { width: 100%; max-width: 280px; }
  .dz-big { font-size: 22px; }

  /* Step 2 — the example pills become a swipeable row instead of wrapping
     into several clipped lines inside the overflow:hidden strip. */
  .ex-scroll { overflow-x: auto; gap: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ex-scroll::-webkit-scrollbar { display: none; }
  .ex-track { flex-wrap: nowrap; }
  .ex-pill { flex: 0 0 auto; }
  .paper-input { padding: 16px 16px 12px; }

  /* All three stickers share the left of that band; the badge takes the right. */
  .fc-sticker { top: 12px; left: 18px; font-size: 12px; padding: 6px 13px; }
  .fc-sticker-2 { left: 18px; right: auto; }
  .fc-sticker-3 { left: 18px; }
  .fun-card.done::after { top: 14px; right: 16px; font-size: 12px; }

  /* Step 3 — stack phone / email. Side by side they were 254px each inside a
     ~310px card, so the card's overflow:hidden simply ate the email field. */
  .pc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
  .pc-or { padding: 2px 0; }
  .pc-or span { transform: none; }
  .pc-field { padding: 14px 16px; }

  .btn-chonk { font-size: 18px; padding: 15px 22px; width: 100%; justify-content: center; }
  .btn-mega { width: 100%; align-items: center; text-align: center; padding: 18px 22px; font-size: 26px; border-radius: 22px; }

  .promise { padding: 14px 16px; }
  .agree-row { font-size: 13px; }

  /* Inspiration strip: tiles sized so the next one peeks in and the strip
     reads as swipeable. */
  .ins-strip { gap: 14px; padding: 22px 4px; }
  .ins-tile { width: 240px; }
  .ins-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }

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

  .cc-banner { left: 10px; right: 10px; bottom: 10px; border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
  .cc-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cc-actions { flex-direction: column-reverse; }
  .cc-btn { width: 100%; }
  .cc-title { font-size: 17px; }
  .cc-text { font-size: 13px; }

  .faq-sec { padding: 44px 0 60px; }
  .faq-q { padding: 15px 16px; gap: 12px; }
  .faq-a { padding: 0 16px 16px; font-size: 15px; }
  .faq-item { border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }

  .success-strip > div { padding: 12px; }
  .success-strip strong { font-size: 17px; }
  .success-emoji { font-size: 54px; }
  .success-head { font-size: clamp(30px, 9vw, 44px); }
  .success-copy { font-size: 15px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Narrow phones (iPhone SE / mini, 360px Androids) */
@media (max-width: 480px) {
  :root { --page-pad: 14px; }
  .page { padding-top: 16px; }
  .site-footer { padding: 48px 20px; }
  /* Below ~400px the full number can't sit next to the brand without pushing the
     header off-screen, so the chip falls back to its short label. The number is
     still in the footer, and the chip is a tel: link either way. */
  .phone-chip[href^="tel:"] .phone-num { display: none; }
  .phone-chip[href^="tel:"] .phone-label { display: inline; }
  .agree-row input[type="checkbox"] { width: 20px; height: 20px; }
  .hero-meta { flex-wrap: wrap; justify-content: center; }
  .meta-sep, .meta-mono { display: none; }
  .fc-bignum { font-size: 88px; }
  .btn-mega { font-size: 23px; }
  .ins-tile { width: 210px; }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; }
  .success-strip { grid-template-columns: 1fr; }
}

/* 320px — iPhone SE 1st gen / older Androids. The brand lockup and the header
   action stop fitting side by side, so scale the brand down rather than drop
   the action. */
@media (max-width: 360px) {
  .brand-name { font-size: 20px; }
  .brand-mark svg { width: 34px; height: 34px; }
  .phone-chip { padding: 9px 12px; font-size: 12px; }
  .hero-headline { font-size: 31px; }
  .fc-title { font-size: 24px; }
  .btn-mega { font-size: 21px; padding: 16px 18px; }
  .ins-tile { width: 190px; }
}

/* ── ALPINE HELPERS ─────────────────────────────────── */
[x-cloak] { display: none !important; }

.collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.35s, transform 0.4s;
}
.collapse.open {
  max-height: 1600px;
  opacity: 1;
  transform: translateY(0);
}

/* Server-side error list styling inside a card */
.form-errors {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  padding: 14px 18px;
  background: oklch(0.96 0.04 25);
  border: 2px solid oklch(0.55 0.22 25);
  border-radius: 14px;
  color: oklch(0.4 0.18 25);
  font-size: 14px;
}
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.form-errors li { line-height: 1.4; }

/* Agree-to-terms line inside step 3 */
.agree-row {
  position: relative; z-index: 2;
  margin-top: 14px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  align-items: flex-start;
}
.agree-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.agree-row a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.recaptcha-wrap {
  position: relative; z-index: 2;
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Hide the native file input that Alpine triggers */
.hidden-file { display: none; }

/* ── STATIC PAGES (terms / privacy) ─────────────────────────────────── */
.static-page {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 48px clamp(20px, 3vw, 60px);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.static-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  line-height: 1;
}
.static-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}
.static-page p, .static-page li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.static-page ul, .static-page ol { padding-left: 22px; }
.static-page a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.static-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.static-page .back-link:hover { background: var(--ink); color: var(--paper); }

/* ── GALLERY TILE IMAGE ─────────────────────────────────── */
.ins-tile .ins-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── GALLERY PAGE ─────────────────────────────────── */
.gallery-page {
  padding: 40px 0 60px;
}
.gallery-head {
  text-align: center;
  padding: 40px 0 50px;
}
.gallery-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 22px;
  background: var(--paper);
}
.gallery-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 20px;
  text-wrap: balance;
}
.gallery-title em {
  font-style: italic;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.18em 0.06em;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.gallery-sub {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 22px;
}
.gallery-card {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--r, 0));
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: rotate(0) translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}
.gallery-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
}
.gallery-card[data-ratio="1/1"] .gallery-thumb { aspect-ratio: 1; }
.gallery-card[data-ratio="5/3"] .gallery-thumb { aspect-ratio: 5/3; }
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  letter-spacing: 0.02em;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
  text-transform: lowercase;
}
.gallery-body {
  padding: 16px 18px 18px;
  border-top: 2px dashed var(--ink);
  background: var(--paper);
}
.gallery-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.1;
}
.gallery-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.gallery-card-empty {
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

.gallery-cta {
  margin: 60px 0 20px;
  padding: 48px 40px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.gallery-cta h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1;
}
.gallery-cta p {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 15px;
  opacity: 0.85;
}
.gallery-cta .btn-chonk {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent-ink);
  box-shadow: 5px 5px 0 var(--paper);
}
.gallery-cta .btn-chonk:hover:not(:disabled) {
  box-shadow: 8px 8px 0 var(--paper);
}



