/* Valerio Films Studio — styles.css */

:root {
  --bg-page: #0E0E10;
  --bg-surface: #151518;
  --bg-surface-alt: #1C1C21;
  --border-default: #28282F;
  --border-accent: #F2EFE8;
  --text-primary: #F2EFE8;
  --text-secondary: #9A9890;
  --accent-primary: #F2EFE8;      /* main accent and buttons: warm ivory, as on the YouTube banner */
  --accent-hover: #FFFFFF;
  --text-on-accent: #0E0E10;
  --accent-subtle: #C8A97E;       /* muted tungsten: thin dividers and small accents only */
  --container-max: 1120px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:has(dialog[open]) { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-primary); }
a:hover { color: var(--accent-hover); }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 6.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-subtle);
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 64px 20px;
  border-top: 1px solid var(--border-default);
}
.section h2 { text-align: center; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text-on-accent); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.btn-outline:hover { background: rgba(242, 239, 232, .08); color: var(--text-primary); }
.btn-block { width: 100%; min-height: 48px; padding: 12px 20px; }

/* ---------- Header ---------- */
.site-header {
  min-height: 64px;
  border-bottom: 1px solid var(--border-default);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.25;
}
.brand:hover { color: var(--text-primary); }
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 38px; width: auto; flex-shrink: 0; }
.brand-subtitle { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.btn-header {
  padding: 10px 16px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-primary);
  flex-shrink: 0;
}
.btn-header:hover { background: rgba(242, 239, 232, .08); color: var(--text-primary); }

@media (max-width: 559px) {
  .brand-subtitle { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 20px 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .hero-grid--solo { grid-template-columns: 1fr; }
}
.hero-copy h1 { margin-top: 14px; }
.hero-lead {
  max-width: 48ch;
  color: var(--text-secondary);
  margin-top: 20px;
  font-size: 17px;
}
.btn-hero {
  margin-top: 28px;
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
}
.hero-note {
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}
@media (max-width: 479px) {
  .btn-hero { width: 100%; height: auto; min-height: 52px; padding: 12px 20px; }
}

/* ---------- Demo tabs ---------- */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-tab {
  appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.demo-tab:hover { color: var(--text-primary); }
.demo-tab[aria-selected="true"] {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-surface-alt);
}

/* ---------- Split stage ---------- */
#split-stage {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 340px;
  max-height: 604px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: ew-resize;
}

.split-layer {
  position: absolute;
  inset: 0;
}
.split-before {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.split-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
#split-stage.is-ready .split-layer video { opacity: 1; }

.split-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  pointer-events: none;
}
#split-stage.is-ready .split-loading,
#split-stage.is-fallback .split-loading { display: none; }

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  transform: translateX(-50%);
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.split-handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-page);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  cursor: ew-resize;
  transition: background-color .18s ease;
}
.split-handle:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
#split-stage.is-dragging .split-handle,
.split-handle:hover { background: var(--bg-surface-alt); }

.corner-badge {
  position: absolute;
  top: 12px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: rgba(14, 14, 16, .72);
  pointer-events: none;
  white-space: nowrap;
}
.corner-left { left: 12px; color: var(--text-primary); border: 1px solid var(--border-default); }
.corner-right { right: 12px; color: var(--accent-primary); border: 1px solid var(--border-accent); }

.demo-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- Fallback (no MP4 available) ---------- */
.fallback { position: absolute; inset: 0; display: none; overflow: hidden; }
#split-stage.is-fallback .fallback { display: block; }
#split-stage.is-fallback video { display: none; }

