/* Hallmark · macrostructure: Narrative Workflow · tone: feestelijk-nuchter (NL-plain, tweede persoon, geen superlatieven)
 * theme: locked design system — FESAFOTO design.md v1.0 (2026-10-10), geen catalog-pick
 * audience: party hosts + event professionals (B2C+B2B) · language: NL default, EN alternate
 * nav: N5 floating pill (eerste run in dit project; feestelijk merk, geen full-width hairline AI-nav)
 * footer: Ft1 mast-headed · enrichment: none (alleen het echte merk-teken als SVG)
 * pre-emit critique: P5 H4 E5 S5 R5 V5
 * contrast: pass (40-41) · nav: N5 · footer: Ft1 · slop: pass (42-45)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30)
 * mobile: pass (34, 49, 50-57)
 */

@import url("../fonts/fonts.css");
@import url("tokens.css");

/* ---------- base ---------- */

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

html, body { overflow-x: clip; }              /* gate 34: clip, niet hidden */

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;                          /* gate 38a: koppen roman */
  line-height: var(--lh-tight);
  color: var(--color-ink);
  margin: 0;
  overflow-wrap: anywhere;                     /* gate 51 */
  min-width: 0;
}

h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 2.4vw + 0.75rem, 2.75rem); font-weight: 600; }
h3 { font-size: var(--text-xl); font-weight: 700; }

p { margin: 0; max-width: var(--measure); }

a { color: var(--color-ink); text-underline-offset: 2px; }

svg[hidden] { display: none; }

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

.wrap-narrow { max-width: var(--measure); }

/* focus: altijd direct zichtbaar, nooit geanimeerd (gate 15) */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: inherit;
}

/* ---------- kicker / labels ---------- */

.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);                /* ink-soft op paper = 5,98:1 */
  margin: 0 0 var(--space-2xs);
}

.panel .kicker, .card .kicker { color: var(--color-gold-dark); } /* gold-dark op paper-2 = 4,57:1 */

.script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem); /* nooit < 1,6 rem */
  line-height: 1.2;
  color: var(--color-gold-dark);
  margin: 0;
}

/* ---------- knopen: acht staten ---------- */

.btn {
  display: inline-flex;
  align-items: center;                          /* gate 36 */
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 44px;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;                          /* gate 49 */
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color var(--dur-short) var(--ease-out),
              transform var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}

.btn:hover { background: var(--color-gold-light); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--color-focus-on-accent); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* loading: spinner in de knop, label blijft leesbaar */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn__spin { display: inline-block; }
.btn__spin {
  display: none;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-outline {
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: 1px solid var(--color-gold);
  box-shadow: none;
}
.btn-outline:hover { background: var(--color-gold-pale); }
.btn-outline:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- floating pill nav (N5) ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: var(--space-sm);
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;                          /* gate 36 */
  gap: var(--space-xs);
  max-width: 100%;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-paper-2);
  border: var(--border-gold);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.nav__mark { display: inline-flex; align-items: center; }
.nav__mark svg, .nav__mark img { height: 28px; width: auto; display: block; }

.nav__rail {
  display: none;                                /* < 40rem: alleen mark + taal + CTA */
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-xs);
  border-radius: var(--radius-pill);
  color: var(--color-ink-soft);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;                          /* gate 49 */
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}
.nav__link:hover { background: var(--color-paper-3); color: var(--color-ink); }
.nav__link:active { background: var(--color-gold-pale); }
.nav__link[aria-current="page"] { background: var(--color-gold-pale); color: var(--color-ink); }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  border-inline-start: var(--border-gold);
  padding-inline-start: var(--space-xs);
}

.nav__lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}
.nav__lang a:hover { background: var(--color-paper-3); color: var(--color-ink); }
.nav__lang a:active { background: var(--color-gold-pale); }
.nav__lang a[aria-current="true"] { background: var(--color-gold-pale); color: var(--color-ink); }

.nav__cta { min-height: 44px; padding: var(--space-xs) var(--space-sm); }

@media (min-width: 40rem) {
  .nav__rail { display: inline-flex; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: calc(var(--nav-h) + var(--space-lg)) calc(var(--space-3xl) + var(--space-lg)); /* end >= 1,3x start (gate 44a); ruimte voor de pill */
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

.hero__tag { margin-bottom: var(--space-2xs); }

.hero__lede {
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;                          /* gate 36 */
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero__credit {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); align-items: end; }
  .hero__aside { justify-self: end; text-align: right; }
}

.hero__aside .script { color: var(--color-gold-dark); }

/* entree: één georkestreerde beweging (geen scroll-fade overal) */
.hero__inner > * {
  animation: rise var(--dur-long) var(--ease-out) both;
}
.hero__inner > :nth-child(2) { animation-delay: 80ms; }
.hero__inner > :nth-child(3) { animation-delay: 160ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- stages (Narrative Workflow) ---------- */

.stage {
  padding-block: var(--space-2xl) var(--space-xl);
  border-top: 3px solid var(--color-gold-pale); /* genummerde dikke regel tussen stages */
}

.stage:first-of-type { border-top: 0; }

.stage__head { display: block; margin-bottom: var(--space-md); } /* gate 54: kicker boven kop, één kolom */

.stage__num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
}

.stage__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

@media (min-width: 60rem) {
  .stage__body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); }
}

