/* MasaOde landing — hand-written stylesheet.
   Layers: tokens → fonts → reset/base → primitives → header → hero/phone →
   sections (how, split/adisyon, features, chains, stats, pricing, faq, demo) →
   footer → animations → responsive → reduced motion.
   Tokens are ported verbatim from src/frontend/packages/ui/src/styles/globals.css
   (light mode) so the page reads as the same product. */

/* ================================ TOKENS ================================ */
:root {
  --background: 36 33% 99%;
  --foreground: 20 14% 12%;
  --muted: 30 16% 95.5%;
  --muted-foreground: 24 9% 40%;
  --card: 0 0% 100%;
  --border: 28 18% 90%;
  --input: 28 18% 90%;
  /* Ember terracotta #a13a22 — the single brand hook; white text ≈ 5.9:1. */
  --primary: 14 72% 37%;
  --primary-foreground: 0 0% 100%;
  /* Saffron #f59e0b — EMPHASIS ONLY (large text / icons / borders). */
  --accent: 38 92% 50%;
  --accent-foreground: 20 14% 12%;
  --destructive: 0 72% 42%;
  --success: 152 58% 30%;
  --ring: 14 72% 37%;

  --radius: 0.625rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px hsl(20 14% 12% / 0.06);
  --shadow-md:
    0 2px 4px hsl(20 14% 12% / 0.05),
    0 4px 12px hsl(20 14% 12% / 0.06);
  --shadow-lg:
    0 8px 24px hsl(20 14% 12% / 0.08),
    0 2px 6px hsl(20 14% 12% / 0.05);
  --shadow-xl:
    0 24px 48px hsl(20 14% 12% / 0.16),
    0 8px 16px hsl(20 14% 12% / 0.08);

  --paper: 40 60% 98.5%;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --head-h: 4.25rem;
}

/* ================================ FONTS ================================= */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================= RESET / BASE ============================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
/* Anchor jumps must land clear of the fixed header (mobile section padding < header height). */
[id] { scroll-margin-top: calc(var(--head-h) + 0.75rem); }
body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'rlig' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.12;
  font-weight: 600;
  text-wrap: balance;
}
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip-link:focus-visible { left: 0; }

