/* SpaceShift v3 — Web app design tokens (responsive, no iPhone frame) */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..600&family=Geist:wght@300..700&family=Geist+Mono:wght@400..600&family=Noto+Serif+SC:wght@300..700&family=Noto+Sans+SC:wght@300..700&display=swap');

:root {
  --moss-950: oklch(0.22 0.035 150);
  --moss-900: oklch(0.28 0.045 150);
  --moss-800: oklch(0.35 0.055 150);
  --moss-700: oklch(0.45 0.065 150);
  --moss-500: oklch(0.6 0.08 148);
  --moss-200: oklch(0.88 0.035 148);
  --moss-100: oklch(0.94 0.02 148);

  --stone-900: oklch(0.32 0.012 75);
  --stone-700: oklch(0.52 0.018 75);
  --stone-500: oklch(0.68 0.022 75);
  --stone-300: oklch(0.83 0.02 75);
  --stone-200: oklch(0.9 0.015 78);
  --stone-100: oklch(0.94 0.01 80);

  --bone: oklch(0.975 0.008 85);
  --bone-warm: oklch(0.96 0.012 80);
  --ink: oklch(0.2 0.015 150);

  --terra: oklch(0.62 0.12 45);
  --terra-dim: oklch(0.72 0.08 45);

  --font-display: 'Newsreader', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Geist', 'Noto Sans SC', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --font-display-zh: 'Noto Serif SC', 'Newsreader', 'Songti SC', STSong, serif;
  --font-sans-zh: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #efece6;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Chinese mode: use Chinese-first type, then tune labels so they don't feel like translated UI chrome. */
.lang-zh {
  --font-display: var(--font-display-zh);
  --font-sans: var(--font-sans-zh);
  --font-mono: var(--font-sans-zh);
}

.lang-zh .brand-name {
  font-family: 'Newsreader', 'Noto Serif SC', Georgia, serif;
}

.lang-zh .brand-sub {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
}

.lang-zh .hero-title,
.lang-zh .hero-sub,
.lang-zh .section-title,
.lang-zh .process-title,
.lang-zh .founder-quote,
.lang-zh .guide-hero h1,
.lang-zh .guide-card h2,
.lang-zh .article-header h1,
.lang-zh .article-visual-caption strong,
.lang-zh .article .article-summary-grid h3,
.lang-zh .article h2,
.lang-zh .article h3,
.lang-zh .quote-q {
  letter-spacing: 0;
}

.lang-zh .hero-title,
.lang-zh .section-title,
.lang-zh .guide-hero h1,
.lang-zh .article-header h1 {
  line-height: 1.12;
}

.lang-zh .hero-body,
.lang-zh .section-lead,
.lang-zh .process-body,
.lang-zh .project-body,
.lang-zh .guide-hero p,
.lang-zh .guide-card p,
.lang-zh .article-header p,
.lang-zh .article p,
.lang-zh .article li,
.lang-zh .home-guides-copy p,
.lang-zh .home-guide-main em,
.lang-zh .founder-byline {
  letter-spacing: 0.01em;
  line-height: 1.72;
}

.lang-zh .hero-eyebrow,
.lang-zh .hero-note,
.lang-zh .section-eyebrow,
.lang-zh .process-num,
.lang-zh .scope-strip-label,
.lang-zh .home-guide-main span,
.lang-zh .project-meta,
.lang-zh .founder-eyebrow,
.lang-zh .footer h4,
.lang-zh .footer-bottom,
.lang-zh .guide-kicker,
.lang-zh .guide-card span,
.lang-zh .breadcrumb,
.lang-zh .article-visual-caption span,
.lang-zh .summary-marker,
.lang-zh .article th {
  letter-spacing: 0.055em;
  text-transform: none;
  font-weight: 600;
}

.lang-zh .btn,
.lang-zh .nav-link,
.lang-zh .nav-cta,
.lang-zh .scope-chip,
.lang-zh .quote-option {
  letter-spacing: 0.01em;
}

/* ===== Dev screen switcher — deep glass tool layer ===== */
.dev-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(18, 28, 22, 0.55);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--bone);
  padding: 5px;
  border-radius: 100px;
  display: flex;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 14px 36px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.14);
  opacity: 0.92;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dev-switcher:hover { opacity: 1; transform: translateY(-1px); }
.dev-switcher::before {
  content: 'PREVIEW';
  color: rgba(255,255,255,0.35);
  padding: 6px 10px 6px 12px;
  letter-spacing: 0.14em;
  font-size: 9px;
  align-self: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 4px;
}
.dev-switcher button {
  padding: 6px 10px;
  border-radius: 100px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dev-switcher button:hover { color: rgba(255,255,255,0.9); }
.dev-switcher button.active {
  background: var(--bone);
  color: var(--moss-950);
}
@media (max-width: 720px) {
  .dev-switcher {
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
    opacity: 0.4;
  }
  .dev-switcher:hover,
  .dev-switcher:focus-within { opacity: 0.98; }
  .dev-switcher::before { display: none; }
}

/* ===== Screens (only one visible at a time) ===== */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ===== Shared primitives ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  background: var(--stone-200);
  color: var(--stone-900);
}
.chip.moss { background: var(--moss-200); color: var(--moss-900); }
.chip.terra { background: oklch(0.92 0.04 45); color: var(--terra); }
.chip.dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 100%;
  background: currentColor;
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--moss-900); color: var(--bone); }
.btn-primary:hover { background: var(--moss-950); }
.btn-ghost {
  color: var(--moss-900);
  border: 1px solid var(--stone-300);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--moss-900); }
.btn-full { width: 100%; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Global nav (front-facing) — warm bone glass ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  background:
    linear-gradient(180deg,
      rgba(252, 250, 245, 0.72) 0%,
      rgba(249, 247, 242, 0.62) 100%);
  border-bottom: 1px solid rgba(42, 38, 30, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(42, 38, 30, 0.03);
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

/* Transparent state when nav floats over image hero — truly invisible container, text only */
.nav.over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}
.nav.over-hero .brand-name { color: var(--bone); }
.nav.over-hero .brand-sub { color: rgba(255,240,220,0.7); }
.nav.over-hero .nav-link { color: rgba(255,250,240,0.85); }
.nav.over-hero .nav-link:hover { color: white; }
.nav.over-hero .nav-cta {
  background: var(--bone);
  color: var(--moss-950);
}
.nav.over-hero .lang-toggle {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.nav.over-hero .lang-toggle button {
  color: rgba(255,250,240,0.7);
}
.nav.over-hero .lang-toggle button.active {
  background: var(--bone);
  color: var(--moss-950);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  color: var(--stone-900);
  letter-spacing: -0.005em;
}
.nav-link:hover { color: var(--moss-900); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--moss-900);
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
}

/* Language toggle pill — subtle inset glass */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(42, 38, 30, 0.1);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lang-toggle button {
  padding: 5px 11px;
  border-radius: 100px;
  color: var(--stone-700);
  transition: color 0.15s, background 0.15s;
}
.lang-toggle button.active {
  background: var(--moss-900);
  color: var(--bone);
}
.lang-toggle button:not(.active):hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links .nav-link { display: none; }
  /* Exception: Quote screen's "← Exit" stays visible — it's the only way back to Landing on mobile */
  #quote .nav-links .nav-link[data-goto="landing"] { display: inline-flex; }
  .nav-inner { gap: 10px; }
  .lang-toggle { font-size: 10px; }
  .lang-toggle button { padding: 4px 8px; }
}

