/* ==========================================================================
   Kulh Studio — Soft Sand & Ink
   ========================================================================== */

:root {
  --bg: #F7F3EE;
  --surface: #FFFDFC;
  --ink: #1F2937;
  --muted: #6B7280;
  --accent: #C08457;

  --accent-soft: rgba(192, 132, 87, 0.12);
  --line: rgba(31, 41, 55, 0.08);
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.05), 0 4px 12px rgba(31, 41, 55, 0.05);
  --shadow-md: 0 2px 4px rgba(31, 41, 55, 0.05), 0 12px 32px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 4px 8px rgba(31, 41, 55, 0.06), 0 24px 64px rgba(31, 41, 55, 0.14);

  --serif: "Fraunces", Georgia, serif;
  --serif-accent: "Instrument Serif", Georgia, serif;
  --script: "Caveat", cursive;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

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

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

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 0.5em; }

h1 em, h2 em {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0;
  color: var(--accent);
}

h3 {
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lede, .section-lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
}

.section-lede { margin-bottom: 3rem; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-small { padding: 0.55rem 1.25rem; font-size: 0.88rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { color: var(--surface); }

.btn-full { width: 100%; text-align: center; }

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.link-arrow span { transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.nav.scrolled {
  height: 64px;
  background: rgba(247, 243, 238, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img { height: 40px; width: auto; }

.logo-img-footer { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 110px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-1 {
  width: 560px; height: 560px;
  background: var(--accent-soft);
  top: -180px; right: -120px;
}

.blob-2 {
  width: 420px; height: 420px;
  background: rgba(107, 114, 128, 0.10);
  bottom: -200px; left: -140px;
}

.blob-3 {
  width: 820px; height: 820px;
  background: rgba(192, 132, 87, 0.22);
  bottom: -340px; right: -100px;
  opacity: 0.95;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.hero-copy .lede { margin: 1.4rem 0 2rem; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.trust-line {
  margin-top: 2.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* --- Browser frame (shared) --- */

.browser-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.browser-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.14);
}

.browser-bar .address {
  margin-left: 12px;
  flex: 1;
  max-width: 280px;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 14px;
}

/* --- Hero mini site (tilted, self-assembling) --- */

.hero-visual { position: relative; }

.hero-frame {
  width: 110%;
  margin-left: 2%;
  background: linear-gradient(165deg, #FFFEFC 0%, #F9F3EB 100%);
  box-shadow: 32px 44px 90px rgba(31, 41, 55, 0.17), 10px 14px 28px rgba(31, 41, 55, 0.07);
}

.float { animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: perspective(1300px) translateY(0) rotateY(-10deg) rotateX(4deg) rotate(1.2deg); }
  50% { transform: perspective(1300px) translateY(-12px) rotateY(-8deg) rotateX(3deg) rotate(1.8deg); }
}

/* Hand-drawn note + arrow */

.hero-note {
  position: absolute;
  z-index: 2;
  left: -6.8rem;
  bottom: 10%;
  width: 10.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  pointer-events: none;
}

.note-arrow {
  width: 6.2rem;
  height: auto;
  margin-left: 3.4rem;
}

.note-text {
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--accent);
  text-align: center;
  margin-top: 0.5rem;
  transform: rotate(-3deg);
}

html.js .note-path {
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
}

html.js .is-visible .note-path {
  animation: drawPath 1.1s ease 1s forwards;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

html.js .note-text { opacity: 0; }

html.js .is-visible .note-text {
  animation: fadeIn 0.6s ease 1.9s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.mini-site { padding: 22px 24px 26px; }

.m-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.m-mark {
  width: 34px; height: 12px;
  border-radius: 4px;
  background: var(--ink);
}

.m-links { display: flex; gap: 8px; }

.m-links i {
  display: block;
  width: 22px; height: 6px;
  border-radius: 3px;
  background: rgba(31, 41, 55, 0.14);
}

.m-hero { margin-bottom: 18px; }

.m-line {
  display: block;
  border-radius: 5px;
  background: rgba(31, 41, 55, 0.85);
}

.m-line.lg { width: 72%; height: 16px; margin-bottom: 9px; }
.m-line.md { width: 48%; height: 16px; background: rgba(31, 41, 55, 0.35); margin-bottom: 14px; }

.m-btn {
  display: inline-block;
  width: 88px; height: 26px;
  border-radius: 999px;
  background: var(--accent);
}

.m-img {
  height: 110px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, var(--accent-soft), rgba(192, 132, 87, 0.30));
  margin-bottom: 14px;
}

.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.m-cards span {
  display: block;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}

/* build-in animation */
html.js .build {
  opacity: 0;
  transform: translateY(14px);
  animation: buildIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.b-1 { animation-delay: 0.5s; }
.b-2 { animation-delay: 0.7s; }
.b-3 { animation-delay: 0.85s; }
.b-4 { animation-delay: 1.0s; }
.b-5 { animation-delay: 1.2s; }
.b-6 { animation-delay: 1.4s; }
.b-7 { animation-delay: 1.5s; }
.b-8 { animation-delay: 1.6s; }

@keyframes buildIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sections (shared rhythm)
   ========================================================================== */

.section { padding: 96px 0; }

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   Problem
   ========================================================================== */

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-card .icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.info-card .icon svg { width: 22px; height: 22px; }

.info-card h3 { margin-bottom: 0.5rem; }

.info-card p { font-size: 0.95rem; color: var(--muted); }

/* ==========================================================================
   Compare: full-shell diagonal before/after
   ========================================================================== */

.compare { background: var(--surface); }

.compare-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  --slant: 36px;
  touch-action: pan-y;
}

/* Layer A: light world (base, defines height) */
.cs-light {
  position: relative;
  background: var(--bg);
}

/* Layer B: themed world, diagonally clipped over layer A */
.cs-theme {
  position: absolute;
  inset: 0;
  background: #2F4A34;
  transition: background 0.6s ease;
  clip-path: polygon(calc(var(--pos) + var(--slant)) 0, 100% 0, 100% 100%, calc(var(--pos) - var(--slant)) 100%);
}

.compare-shell[data-demo="barber"] .cs-theme { background: #191D24; }
.compare-shell[data-demo="cafe"] .cs-theme { background: #57371D; }

.cs-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.3fr;
  height: 100%;
}

.compare-left {
  padding: 2.8rem 2.4rem;
  display: flex;
  flex-direction: column;
}

.compare-left h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.compare-lede {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 36ch;
}

.compare-right {
  padding: 2.4rem 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Theme-layer recoloring of the copy panel */
.cs-theme h2 { color: var(--surface); }
.cs-theme .compare-lede { color: rgba(247, 243, 238, 0.72); }
.cs-theme .demo-label { color: rgba(247, 243, 238, 0.6); }
.cs-theme .demo-desc-head h3 { color: var(--surface); }
.cs-theme .demo-desc-item p { color: rgba(247, 243, 238, 0.72); }
.cs-theme .demo-meta { color: rgba(247, 243, 238, 0.55); }

/* --- Demo picker --- */

.demo-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.demo-tabs {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 1.5rem;
}

.cs-theme .demo-tabs {
  background: rgba(247, 243, 238, 0.14);
  border-color: rgba(247, 243, 238, 0.18);
}

.demo-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  background: var(--ink);
  border-radius: 999px;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-theme .demo-indicator { background: var(--bg); }

.demo-tab {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.demo-tab:hover:not(.active) { color: var(--ink); }

.demo-tab.active { color: var(--surface); }

.cs-theme .demo-tab { color: rgba(247, 243, 238, 0.65); }
.cs-theme .demo-tab:hover:not(.active) { color: var(--surface); }
.cs-theme .demo-tab.active { color: var(--ink); }

.demo-desc { display: grid; }

.demo-desc-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.demo-desc-item.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.15s;
}

.demo-desc-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}

.demo-desc-head h3 { font-size: 1.05rem; }

.demo-desc-item p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 52ch;
}

.demo-meta {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Browser frame + site stage --- */

.cs-frame {
  width: 100%;
  container-type: inline-size;
  cursor: ew-resize;
}

.site-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  font-size: clamp(7px, 1.3vw, 12px);
}

@supports (font-size: 1cqi) {
  .site-stage { font-size: clamp(6.5px, 1.5cqi, 12px); }
}

/* --- Dots + feature row --- */

.demo-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.demo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cs-light .demo-dot { background: rgba(31, 41, 55, 0.22); }
.cs-light .demo-dot:hover { background: rgba(31, 41, 55, 0.45); }
.cs-light .demo-dot.active { background: var(--ink); transform: scale(1.3); }

.cs-theme .demo-dot { background: rgba(255, 255, 255, 0.35); }
.cs-theme .demo-dot:hover { background: rgba(255, 255, 255, 0.6); }
.cs-theme .demo-dot.active { background: #fff; transform: scale(1.3); }

.compare-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.compare-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.cs-light .compare-feat { color: var(--ink); }
.cs-theme .compare-feat { color: #F4F0E8; }

.feat-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cs-light .feat-icon { border: 1px solid rgba(31, 41, 55, 0.22); color: var(--accent); }
.cs-theme .feat-icon { border: 1px solid rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.85); }

.feat-icon svg { width: 16px; height: 16px; }

.compare-feat b {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.compare-feat span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
}

.cs-light .compare-feat span { color: var(--muted); }
.cs-theme .compare-feat span { color: rgba(255, 255, 255, 0.6); }

/* --- Divider grip + keyboard range --- */

.cs-grip {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: ew-resize;
}

.cs-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-size: 0.7rem;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.tag-before {
  left: 12px;
  background: rgba(31, 41, 55, 0.75);
  color: #fff;
}

.tag-after {
  right: 12px;
  background: var(--accent);
  color: #fff;
}

/* ----- BEFORE: dated site with clashing colors (per-theme vars) ----- */

.ob-site {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--ob-bg);
  color: #2d2d2d;
  font-family: Verdana, Geneva, sans-serif;
}

.ob-banner {
  background: var(--ob-banner);
  color: var(--ob-banner-text);
  text-align: center;
  padding: 2% 2% 1.6%;
}

.ob-title {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.8em;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.ob-sub {
  display: block;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 0.9em;
  margin-top: 0.2em;
}

.ob-nav {
  display: flex;
  justify-content: center;
  gap: 4%;
  background: var(--ob-nav);
  color: var(--ob-nav-text);
  padding: 1% 2%;
  font-size: 0.9em;
  font-weight: 700;
}

.ob-nav span { text-decoration: underline; white-space: nowrap; }

.ob-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 4%;
  padding: 3% 4%;
  min-height: 0;
}

.ob-welcome {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: var(--ob-welcome);
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.ob-text {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.1em;
  line-height: 1.45;
  margin-bottom: 0.9em;
}

.ob-btn {
  display: inline-block;
  font-size: 0.9em;
  font-weight: 700;
  color: #fff;
  background: var(--ob-btn);
  border: 3px outset #ddd;
  padding: 0.45em 1.1em;
}

.ob-imgrow { display: flex; gap: 4%; margin-top: 1.1em; }

.ob-imgrow i {
  flex: 1;
  aspect-ratio: 4 / 3;
  background: #d8d8d8;
  border: 2px inset #aaa;
  color: #777;
  font-style: normal;
  font-size: 0.75em;
  display: grid;
  place-items: center;
}

.ob-aside {
  display: flex;
  flex-direction: column;
  gap: 7%;
  min-height: 0;
}

.ob-burst {
  background: var(--ob-burst);
  color: var(--ob-burst-text);
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: 700;
  font-size: 1.1em;
  text-align: center;
  padding: 7% 4%;
  transform: rotate(-4deg);
  border-radius: 50% 45% 55% 50% / 55% 50% 50% 45%;
  border: 3px dashed rgba(255, 255, 255, 0.8);
}

.ob-update {
  background: #fff;
  border: 2px solid #999;
  padding: 5% 6%;
  font-size: 0.85em;
  line-height: 1.4;
}

.ob-update b { display: block; margin-bottom: 0.2em; }

.ob-counter {
  background: #000;
  color: #33ff33;
  font-family: "Courier New", monospace;
  text-align: center;
  font-size: 0.8em;
  padding: 3% 2%;
}

.ob-footer {
  text-align: center;
  font-size: 0.75em;
  font-style: italic;
  color: #666;
  padding: 1.2%;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Before themes: three different flavors of clashing */

.compare-shell[data-demo="landscape"] {
  --ob-bg: #FFFCEF;
  --ob-banner: #79B72E;
  --ob-banner-text: #FFF35C;
  --ob-nav: #2456B0;
  --ob-nav-text: #ffffff;
  --ob-welcome: #CC2B1D;
  --ob-btn: #D6342C;
  --ob-burst: #FFE23F;
  --ob-burst-text: #C22212;
}

.compare-shell[data-demo="barber"] {
  --ob-bg: #F2F2F2;
  --ob-banner: #C0130B;
  --ob-banner-text: #FFE600;
  --ob-nav: #141414;
  --ob-nav-text: #FFD24A;
  --ob-welcome: #0B9E86;
  --ob-btn: #6FA00A;
  --ob-burst: #111111;
  --ob-burst-text: #FFE600;
}

.compare-shell[data-demo="cafe"] {
  --ob-bg: #FFFDF3;
  --ob-banner: #16A5A5;
  --ob-banner-text: #FFFFFF;
  --ob-nav: #E75480;
  --ob-nav-text: #FFFFFF;
  --ob-welcome: #7B1FA2;
  --ob-btn: #E67E22;
  --ob-burst: #D6342C;
  --ob-burst-text: #FFFFFF;
}

/* ----- AFTER: three distinct redesigns ----- */

.af-page {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--sans);
}

.compare-shell[data-demo="landscape"] .af-page-land { display: flex; }
.compare-shell[data-demo="barber"] .af-page-barber { display: flex; }
.compare-shell[data-demo="cafe"] .af-page-cafe { display: flex; }

/* --- Wasatch Green: split hero with photography --- */

.af-page-land { background: #F7F4EC; color: #232B22; }

.al-nav {
  display: flex;
  align-items: center;
  gap: 3%;
  padding: 2.2% 4%;
}

.al-logo { height: 2em; width: auto; }

.al-links { display: flex; gap: 0.9em; margin-left: auto; margin-right: 2%; }

.al-links i {
  display: block;
  width: 2em; height: 0.5em;
  border-radius: 3px;
  background: rgba(35, 43, 34, 0.22);
}

.al-navbtn {
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid #2F4A34;
  color: #2F4A34;
  border-radius: 999px;
  padding: 0.35em 1em;
  white-space: nowrap;
}

.al-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4%;
  align-items: stretch;
  padding: 0.5% 4% 2%;
  min-height: 0;
}

.al-photo {
  width: 100%;
  height: 100%;
  min-height: 9em;
  object-fit: cover;
  border-radius: 0.9em;
}

.al-copy { align-self: center; }

.al-copy h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.3em;
  line-height: 1.05;
  margin-bottom: 0.25em;
}

.al-copy p {
  font-size: 0.95em;
  color: #6E7568;
  line-height: 1.45;
  margin-bottom: 1em;
}

.al-btn {
  display: inline-block;
  background: #2F4A34;
  color: #F4F1E7;
  font-weight: 600;
  font-size: 0.9em;
  padding: 0.55em 1.3em;
  border-radius: 999px;
}

.al-rating {
  display: block;
  margin-top: 0.9em;
  font-size: 0.8em;
  font-weight: 600;
  color: #D9A13B;
  letter-spacing: 0.08em;
}

.al-rating span {
  color: #6E7568;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.4em;
}

.al-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
  padding: 0 4% 2%;
}

.al-cards div {
  background: #fff;
  border: 1px solid rgba(35, 43, 34, 0.10);
  border-radius: 0.7em;
  padding: 3.5% 6%;
}

.al-cards b { display: block; font-size: 0.92em; margin-bottom: 0.1em; }

.al-cards span {
  display: block;
  font-size: 0.76em;
  color: #6E7568;
  line-height: 1.35;
}

.al-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4%;
  background: #EDEAE0;
  padding: 1.6% 4%;
}

.al-quote {
  font-family: var(--serif-accent);
  font-style: italic;
  font-size: 1.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-attr { font-size: 0.8em; color: #6E7568; white-space: nowrap; }

/* --- Iron & Oak: light editorial with client-photo carousel --- */

.af-page-barber { background: #F2EDE3; color: #23201B; }

.ab-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7em;
  padding: 2.4% 4% 0;
}

.ab-logo {
  width: 24%;
  border-radius: 0.8em;
  box-shadow: 0 0.4em 1.4em rgba(35, 32, 27, 0.20);
}

.ab-head h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9em;
  line-height: 1.05;
  margin-bottom: 0.15em;
}

.ab-head p { font-size: 0.85em; color: #7A7264; }

.ab-main {
  flex: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5%;
  padding: 1.8% 4% 2.6%;
  min-height: 0;
}

.ab-carousel {
  position: relative;
  min-height: 8em;
  border-radius: 0.9em;
  overflow: hidden;
  background: #23201B;
}

.ab-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.ab-carousel img.active { opacity: 1; }

.ab-dots {
  position: absolute;
  bottom: 0.9em;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5em;
}

.ab-dots i {
  width: 0.6em; height: 0.6em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s ease, transform 0.3s ease;
}

.ab-dots i.active { background: #fff; transform: scale(1.25); }

.ab-carousel-tag {
  position: absolute;
  top: 0.9em;
  left: 0.9em;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(35, 32, 27, 0.55);
  padding: 0.5em 1em;
  border-radius: 999px;
}

.ab-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9em;
  min-width: 0;
}

.ab-menu { border-top: 1px solid rgba(35, 32, 27, 0.16); }

.ab-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 0.55em 0;
  border-bottom: 1px solid rgba(35, 32, 27, 0.12);
  font-size: 0.95em;
}

.ab-row span { color: #7A7264; font-weight: 600; }

.ab-btn {
  display: block;
  text-align: center;
  background: #C08457;
  color: #fff;
  font-weight: 600;
  font-size: 0.95em;
  padding: 0.6em 1.3em;
  border-radius: 999px;
}

.ab-note { font-size: 0.78em; color: #7A7264; text-align: center; }

/* --- Copper Kettle: full-bleed interior with overlay --- */

.af-page-cafe { position: absolute; }

.ac-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 22, 15, 0.38) 0%, rgba(30, 22, 15, 0.05) 38%, rgba(30, 22, 15, 0.74) 100%);
}

.ac-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4% 4%;
  color: #FFF7EC;
}

.ac-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.ac-navbtn {
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid rgba(255, 247, 236, 0.75);
  border-radius: 999px;
  padding: 0.35em 1em;
}

.ac-hours {
  position: absolute;
  top: 22%;
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  background: rgba(255, 251, 244, 0.94);
  color: #33261B;
  border-radius: 0.8em;
  padding: 1em 1.4em;
  box-shadow: 0 0.6em 1.8em rgba(20, 14, 8, 0.30);
}

.ac-hours-label {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A5A33;
}

.ac-hours-time {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5em;
}

.ac-hours-place { font-size: 0.78em; color: #8A7A6A; }

.ac-copy {
  position: absolute;
  left: 4.5%;
  bottom: 6%;
  right: 38%;
  color: #FFF7EC;
}

.ac-copy h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.3em;
  line-height: 1.05;
  margin-bottom: 0.25em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.ac-copy p {
  font-size: 0.92em;
  color: rgba(255, 247, 236, 0.92);
  margin-bottom: 1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.ac-btn {
  display: inline-block;
  background: #FFF7EC;
  color: #33261B;
  font-weight: 600;
  font-size: 0.9em;
  padding: 0.55em 1.3em;
  border-radius: 999px;
}

/* ==========================================================================
   Shared tag chip
   ========================================================================== */

.tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process { background: var(--ink); color: var(--bg); }

.process .eyebrow { color: var(--accent); }

.process h2 { color: var(--surface); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(247, 243, 238, 0.16);
  margin-top: 3.5rem;
}

.step { padding: 2.4rem 2.2rem 0 0; }

.step + .step {
  border-left: 1px solid rgba(247, 243, 238, 0.14);
  padding-left: 2.2rem;
}

.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent);
}

.step-icon {
  width: 50px; height: 50px;
  border: 1px solid rgba(247, 243, 238, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(247, 243, 238, 0.8);
}

.step-icon svg { width: 20px; height: 20px; }

.step h3 { color: var(--surface); margin-bottom: 0.6rem; font-size: 1.12rem; }

.step p { font-size: 0.95rem; color: rgba(247, 243, 238, 0.68); }

.steps-note {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  border-top: 1px solid rgba(247, 243, 238, 0.14);
  margin-top: 3rem;
  padding-top: 1.9rem;
  font-size: 0.9rem;
  color: rgba(247, 243, 238, 0.6);
  max-width: 70ch;
}

.note-check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.note-check svg { width: 14px; height: 14px; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 880px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card.featured { border: 1.5px solid var(--accent); }

.price-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.price {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.6rem;
}

.price .from, .price .per {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.checks {
  list-style: none;
  margin-bottom: 1.4rem;
  flex: 1;
}

.checks li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.9rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C08457' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

/* --- Pricing FAQ (collapsible) --- */

.faq { max-width: 760px; margin-top: 2.6rem; }

.faq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.faq-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.faq.open .faq-toggle svg { transform: rotate(180deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-panel-inner { overflow: hidden; }

.faq.open .faq-panel { grid-template-rows: 1fr; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item:first-child {
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.2rem 1.05rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 65ch;
  padding: 0 2rem 1.1rem 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--surface); }

.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--bg), var(--accent-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 1.1rem;
  max-width: 54ch;
}

.about-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.about-facts li {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
}

.hidden-field { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(107, 114, 128, 0.6); }

.contact-direct {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.contact-direct h3 {
  color: var(--surface);
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
}

.direct-line {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid rgba(247, 243, 238, 0.14);
}

a.direct-line:hover .direct-value { color: var(--accent); }

.direct-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 243, 238, 0.55);
  margin-bottom: 0.25rem;
}

.direct-value {
  font-weight: 600;
  color: var(--surface);
  transition: color 0.2s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

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

.footer p { font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

html.js [data-reveal] { opacity: 0; }

html.js [data-reveal].is-visible {
  animation: revealIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

html.js [data-reveal-delay="1"].is-visible { animation-delay: 0.12s; }
html.js [data-reveal-delay="2"].is-visible { animation-delay: 0.24s; }
html.js [data-reveal-delay="3"].is-visible { animation-delay: 0.36s; }
html.js [data-reveal-delay="4"].is-visible { animation-delay: 0.48s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual { max-width: 560px; }

  .hero-frame { width: 100%; margin-left: 0; }

  .hero-note { display: none; }

  .card-grid.three { grid-template-columns: 1fr; max-width: 480px; }

  .cs-grid { grid-template-columns: 1fr; }

  .compare-shell { --slant: 24px; }

  .compare-left { padding: 2rem 1.6rem; }

  .compare-right { padding: 1.8rem 1.6rem 1.6rem; }

  .compare-feats { grid-template-columns: 1fr; gap: 0.9rem; }

  .steps { grid-template-columns: 1fr; }

  .step { padding-right: 0; }

  .step + .step {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(247, 243, 238, 0.14);
    margin-top: 2.2rem;
  }

  .price-grid { grid-template-columns: 1fr; max-width: 480px; }

  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .portrait-frame { max-width: 300px; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }

  .hero { padding: calc(var(--nav-h) + 32px) 0 72px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links a:not(.btn) { font-size: 1.3rem; color: var(--ink); }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  /* backdrop-filter would make the fixed overlay position against the nav bar */
  body.nav-open .nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .compare-shell { --slant: 18px; }

  .site-stage { aspect-ratio: 4 / 3; }

  .ob-nav span:nth-child(n+5) { display: none; }

  .ab-logo { width: 30%; }

  .ab-main { gap: 4%; }

  .ab-note { display: none; }

  .ac-copy { right: 8%; }

  .ac-hours { top: 18%; }

  .demo-tab { padding: 0.5rem 1rem; font-size: 0.84rem; }

  .cs-grip { width: 40px; height: 40px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .contact-form, .price-card { padding: 1.6rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .float { animation: none; transform: perspective(1300px) rotateY(-10deg) rotateX(4deg) rotate(1.2deg); }

  html.js .build {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    animation: none;
  }

  html.js [data-reveal].is-visible { animation: none; }

  html.js .note-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }

  html.js .note-text { opacity: 1; animation: none; }

  .ab-carousel img { transition: none; }

  .demo-indicator, .demo-desc-item, .faq-panel, .faq-toggle svg, .cs-theme, .demo-dot { transition: none; }

  .btn, .info-card, .price-card { transition: none; }
}