.fb-scene { position: absolute; inset: 0; }
.fb-product {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 30%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 38% 38% 10px 10px / 18% 18% 10px 10px;
}
.fb-product::before { /* cap */
  content: "";
  position: absolute;
  left: 50%;
  top: -14%;
  width: 36%;
  height: 16%;
  transform: translateX(-50%);
  border-radius: 4px 4px 2px 2px;
}
.fb-product::after { /* contact shadow */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9%;
  width: 190%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.fb-label {
  position: absolute;
  bottom: 14px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* BEFORE: warm, muddy, blown-out, with a phone grid overlay */
.fallback-before {
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 221, 160, .95) 0%, rgba(255, 196, 120, .55) 18%, transparent 46%),
    linear-gradient(180deg, #7a6545 0%, #5a4a33 55%, #3d3326 100%);
}
.fallback-before::after { /* rule-of-thirds grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255, 255, 255, .28) calc(33.333% - .5px), rgba(255, 255, 255, .28) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .28) calc(66.666% - .5px), rgba(255, 255, 255, .28) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255, 255, 255, .28) calc(33.333% - .5px), rgba(255, 255, 255, .28) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .28) calc(66.666% - .5px), rgba(255, 255, 255, .28) calc(66.666% + .5px), transparent calc(66.666% + .5px));
  pointer-events: none;
}
.fallback-before .fb-scene { filter: blur(1.6px) saturate(.65) contrast(.8); }
.fallback-before .fb-product { background: linear-gradient(90deg, #a08a68, #c9b38c 55%, #8d7757); }
.fallback-before .fb-product::before { background: #6e5f48; }
.fallback-before .fb-product::after { background: rgba(40, 30, 20, .35); }
.fallback-before .fb-label {
  left: 12px;
  color: #2b2418;
  background: rgba(255, 235, 200, .7);
}

/* AFTER: clean contrast, controlled light, gold accent */
.fallback-after {
  background:
    radial-gradient(ellipse 70% 45% at 50% 42%, #26262c 0%, #151518 55%, #0E0E10 100%);
}
.fallback-after::before { /* gold rim light */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 70%;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 60%, rgba(200, 169, 126, .2), transparent 65%);
  pointer-events: none;
}
.fallback-after .fb-product {
  background: linear-gradient(90deg, #111113 0%, #303036 38%, #F2EFE8 50%, #303036 62%, #111113 100%);
  box-shadow: inset 0 0 0 1px rgba(200, 169, 126, .5), 0 18px 40px rgba(0, 0, 0, .6);
}
.fallback-after .fb-product::before { background: var(--accent-subtle); }
.fallback-after .fb-product::after { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .75), transparent 70%); }
.fallback-after .fb-label {
  right: 12px;
  color: var(--text-on-accent);
  background: var(--accent-primary);
}

/* ---------- Director ---------- */
.director-card {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
@media (min-width: 720px) {
  .director-card { grid-template-columns: 300px 1fr; align-items: center; }
}
.director-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #000;
}
@media (min-width: 720px) {
  .director-photo { aspect-ratio: 4 / 5; height: 100%; }
}
.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.director-photo::after { /* black photo background melts into the card */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 55%, var(--bg-surface) 100%),
    radial-gradient(ellipse 80% 75% at 50% 40%, transparent 60%, rgba(21, 21, 24, .85) 100%);
  pointer-events: none;
}
@media (min-width: 720px) {
  .director-photo::after {
    background:
      linear-gradient(to right, transparent 55%, var(--bg-surface) 100%),
      radial-gradient(ellipse 80% 75% at 45% 40%, transparent 60%, rgba(21, 21, 24, .85) 100%);
  }
}
.director-copy { padding: 4px 24px 28px; }
@media (min-width: 720px) { .director-copy { padding: 32px 36px 32px 8px; } }
.section .director-copy h2 { text-align: left; margin-top: 10px; }
.director-copy p:not(.eyebrow) { margin-top: 14px; color: var(--text-secondary); max-width: 52ch; }
.director-copy p.director-role {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--accent-subtle);
  display: inline-block;
  font-size: 13px;
  color: var(--text-primary);
}

/* ---------- Process ---------- */
.process-grid {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; }
.step p { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }
.step-num { color: var(--accent-subtle); font-variant-numeric: tabular-nums; }