/* ===== Landing — Hero with project image ===== */
.hero-wrap {
  position: relative;
  overflow: hidden;
  margin-top: -68px; /* pull up under sticky nav so image starts at very top */
  padding-top: 68px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg,
      rgba(8, 15, 12, 0.9) 0%,
      rgba(13, 19, 15, 0.76) 34%,
      rgba(26, 22, 18, 0.34) 62%,
      rgba(18, 16, 13, 0.18) 100%),
    linear-gradient(180deg,
      rgba(4, 8, 7, 0.7) 0%,
      rgba(4, 8, 7, 0.16) 32%,
      rgba(66, 39, 20, 0.48) 100%),
    url('/projects/hero-premium.jpg'),
    url('/projects/proj-1.jpg');
  background-size: cover;
  background-position: center center;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 78% 82%, rgba(214, 153, 82, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 55% 65% at 34% 100%, rgba(128, 58, 32, 0.28) 0%, transparent 62%);
  mix-blend-mode: soft-light;
  opacity: 0.75;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, transparent 48%),
    radial-gradient(ellipse 115% 75% at 50% 12%, rgba(255,255,255,0.08) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.035) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(6, 12, 9, 0.72) 0%,
      rgba(8, 13, 10, 0.54) 42%,
      rgba(8, 13, 10, 0.16) 74%),
    linear-gradient(180deg,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0.08) 28%,
      rgba(28,18,12,0.62) 100%);
  pointer-events: none;
}
.hero-placeholder-tag {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero {
  position: relative;
  z-index: 2;
  padding: 80px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  color: var(--bone);
}

/* Override hero text colors when inside image hero */
.hero-wrap .hero-eyebrow {
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.hero-wrap .hero-title {
  color: var(--bone);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.2);
}
.hero-wrap .hero-title-em {
  color: oklch(0.92 0.1 75); /* warm amber accent matching sunset */
  font-style: italic;
}
.hero-wrap .hero-sub {
  color: rgba(255,245,230,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-wrap .hero-body {
  color: rgba(255,250,240,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-wrap .hero-note {
  color: rgba(255,240,220,0.7);
}

/* CTA buttons over image */
.hero-wrap .btn-primary {
  background: var(--bone);
  color: var(--moss-950);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.hero-wrap .btn-primary:hover {
  background: white;
  transform: translateY(-1px);
}
.hero-wrap .btn-ghost {
  color: var(--bone);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-wrap .btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.14);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  max-width: 900px;
}
.hero-title-em {
  font-style: italic;
  color: var(--moss-800);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  color: var(--stone-700);
  font-style: italic;
  margin: 0 0 36px;
}
.hero-body {
  font-size: 17px;
  color: var(--stone-900);
  max-width: 560px;
  margin: 0 0 40px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-700);
}

/* ===== Process section ===== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--stone-700);
  max-width: 560px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .section {
    padding: 58px 24px;
  }
  .section-head {
    margin-bottom: 34px;
  }
  .section-lead {
    font-size: 16px;
    line-height: 1.58;
  }
}

.process-card {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--moss-700);
}
.process-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.process-body {
  color: var(--stone-700);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 720px) {
  .process-grid {
    gap: 16px;
  }
  .process-card {
    min-height: 0;
    padding: 26px 26px 28px;
    gap: 12px;
  }
  .process-title {
    font-size: 24px;
  }
}

/* ===== Service scope strip ===== */
.scope-strip {
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  background: var(--bone-warm);
}
.scope-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 30px;
}
.scope-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-700);
  flex-shrink: 0;
}
.scope-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(46, 83, 57, 0.2);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--moss-900);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.lang-zh .scope-strip-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: none;
}
.lang-zh .scope-chip {
  font-size: 15px;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .scope-strip-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 22px 24px 24px;
    gap: 14px;
  }
  .scope-strip-list {
    gap: 9px;
  }
  .scope-chip {
    min-height: 32px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .lang-zh .scope-chip {
    font-size: 14px;
  }
}

/* ===== Homepage guide entry ===== */
.home-guides {
  background: var(--bone);
  border-bottom: 1px solid var(--stone-200);
}
.home-guides-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: center;
}
.home-guides-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.home-guides-copy p {
  color: var(--stone-700);
  font-size: 17px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}
.home-guides-links {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}
.home-guide-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 224px;
  background: var(--moss-950);
  color: var(--bone);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.home-guide-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(42, 38, 30, 0.12);
}
.home-guide-main span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-200);
}
.home-guide-main strong {
  display: block;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 20px 0 18px;
}
.home-guide-main em {
  display: block;
  font-style: normal;
  color: rgba(255, 250, 240, 0.78);
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
}
.home-guide-secondary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}
.home-guide-secondary a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--stone-900);
  font-size: 16px;
  border-bottom: 1px solid var(--stone-200);
  transition: color 0.16s ease;
}
.home-guide-secondary a:last-child { border-bottom: 0; }
.home-guide-secondary a::after {
  content: '→';
  color: var(--moss-700);
  font-family: var(--font-mono);
}
.home-guide-secondary a:hover { color: var(--moss-900); }

@media (max-width: 900px) {
  .home-guides-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-guides-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-guides-inner {
    padding: 38px 24px 42px;
    gap: 24px;
  }
  .home-guides-copy h2 {
    font-size: 32px;
  }
  .home-guides-copy p {
    font-size: 16px;
  }
  .home-guide-main {
    min-height: 206px;
    padding: 24px;
  }
  .home-guide-main strong {
    font-size: 26px;
  }
  .home-guide-secondary a {
    padding: 18px 0;
  }
}

