@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

/*
 * Launchloft v2 — "Modern Editorial Tech"
 *
 * Design direction:
 *   - Editorial bones (paper + serif + amber) keep the data-credibility tone
 *   - Bold tech elements: gradient hero, dark contrast section, glowing numbers,
 *     subtle grid + grain, hover micro-interactions
 *   - Stripe / Resend / Linear-influenced, but warmer (we serve indie creators,
 *     not enterprise SaaS buyers)
 */

:root {
  /* Core palette */
  --ink: #0d0a06;
  --ink-soft: #3b362e;
  --muted: #6f675c;
  --line: #e6e1d6;
  --line-soft: #efeae0;
  --paper: #faf7ef;
  --panel: #ffffff;
  --panel-warm: #f3eee2;

  /* Accents */
  --amber: #d97706;
  --amber-deep: #b45309;
  --amber-soft: #fde4b8;
  --coral: #ea580c;
  --violet: #6d28d9;
  --green: #1f6b4d;
  --red: #a8362c;

  /* Dark surface for contrast sections */
  --dark: #0d0a06;
  --dark-2: #1a140d;
  --dark-3: #2a2014;
  --dark-line: #2a2218;
  --dark-text: #f5efe2;
  --dark-text-soft: #c4baa8;
  --dark-muted: #877c6a;

  /* Gradients */
  --grad-amber: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #d97706 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(217, 119, 6, 0.18), transparent 60%),
               radial-gradient(900px 500px at 0% 30%, rgba(234, 88, 12, 0.10), transparent 60%),
               linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, #f5ede0 100%);
  --grad-dark-section: radial-gradient(800px 400px at 70% 20%, rgba(217, 119, 6, 0.18), transparent 60%),
                       radial-gradient(600px 400px at 0% 80%, rgba(109, 40, 217, 0.15), transparent 60%),
                       linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);

  /* Shadows / glows */
  --shadow-sm: 0 1px 2px rgba(20, 17, 13, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 17, 13, 0.06);
  --shadow-lg: 0 18px 50px rgba(20, 17, 13, 0.10);
  --shadow-card: 0 1px 2px rgba(20, 17, 13, 0.04), 0 8px 24px rgba(20, 17, 13, 0.06);
  --glow-amber: 0 0 0 1px rgba(217, 119, 6, 0.18), 0 8px 32px rgba(217, 119, 6, 0.25);
  --ring-amber: 0 0 0 3px rgba(217, 119, 6, 0.18);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { background: var(--paper); color: var(--ink); }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  font-weight: 500;
  margin: 0;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { color: var(--ink-soft); margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--amber-soft); color: var(--ink); }

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

/* ============ TYPOGRAPHIC HELPERS ============ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
  padding: 6px 12px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.kicker.dark {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.3);
}

.gradient-text {
  background: var(--grad-amber);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ BUTTONS ============ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(20, 17, 13, 0.1), 0 4px 12px rgba(20, 17, 13, 0.08);
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(20, 17, 13, 0.12), 0 12px 24px rgba(20, 17, 13, 0.14);
}

.btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--grad-amber);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--glow-amber);
  background-size: 200% 100%;
  background-position: 0% 50%;
}
.btn-amber:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.3), 0 12px 36px rgba(217, 119, 6, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: all 0.18s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--dark-text-soft);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
  color: var(--dark-text);
  transition: all 0.18s ease;
}
.btn-ghost-dark:hover { background: var(--dark-text); color: var(--ink); }

/* ============ CARDS ============ */

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0) 0%, rgba(217, 119, 6, 0) 50%, rgba(217, 119, 6, 0.3) 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(217, 119, 6, 0.2);
}
.card:hover::before { opacity: 1; }

/* ============ INPUTS ============ */

.input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus {
  border-color: var(--amber);
  box-shadow: var(--ring-amber);
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ============ STATS ============ */

.stat {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "tnum";
}

.stat-amber { color: var(--amber); }
.stat-glow {
  background: var(--grad-amber);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(217, 119, 6, 0.25));
}

