/* FootyPeople public site — one shared stylesheet, no framework.
   Brand colours come from the logo: yellow ring, coral / purple / olive swooshes. */

:root {
  --sun: #F5B400;
  --coral: #F07A5E;
  --grape: #6B2D9C;
  --olive: #93A33A;
  --ink: #14181F;
  --paper: #FFFFFF;
  --sand: #FAF7F1;

  /* Derived tones (all text/background pairs below meet WCAG AA) */
  --grape-deep: #52207A;
  --grape-soft: #F1EAF7;
  --coral-soft: #FDEDE8;
  --sun-soft: #FFF5D6;
  --olive-soft: #F0F3E0;
  --muted: #4A5160;
  --line: #E6E2DA;
  --line-strong: #CFCAC0;
  --focus: #6B2D9C;
  --error: #B42318;
  --error-soft: #FEF0EE;
  --success: #1E6B3A;
  --success-soft: #E8F5EC;

  --font-head: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 8px 24px rgba(20, 24, 31, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 24, 31, 0.05), 0 20px 48px rgba(20, 24, 31, 0.10);
  --header-h: 72px;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* `clip` (not `hidden`) so the viewport stays the scroll container and sticky/scroll-padding keep working. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--grape); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--grape-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grape);
  margin-bottom: 0.75rem;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-sand { background: var(--sand); }