/* ===== Recent projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
}
.project-card {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-photo {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, var(--moss-800), var(--moss-900));
  position: relative;
  overflow: hidden;
}
.project-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* hide broken-image icon if the file isn't there yet — mossgreen fallback shows through */
  color: transparent;
  font-size: 0;
}
.project-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 24px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--moss-700);
}
.project-city { font-weight: 600; }
.project-dot { color: var(--stone-500); }
.project-scope { color: var(--stone-700); }
.project-body {
  padding: 0 24px 26px;
  color: var(--stone-700);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.project-cta {
  margin-top: 42px;
  padding: 30px 0 0;
  border-top: 1px solid var(--stone-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.project-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.project-cta span {
  display: block;
  color: var(--stone-700);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
}

.quote-after-guides {
  padding-top: 72px;
  padding-bottom: 86px;
}
.quote-after-guides .project-cta {
  margin-top: 0;
}

@media (max-width: 720px) {
  .quote-after-guides {
    padding-top: 58px;
    padding-bottom: 64px;
  }
  .project-cta {
    align-items: stretch;
    flex-direction: column;
    margin-top: 32px;
  }
  .project-cta strong {
    font-size: 25px;
  }
  .project-cta .btn {
    width: 100%;
  }
}

/* ===== Founder card ===== */
.founder {
  background: var(--moss-950);
  color: var(--bone);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; padding: 32px 26px; gap: 24px; }
}
.founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, var(--moss-800), var(--moss-900));
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .founder-photo {
    width: 164px;
    height: 164px;
  }
  .founder-quote {
    font-size: 23px;
  }
}
.founder-photo::after {
  content: 'LARRY';
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.founder-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-200);
  margin-bottom: 14px;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.founder-byline {
  font-size: 13px;
  color: var(--moss-200);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ===== Footer ===== */
.footer {
  background: var(--stone-100);
  border-top: 1px solid var(--stone-200);
  padding: 56px 24px 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer p, .footer li { font-size: 14px; color: var(--stone-900); margin: 0 0 6px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--stone-200);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone-700);
  text-transform: uppercase;
}

/* ===== Guides / SEO article pages ===== */
.guide-nav {
  background:
    linear-gradient(180deg,
      rgba(252, 250, 245, 0.88) 0%,
      rgba(249, 247, 242, 0.78) 100%);
}

.guide-page,
.article-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.guide-hero {
  max-width: 780px;
  padding: 38px 0 52px;
}

.guide-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin-bottom: 18px;
}

.guide-hero h1,
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
}

.guide-hero p,
.article-header p {
  font-size: 19px;
  line-height: 1.62;
  color: var(--stone-700);
  margin: 0;
  max-width: 720px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 12px 0 70px;
}

.guide-card {
  display: block;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  min-height: 300px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--moss-700);
  box-shadow: 0 18px 42px rgba(42, 38, 30, 0.08);
}

.guide-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin-bottom: 18px;
}

.guide-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

.guide-card p {
  color: var(--stone-700);
  font-size: 15px;
  line-height: 1.58;
  margin: 0;
}

.module-guide-hero {
  max-width: 980px;
}

.module-flow {
  display: grid;
  gap: 28px;
  margin: 18px 0 76px;
}

.module-feature-card,
.guide-module-card,
.module-showcase,
.module-pair figure,
.quote-scope-board {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-lg);
}

.module-feature-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.module-feature-card:hover,
.guide-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 83, 57, 0.42);
  box-shadow: 0 20px 44px rgba(42, 38, 30, 0.08);
}

.module-feature-copy span,
.guide-module-card span,
.module-section-head span,
.module-showcase-copy span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin-bottom: 12px;
}

.module-feature-copy,
.module-showcase-copy,
.guide-module-card,
.module-showcase > img,
.module-feature-card img {
  min-width: 0;
}

.module-feature-copy h2,
.guide-module-card h2,
.module-showcase-copy h2,
.module-section-head h2,
.module-brand-notes h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}

.module-feature-copy h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.module-feature-copy p,
.guide-module-card p,
.module-showcase-copy p,
.module-section-head p,
.module-brand-notes p,
.module-local-note p {
  color: var(--stone-700);
  line-height: 1.62;
  margin: 0;
}

.module-feature-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  border: 1px solid rgba(46, 83, 57, 0.1);
}

.module-card-grid {
  display: grid;
  gap: 22px;
}

.guide-module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-module-card {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(220px, auto) 1fr;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.guide-module-card > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: var(--bone-warm);
}

.guide-module-card > img[src*="paver-brand-choice"] {
  object-fit: contain;
  padding: 12px;
}

.guide-module-card > div:last-child {
  padding: 24px 24px 26px;
}

.guide-module-card h2 {
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 14px;
}

.module-scope-card {
  min-height: 300px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background:
    linear-gradient(rgba(239, 227, 207, 0.75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 227, 207, 0.75) 1px, transparent 1px),
    var(--bone-warm);
  background-size: 32px 32px;
}

.module-scope-card span {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 4px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--moss-950);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-scope-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(46, 83, 57, 0.13);
  color: var(--moss-950);
}

.module-library {
  margin: 0 0 80px;
}

.module-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.module-section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.module-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.module-thumb-grid figure {
  margin: 0;
  min-width: 0;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  overflow: hidden;
}

.module-thumb-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.module-thumb-grid figcaption {
  padding: 16px 18px 18px;
  color: var(--moss-900);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.module-article {
  max-width: 1120px;
}

.module-article-header {
  max-width: 920px;
  margin-bottom: 34px;
}

.module-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1.48fr);
  gap: 26px;
  align-items: center;
  padding: 28px;
  margin-bottom: 28px;
  overflow: hidden;
}

.module-showcase-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.module-showcase > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  border: 1px solid rgba(46, 83, 57, 0.1);
}

.brand-module-showcase {
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
}

.module-showcase-scope {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.module-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 40px;
}

.module-pair figure {
  margin: 0;
  overflow: hidden;
}

.module-pair img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: var(--bone-warm);
}

.module-pair img[src*="base-depth-guide"],
.module-pair img[src*="paver-brand-choice"] {
  object-fit: contain;
  padding: 14px;
}

.module-pair figcaption {
  padding: 18px 20px 20px;
  color: var(--stone-700);
  font-size: 14px;
  line-height: 1.55;
}

.module-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 36px;
}

.module-rule-grid .module-section-head {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.module-rule {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 22px 20px 24px;
}

.module-rule > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--moss-950);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 18px;
}

.module-rule h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.module-rule p {
  color: var(--stone-700);
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
}

.quote-scope-board {
  padding: 22px;
  min-width: 0;
  background:
    linear-gradient(rgba(239, 227, 207, 0.75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 227, 207, 0.75) 1px, transparent 1px),
    var(--bone-warm);
  background-size: 34px 34px;
}

.quote-scope-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.quote-scope-head span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--moss-950);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-scope-head strong {
  color: var(--moss-950);
  font-size: 20px;
  line-height: 1.24;
}

.quote-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quote-scope-grid div {
  min-width: 0;
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(46, 83, 57, 0.12);
}

.quote-scope-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--moss-950);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 12px;
}

