@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-subtle: #f0f2f5;
  --surface-tint: #eff4ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --accent: #1d4ed8;
  --accent-light: #60a5fa;
  --accent-hover: #1e40af;
  --accent-ink: #ffffff;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --ok: #15803d;
  --danger: #b91c1c;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-input: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reusable Scalable Brand Logo Lockup */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: var(--logo-h, 34px);
}

.brand-logo--sm {
  --logo-h: 26px;
}

.brand-logo--md {
  --logo-h: 34px;
}

.brand-logo--lg {
  --logo-h: 46px;
}

/* Navigation: single line, <= 72px height */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Pill Buttons (Shape Lock: 9999px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ink {
  background: var(--text);
  color: #ffffff;
}

.btn-ink:hover {
  background: #1e293b;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-subtle);
  border-color: #94a3b8;
}

.btn-sm {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

/* Hero: Crisp Editorial Light Split */
.hero {
  padding: 56px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.hero-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quiet Proof Band Below Hero */
.proof-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-header {
  max-width: 660px;
  margin-bottom: 44px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
}

/* Card Studio: Clean Daylight Studio Workbench */
.studio-shell {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.studio-stage {
  background:
    radial-gradient(circle at 50% 15%, var(--accent-soft), transparent 62%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}

.card-perspective {
  width: 100%;
  max-width: 470px;
  perspective: 1200px;
}

.card-tilt-wrap {
  width: 100%;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.tap-card-3d {
  width: 100%;
  aspect-ratio: 85.6 / 53.98;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 18px;
}

.tap-card-3d.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
}

.card-face-back {
  transform: rotateY(180deg);
}

.card-face canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.26), transparent 55%);
  opacity: 0.7;
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stage-meta {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.studio-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  gap: 20px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}

.control-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.upload-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-input);
  padding: 18px 16px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-title {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 3px;
  color: var(--text);
}

.upload-sub {
  font-size: 13px;
  color: var(--muted);
}

.ai-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.status-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
  min-height: 18px;
}

.status-note.ok {
  color: var(--ok);
  font-weight: 600;
}

.status-note.err {
  color: var(--danger);
  font-weight: 600;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.swatch.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.22);
}

.swatch-white { background: #ffffff; }
.swatch-black { background: #111318; }
.swatch-navy { background: #132238; }
.swatch-cobalt { background: #1d4ed8; }
.swatch-brand { background: #0f172a; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--surface);
  color: var(--text);
}

.input::placeholder {
  color: #94a3b8;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.color-picker {
  width: 44px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 3px;
  background: var(--surface);
  cursor: pointer;
}

.studio-actions {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: grid;
}

/* Asymmetric 5-Cell Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.bento-photo {
  grid-column: span 7;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 260px auto;
}

.bento-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-photo-copy {
  padding: 26px 28px 28px;
}

.bento-contacts {
  grid-column: span 5;
  background: var(--surface-subtle);
}

.bento-third {
  grid-column: span 4;
}

.bento-accent {
  grid-column: span 4;
  background: var(--surface-tint);
  border-color: rgba(29, 78, 216, 0.22);
}

.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.bento-cell p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.bento-stat {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

/* Asymmetric 7/5 Pricing Split */
.pricing-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.price-hero {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
}

.price-stack {
  display: grid;
  gap: 20px;
}

.price-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.price-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.price-compact .price-amount {
  font-size: 36px;
}

.price-recur {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: auto;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-features li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.price-desc {
  color: var(--muted);
  font-size: 14.5px;
}

/* FAQ 4/8 Split */
.faq-split {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 48px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--border-strong);
  padding: 22px 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 60ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.hidden {
  display: none;
}

/* Motivated Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tap-card-3d,
  .card-tilt-wrap {
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .studio-shell,
  .pricing-split,
  .faq-split {
    grid-template-columns: 1fr;
  }
  .bento-photo,
  .bento-contacts,
  .bento-third,
  .bento-accent {
    grid-column: span 12;
  }
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .section {
    padding: 64px 0;
  }
  .field-row,
  .price-features,
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .price-hero {
    padding: 26px 22px;
  }
  .studio-stage {
    padding: 24px 18px;
  }
  .studio-controls {
    padding: 22px 18px;
  }
}