/* ============ SECTION SHELL ============ */

.section {
  padding: 96px 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section.dark {
  background: var(--grad-dark-section);
  color: var(--dark-text);
  border-top: 1px solid var(--dark-line);
}
.section.dark h1,
.section.dark h2,
.section.dark h3 { color: var(--dark-text); }
.section.dark p { color: var(--dark-text-soft); }
.section.dark + .section { border-top: 1px solid var(--line); }
.section.dark .stat { color: var(--dark-text); }

.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header h2 { margin-top: 16px; }
.section-header p { margin-top: 16px; font-size: 17px; line-height: 1.55; }

/* Grid background pattern */
.bg-grid {
  background-image:
    linear-gradient(rgba(20, 17, 13, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 13, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section.dark .bg-grid {
  background-image:
    linear-gradient(rgba(245, 239, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 226, 0.04) 1px, transparent 1px);
}

/* Subtle grain texture overlay */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(250, 247, 239, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--grad-amber);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--glow-amber);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--amber); }
.site-nav .btn-amber { padding: 9px 18px; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-toggle { display: none; }

/* language switch — three-locale pill group (EN / 简 / 繁) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] {
  color: #fff;
  background: var(--grad-amber);
}

/* blog article table of contents — left rail, wide screens only */
.article h2 { scroll-margin-top: 90px; }
.article h3 { scroll-margin-top: 90px; font-size: 1.08rem; line-height: 1.5; margin: 26px 0 6px; color: var(--ink); font-weight: 600; }
.article figure { margin: 24px 0; }
.article figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-warm); }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.article .calc { border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 28px 0; background: var(--panel-warm); }
.article .calc-title { font-weight: 600; color: var(--ink); margin: 0 0 14px; font-size: 15px; }
.article .calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.article .calc-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.article .calc-grid input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff; }
.article .calc button { cursor: pointer; border: none; }
.article .calc-out { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.article .calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--ink-soft); }
.article .calc-line b { font-size: 17px; color: var(--ink); font-family: "JetBrains Mono", monospace; white-space: nowrap; }
.article .calc-warn { color: #c0392b; font-size: 14px; margin: 10px 0 0; }
.article .calc-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }
@media (max-width: 520px) { .article .calc-grid { grid-template-columns: 1fr; } }
.article .fee-out { margin-top: 18px; }
.article .fee-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.article .fee-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; }
.article .fee-card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.article .fee-card b { font-size: 18px; color: var(--ink); font-family: "JetBrains Mono", monospace; }
.article .fee-card.net { border-color: var(--amber); background: var(--panel-warm); }
.article .fee-rate { text-align: center; font-size: 15px; color: var(--ink-soft); margin: 16px 0 0; }
.article .fee-rate b { font-size: 26px; color: var(--amber); font-family: "JetBrains Mono", monospace; display: block; margin-top: 2px; }
@media (max-width: 560px) { .article .fee-cards { grid-template-columns: repeat(2, 1fr); } }
.toc { display: none; }
@media (min-width: 1200px) {
  .toc {
    display: block;
    position: fixed;
    top: 120px;
    left: calc(50% - 580px);
    width: 200px;
    max-height: 72vh;
    overflow-y: auto;
  }
  .toc-title { font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 10px 14px; }
  .toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.45; transition: color 0.15s ease, border-color 0.15s ease; }
  .toc a:hover { color: var(--ink); }
  .toc a.active { color: var(--amber); border-left-color: var(--amber); font-weight: 600; }
}