/* ============================== PRIMITIVES ============================== */
.container { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.container--narrow { max-width: 46rem; }

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section--tinted { background: hsl(var(--muted) / 0.55); }
.section__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.eyebrow {
  color: hsl(var(--primary));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 650; text-decoration: none; white-space: nowrap;
  border-radius: 999px; padding: 0.65rem 1.35rem; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: hsl(14 72% 32%); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid hsl(var(--border)); color: hsl(var(--foreground)); background: hsl(var(--card)); }
.btn--ghost:hover { border-color: hsl(var(--primary) / 0.55); color: hsl(var(--primary)); transform: translateY(-1px); }
.btn--lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* =============================== HEADER ================================ */
.site-head {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-head.is-scrolled {
  background: hsl(var(--background) / 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.site-head__row { display: flex; align-items: center; gap: 1.25rem; height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand__mark { width: 1.85rem; height: 1.85rem; color: hsl(var(--primary)); }
.brand__word { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; }

.site-nav { display: flex; gap: 1.4rem; margin-inline: auto; }
.site-nav a {
  text-decoration: none; font-size: 0.925rem; font-weight: 550;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease;
}
.site-nav a:hover { color: hsl(var(--foreground)); }

.site-head__actions { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }

.lang { display: inline-flex; border: 1.5px solid hsl(var(--border)); border-radius: 999px; padding: 2px; background: hsl(var(--card)); }
.lang button {
  border-radius: 999px; padding: 0.22rem 0.7rem; font-size: 0.8rem; font-weight: 700;
  color: hsl(var(--muted-foreground));
}
.lang button[aria-pressed='true'] { background: hsl(var(--foreground)); color: hsl(var(--background)); }

.nav-burger { display: none; flex-direction: column; gap: 4.5px; padding: 0.55rem; border-radius: var(--radius); }
.nav-burger span { width: 20px; height: 2px; background: hsl(var(--foreground)); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.4rem;
  box-shadow: var(--shadow-lg);
}
.mobile-nav a { display: block; padding: 0.65rem 0; text-decoration: none; font-weight: 600; }
.mobile-nav .btn { margin-top: 0.6rem; }

/* ================================= HERO ================================= */
.hero { padding-top: calc(var(--head-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero__title { font-size: clamp(2.35rem, 1.4rem + 4vw, 4rem); letter-spacing: -0.02em; }
.hero__title span { display: block; }
.hero__title-accent { color: hsl(var(--primary)); }
.hero__sub { margin-top: 1.2rem; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem); color: hsl(var(--muted-foreground)); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero__trust { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 550; color: hsl(var(--muted-foreground)); }
.hero__trust svg { width: 1.15rem; height: 1.15rem; color: hsl(var(--success)); flex: none; }

.hero__media { position: relative; }
.hero__photo {
  margin-left: 16%;
  border-radius: calc(var(--radius-xl) * 1.5);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
  background: hsl(var(--muted));
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Phone mockup — the crisp zoom into the photo's out-of-focus product moment. */
.phone {
  position: absolute; left: 0; bottom: -1.25rem;
  width: min(272px, 74vw);
  background: hsl(20 14% 10%);
  border-radius: 42px;
  padding: 9px;
  box-shadow: var(--shadow-xl);
  transform: rotate(-3.5deg);
}
.phone__screen {
  position: relative;
  background: hsl(var(--background));
  border-radius: 34px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.phone__screen::before {
  /* dynamic-island pill */
  content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; border-radius: 999px; background: hsl(20 14% 10%);
}
.pm-head { display: flex; align-items: center; justify-content: space-between; padding: 2.6rem 0.95rem 0.35rem; }
.pm-venue { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.82rem; }
.pm-venue-dot {
  width: 1.45rem; height: 1.45rem; border-radius: 0.45rem; flex: none;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
}
.pm-chip {
  font-size: 0.68rem; font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
}
.pm-tabs { display: flex; gap: 0.85rem; padding: 0.45rem 0.95rem 0.55rem; font-size: 0.72rem; font-weight: 650; color: hsl(var(--muted-foreground)); border-bottom: 1px solid hsl(var(--border)); }
.pm-tabs .is-active { color: hsl(var(--primary)); position: relative; }
.pm-tabs .is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.6rem; height: 2px; border-radius: 2px; background: hsl(var(--primary)); }
.pm-list { list-style: none; margin: 0; padding: 0.3rem 0.95rem; display: grid; gap: 0.45rem; }
.pm-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 0.6rem; }
.pm-list img { width: 42px; height: 42px; border-radius: 0.6rem; object-fit: cover; }
.pm-item { display: grid; line-height: 1.25; }
.pm-item strong { font-size: 0.78rem; font-weight: 650; }
.pm-price { font-size: 0.72rem; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.pm-add {
  width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 1.5px solid hsl(var(--primary) / 0.5);
  color: hsl(var(--primary)); font-weight: 700; font-size: 0.85rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.pm-status { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.95rem 0.5rem; font-size: 0.68rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.pm-live { width: 7px; height: 7px; border-radius: 999px; background: hsl(var(--success)); animation: ember-pulse 1.9s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.pm-bill {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 0.95rem 0.85rem; border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.pm-bill-total { display: grid; line-height: 1.2; }
.pm-bill-label { font-size: 0.66rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.pm-bill-total strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.pm-pay {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: 0.8rem; font-weight: 700; padding: 0.48rem 1.15rem; border-radius: 999px;
}

/* ============================= HOW IT WORKS ============================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.step { position: relative; padding: 1.4rem 1.4rem 1.6rem; display: grid; gap: 0.7rem; align-content: start; }
.step__no {
  position: absolute; top: -0.85rem; left: 1.3rem;
  width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.step__photo, .step__icon { border-radius: var(--radius); aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; margin-top: 0.4rem; }
.step__icon { background: hsl(var(--muted)); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; }
.step__icon svg { width: 3.4rem; height: 3.4rem; }
.step h3 { font-size: 1.22rem; }
.step p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

/* ======================== SPLIT / ADİSYON (signature) ======================== */
.split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__copy p:not(.eyebrow) { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; max-width: 50ch; }
.split__copy p:last-child { margin-bottom: 0; }

.split__stage { position: relative; padding-bottom: 2.4rem; }
.split__photo { border-radius: calc(var(--radius-xl) * 1.5); overflow: hidden; box-shadow: var(--shadow-md); margin-right: 14%; aspect-ratio: 5 / 4; background: hsl(var(--muted)); }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.split__caption { position: absolute; bottom: 0; left: 0; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.adisyon {
  --guest-a: var(--primary);
  --guest-b: var(--success);
  position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(2.5deg);
  width: min(300px, 82vw);
  background: hsl(var(--paper));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-xl);
  padding: 1.1rem 1.15rem 1.5rem;
  font-variant-numeric: tabular-nums;
}
.adisyon::after {
  /* receipt sawtooth edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, hsl(var(--paper)) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(-135deg, hsl(var(--paper)) 50%, transparent 50%) 7px 0 / 14px 10px repeat-x;
  filter: drop-shadow(0 3px 3px hsl(20 14% 12% / 0.07));
}
.adisyon__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px dashed hsl(var(--border));
  padding-bottom: 0.55rem; margin-bottom: 0.65rem;
}
.adisyon__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; font-size: 0.82rem; }
.adisyon__table { font-size: 0.78rem; font-weight: 650; color: hsl(var(--muted-foreground)); }
.adisyon__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.adisyon__items li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.55rem; font-size: 0.85rem; }
.adisyon__items li[data-guest='a'] { --guest: var(--guest-a); }
.adisyon__items li[data-guest='b'] { --guest: var(--guest-b); }
.adisyon__check {
  width: 15px; height: 15px; border-radius: 4px; border: 1.8px solid hsl(var(--border));
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.adisyon__check::after {
  content: ''; width: 8px; height: 4.5px;
  border-left: 2px solid hsl(var(--primary-foreground));
  border-bottom: 2px solid hsl(var(--primary-foreground));
  transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1) 0.05s;
}
.adisyon__items li.is-checked .adisyon__check { background: hsl(var(--guest)); border-color: hsl(var(--guest)); }
.adisyon__items li.is-checked .adisyon__check::after { transform: rotate(-45deg) scale(1); }
.adisyon__name { font-weight: 550; }
.adisyon__price { color: hsl(var(--muted-foreground)); font-size: 0.82rem; }
.adisyon__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px dashed hsl(var(--border));
  margin-top: 0.7rem; padding-top: 0.55rem;
  font-size: 0.9rem; font-weight: 650;
}
.adisyon__shares { display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.share {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.42rem 0.6rem; border-radius: var(--radius);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.share--a { background: hsl(var(--guest-a) / 0.09); color: hsl(var(--guest-a)); }
.share--b { background: hsl(var(--guest-b) / 0.11); color: hsl(var(--guest-b)); transition-delay: 0.12s; }
.adisyon.is-shared .share { opacity: 1; transform: none; }
.adisyon__stamp {
  position: absolute; right: 0.8rem; top: 42%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.16em;
  color: hsl(var(--guest-b));
  border: 3px solid hsl(var(--guest-b));
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  transform: rotate(-12deg) scale(1.6);
  opacity: 0;
  mix-blend-mode: multiply;
}
.adisyon.is-stamped .adisyon__stamp { animation: stamp-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }

/* =============================== FEATURES =============================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.feature { padding: 1.5rem 1.5rem 1.6rem; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature__icon {
  width: 2.7rem; height: 2.7rem; border-radius: 0.8rem;
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature__icon svg { width: 1.5rem; height: 1.5rem; }
.feature__icon--text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.feature h3 { font-size: 1.16rem; margin-bottom: 0.45rem; }
.feature p { color: hsl(var(--muted-foreground)); font-size: 0.94rem; }

/* ============================ MULTI-LOCATION ============================ */
.chains__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.chains__copy p:not(.eyebrow) { color: hsl(var(--muted-foreground)); max-width: 48ch; }
.chains__stage { position: relative; padding-bottom: 3.4rem; }
.chains__photo { border-radius: calc(var(--radius-xl) * 1.5); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3 / 2; background: hsl(var(--muted)); }
.chains__photo img { width: 100%; height: 100%; object-fit: cover; }
.chain-diagram {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(420px, 92%);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.1rem 1.1rem;
}
.chain-master { display: flex; align-items: center; justify-content: center; gap: 0.5rem; position: relative; padding-bottom: 1.05rem; font-weight: 700; font-size: 0.9rem; }
.chain-master svg { width: 1.3rem; height: 1.3rem; color: hsl(var(--primary)); }
.chain-master::after { content: ''; position: absolute; bottom: 0; left: 50%; height: 0.65rem; border-left: 2px solid hsl(var(--border)); }
.chain-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; position: relative; padding-top: 0.65rem; }
.chain-branches::before { content: ''; position: absolute; top: 0; left: 16.6%; right: 16.6%; border-top: 2px solid hsl(var(--border)); }
.chain-branch { position: relative; border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 0.55rem 0.6rem; display: grid; gap: 0.15rem; }
.chain-branch::before { content: ''; position: absolute; top: -0.65rem; left: 50%; height: 0.65rem; border-left: 2px solid hsl(var(--border)); }
.chain-branch strong { font-size: 0.8rem; }
.chain-branch span { font-size: 0.7rem; color: hsl(var(--primary)); font-weight: 600; }
.chain-branch:last-child span { color: hsl(var(--muted-foreground)); }

/* ================================ STATS ================================= */
.stats { background: hsl(var(--foreground)); color: hsl(36 25% 96%); padding-block: clamp(3rem, 7vw, 4.5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
.stat { display: grid; gap: 0.35rem; }
.stat__value { font-family: var(--font-display); font-weight: 650; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 0.875rem; color: hsl(36 25% 96% / 0.72); max-width: 24ch; }
.stats__src { margin-top: 2rem; font-size: 0.75rem; color: hsl(36 25% 96% / 0.5); }

/* =============================== PRICING ================================ */
.pricing__badge { margin-bottom: 2.4rem; }
.pricing__badge span {
  display: inline-block;
  background: hsl(var(--accent) / 0.16); color: hsl(26 85% 32%);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid hsl(var(--accent) / 0.4);
}
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 2vw, 1.25rem); align-items: stretch; }
.plan { position: relative; padding: 1.6rem 1.4rem 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.plan h3 { font-size: 1.15rem; }
.plan__price { font-family: var(--font-display); font-weight: 650; font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
/* Scoped to the /ay suffix only — the localizable p3.price/p4.price spans must inherit the display style. */
.plan__price .plan__per { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 550; color: hsl(var(--muted-foreground)); margin-left: 0.15rem; }
.plan__desc { color: hsl(var(--muted-foreground)); font-size: 0.9rem; min-height: 2.9em; }
.plan .btn { margin-top: 0.6rem; justify-self: start; }
.plan--featured { border-color: hsl(var(--primary)); border-width: 2px; box-shadow: var(--shadow-lg); }
.plan__tag {
  position: absolute; top: -0.85rem; left: 1.2rem;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.22rem 0.7rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.plans__every { margin-top: 1.8rem; font-weight: 600; font-size: 0.95rem; }
.plans__foot { margin-top: 0.4rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ================================= FAQ ================================== */
.faq { display: grid; }
.faq details { border-bottom: 1px solid hsl(var(--border)); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0.25rem; font-weight: 650; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid hsl(var(--primary)); border-bottom: 2px solid hsl(var(--primary));
  transform: rotate(45deg); transition: transform 0.2s ease;
  margin-right: 0.25rem;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { padding: 0 0.25rem 1.2rem; color: hsl(var(--muted-foreground)); max-width: 62ch; }

/* ================================= DEMO ================================= */
.demo { background: linear-gradient(180deg, hsl(var(--background)), hsl(var(--primary) / 0.06)); }
.demo__card {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.demo__copy p:not(.eyebrow) { color: hsl(var(--muted-foreground)); max-width: 36ch; }
.demo__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; align-content: start; }
.field { display: grid; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 650; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%;
  background: hsl(var(--card));
  border: 1.5px solid hsl(var(--input));
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18);
}
.field input[aria-invalid='true'] { border-color: hsl(var(--destructive)); }
.field__error { color: hsl(var(--destructive)); font-size: 0.8rem; }
.field--hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.demo__actions { gap: 0.7rem; }
.demo__consent { font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
.demo__status { grid-column: 1 / -1; font-size: 0.875rem; font-weight: 600; color: hsl(var(--success)); }
.demo__status--error { color: hsl(var(--destructive)); }
.demo__success { display: grid; justify-items: start; gap: 0.6rem; align-content: center; }
.demo__success svg { width: 3rem; height: 3rem; color: hsl(var(--success)); animation: success-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.demo__success h3 { font-size: 1.5rem; }
.demo__success p { color: hsl(var(--muted-foreground)); }

/* ================================ FOOTER ================================ */
.site-foot { background: hsl(var(--muted) / 0.6); border-top: 1px solid hsl(var(--border)); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.site-foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-foot__tagline { margin-top: 0.7rem; font-family: var(--font-display); font-size: 1.05rem; color: hsl(var(--muted-foreground)); }
.site-foot__nav { display: grid; gap: 0.5rem; align-content: start; }
.site-foot__nav a, .site-foot__contact a { text-decoration: none; color: hsl(var(--muted-foreground)); font-size: 0.925rem; }
.site-foot__nav a:hover, .site-foot__contact a:hover { color: hsl(var(--foreground)); }
.site-foot__label { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }
.site-foot__contact { display: grid; gap: 0.6rem; align-content: start; justify-items: start; }
.site-foot__legal {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  border-top: 1px solid hsl(var(--border));
  padding-block: 1.1rem 1.4rem;
  font-size: 0.8rem; color: hsl(var(--muted-foreground));
}
.site-foot__small { max-width: 60ch; }

/* ============================== ANIMATIONS ============================== */
/* Keyframe vocabulary ported from packages/ui tailwind-preset.ts. */
@keyframes ember-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--success) / 0.45); }
  50% { box-shadow: 0 0 0 5px hsl(var(--success) / 0); }
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-12deg) scale(1.6); }
  to { opacity: 0.92; transform: rotate(-12deg) scale(1); }
}
@keyframes success-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll reveal — hidden ONLY once reveal.js has armed html.js, so no-JS (or a failed
   script) reads everything. Printing must never capture unrevealed sections as blank. */
html.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.21, 0.96, 0.4, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-revealed { opacity: 1; transform: none; }
@media print {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1140px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}

@media (max-width: 900px) {
  .site-nav, .site-head__cta { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-nav.is-open { display: grid; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { display: grid; justify-items: center; margin-top: 1rem; }
  .hero__photo { margin-left: 0; width: 100%; aspect-ratio: 16 / 10; }
  .phone { position: static; margin-top: -42%; transform: rotate(-2.5deg); }

  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .split__grid, .chains__grid { grid-template-columns: 1fr; }
  .chains__grid .chains__copy { order: 0; }
  .chains__grid .chains__stage { order: 1; }
  .split__photo { margin-right: 0; }
  .adisyon { position: static; transform: rotate(1.5deg); margin: -3.5rem auto 0; }
  .split__stage { display: grid; justify-items: center; }
  .split__caption { position: static; margin-top: 0.8rem; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .demo__card { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .demo__form { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .phone { margin-top: -34%; }
}

/* ============================ REDUCED MOTION ============================ */
/* Ported verbatim from packages/ui globals.css. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important; /* staggered --reveal-delay must not survive reduce-motion */
    scroll-behavior: auto !important;
  }
}
