/* Genieton demo — avond Deventer */
:root {
  --ink: #0e1210;
  --cream: #e8e2d6;
  --mist: #a8b5ae;
  --teal: #1a8f7a;
  --teal-deep: #0d5c4f;
  --glow: #3ecfad;
  --night: #061018;
  --night-2: #0c1f28;
  --warn: #c4a574;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", "Avenir Next", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--cream);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--glow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--glow); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  font-size: 0.9rem;
}
.nav a { color: var(--mist); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }

.hero {
  position: relative;
  min-height: min(92dvh, 820px);
  display: grid;
  align-items: end;
  padding: var(--pad);
  padding-bottom: clamp(2.5rem, 8vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, #1a4a55 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, #0d3d35 0%, transparent 50%),
    linear-gradient(165deg, var(--night-2) 0%, var(--night) 45%, #02080c 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner { max-width: 36rem; }
.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: rise 0.9s ease both;
}
.brand-mark em {
  font-style: italic;
  font-weight: 500;
  color: var(--glow);
}
.hero-line {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  color: var(--mist);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  animation: rise 0.9s ease 0.12s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.22s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--glow);
  color: var(--night);
}
.btn-primary:hover { background: #fff; color: var(--night); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid color-mix(in srgb, var(--cream) 35%, transparent);
}
.btn-ghost:hover { border-color: var(--cream); color: #fff; }
.meta-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--mist) 80%, transparent);
  animation: rise 0.9s ease 0.3s both;
}

.wrap {
  width: min(720px, 100% - 2 * var(--pad));
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}
.wrap-wide { width: min(920px, 100% - 2 * var(--pad)); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 0.6rem; color: var(--glow); }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; color: color-mix(in srgb, var(--cream) 88%, var(--mist)); }
.lede { font-size: 1.15rem; color: var(--mist); }

.journey { counter-reset: step; margin: 2rem 0; }
.step {
  position: relative;
  padding: 1.25rem 0 1.25rem 1.1rem;
  border-left: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
  margin-left: 0.35rem;
  animation: rise 0.7s ease both;
}
.step:nth-child(1) { animation-delay: 0.05s; }
.step:nth-child(2) { animation-delay: 0.12s; }
.step:nth-child(3) { animation-delay: 0.18s; }
.step:nth-child(4) { animation-delay: 0.24s; }
.step:nth-child(5) { animation-delay: 0.3s; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 1.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--teal-deep);
  border: 2px solid var(--glow);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.handle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--glow);
}

.phone {
  width: min(280px, 100%);
  margin: 1.5rem auto;
  padding: 0.85rem;
  border-radius: 28px;
  background: linear-gradient(160deg, #1a2228, #0a1014);
  border: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}
.phone-screen {
  border-radius: 20px;
  background: var(--night-2);
  padding: 1.1rem;
  min-height: 320px;
}
.phone-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist);
  margin-bottom: 0.5rem;
}
.big-code {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0.5rem 0 1rem;
  animation: pop 0.45s ease both;
}
#qr {
  display: block;
  margin: 0 auto 1rem;
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}
.chip {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cream) 25%, transparent);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-family: inherit;
}
.chip:hover, .chip.is-active {
  border-color: var(--glow);
  color: var(--glow);
}
.field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--cream);
  background: color-mix(in srgb, var(--night) 70%, #122);
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.field:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.toggles {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
  border-radius: 4px;
  font-size: 0.92rem;
}
.toggle input { accent-color: var(--glow); width: 1.1rem; height: 1.1rem; }
.chime {
  display: none;
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: color-mix(in srgb, var(--teal) 25%, transparent);
  border-left: 3px solid var(--glow);
  font-size: 0.95rem;
  animation: pulse 1.2s ease infinite;
}
.chime.is-on { display: block; }
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--cream);
  color: var(--night);
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 50;
  transition: transform 0.35s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.toast.is-show { transform: translateX(-50%) translateY(0); }

.screen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}
.screen-table th, .screen-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
}
.screen-table th { color: var(--mist); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.anti {
  columns: 1;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--mist);
}
@media (min-width: 640px) { .anti { columns: 2; } }

.site-footer {
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
  font-size: 0.85rem;
  color: var(--mist);
}
.site-footer a { color: var(--mist); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