/* Chinese typography — Fraunces/Inter carry no CJK glyphs, supply a CJK stack */
html[lang="zh"] body,
html[lang="zh"] input,
html[lang="zh"] textarea,
html[lang="zh"] select,
html[lang="zh"] button {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[lang="zh"] .font-serif,
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4 {
  font-family: "PingFang SC", "Songti SC", "Noto Serif SC", var(--font-serif, "Fraunces", serif), serif;
  letter-spacing: 0;
}

/* ============ HERO ============ */

.hero-wrap {
  position: relative;
  background: var(--grad-hero);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 17, 13, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 13, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  pointer-events: none;
}

.hero {
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}
.hero .lead {
  font-size: 19px;
  line-height: 1.5;
  max-width: 580px;
  margin-bottom: 36px;
  color: var(--ink-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(20, 17, 13, 0.1);
}
.hero-stats .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Sample plan visual on hero */
.plan-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(20, 17, 13, 0.04), 0 20px 60px rgba(20, 17, 13, 0.12);
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: var(--grad-amber);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 24px rgba(217, 119, 6, 0.4);
}
.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.plan-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.plan-card-status {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.plan-card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 999px;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.plan-card h3 {
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 22px;
  font-weight: 600;
}
.plan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13.5px;
}
.plan-row:last-of-type { border-bottom: none; }
.plan-row .row-label { color: var(--ink-soft); font-weight: 500; }
.plan-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.plan-row .meta.good { color: var(--green); background: rgba(31, 107, 77, 0.08); }
.plan-row .meta.warn { color: #b85d2f; background: rgba(184, 93, 47, 0.08); }
.plan-row .meta.ok { color: #6a6457; background: rgba(106, 100, 87, 0.08); }

.plan-card-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-card-footer .footer-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.grade {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  background: var(--grad-amber);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(217, 119, 6, 0.3));
}

.plan-card-mock {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Floating badge for "slots open" */
.float-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(20, 17, 13, 0.2);
  z-index: 2;
}
.float-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ============ GRIDS ============ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2-asym {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}
.grid-2-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Problem cards */
.problem-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  transition: all 0.25s ease;
  overflow: hidden;
}
.problem-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  display: block;
}
.problem-card h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
.problem-card p {
  font-size: 15px;
  line-height: 1.6;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.25);
  box-shadow: var(--shadow-card);
}

/* Step cards */
.step-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--grad-amber);
  color: #fff;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  box-shadow: var(--glow-amber);
}

/* ============ PRICING TIERS ============ */

.tier-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
}
.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(217, 119, 6, 0.25);
}
.tier-card.featured {
  border-color: var(--ink);
  box-shadow: 0 8px 32px rgba(20, 17, 13, 0.12);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 70%, #fdf6e8 100%);
}
.tier-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.tier-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.tier-price {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1;
}
.tier-price .unit {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 500;
}
.tier-strike {
  font-size: 13px;
  color: var(--muted);
  margin-top: -8px;
}
.tier-strike s { color: var(--muted); opacity: 0.7; }
.tier-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.tier-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.tier-card ul li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--grad-amber);
  border-radius: 999px;
  position: relative;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    var(--grad-amber);
  background-repeat: no-repeat;
  background-position: center;
}
.tier-meta {
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  font-weight: 600;
}
.tier-cta { margin-top: auto; padding-top: 18px; }
.tier-cta .btn-primary,
.tier-cta .btn-ghost,
.tier-cta .btn-amber {
  width: 100%;
  justify-content: center;
}

/* ============ SLOT INDICATOR ============ */

.slot-box {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--dark-2) 100%);
  border-radius: 16px;
  border: 1px solid var(--dark-line);
  color: var(--dark-text);
  position: relative;
  overflow: hidden;
}
.slot-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.slot-box .slot-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
}
.slot-box .slot-num {
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1;
  color: var(--dark-text);
  font-weight: 600;
  letter-spacing: -0.04em;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.slot-box .slot-num .slot-total {
  font-size: 28px;
  color: var(--dark-muted);
  font-weight: 400;
}
.slot-box .slot-progress {
  margin-top: 18px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.slot-box .slot-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--grad-amber);
  border-radius: 999px;
  width: 0%;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.5);
}

/* ============ DARK SECTION (Backed by Data) ============ */