.quote-scope-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 6px;
}

.quote-scope-grid p {
  color: var(--stone-700);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.module-brand-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 22px;
  margin: 36px 0;
}

.module-brand-notes > div {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 26px;
}

.module-brand-notes h2 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 14px;
}

.module-local-note {
  border-left: 4px solid var(--terra-dim) !important;
  background: rgba(184, 151, 106, 0.08) !important;
}

.module-local-note strong {
  display: block;
  color: var(--moss-950);
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 46px;
}

.breadcrumb a {
  color: var(--moss-700);
}

.breadcrumb a:hover {
  color: var(--moss-950);
}

.article {
  max-width: 820px;
}

.article-wide {
  max-width: none;
}

.article-wide > section:not(.article-summary-grid):not(.visual-answer) {
  max-width: 820px;
}

.article.module-article {
  max-width: 1120px !important;
}

.article-wide.module-article > section {
  width: 100%;
  max-width: none !important;
}

.article-wide.module-article > .answer-box,
.article-wide.module-article > .next-guides,
.article-wide.module-article > .cta-band {
  max-width: 820px;
}

.article-header {
  margin-bottom: 44px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.article-hero-grid .article-header {
  margin-bottom: 0;
}

.article-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--moss-950);
  border: 1px solid rgba(42, 38, 30, 0.08);
}

.article-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 10, 0.04) 0%, rgba(8, 13, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 13, 10, 0.18) 0%, transparent 55%);
}

.article-visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--bone);
}

.article-visual-caption span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 250, 240, 0.7);
  margin-bottom: 8px;
}

.article-visual-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.16;
}

.article-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 50px;
}

.article-summary-grid > div {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 22px 20px 24px;
}

.summary-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  background: var(--moss-100);
  color: var(--moss-900);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.article .article-summary-grid h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}

.article .article-summary-grid p {
  color: var(--stone-700);
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
}

.article section {
  margin: 52px 0;
}

.article .article-summary-grid {
  margin: 0 0 50px;
}

.article h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.016em;
  margin: 0 0 18px;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.article p,
.article li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--stone-900);
}

.article p {
  margin: 0 0 18px;
}

.article a {
  color: var(--moss-800);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.visual-answer {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(247, 243, 235, 0.94));
  border: 1px solid var(--stone-200);
  border-radius: var(--r-lg);
  padding: 30px;
}

.visual-answer-board {
  background:
    linear-gradient(rgba(46, 83, 57, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 83, 57, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #fff8ec 0%, #fbf1df 100%);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(46, 83, 57, 0.24);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 18px 44px rgba(42, 38, 30, 0.08);
}

.visual-board-head {
  display: block;
  margin-bottom: 18px;
}

.visual-board-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--moss-900);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.visual-board-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--moss-950);
  color: var(--bone);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(46, 83, 57, 0.18);
}

.visual-board-head h3 {
  margin: 0 0 8px;
  color: var(--moss-950);
  font-family: var(--font-sans);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.visual-board-head p {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.35;
}

.xhs-section {
  overflow: hidden;
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid rgba(46, 83, 57, 0.2);
  border-radius: 16px;
  margin-top: 12px;
}

.xhs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--moss-900);
  color: var(--bone);
  font-weight: 800;
  line-height: 1.2;
}

.xhs-section-title.gold {
  background: #b86e2b;
}

.xhs-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.18);
  font-family: var(--font-mono);
  font-size: 13px;
}

.xhs-section-body {
  padding: 14px;
}

.xhs-scenario-grid,
.xhs-factor-grid,
.xhs-choice-grid {
  display: grid;
  gap: 10px;
}

.xhs-scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xhs-factor-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.xhs-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xhs-scenario,
.xhs-factor,
.xhs-choice {
  min-width: 0;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(46, 83, 57, 0.16);
  border-radius: 14px;
  padding: 12px;
}

.xhs-scenario-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--moss-900);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 8px;
}

.xhs-scenario strong,
.xhs-choice strong,
.xhs-factor strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  margin: 8px 0 5px;
}

.xhs-scenario ul {
  margin: 8px 0 0;
  padding-left: 17px;
}

.xhs-scenario li,
.xhs-choice p,
.xhs-factor p {
  color: var(--stone-700);
  font-size: 11.5px;
  line-height: 1.38;
  margin: 0;
}

.xhs-layer-diagram {
  display: grid;
  gap: 3px;
  margin: 2px 0 10px;
}

.xhs-layer-diagram span {
  display: block;
  height: 10px;
  border-radius: 3px;
}

.xhs-layer-diagram span:nth-child(1) { background: #b99068; }
.xhs-layer-diagram span:nth-child(2) { background: #d9d2c3; }
.xhs-layer-diagram span:nth-child(3) { background: #7b8f77; }
.xhs-layer-diagram span:nth-child(4) { background: #7a6048; }

.xhs-key-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.xhs-key-item {
  background: rgba(255, 253, 247, 0.86);
  border-right: 1px dashed rgba(184, 110, 43, 0.34);
  padding: 10px 12px;
}

.xhs-key-item:last-child {
  border-right: 0;
}

.xhs-key-item strong {
  display: block;
  color: var(--moss-950);
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.xhs-key-item p {
  color: var(--stone-700);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.xhs-callout {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(184, 151, 106, 0.22);
  color: var(--moss-950);
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

.xhs-factor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--moss-100);
  border: 1px solid rgba(46, 83, 57, 0.18);
  color: var(--moss-900);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 8px;
}

.xhs-confirm-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.xhs-confirm-grid img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(46, 83, 57, 0.14);
}

.xhs-confirm-list {
  display: grid;
  gap: 8px;
}

.xhs-confirm-list div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(46, 83, 57, 0.13);
  color: var(--stone-900);
  font-size: 13px;
  line-height: 1.35;
}

.xhs-confirm-list span {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--moss-700);
  border-radius: 5px;
  background: var(--bone);
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.visual-card-grid.brand-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.visual-mini-card {
  min-width: 0;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 16px 14px 15px;
}

.visual-mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  margin: 10px 0 6px;
}

.visual-mini-card p {
  color: var(--stone-700);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--moss-900);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 12px;
}

.mini-layer-stack {
  display: grid;
  gap: 3px;
  max-width: 116px;
  margin-top: 2px;
}

.mini-layer-stack span {
  display: block;
  height: 10px;
  border-radius: 3px;
  background: var(--moss-200);
}

.mini-layer-stack span:nth-child(1) {
  height: 13px;
  background: #b8976a;
}

.mini-layer-stack span:nth-child(2) {
  background: #d9d1c2;
}

.mini-layer-stack span:nth-child(3) {
  background: var(--moss-500);
}

.mini-layer-stack span:nth-child(4) {
  background: #7b6b54;
}

.visual-factor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.visual-factor {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(46, 83, 57, 0.06);
  border: 1px solid rgba(46, 83, 57, 0.12);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--moss-900);
  font-size: 12px;
  line-height: 1.25;
}

