:root {
  interpolate-size: allow-keywords;

  --bg: #F4F4F5;
  --surface: #FFFFFF;
  --surface-2: #E4E4E7;
  --ink: #18181B;
  --ink-soft: #52525B;
  --accent: #2563EB;
  --accent-2: #DC2626;
  --line: #D4D4D8;
  --line-strong: #A1A1AA;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --header-h: 72px;
  --max-w: 1240px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; max-width: 100vw; margin: 0; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 240ms ease; }
a:hover { color: var(--accent-2); }
ul, ol { list-style: none; }

/* ── Skip link ── */
.skip-link {
  position: fixed; top: -100%; left: 16px;
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; z-index: 10000;
  transition: top 200ms ease;
}
.skip-link:focus { top: 8px; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.mono { font-family: var(--font-mono); font-weight: 500; }

.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── Blueprint background ── */
.blueprint-bg {
  position: relative;
}
.blueprint-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.blueprint-bg > * { position: relative; z-index: 1; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1080;
  background: rgba(244, 244, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 240ms ease, box-shadow 240ms ease, padding 240ms ease;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: rgba(244, 244, 245, 0.98);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: -2px;
}

/* ── Desktop nav ── */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 240ms ease, background 240ms ease;
  position: relative;
  text-decoration: none;
}
.nav-desktop a:hover {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.06);
}
.nav-desktop a.is-active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--surface) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--surface) !important;
}

/* ── Nav toggle (hamburger) ── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  z-index: 1100;
  position: relative;
  padding: 0;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
  position: absolute;
}
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ── Mobile drawer ── */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--surface);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  padding: calc(var(--header-h) + 24px) 28px 32px;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }

.drawer a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
}
.drawer a:hover { color: var(--accent); padding-left: 8px; }
.drawer a.is-active { color: var(--accent); }
.drawer .drawer-cta {
  display: inline-block;
  margin-top: 20px;
  background: var(--ink);
  color: var(--surface);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  width: 100%;
  border-bottom: none;
}
.drawer .drawer-cta:hover { background: var(--accent); color: var(--surface); }

/* ── Main offset ── */
main { padding-top: var(--header-h); }

/* ── Section spacing ── */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ── Hero ── */
.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

/* ── Pill badges (technical terms strip) ── */
.term-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.term-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--surface);
  transition: border-color 240ms ease, color 240ms ease;
  white-space: nowrap;
}
.term-pill:hover { border-color: var(--accent); color: var(--accent); }
.term-pill--accent {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

/* ── Trust strip ── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.trust-badge svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ── Hero dimension line (decorative SVG) ── */
.hero-dimension {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
  display: none;
}
@media (min-width: 1024px) { .hero-dimension { display: block; } }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--surface);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 240ms ease, transform 180ms ease, box-shadow 240ms ease;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.35);
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--ink);
  padding: 14px 32px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 180ms ease;
  text-decoration: none;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ── Stats counters ── */
.stats-band {
  background: var(--ink);
  color: var(--surface);
  padding: clamp(32px, 5vw, 56px) 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--surface);
  display: block;
}
.stat-number .stat-suffix {
  font-size: 0.6em;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--line);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ── Table scroll wrapper ── */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  white-space: nowrap;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:hover { background: rgba(37, 99, 235, 0.03); }

.table-mono td {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
}
.table-mono td:first-child {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Price highlight */
.price-cell {
  font-family: var(--font-mono) !important;
  font-weight: 500 !important;
  color: var(--accent);
  white-space: nowrap;
}
.price-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Interactive SVG diagram ── */
.diagram-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.binding-diagram { width: 100%; height: auto; }

.binding-diagram .layer {
  cursor: pointer;
  transition: opacity 300ms ease;
}
.binding-diagram:hover .layer { opacity: 0.3; }
.binding-diagram .layer:hover { opacity: 1 !important; }

.binding-diagram .layer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.binding-diagram .layer:hover .layer-label { opacity: 1; }

.diagram-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}
.legend-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.03);
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms cubic-bezier(.2,.7,.2,1), border-color 260ms ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.14);
  border-color: var(--accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  transition: background 260ms ease;
}
.card:hover .card-icon { background: rgba(37, 99, 235, 0.14); }
.card-icon svg { width: 24px; height: 24px; }