.data-section {
  position: relative;
  overflow: hidden;
}
.data-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}
.data-stats .data-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(180deg, #fde4b8 0%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(217, 119, 6, 0.3));
}
.data-stats .data-stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dark-text-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dark-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  padding: 28px;
  color: var(--dark-text-soft);
}
.dark-card p { color: var(--dark-text-soft); }

.dark-link {
  border-bottom: 1px solid rgba(217, 119, 6, 0.5);
  color: var(--amber);
}
.dark-link:hover { border-bottom-color: var(--amber); }

.dark-cards-pair {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ============ FAQ ============ */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  list-style: none;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--amber);
  font-size: 26px;
  font-weight: 300;
  margin-left: 20px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.08);
  border-radius: 999px;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--amber);
  color: #fff;
}
.faq-item p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 760px;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--ink);
  color: var(--dark-text-soft);
  padding: 56px 0;
  margin-top: 0;
  font-size: 13px;
  border-top: 1px solid var(--dark-line);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 56px;
  align-items: flex-start;
}
.footer-brand .footer-name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--dark-text);
  margin-bottom: 4px;
  font-weight: 600;
}
.footer-link {
  border-bottom: 1px solid rgba(196, 186, 168, 0.4);
  color: var(--dark-text-soft);
  transition: all 0.15s ease;
}
.footer-link:hover { color: var(--amber); border-bottom-color: var(--amber); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { color: var(--dark-text); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.55; margin-bottom: 2px; }
.footer-col .footer-link { border-bottom: none; width: fit-content; }
.footer-col .footer-link:hover { color: var(--amber); }
@media (max-width: 600px) { .footer-cols { gap: 28px; } .footer-col { width: 100%; } }

/* ============ DELIVERABLES TOOLKIT ============ */

.toolkit-stage {
  margin-bottom: 64px;
}
.toolkit-stage:last-child { margin-bottom: 0; }

.toolkit-stage-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.toolkit-stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.18);
  border-radius: 999px;
}
.toolkit-stage-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.toolkit-stage-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
}

.deliverable {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 18px 12px 18px 0;
  border-bottom: 1px dashed var(--line-soft);
  align-items: start;
  transition: background 0.2s ease, transform 0.2s ease;
}
.deliverable:hover {
  background: linear-gradient(90deg, rgba(217,119,6,0.04) 0%, transparent 100%);
  transform: translateX(2px);
}
.deliverable-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.deliverable-content h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.2;
}
.deliverable-content p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.deliverable-tier {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--panel-warm);
  border-radius: 999px;
}
.deliverable-tier.full {
  color: var(--amber);
  background: rgba(217,119,6,0.1);
}

/* ============ OUR WORK / CASE STUDIES ============ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(217, 119, 6, 0.3);
}
.work-card:hover .work-visual-overlay { opacity: 1; }
.work-card:hover .work-visual-tag {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.work-card:hover .work-visual-frame { transform: translateY(-4px) scale(1.02); }

.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f3eee2 0%, #ece5d4 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(109, 40, 217, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Mock browser frame — where video/screenshot will live once we have cases */
.work-visual-frame {
  position: absolute;
  inset: 20px 20px 0 20px;
  background: var(--panel);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 24px rgba(20, 17, 13, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-visual-frame-bar {
  height: 22px;
  background: linear-gradient(180deg, #f5f0e4 0%, #ebe4d2 100%);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.work-visual-frame-bar::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f4a5a5;
  box-shadow: 14px 0 0 #f4d792, 28px 0 0 #b7e0b8;
  flex-shrink: 0;
}
.work-visual-frame-bar::after {
  content: attr(data-url);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* When a real screenshot is in the frame, hide the placeholder gradients */
.work-visual-frame-content.has-image::before,
.work-visual-frame-content.has-image::after { display: none; }
.work-visual-frame-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.work-visual-frame-content {
  flex: 1;
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--panel-warm) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-visual-frame-content::before {
  content: "";
  position: absolute;
  inset: 12px;
  background-image:
    linear-gradient(180deg, rgba(217, 119, 6, 0.18) 0%, rgba(217, 119, 6, 0) 100%);
  border-radius: 4px;
  height: 32px;
  top: 12px;
}
.work-visual-frame-content::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 50%;
  top: 56px;
  height: 6px;
  background: rgba(20, 17, 13, 0.08);
  border-radius: 999px;
  box-shadow:
    0 14px 0 -2px rgba(20, 17, 13, 0.06),
    0 26px 0 -3px rgba(20, 17, 13, 0.05),
    0 38px 0 -4px rgba(20, 17, 13, 0.04);
}

.work-placeholder-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(217, 119, 6, 0.5);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-style: italic;
  z-index: 1;
}

/* When a real case lands: replace .work-visual-frame's inner with:
   <video autoplay loop muted playsinline src="/work/project-slug.mp4"
          style="width:100%;height:100%;object-fit:cover;" />
*/

.work-visual-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.work-visual-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.work-visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0.55) 0%, rgba(20, 17, 13, 0.88) 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 2;
  text-transform: uppercase;
}