.visual-factor span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: var(--bone);
  border: 1px solid rgba(46, 83, 57, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
}

.visual-check-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.visual-check-row div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--stone-900);
  font-size: 13px;
  line-height: 1.35;
}

.visual-check-row span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--moss-700);
  background: var(--bone);
}

.brand-swatch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 92px;
}

.brand-swatch span {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid rgba(42, 38, 30, 0.12);
  background: var(--stone-300);
}

.brand-swatch span:nth-child(1) { background: #c8b397; }
.brand-swatch span:nth-child(2) { background: #8d8578; }
.brand-swatch span:nth-child(3) { background: #d8d0c3; }
.brand-swatch span:nth-child(4) { background: #7a756c; }
.brand-swatch span:nth-child(5) { background: #b6a07e; }
.brand-swatch span:nth-child(6) { background: #e1ddd2; }

.visual-answer-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: stretch;
}

.visual-answer-media {
  min-width: 0;
  margin: 0;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  overflow: hidden;
}

.visual-answer-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.visual-answer-media figcaption {
  padding: 16px 18px 18px;
  color: var(--stone-700);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.visual-answer-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--moss-100);
  color: var(--moss-900);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visual-answer-copy h2 {
  margin-bottom: 16px;
}

.visual-answer-copy,
.visual-answer-table,
.visual-answer-red-flags {
  min-width: 0;
}

.visual-answer-copy p {
  color: var(--stone-900);
}

.visual-answer-local-note {
  margin-top: 22px;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--terra-dim);
  background: rgba(184, 151, 106, 0.08);
  border-radius: var(--r-sm);
}

.visual-answer-local-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--moss-900);
}

.visual-answer-local-note p {
  color: var(--stone-700);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
}

.visual-answer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 22px;
  margin-top: 30px;
}

.visual-answer-table h3,
.visual-answer-red-flags h3,
.visual-answer-faq h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.visual-answer-red-flags {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 22px 22px 24px;
}

.visual-answer-red-flags ul {
  margin: 0;
  padding-left: 20px;
}

.visual-answer-red-flags li {
  color: var(--stone-700);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.visual-answer-red-flags li:last-child {
  margin-bottom: 0;
}

.visual-answer-faq {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--stone-200);
}

.visual-answer .faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-box,
.cta-band {
  background: var(--moss-950);
  color: var(--bone);
  border-radius: var(--r-lg);
  padding: 34px 34px 36px;
}

.answer-box h2,
.answer-box p,
.cta-band h2,
.cta-band p {
  color: var(--bone);
}

.answer-box p,
.cta-band p {
  opacity: 0.9;
  margin-bottom: 0;
}

.cta-band {
  margin-top: 64px;
}

.cta-band .btn {
  margin-top: 10px;
}

.cta-band .btn-primary {
  background: var(--bone);
  color: var(--moss-950);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
}

.article table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.article th,
.article td {
  text-align: left;
  vertical-align: top;
  padding: 18px 18px;
  border-bottom: 1px solid var(--stone-200);
  font-size: 14px;
  line-height: 1.5;
}

.article th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-700);
  background: var(--bone-warm);
  font-weight: 500;
}

.article tr:last-child td {
  border-bottom: 0;
}

.article-note {
  color: var(--stone-700);
  font-size: 14px;
  margin-top: 14px;
}

.article-grid,
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-grid > div,
.checklist > div {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 24px 22px;
}

.article-grid p,
.checklist p {
  color: var(--stone-700);
  font-size: 15px;
  margin: 0;
}

.article-list {
  margin: 0;
  padding-left: 22px;
}

.article-list li {
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 500;
  color: var(--ink);
}

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

.faq-list summary::after {
  content: '+';
  float: right;
  color: var(--moss-700);
  font-family: var(--font-mono);
}

.faq-list details[open] summary::after {
  content: '-';
}

.faq-list details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--stone-700);
}

.next-guides {
  border-top: 1px solid var(--stone-200);
  padding-top: 26px;
}

.guide-footer {
  margin-top: 72px;
}

@media (max-width: 900px) {
  .guide-list,
  .module-feature-card,
  .guide-module-grid,
  .module-showcase,
  .brand-module-showcase,
  .module-showcase-scope,
  .module-pair,
  .module-rule-grid,
  .module-brand-notes,
  .article-hero-grid,
  .article-summary-grid,
  .visual-answer-top,
  .visual-answer-columns,
  .visual-card-grid,
  .visual-card-grid.brand-grid,
  .visual-factor-strip,
  .xhs-scenario-grid,
  .xhs-factor-grid,
  .xhs-choice-grid,
  .xhs-key-row,
  .xhs-confirm-grid,
  .article-grid,
  .checklist {
    grid-template-columns: 1fr;
  }
  .visual-answer .faq-list {
    grid-template-columns: 1fr;
  }
  .guide-card {
    min-height: auto;
  }
  .module-thumb-grid {
    grid-template-columns: 1fr;
  }
  .module-pair img {
    height: auto;
    min-height: 0;
  }
  .quote-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-visual {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .guide-page,
  .article-shell {
    padding-top: 44px;
  }
  .guide-hero,
  .article-header {
    padding-top: 12px;
  }
  .module-feature-card,
  .module-showcase {
    padding: 18px;
  }
  .module-feature-copy h2,
  .module-showcase-copy h2,
  .module-section-head h2 {
    font-size: 32px;
  }
  .guide-module-card > img {
    height: auto;
  }
  .module-thumb-grid {
    grid-template-columns: 1fr;
  }
  .quote-scope-grid {
    grid-template-columns: 1fr;
  }
  .guide-hero h1,
  .article-header h1 {
    font-size: 42px;
  }
  .guide-hero p,
  .article-header p {
    font-size: 17px;
  }
  .article h2 {
    font-size: 30px;
  }
  .article-hero-grid {
    gap: 24px;
    margin-bottom: 26px;
  }
  .article-visual {
    min-height: 240px;
  }
  .article-visual-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .article-visual-caption strong {
    font-size: 21px;
  }
  .article .article-summary-grid {
    gap: 12px;
    margin-bottom: 36px;
  }
  .article-summary-grid > div {
    padding: 20px 18px;
  }
  .article .article-summary-grid h3 {
    font-size: 22px;
  }
  .answer-box,
  .visual-answer,
  .cta-band {
    padding: 28px 24px;
  }
  .article table {
    min-width: 100%;
  }
  .article th,
  .article td {
    padding: 14px 12px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .visual-answer table,
  .visual-answer thead,
  .visual-answer tbody,
  .visual-answer tr,
  .visual-answer td {
    display: block;
    width: 100%;
  }
  .visual-answer thead {
    display: none;
  }
  .visual-answer tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-200);
  }
  .visual-answer tr:last-child {
    border-bottom: 0;
  }
  .visual-answer td {
    border-bottom: 0;
    padding: 5px 14px;
  }
  .visual-answer td:first-child {
    color: var(--ink);
    font-weight: 600;
  }
  .visual-answer td:not(:first-child) {
    color: var(--stone-700);
  }
  .visual-board-head h3 {
    font-size: 34px;
  }
  .visual-board-tag {
    font-size: 14px;
  }
  .xhs-section-title {
    align-items: flex-start;
    border-radius: 0;
  }
  .xhs-callout {
    border-radius: 12px;
    text-align: left;
  }
  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }
}