.card h4 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* ── Process steps (vertical timeline) ── */
.process-timeline {
  position: relative;
  padding-left: 40px;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.process-step {
  position: relative;
  padding-bottom: 40px;
}
.process-step:last-child { padding-bottom: 0; }

.process-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  z-index: 1;
  transition: background 240ms ease, color 240ms ease;
}
.process-step:hover .process-dot {
  background: var(--accent);
  color: var(--surface);
}

.process-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.process-step h4 { margin-bottom: 6px; }

.process-step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 520px;
}

/* ── References / client grid ── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.ref-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  transition: border-color 240ms ease, color 240ms ease, transform 240ms cubic-bezier(.2,.7,.2,1);
  min-height: 72px;
}
.ref-item:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
.testimonial:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.1);
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
  line-height: 0.6;
  margin-bottom: 10px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}
.testimonial-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ── FAQ (pure CSS accordion) ── */
.faq-list { max-width: 780px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 240ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(.4,0,.2,1);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }

.faq-item summary:hover { color: var(--accent); }

.faq-item > .faq-body {
  height: 0;
  padding: 0 clamp(18px, 3vw, 28px);
  overflow: hidden;
  transition: height 360ms cubic-bezier(.4,0,.2,1),
              padding-block-end 360ms cubic-bezier(.4,0,.2,1);
}
.faq-item[open] > .faq-body {
  height: auto;
  padding-block-end: 26px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item > .faq-body { transition: none; }
}

.faq-body p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── Form ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 240ms ease, box-shadow 240ms ease;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field textarea { min-height: 120px; resize: vertical; }

.field select {
  appearance: auto;
  -webkit-appearance: auto;
}

.field input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.field--check label {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}

.form-submit {
  margin-top: 8px;
}
@media (max-width: 639px) {
  .form-submit .btn-primary { width: 100%; justify-content: center; }
}

/* ── Notes / news block ── */
.notes-list { max-width: 600px; }
.note-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.note-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  min-width: 110px;
}
.note-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Pricing packages ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  position: relative;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(.2,.7,.2,1);
}
.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.15);
}
.pricing-card--featured::before {
  content: 'Popüler';
  position: absolute;
  top: -1px; right: 24px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.pricing-price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.pricing-price small {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.pricing-min {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.pricing-list {
  margin-bottom: 8px;
}
.pricing-list li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-list li svg { width: 16px; height: 16px; flex-shrink: 0; }
.pricing-list .included svg { color: var(--accent); }
.pricing-list .excluded { opacity: 0.5; }
.pricing-list .excluded svg { color: var(--accent-2); }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--line);
  padding: clamp(48px, 6vw, 80px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: clamp(36px, 5vw, 56px);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand {
  max-width: 320px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--surface);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--line-strong);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--line-strong);
  padding: 5px 0;
  transition: color 200ms ease, padding-left 200ms ease;
  text-decoration: none;
}
.footer-col a:hover { color: var(--surface); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--line-strong);
  margin-bottom: 12px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item a {
  color: var(--line-strong);
  display: inline;
  padding: 0;
}
.footer-contact-item a:hover { color: var(--surface); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--line-strong);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--line-strong);
  padding: 0;
}
.footer-legal a:hover { color: var(--surface); padding-left: 0; }
.footer-vkn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--line-strong);
  margin-top: 4px;
  opacity: 0.7;
}

/* ── Hours table (mini) ── */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.hours-day { font-weight: 500; color: var(--ink); }
.hours-time { color: var(--ink-soft); }
.hours-today .hours-day { color: var(--accent); }
.hours-today .hours-time { color: var(--accent); font-weight: 500; }