.work-meta {
  padding: 24px 26px 26px;
}
.work-meta .work-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.work-meta h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 600;
}
.work-meta p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.work-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.work-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-style: italic;
}

.work-footer {
  text-align: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}
.work-footer p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

@media (max-width: 1023px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ SCROLL ANIMATIONS ============ */

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.7s ease forwards;
  }
  .fade-up.d1 { animation-delay: 0.1s; }
  .fade-up.d2 { animation-delay: 0.2s; }
  .fade-up.d3 { animation-delay: 0.3s; }
  @keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============ MOBILE ============ */
@media (max-width: 767px) {
  /* prevent any overflow from pushing horizontal scroll */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Failsafe: every layout element honors its box and stays within viewport */
  .container, .hero, .hero-wrap, .plan-card, .work-card, .tier-card,
  .card, .problem-card, .step-card, .slot-box, .dark-card,
  .data-stats, .grid-3, .grid-2-asym, .grid-2-cta, .dark-cards-pair,
  .hero > div, .work-meta, .work-visual {
    max-width: 100%;
    box-sizing: border-box;
  }
  img { max-width: 100%; height: auto; }

  .container { padding-left: 18px; padding-right: 18px; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(1.6rem, 6.8vw, 2rem); margin-top: 12px; }
  .section-header p { font-size: 15px; margin-top: 12px; }
  h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  h3 { font-size: clamp(1.1rem, 4.5vw, 1.3rem); }

  /* ----- Header ----- */
  .site-header {
    /* Drop backdrop-filter on mobile: it would create a containing block that
       anchors the fixed nav panel to the header instead of the viewport. */
    background: rgba(250, 247, 239, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
  .site-nav { gap: 12px; }
  /* mobile: collapse nav links into a hamburger panel */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 18px 14px;
    background: rgba(250, 247, 239, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 16px 28px -12px rgba(20, 17, 13, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .site-nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .site-nav .btn-amber { padding: 8px 14px; font-size: 12px; }

  /* ----- Hero ----- */
  .hero-wrap::before { background-size: 32px 32px; }
  .hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 36px 0 56px;
  }
  .hero > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 16px;
    margin-bottom: 18px;
    max-width: 100%;
  }
  /* On mobile, force each "line" of the H1 to its own row */
  .hero h1 .h1-line { display: block; }
  .hero .lead {
    max-width: 100%;
    font-size: 15px;
  }
  .hero .lead {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 32px;
    padding-top: 22px;
  }
  .hero-stats .stat-label { font-size: 10.5px; line-height: 1.35; margin-top: 4px; }
  .stat { font-size: clamp(1.4rem, 7vw, 2rem); }
  .hero .kicker { font-size: 10px; padding: 5px 10px; }

  /* ----- Plan card on hero ----- */
  .plan-card { padding: 20px; border-radius: 14px; }
  .plan-card-header { margin-bottom: 14px; }
  .plan-card-tag { font-size: 9px; padding: 3px 8px; }
  .plan-card h3 { font-size: 18px; margin-bottom: 14px; }
  .plan-card { min-width: 0; }
  .plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    padding: 9px 0;
  }
  .plan-row .row-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
  }
  .plan-row .meta {
    font-size: 9.5px;
    padding: 2px 6px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .plan-card-footer { margin-top: 18px; padding-top: 14px; }
  .plan-card-footer .footer-label { font-size: 11px; }
  .grade { font-size: 32px; }
  .plan-card-mock { font-size: 10px; margin-top: 14px; }
  .float-badge {
    right: 6px;
    top: -8px;
    padding: 5px 10px;
    font-size: 9.5px;
  }
  .float-badge::before { width: 6px; height: 6px; }

  /* ----- Grids collapse ----- */
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .grid-2-asym { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-2-cta { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dark-cards-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 36px; }
  .grid-3 > *, .grid-2-asym > *, .grid-2-cta > *, .dark-cards-pair > * { min-width: 0; }

  /* ----- Cards ----- */
  .card, .problem-card, .step-card { padding: 22px; border-radius: 14px; }
  .problem-card h3 { font-size: 1.2rem; }
  .step-num { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }

  /* ----- Pricing tiers ----- */
  .tier-card { padding: 26px 22px; border-radius: 16px; }
  .tier-card.featured::before { padding: 4px 12px; font-size: 9px; top: -10px; }
  .tier-price { font-size: 34px; }
  .tier-card ul { font-size: 13.5px; }
  .tier-meta { font-size: 9.5px; }

  /* ----- Slot box ----- */
  .slot-box { padding: 22px; margin-top: 24px; }
  .slot-box .slot-num { font-size: 56px; }
  .slot-box .slot-num .slot-total { font-size: 20px; }

  /* ----- Data section ----- */
  .data-stats { grid-template-columns: 1fr; padding: 24px; gap: 24px; margin-top: 36px; }
  .data-stats .data-stat-num { font-size: clamp(2.2rem, 9vw, 3rem); }
  .dark-card { padding: 22px; border-radius: 14px; }

  /* ----- Work / portfolio ----- */
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-meta { padding: 20px 22px; }
  .work-visual-frame-bar::after {
    font-size: 8px;
    max-width: 65%;
  }

  /* ----- Deliverables toolkit ----- */
  .toolkit-stage { margin-bottom: 48px; }
  .toolkit-stage-header { gap: 12px; padding-bottom: 16px; }
  .toolkit-stage-title { font-size: 24px; }
  .toolkit-stage-count { margin-left: 0; width: 100%; font-size: 10px; }
  .toolkit-grid { grid-template-columns: 1fr; column-gap: 0; }
  .deliverable { grid-template-columns: 48px 1fr; gap: 10px; padding: 16px 4px; }
  .deliverable-content h4 { font-size: 16px; }
  .deliverable-content p { font-size: 13px; }

  /* ----- Buttons ----- */
  .btn-primary, .btn-ghost, .btn-amber, .btn-ghost-dark { padding: 12px 20px; font-size: 14px; }

  /* ----- FAQ ----- */
  .faq-item { padding: 20px 0; }
  .faq-item summary { font-size: 16.5px; padding-right: 8px; }
  .faq-item summary::after { width: 28px; height: 28px; font-size: 22px; margin-left: 14px; }
  .faq-item p { font-size: 14.5px; line-height: 1.65; }

  /* ----- Footer ----- */
  .site-footer { padding: 36px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Extra-small phones (< 360px wide) — iPhone SE 1st gen / older Androids */
@media (max-width: 359px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lead { font-size: 14.5px; }
  .stat { font-size: 1.3rem; }
  .hero-stats { gap: 8px; }
  .hero-stats .stat-label { font-size: 9.5px; }
  .float-badge { right: 0; top: -6px; font-size: 9px; padding: 4px 8px; }
  .brand span { font-size: 15px; }
}