/* ===== Quote screen ===== */
#quote {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(239, 236, 230, 0.94), rgba(239, 236, 230, 0.98)),
    #efece6;
}
#quote::before {
  content: '';
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 0;
  width: min(42vw, 560px);
  background:
    linear-gradient(90deg, rgba(239, 236, 230, 1), rgba(239, 236, 230, 0.12)),
    url('projects/hero-premium.jpg') center / cover;
  opacity: 0.22;
  pointer-events: none;
}
.quote-wrap {
  min-height: 100vh;
  padding: 40px 24px 88px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.quote-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-700);
  max-width: 700px;
}
.quote-progress-bar {
  flex: 1;
  margin: 0 16px;
  height: 2px;
  background: var(--stone-200);
  border-radius: 100px;
  position: relative;
}
.quote-progress-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: var(--progress, 20%);
  height: 100%;
  background: var(--moss-900);
  border-radius: 100px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-body {
  display: grid;
  grid-template-columns: minmax(0, 700px) 320px;
  gap: 40px;
  align-items: start;
}
.quote-final-step .quote-body {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.quote-main {
  min-width: 0;
}
.quote-live-brief {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 92px;
  border: 1px solid rgba(46, 83, 57, 0.16);
  border-radius: var(--r-lg);
  background: rgba(250, 248, 242, 0.78);
  box-shadow:
    0 24px 60px rgba(38, 45, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}
.quote-live-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}
.quote-live-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quote-live-kicker {
  display: block;
  padding: 20px 22px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-700);
}
.quote-live-brief h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 8px 22px 10px;
  color: var(--moss-950);
}
.quote-live-brief p {
  color: var(--stone-700);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 22px 18px;
}
.quote-live-grid {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(46, 83, 57, 0.12);
}
.quote-live-grid div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(46, 83, 57, 0.08);
}
.quote-live-grid div:last-child {
  border-bottom: 0;
}
.quote-live-grid dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.quote-live-grid dd {
  margin: 0;
  color: var(--stone-900);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.quote-final-step .quote-live-brief {
  display: none;
}

/* Step wrapper — hidden by default, active one shows */
.quote-step { display: none; }
.quote-step.active {
  display: block;
  animation: quote-step-in 0.25s ease;
}
@keyframes quote-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-hint {
  font-size: 14px;
  color: var(--stone-700);
  margin: -20px 0 28px;
  line-height: 1.5;
}

.opt-note {
  font-style: normal;
  color: var(--stone-700);
  font-size: 13px;
  margin-left: 6px;
}
.quote-q {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.quote-options {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}
.quote-step[data-step="1"] .quote-options,
.quote-step[data-step="2"] .quote-options,
.quote-step[data-step="3"] .quote-options,
.quote-step[data-step="4"] .quote-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quote-option {
  background: rgba(250, 248, 242, 0.8);
  border: 1px solid rgba(46, 83, 57, 0.12);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: left;
  font-size: 16px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  box-shadow: 0 10px 28px rgba(38, 45, 38, 0.04);
  overflow: hidden;
  position: relative;
}
.quote-option span:first-of-type {
  flex: 1;
  line-height: 1.35;
  min-width: 0;
}
.quote-option:hover {
  border-color: rgba(46, 83, 57, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(38, 45, 38, 0.08);
}
.quote-option.selected {
  border-color: var(--moss-900);
  background:
    linear-gradient(180deg, rgba(238, 245, 232, 0.88), rgba(250, 248, 242, 0.9)),
    var(--moss-100);
  box-shadow:
    0 18px 40px rgba(46, 83, 57, 0.13),
    inset 0 0 0 1px rgba(46, 83, 57, 0.08);
}
.quote-option .check {
  width: 20px; height: 20px;
  border-radius: 100%;
  border: 1.5px solid var(--stone-300);
  flex: 0 0 auto;
  margin-top: 2px;
}
.quote-option.selected .check {
  background: var(--moss-900);
  border-color: var(--moss-900);
  position: relative;
}
.quote-option.selected .check::after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border: solid var(--bone);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Multi-select variant: square checkbox instead of circle */
.quote-options-multi .check {
  border-radius: 4px;
}
.quote-options-multi .quote-option.selected .check::after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
}
.quote-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* photo upload step */
.upload-zone {
  border: 1.5px dashed var(--stone-300);
  border-radius: var(--r-md);
  padding: 40px 24px;
  text-align: center;
  background: var(--bone);
  margin-bottom: 24px;
}
.upload-zone strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.upload-zone span {
  display: block;
  font-size: 14px;
  color: var(--stone-700);
  margin-bottom: 4px;
}
.upload-btn {
  margin-top: 20px;
  display: inline-flex;
  padding: 10px 20px;
  background: var(--moss-900);
  color: var(--bone);
  border-radius: 100px;
  font-size: 14px;
}
.upload-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.upload-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, var(--moss-200), var(--moss-100));
  position: relative;
}
.upload-thumb::after {
  content: 'PHOTO';
  position: absolute; bottom: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.08em;
}

.quote-review {
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.32)),
    var(--bone);
  padding: 18px 20px 20px;
  margin: 0 0 22px;
}
.quote-review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone-200);
}
.quote-review-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-700);
}
.quote-review-head strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--moss-950);
}
.quote-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 16px 0 0;
}
.quote-review-grid div {
  min-width: 0;
}
.quote-review-grid dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 4px;
}
.quote-review-grid dd {
  margin: 0;
  color: var(--stone-900);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Contact fields */
.quote-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.field input, .field textarea {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--moss-900);
}