/* ── Contact page cards ── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms cubic-bezier(.2,.7,.2,1), border-color 260ms ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.12);
  border-color: var(--accent);
}

.contact-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.contact-card-icon svg { width: 22px; height: 22px; }

.contact-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-card .contact-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.contact-card .contact-value a { color: var(--ink); text-decoration: none; }
.contact-card .contact-value a:hover { color: var(--accent); }
.contact-card .contact-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1),
              transform 600ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[style*="--i"] {
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html.no-js .reveal { opacity: 1; transform: none; }

/* ── Niche-specific animations ── */

/* 1. Thread-stitch underline on headings */
@keyframes stitch-draw {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
.stitch-heading {
  position: relative;
  display: inline-block;
}
.stitch-heading::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4' viewBox='0 0 16 4'%3E%3Cpath d='M0 2 L4 0 L8 2 L12 0 L16 2' fill='none' stroke='%232563EB' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 16px 4px;
  opacity: 0;
  transition: opacity 500ms ease;
}
.stitch-heading.is-in::after { opacity: 1; }

/* 2. Book press stamp on CTA */
@keyframes press-stamp {
  0% { transform: scale(1); }
  50% { transform: scale(0.94); }
  100% { transform: scale(1); }
}
.btn-primary:active { animation: press-stamp 200ms ease; }

/* 3. Page corner curl on card hover */
.card-curl {
  position: relative;
  overflow: hidden;
}
.card-curl::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--bg) transparent transparent;
  opacity: 0;
  transition: opacity 300ms ease;
}
.card-curl:hover::after { opacity: 1; }

/* 4. Blueprint pulse on background */
@keyframes bp-pulse {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.08; }
}
.blueprint-bg::before {
  animation: bp-pulse 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .blueprint-bg::before { animation: none; }
}

/* 5. Spine build on SVG diagram — sequential layer reveal */
@keyframes layer-reveal {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.binding-diagram .layer {
  animation: layer-reveal 600ms cubic-bezier(.2,.7,.2,1) both;
}
.binding-diagram .layer:nth-child(1) { animation-delay: 200ms; }
.binding-diagram .layer:nth-child(2) { animation-delay: 380ms; }
.binding-diagram .layer:nth-child(3) { animation-delay: 560ms; }
.binding-diagram .layer:nth-child(4) { animation-delay: 740ms; }
.binding-diagram .layer:nth-child(5) { animation-delay: 920ms; }

@media (prefers-reduced-motion: reduce) {
  .binding-diagram .layer { animation: none; opacity: 1; transform: none; }
}

/* ── Smooth scroll offset ── */
:target { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ── Focus ring ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus:not(:focus-visible) { outline: none; }

/* ── Print ── */
@media print {
  .site-header, .site-footer, .cookie-banner, .drawer, .drawer-backdrop, .nav-toggle { display: none !important; }
  main { padding-top: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; background: #fff; }
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 240ms;
  z-index: 9999;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

@media (min-width: 640px) {
  .cookie-banner { left: 24px; right: auto; max-width: 420px; }
}

.cookie-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.cookie-text {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-text a { text-decoration: underline; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-btn:hover { border-color: var(--ink); }
.cookie-btn--accept {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.cookie-btn--accept:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }

/* ── Thank-you page ── */
.thankyou-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.thankyou-inner { max-width: 520px; }
.thankyou-inner h1 { margin-bottom: 16px; }
.thankyou-inner p { color: var(--ink-soft); margin-bottom: 28px; font-size: 1.0625rem; }

/* ── Legal pages ── */
.legal-page { padding: clamp(36px, 6vw, 72px) 0; }
.legal-page h1 { margin-bottom: 12px; }
.legal-page .legal-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.legal-page h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}
.legal-page h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-page p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 720px;
}
.legal-page ul, .legal-page ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.legal-page li { margin-bottom: 6px; line-height: 1.65; }

/* ── 404 page ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404 h1 {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 4.5rem);
  color: var(--line);
  line-height: 1;
  margin-bottom: 12px;
}
.page-404 h2 { margin-bottom: 16px; }
.page-404 p { color: var(--ink-soft); margin-bottom: 28px; }

/* ── Sitemap page ── */
.sitemap-list {
  columns: 2;
  column-gap: 36px;
}
@media (max-width: 480px) { .sitemap-list { columns: 1; } }
.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 10px;
}
.sitemap-list a {
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.sitemap-list a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Contact hero ── */
.contact-hero {
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 4vw, 48px);
}

/* ── Availability / capacity ── */
.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.04);
  margin-bottom: 20px;
}
.capacity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .capacity-dot { animation: none; }
}