.section-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grape); color: #fff; }
.btn-primary:hover { background: var(--grape-deep); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #E0A500; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--grape-deep); }
.btn-light:hover { background: var(--sand); color: var(--grape-deep); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  /* thin brand stripe */
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sun) 0 25%, var(--coral) 25% 50%, var(--grape) 50% 75%, var(--olive) 75% 100%);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { background: var(--sand); color: var(--grape-deep); }
.nav-links a[aria-current="page"] { color: var(--grape); box-shadow: inset 0 -2px 0 var(--sun); border-radius: 8px 8px 0 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 42px; padding: 8px 18px; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 3px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { display: block; padding: 12px 12px; font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); border-radius: 8px; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 8% 10%, rgba(245, 180, 0, 0.35), transparent 70%),
    radial-gradient(50% 60% at 95% 0%, rgba(240, 122, 94, 0.32), transparent 70%),
    radial-gradient(55% 65% at 100% 100%, rgba(107, 45, 156, 0.22), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(147, 163, 58, 0.30), transparent 70%),
    var(--sand);
}
.hero-inner {
  display: grid;
  gap: 32px;
  padding-block: clamp(56px, 9vw, 120px);
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #2F3542; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { display: block; justify-self: center; width: min(100%, 380px); position: relative; }
  .hero-art img { width: 100%; filter: drop-shadow(0 24px 40px rgba(107, 45, 156, 0.25)); }
}
.hero-sub {
  position: relative;
  padding-block: 28px;
  border-top: 1px solid rgba(20, 24, 31, 0.08);
}
.page-hero {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(245, 180, 0, 0.28), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(107, 45, 156, 0.16), transparent 70%),
    var(--sand);
  padding-block: clamp(48px, 7vw, 88px);
}
.page-hero .lead { color: #2F3542; }

/* ---------- Strips, grids, cards ---------- */

.built-for {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .built-for { grid-template-columns: repeat(4, 1fr); } }
.built-for a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
}
.built-for a:hover { border-color: var(--grape); color: var(--grape-deep); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-sun { background: var(--sun); }
.dot-coral { background: var(--coral); }
.dot-grape { background: var(--grape); }
.dot-olive { background: var(--olive); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 12px; }
.card p { color: var(--muted); }
.card ul { color: var(--muted); margin-bottom: 0; padding-left: 1.1em; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.card-icon svg { width: 24px; height: 24px; }
.icon-sun { background: var(--sun-soft); color: #8A6500; }
.icon-coral { background: var(--coral-soft); color: #B24A30; }
.icon-grape { background: var(--grape-soft); color: var(--grape); }
.icon-olive { background: var(--olive-soft); color: #5E6A1E; }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--grape); color: inherit; }

/* Feature sections (features.html) */
.feature {
  display: grid;
  gap: 20px;
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1.4fr; gap: 48px; }
}
.feature h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.feature ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 28px; margin: 0; }
.feature li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grape-soft);
  box-shadow: inset 0 0 0 5px var(--grape);
}
.feature.accent-sun li::before { background: var(--sun-soft); box-shadow: inset 0 0 0 5px var(--sun); }
.feature.accent-coral li::before { background: var(--coral-soft); box-shadow: inset 0 0 0 5px var(--coral); }
.feature.accent-olive li::before { background: var(--olive-soft); box-shadow: inset 0 0 0 5px var(--olive); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800;
  background: var(--sun); color: var(--ink);
  margin-bottom: 14px;
}
.step:nth-child(2) .step-num { background: var(--coral); }
.step:nth-child(3) .step-num { background: var(--olive); }
.step p { color: var(--muted); }

/* Trust */
.trust { display: grid; gap: 16px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .card-icon { flex: none; }
.trust-item h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.trust-item p { color: var(--muted); font-size: 0.97rem; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, var(--grape-deep) 0%, var(--grape) 55%, #9A3D78 100%);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(240, 122, 94, 0.55), transparent 70%),
    radial-gradient(30% 50% at 0% 100%, rgba(147, 163, 58, 0.45), transparent 70%),
    radial-gradient(25% 40% at 85% 100%, rgba(245, 180, 0, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); }
.cta-inner {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Two halves (solutions.html) */
.halves { display: grid; gap: 24px; }
@media (min-width: 900px) { .halves { grid-template-columns: 1fr 1fr; } }
.half {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  background: #fff;
}
.half-grape { background: linear-gradient(180deg, var(--grape-soft), #fff 40%); }
.half-sun { background: linear-gradient(180deg, var(--sun-soft), #fff 40%); }
.half .eyebrow { margin-bottom: 4px; }
.half ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.half li { padding-left: 30px; position: relative; margin: 0; }
.half li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--grape);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 16px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 16px no-repeat;
}
.half-sun li::before { background: #8A6500; }
.half li strong { display: block; font-family: var(--font-head); }
.half li span { color: var(--muted); }

/* Pricing */
.tiers { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.tier-featured { border-color: var(--grape); box-shadow: 0 0 0 1px var(--grape), var(--shadow-lg); }
.tier-badge {
  position: absolute; top: -14px; left: 28px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
}
.tier h2 { font-size: 1.6rem; margin-bottom: 4px; }
.tier .tier-for { color: var(--muted); min-height: 3.2em; }
.tier h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.tier li { position: relative; padding-left: 26px; margin: 0; }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--olive);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
}
.tier .btn { margin-top: auto; }

.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--sand); font-family: var(--font-head); font-weight: 800; }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare td { color: var(--muted); }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: #8A8F99; }
.compare .yes::before { content: "\2713\00a0"; }
.compare .no::before { content: "\2014"; }
.compare .yes .visually-hidden, .compare .no .visually-hidden { position: absolute; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 48rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-family: var(--font-head);
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grape-soft); color: var(--grape);
  font-weight: 800;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p, .faq details > ul { padding-bottom: 16px; color: var(--muted); }

/* Prose pages (about, privacy, terms) */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: #2F3542; }
.prose .placeholder, .placeholder {
  background: var(--sun-soft);
  border: 1px dashed #C99300;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
  color: #6B4E00;
}
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sun-soft);
  border: 1px solid #EFCB5C;
  color: #4D3800;
  margin: 0 0 28px;
}
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.principles { display: grid; gap: 16px; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principles .card h3 { margin-top: 8px; font-size: 1.1rem; }

/* ---------- Forms ---------- */

.contact-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.3fr 0.7fr; gap: 48px; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.88rem; color: var(--muted); }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2314181F' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--grape);
  box-shadow: 0 0 0 4px rgba(107, 45, 156, 0.18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field .error { font-size: 0.9rem; color: var(--error); font-weight: 600; display: none; }
.field.is-invalid .error { display: block; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-privacy { font-size: 0.9rem; color: var(--muted); max-width: 30rem; }

.form-status { display: none; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; border: 1px solid; }
.form-status.is-visible { display: block; }
.form-status.success { background: var(--success-soft); border-color: #9BD3AD; color: var(--success); }
.form-status.error { background: var(--error-soft); border-color: #F0B4AD; color: var(--error); }
.form-status h3 { font-size: 1.1rem; color: inherit; margin-bottom: 4px; }
.form-status p { color: inherit; }
.form-success-panel { display: none; text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.form-success-panel.is-visible { display: block; }
.form-success-panel .check { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success-panel .check svg { width: 32px; height: 32px; }

.contact-aside { display: grid; gap: 16px; }
.contact-aside .card h3 { margin-top: 0; font-size: 1.1rem; }
.contact-aside .card p { margin-bottom: 0; }
.contact-aside .card ul { margin: 8px 0 0; padding-left: 1.1em; }

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

.site-footer { background: var(--ink); color: #D7DAE0; margin-top: auto; }
.footer-inner { display: grid; gap: 32px; padding-block: clamp(48px, 6vw, 72px) 28px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #AEB3BD; margin-top: 12px; max-width: 28rem; font-size: 0.97rem; }
.site-footer h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li { margin: 0; }
.site-footer a { color: #D7DAE0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: #AEB3BD;
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.not-found .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--sun), var(--coral), var(--grape), var(--olive)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- Layout helpers ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle .bars span { transition: none; }
}