@media (max-width: 720px) {
  #quote::before {
    position: absolute;
    top: 70px;
    width: 100%;
    height: 220px;
    opacity: 0.14;
  }
  .quote-wrap {
    padding: 34px 24px 82px;
  }
  .quote-progress {
    margin-bottom: 26px;
  }
  .quote-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .quote-main {
    order: 1;
  }
  .quote-live-brief {
    display: none;
  }
  .quote-step[data-step="1"] .quote-options,
  .quote-step[data-step="2"] .quote-options,
  .quote-step[data-step="3"] .quote-options,
  .quote-step[data-step="4"] .quote-options {
    grid-template-columns: 1fr;
  }
  .quote-option {
    min-height: 68px;
    padding: 17px 18px;
  }
  .quote-review {
    padding: 17px 17px 18px;
  }
  .quote-review-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .quote-review-grid,
  .quote-contact-grid {
    grid-template-columns: 1fr;
  }
}
.quote-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 4px;
}
.quote-promise div {
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.42);
  padding: 13px 14px;
}
.quote-promise strong {
  display: block;
  color: var(--moss-900);
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 5px;
}
.quote-promise span {
  display: block;
  color: var(--stone-700);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .quote-promise {
    grid-template-columns: 1fr;
  }
}

/* ===== Thanks screen ===== */
.thanks-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.thanks-card {
  max-width: 560px;
  text-align: center;
}
.thanks-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  border-radius: 100%;
  background: var(--moss-100);
  color: var(--moss-900);
  display: grid;
  place-items: center;
  font-size: 32px;
}
.thanks-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.thanks-lead {
  font-size: 17px;
  color: var(--stone-700);
  margin: 0 0 40px;
  line-height: 1.55;
}
.thanks-next {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 28px 32px;
  text-align: left;
  margin-bottom: 32px;
}
.thanks-next h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-700);
  margin: 0 0 20px;
  font-weight: 500;
}
.thanks-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}
.thanks-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-700);
  min-width: 24px;
}
.thanks-step-body {
  font-size: 14px;
  color: var(--stone-900);
}
.thanks-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-700);
  letter-spacing: 0.06em;
}

/* ===== Dashboard (admin) ===== */
.admin-nav {
  background: var(--moss-950);
  color: var(--bone);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-nav .brand-name { color: var(--bone); }
.admin-nav .brand-sub { color: var(--moss-200); }
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--moss-200);
}
.admin-avatar {
  width: 32px; height: 32px;
  border-radius: 100%;
  background: var(--moss-700);
  color: var(--bone);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
}
.dash-head {
  padding: 40px 28px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.dash-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.dash-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .dash-actions { width: 100%; }
  .dash-actions .btn { flex: 1; }
}
.dash-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.dash-sub {
  font-size: 15px;
  color: var(--stone-700);
  margin: 0;
  max-width: 560px;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-chip {
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  font-size: 13px;
  color: var(--stone-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-chip:hover { border-color: var(--moss-700); }
.filter-chip.active {
  background: var(--moss-900);
  color: var(--bone);
  border-color: var(--moss-900);
}
.filter-chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.75;
}

.lead-table {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px 60px;
}
.lead-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.2fr 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lead-row:hover { border-color: var(--moss-700); }
.lead-row.header {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  cursor: default;
  margin-bottom: 4px;
}
.lead-row.header:hover { border: none; }
.lead-customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lead-name {
  font-weight: 500;
  font-size: 15px;
}
.lead-contact {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-700);
  letter-spacing: 0.02em;
}
.lead-type { font-size: 14px; color: var(--stone-900); }
.lead-size { font-size: 14px; color: var(--stone-700); font-family: var(--font-mono); }
.lead-time { font-size: 13px; color: var(--stone-700); font-family: var(--font-mono); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.status-new { background: oklch(0.92 0.04 45); color: var(--terra); }
.status-contacted { background: var(--moss-200); color: var(--moss-900); }
.status-quoted { background: oklch(0.9 0.05 240); color: oklch(0.4 0.1 240); }
.status-signed { background: var(--moss-900); color: var(--bone); }
.status-lost { background: var(--stone-200); color: var(--stone-700); }

@media (max-width: 900px) {
  .lead-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lead-row.header { display: none; }
  .lead-size, .lead-time { display: none; }
}

/* ===== Lead detail ===== */
.detail-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 24px;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--stone-200);
}
.detail-customer-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.detail-meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone-700);
  flex-wrap: wrap;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.detail-col { min-width: 0; }
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .detail-head {
    flex-direction: column;
    gap: 16px;
  }
  .detail-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .detail-actions .btn { flex: 1; }
  .detail-customer-name { font-size: 28px; }
}
.detail-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin: 0 0 16px;
  font-weight: 500;
}
.panel {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 20px;
}
.panel.internal {
  background: var(--moss-100);
  border-color: var(--moss-200);
}
.panel h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.qa-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-200);
}
.qa-row:last-child { border-bottom: none; }
.qa-q {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.qa-a {
  font-size: 15px;
  color: var(--ink);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.photo-cell {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, var(--moss-200), var(--moss-100));
  position: relative;
}
.photo-cell::after {
  content: attr(data-label);
  position: absolute; bottom: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.08em;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--moss-900);
  color: var(--bone);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* AI panel head: chip + regenerate/edit on one row */
.ai-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-panel-head .ai-chip { margin-bottom: 0; }
.ai-panel-actions {
  display: flex;
  gap: 6px;
}
.ai-action-btn {
  background: transparent;
  border: 1px solid var(--stone-300);
  color: var(--stone-900);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.ai-action-btn:hover:not(:disabled) {
  border-color: var(--moss-900);
  color: var(--moss-900);
}
.ai-action-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ai-content.editing {
  outline: 2px dashed var(--moss-400, #88a88a);
  outline-offset: 4px;
  border-radius: var(--r-sm);
  padding: 4px;
  background: rgba(255,255,255,0.4);
}
.ai-content.editing * { cursor: text; }

/* Loading dots while regenerating */
.ai-loading {
  display: flex;
  gap: 6px;
  padding: 16px 0;
}
.ai-loading span {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--moss-900);
  opacity: 0.3;
  animation: ai-pulse 1.2s ease-in-out infinite;
}
.ai-loading span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.material-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.material-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--stone-200);
  font-size: 14px;
}
.material-list li:last-child { border-bottom: none; }
.material-list .mat-qty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone-700);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.tier-card {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-card.mid { border-color: var(--moss-900); background: var(--moss-100); }
.tier-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.tier-card.mid .tier-label { color: var(--moss-900); }
.tier-price-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--stone-300);
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  width: 100%;
}
.tier-price-input:focus {
  outline: none;
  border-bottom-color: var(--moss-900);
}
.tier-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-700);
  letter-spacing: 0.04em;
}

.notes-textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  resize: vertical;
  line-height: 1.5;
}
.notes-textarea:focus { outline: none; border-color: var(--moss-900); }

.status-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.status-select button {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--stone-300);
  font-size: 12px;
  background: transparent;
  color: var(--stone-900);
}
.status-select button.active {
  background: var(--moss-900);
  color: var(--bone);
  border-color: var(--moss-900);
}

.panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.panel-actions .btn { flex: 1; min-width: 160px; }

.coming-soon {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-left: 6px;
  background: var(--stone-200);
  padding: 2px 6px;
  border-radius: 100px;
}

/* ===== AI paste-to-parse panel (admin only) ===== */
.ai-paste-panel {
  position: relative;
  background: var(--moss-100);
  border: 1px solid var(--moss-200);
  border-radius: var(--r-md);
  padding: 24px 24px 20px;
  margin-bottom: 32px;
}
.ai-paste-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 100%;
  font-size: 18px;
  color: var(--stone-700);
  transition: background 0.15s;
}
.ai-paste-dismiss:hover { background: rgba(0,0,0,0.06); }
.ai-paste-head { margin-bottom: 14px; }
.ai-paste-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 12px 0 6px;
}
.ai-paste-lead {
  font-size: 14px;
  color: var(--stone-700);
  margin: 0;
  line-height: 1.5;
  max-width: 560px;
}
.ai-paste-textarea {
  width: 100%;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s;
}
.ai-paste-textarea:focus {
  outline: none;
  border-color: var(--moss-900);
}
.ai-paste-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ai-paste-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--stone-700);
}
.ai-paste-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

/* ===== Admin: manual lead entry ===== */
.admin-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}
.admin-form-head {
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone-200);
}
.admin-form-head .detail-customer-name {
  margin: 0 0 8px;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-select {
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1.5l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.form-select:focus {
  outline: none;
  border-color: var(--moss-900);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--stone-200);
}
.form-actions .btn { min-width: 140px; }
@media (max-width: 640px) {
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

/* ===== Tier pricing build (3-tier quote editor) ===== */
.tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  background: var(--stone-100, #f2efe8);
  padding: 4px;
  border-radius: var(--r-sm);
}
.tier-tab {
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: calc(var(--r-sm) - 2px);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s;
}
.tier-tab:hover { background: rgba(255,255,255,0.5); }
.tier-tab.active {
  background: var(--bone);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tier-tab-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.tier-tab.active .tier-tab-label { color: var(--moss-900); }
.tier-tab-total {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}

.tier-build { display: none; }
.tier-build.active {
  display: block;
  animation: quote-step-in 0.2s ease;
}
.tier-build-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone-700);
  margin-bottom: 14px;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bone);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--stone-200);
}
.tier-table thead th {
  background: var(--stone-100, #f2efe8);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  text-align: left;
  padding: 10px 12px;
  font-weight: 400;
}
.tier-table thead th.col-total { text-align: right; }
.tier-table thead th.col-x { width: 28px; }
.tier-table .tier-group-head td {
  background: var(--moss-100);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-900);
  border-top: 1px solid var(--stone-200);
}
.tier-table .tier-line td {
  padding: 4px 6px;
  border-top: 1px solid var(--stone-200);
  vertical-align: middle;
}
.tier-table .tier-line td:first-child { padding-left: 10px; }
.tier-table .tier-line input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 4px;
  font-family: inherit;
}
.tier-table .tier-line input:hover { background: var(--stone-100, #f2efe8); }
.tier-table .tier-line input:focus {
  outline: none;
  background: var(--moss-100);
}
.tier-table .tier-line td.col-total {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  padding-right: 12px;
  min-width: 80px;
}
.tier-table .col-x { text-align: center; }
.tier-table .row-x {
  background: transparent;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 100%;
  color: var(--stone-700);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
}
.tier-table .tier-line:hover .row-x { opacity: 1; }
.tier-table .row-x:hover { background: var(--stone-200); color: var(--ink); }

.tier-table .tier-empty td {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--stone-700);
  font-style: italic;
  background: rgba(0,0,0,0.015);
}
.tier-table .tier-group-row td {
  padding: 6px 12px;
  border-top: 1px solid var(--stone-200);
  background: rgba(0,0,0,0.015);
}
.tier-add-line {
  background: transparent;
  border: 1px dashed var(--stone-300);
  color: var(--stone-700);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.tier-add-line:hover {
  border-color: var(--moss-900);
  color: var(--moss-900);
  border-style: solid;
}

.tier-totals {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--stone-700);
  font-family: var(--font-mono);
}
.tier-total-row.tier-grand {
  border-top: 1px solid var(--stone-200);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--moss-900);
}

/* Tier table mobile: tabs stack, table becomes horizontal-scroll */
@media (max-width: 720px) {
  .tier-tabs {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .tier-tab {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 14px;
    text-align: left;
  }
  .tier-tab-label { font-size: 11px; }
  .tier-tab-total { font-size: 17px; }

  .tier-build { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tier-table { min-width: 440px; }
}

/* ===== Email draft modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 33, 28, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 24px;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--bone);
  border-radius: var(--r-md);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(12px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--stone-700);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--stone-100, #f2efe8); }

.modal-head {
  padding: 28px 32px 16px;
  border-bottom: 1px solid var(--stone-200);
}
.modal-head .ai-chip { margin-bottom: 10px; }
.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.modal-lead {
  font-size: 13px;
  color: var(--stone-700);
  margin: 0;
  line-height: 1.5;
}
.modal-body {
  padding: 20px 32px;
  overflow-y: auto;
  flex: 1;
}
.modal-body .field { margin-bottom: 14px; }
.email-body-textarea {
  width: 100%;
  background: var(--bone);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 240px;
  transition: border-color 0.15s;
}
.email-body-textarea:focus {
  outline: none;
  border-color: var(--moss-900);
}
.modal-actions {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--stone-200);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .modal-head, .modal-body, .modal-actions { padding-left: 20px; padding-right: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

.quote-error {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #d4a09a;
  background: #fdf3f1;
  color: #8a3a2e;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.quote-error[hidden] {
  display: none !important;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a,
.footer-social button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--stone-700, #5a5a5a);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.footer-social a:hover,
.footer-social button:hover {
  color: var(--moss-950, #2E5339);
  background: var(--bone, #F5EDD8);
  transform: translateY(-1px);
}
.footer-social a:focus-visible,
.footer-social button:focus-visible {
  outline: 2px solid var(--moss-950, #2E5339);
  outline-offset: 2px;
}

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 25, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.qr-modal[aria-hidden="false"] {
  display: flex;
}
.qr-modal-card {
  background: var(--bone, #F5EDD8);
  padding: 32px 32px 28px;
  border-radius: 16px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.qr-modal-card h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--moss-950, #2E5339);
}
.qr-modal-card img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.qr-modal-card p {
  margin: 0;
  font-size: 13px;
  color: var(--stone-700, #5a5a5a);
}
.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--stone-700, #5a5a5a);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}
.qr-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}