.stage__copy p + p { margin-top: var(--space-sm); }

/* sweep-reveal per stage (macro), reduced-motion → direct zichtbaar */
html.js .stage__body { opacity: 0; transform: translateX(-16px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
html.js .stage.is-in .stage__body { opacity: 1; transform: none; }

/* ---------- panel / kaart ---------- */

.panel {
  background: var(--color-paper-2);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
}

.panel h3 { margin-bottom: var(--space-xs); }

/* ---------- segment-control (design.md §2.2) ---------- */

.seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-sm);
}
.seg input {
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
}
.seg label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;                          /* gate 49 */
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}
.seg label:hover { background: var(--color-paper-3); color: var(--color-ink); }
.seg label:active { background: var(--color-gold-pale); }
.seg input:checked + label {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: transparent;
}
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg input:disabled + label { opacity: 0.55; cursor: not-allowed; }

/* ---------- formulieren: checker + album ---------- */

.field { display: grid; gap: var(--space-2xs); }

.field label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}

.field__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;                          /* gate 36: input en knop dezelfde hoogte */
  gap: var(--space-xs);
}

.input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 44px;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  outline: 2px solid transparent;               /* gereserveerde focus-slot, geen shift */
  outline-offset: 1px;
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.input::placeholder { color: var(--color-ink-soft); opacity: 1; }
.input:hover { background: var(--color-paper-3); }
.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.field[data-state="error"] .input { border-color: var(--color-err); background: var(--color-err-bg); }
.field[data-state="success"] .input { border-color: var(--color-ok); }

.input__suffix {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink-soft);
  white-space: nowrap;
}
.input__suffix[hidden] { display: none; }

.field__hint {
  min-height: 1lh;                              /* stabiele slot, geen layout-sprong */
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.field[data-state="error"] .field__hint { color: var(--color-err); }

/* resultaatregio */
.result { display: grid; gap: var(--space-xs); margin-top: var(--space-sm); }
.result[hidden] { display: none; }

.result__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius);
  border: var(--border-gold);
  background: var(--color-paper-2);
  color: var(--color-ink);
}
.result__card svg { flex: 0 0 auto; margin-top: var(--space-3xs); color: var(--color-gold-dark); }
.result__card[data-tone="ok"] { background: var(--color-ok-bg); border-color: var(--color-ok); }
.result__card[data-tone="ok"] svg { color: var(--color-ok); }
.result__card[data-tone="err"] { background: var(--color-err-bg); border-color: var(--color-err); }
.result__card[data-tone="err"] svg { color: var(--color-err); }
.result__card[data-tone="wait"] { background: var(--color-paper-3); }
.result__card strong { display: block; }
.result__card p { font-size: var(--text-sm); color: var(--color-ink-soft); margin-top: var(--space-3xs); }

/* empty state (design.md §2.10) */
.empty-state {
  display: grid;
  justify-items: start;
  gap: var(--space-xs);
  padding: var(--space-md);
}
.empty-state__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border: var(--border-gold);
  border-radius: 50%;
  color: var(--color-gold-dark);
}
.empty-state p { color: var(--color-ink-soft); }

/* ---------- prijzen ---------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

@media (min-width: 48rem) {
  .pricing { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.card {
  background: var(--color-paper-2);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
  display: grid;
  gap: var(--space-sm);
}

.card--paid { border-color: var(--color-gold); box-shadow: var(--shadow-lift); }

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-variant-numeric: tabular-nums;
}

.price__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-ink);
}

.price__note {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);                 /* rustige non-claim, geen doorstreepte prijs */
}

.pricing__note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }

.feat li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}
.feat svg { flex: 0 0 auto; margin-top: var(--space-3xs); color: var(--color-gold-dark); } /* betekenis-icoon op paper-2: gold-dark 4,57:1 */

.tag {
  display: inline-block;
  padding: var(--space-3xs) var(--space-2xs);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}
.tag--now { background: var(--color-ok-bg); color: var(--color-ok); }
.tag--later { background: var(--color-paper-3); color: var(--color-ink); }

.panel__cta { margin-top: var(--space-sm); }

/* ---------- footer (Ft1) ---------- */

.foot {
  margin-top: var(--space-3xl);
  border-top: var(--border-gold);
  background: var(--color-paper-2);
  color: var(--color-ink);
  padding-block: var(--space-xl) var(--space-lg);
}

.foot__inner {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
}

.foot__wordmark img { height: 32px; width: auto; display: block; }

.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;                          /* gate 49 */
  transition: color var(--dur-short) var(--ease-out);
}
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; }
.foot__links a:active { color: var(--color-ink); }

.foot__credit { font-size: var(--text-sm); color: var(--color-ink-soft); }

/* ---------- motion-reduce matrix ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__inner > * { opacity: 1; transform: none; }
  html.js .stage__body { opacity: 1; transform: none; }
}

/* ---------- print ---------- */

@media print {
  .nav, .hero__cta, .field__row, .btn { display: none; }
  body { background: var(--color-paper-2); }
}