/* ── Cancellation tiers ── */
.cancel-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.cancel-tier {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.875rem;
}
.cancel-tier strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
}

@media (max-width: 768px) {
  .ref-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .term-pills { gap: 8px; }
  .term-pill { font-size: 0.6875rem; padding: 5px 10px; }
  .process-timeline { padding-left: 36px; }
  .card { padding: 18px; }
  .card-icon { width: 40px; height: 40px; border-radius: 8px; }
  .card-icon svg { width: 20px; height: 20px; }
  .contact-card-icon { width: 40px; height: 40px; border-radius: 10px; }
  .contact-card-icon svg { width: 20px; height: 20px; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { justify-content: center; width: 100%; }
  .trust-strip { flex-direction: column; gap: 10px; align-items: flex-start; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.8rem; }
  .stat-number { font-size: 1.7rem; }
}

.scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:9998;transition:width 80ms linear;pointer-events:none}

/* form-reveal-opacity-fix */
main form.reveal, .form-section form.reveal, .contact-form.reveal, form[id*='iletisim'].reveal, form[class*='contact'].reveal { opacity: 1 !important; transform: none !important; translate: none !important; }
main form, .form-section form, .contact-form, form[id*='iletisim'], form[class*='contact'] { opacity: 1 !important; }

/* consent-checkbox-inline-fix */
main form label.checkbox, main form .form-checkbox, main form .consent, main form .kvkk, .contact-form label.checkbox, .contact-form .checkbox-group { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 10px !important; font-size: 14px !important; line-height: 1.5 !important; flex-wrap: nowrap !important; }
main form label.checkbox span, main form label.checkbox a, main form .form-checkbox span, main form .form-checkbox a, .contact-form label.checkbox span, .contact-form label.checkbox a { display: inline !important; flex: 1 1 auto; }
main form label.checkbox input[type='checkbox'], main form .form-checkbox input[type='checkbox'] { flex-shrink: 0 !important; width: 18px !important; height: 18px !important; margin-top: 3px !important; }

/* iletisim-form-responsive-guard v2 */
main form, .form-section form, .contact-form, .iletisim-form, form#contact-form, form[id*="iletisim"], form[class*="iletisim"], form[class*="contact"] {
  display: block;
  max-width: 720px;
  margin: 24px auto;
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--line, rgba(127,127,127,0.18));
  border-radius: 16px;
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.25);
  box-sizing: border-box;
}
main form .form-grid,
main form > .grid,
.contact-form .form-grid,
form[class*="contact"] .form-grid,
form[class*="iletisim"] .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  width: 100%;
}
@media (max-width: 640px) {
  main form .form-grid,
  main form > .grid,
  .contact-form .form-grid,
  form[class*="contact"] .form-grid,
  form[class*="iletisim"] .form-grid {
    grid-template-columns: 1fr;
  }
}
main form .form-grid > .field-full,
main form .form-grid > .col-full,
main form .form-grid > [class*="full"] {
  grid-column: 1 / -1;
}
main form .field, main form label,
.contact-form .field, .contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
main form input[type="text"],
main form input[type="email"],
main form input[type="tel"],
main form input[type="number"],
main form input[type="date"],
main form input[type="url"],
main form input[type="search"],
main form input:not([type]),
main form select,
main form textarea,
.contact-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  border: 1px solid var(--line, rgba(127,127,127,0.22));
  border-radius: 10px;
  background: var(--input-bg, rgba(0,0,0,0.04));
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
main form textarea, .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
main form input:focus, main form select:focus, main form textarea:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent, #5a8dee);
  outline-offset: 1px;
  border-color: transparent;
}
main form .checkbox, main form label.checkbox,
.contact-form .checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
main form input[type="checkbox"], main form input[type="radio"],
.contact-form input[type="checkbox"], .contact-form input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent, #5a8dee);
}
main form button[type="submit"],
main form input[type="submit"],
main form .btn-submit,
.contact-form button[type="submit"],
.contact-form .btn-submit {
  width: 100%;
  min-height: 48px;
  padding: 14px 28px;
  background: var(--accent, #5a8dee);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: filter 200ms ease, transform 120ms ease;
}
@media (min-width: 640px) {
  main form button[type="submit"],
  main form input[type="submit"],
  .contact-form button[type="submit"] {
    width: auto;
    min-width: 220px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
main form button[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  filter: brightness(1.05);
}
main form button[type="submit"]:active,
.contact-form button[type="submit"]:active {
  transform: translateY(1px);
}


/* bookbinding-design-v1 */

/* ---------- Paper-grain background overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
body > * { position: relative; z-index: 2; }

/* ---------- Stitched divider between sections (decorative) ---------- */
section + section { position: relative; }
section + section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 12vw, 120px);
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent, currentColor) 0 8px,
    transparent 8px 14px
  );
  opacity: 0.55;
  border-radius: 2px;
}