/* ---------- Why £69 instead of £39 ---------- */
.compare-grid {
  max-width: 860px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .compare-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.compare-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.compare-card--accent { border-color: var(--border-accent); }
.compare-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-card--accent .compare-tag { color: var(--accent-subtle); }
.compare-text { flex-grow: 1; font-size: 15px; color: var(--text-secondary); }
.compare-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.compare-flow li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}
.compare-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--accent-subtle);
}
.compare-flow li:last-child {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-on-accent);
  font-weight: 600;
}

.storyboard {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 18px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
@media (min-width: 600px) { .storyboard { padding: 22px 24px; } }
.storyboard-head {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-subtle);
}
.storyboard-strip {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 600px) { .storyboard-strip { gap: 16px; } }
.sb-frame { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.sb-screen {
  position: relative;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--bg-surface-alt) 0%, var(--bg-page) 100%);
  color: var(--text-primary);
}
.sb-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-time {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-size: 10px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.sb-num { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--accent-subtle); }
.sb-name { font-size: 11px; font-weight: 500; white-space: nowrap; }
@media (min-width: 600px) { .sb-name { font-size: 13px; } }

/* ---------- Reviews ---------- */
.reviews-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.review-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review-card blockquote { font-size: 16px; }
.review-card figcaption { font-size: 13px; color: var(--text-secondary); }

/* ---------- Pricing ---------- */
.pricing-grid {
  max-width: 860px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 767px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.price-card--accent { border-color: var(--border-accent); }
.price-title { font-size: 18px; }
.price-label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-subtle);
}
.price { margin-top: 8px; }
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}
.price-unit { color: var(--text-secondary); font-size: 14px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 10px;
  flex-grow: 1;
  font-size: 15px;
}
.price-list li {
  position: relative;
  padding-left: 24px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent-subtle);
  border-bottom: 2px solid var(--accent-subtle);
  transform: rotate(-45deg);
}

/* ---------- Brief form ---------- */
.brief-card {
  max-width: 860px;
  margin: 32px auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 28px;
  scroll-margin-top: 24px;
}
@media (max-width: 479px) { .brief-card { padding: 20px; } }
.brief-title { font-size: 18px; margin-bottom: 20px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field-full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.req { color: var(--accent-subtle); }
.optional { color: var(--text-secondary); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom on focus */
  background: var(--bg-page);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-primary) 50%), linear-gradient(135deg, var(--accent-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select option { background: var(--bg-surface); color: var(--text-primary); }
.field input::placeholder,
.field textarea::placeholder { color: #6A6964; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #3A3A42; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 0;
  border-color: var(--accent-primary);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #f87171; }
.field select.is-flash { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(242, 239, 232, .2); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.form-actions .btn {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 15px;
}
@media (max-width: 559px) { .form-actions .btn { width: 100%; } }

.form-status {
  min-height: 1.55em;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-status.is-success { color: var(--accent-primary); }
.form-status.is-error { color: #f87171; }
.form-note { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }

.tally-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 20px;
  border-top: 1px solid var(--border-default);
  font-size: 12px;
  line-height: 1.5;
  color: #9A9890;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}
@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    text-align: left;
  }
}
.footer-terms { max-width: 72ch; }
.footer-terms p + p { margin-top: 6px; }
.footer-address { font-weight: 500; color: var(--text-primary); }
.footer-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-accent);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-link:hover { color: var(--accent-hover); }

/* ---------- Privacy dialog ---------- */
#privacy-modal {
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  overflow: auto;
  overscroll-behavior: contain;
}
#privacy-modal::backdrop {
  background: rgba(5, 6, 8, .78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal-body { padding: 24px 24px 20px; overflow-wrap: anywhere; }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.modal-head h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); text-align: left; }
.modal-x {
  appearance: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover { border-color: var(--border-accent); }
.modal-body h3 {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.modal-body p { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.modal-foot { margin-top: 24px; display: flex; justify-content: flex-end; }
.modal-foot .btn { min-height: 44px; padding: 10px 22px; }

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