/* ---------- Gold-foil shimmer on .eyebrow + .logo ---------- */
.eyebrow {
  background: linear-gradient(
    100deg,
    var(--accent, #b8860b) 0%,
    #f4d57c 30%,
    var(--accent, #b8860b) 60%,
    #d4a017 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bb-shimmer 8s ease-in-out infinite;
  font-weight: 600;
  letter-spacing: 0.12em;
}
@keyframes bb-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow { animation: none; }
}

/* ---------- Card hover: page-lift ---------- */
.product-card, .course-card, .gallery-item {
  transition: transform 350ms cubic-bezier(.2,.7,.2,1),
              box-shadow 350ms cubic-bezier(.2,.7,.2,1);
}
.team-card, .package-card, .feature-card, .case-card, .testimonial-card, .pricing-card {
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.product-card:hover, .course-card:hover, .gallery-item:hover,
.team-card:hover, .package-card:hover, .feature-card:hover,
.case-card:hover, .testimonial-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.18),
              0 4px 12px -4px rgba(0,0,0,0.08) !important;
}

/* ---------- Button: ink-blot ripple on hover ---------- */
.btn-primary, button[type="submit"], .nav-cta, .cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after, button[type="submit"]::after,
.nav-cta::after, .cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.25) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover::after, button[type="submit"]:hover::after,
.nav-cta:hover::after, .cta:hover::after { opacity: 1; }

/* ---------- Smooth scroll site-wide ---------- */

/* ---------- Stitched section header underline ---------- */
section h2 {
  position: relative;
  padding-bottom: 0.5em;
}
section h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 64px;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent, currentColor) 0 6px,
    transparent 6px 11px
  );
  opacity: 0.7;
  border-radius: 2px;
}
section[style*="text-align:center"] h2::after,
.section-head h2::after,
.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}


/* per-site spice: bookmark ribbon corner */
.hero, section#hero, section[class*="hero"] {
  position: relative;
}
.hero::after, section#hero::after, section[class*="hero"]::after {
  content: '';
  position: absolute;
  top: 0; right: clamp(16px, 4vw, 64px);
  width: 28px; height: clamp(48px, 8vw, 80px);
  background: var(--accent, #2563eb);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}

/* batch-overflow-guard */
html, body { overflow-x: hidden; max-width: 100vw; }
img, picture, svg, video { max-width: 100%; height: auto; }
.hero-visual, .split-visual, .gallery-item, .gallery-card, figure {
  overflow: hidden;
  max-width: 100%;
}
.hero-visual img, .split-visual img, .gallery-item img, .gallery-card img {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section.hero, header.hero, .hero, [class*="hero"] { overflow-x: clip; }
.hero-content, .gallery-grid, .gallery { overflow-x: hidden; }
