/* PLATIN — enhance.css
   Layered ON TOP of styles.css. Adds depth, realistic device mockups, motion
   and interactive conversion components. Strictly monochrome — same tokens.
   Goal: kill the "only blocks and text" feeling without breaking the editorial DNA. */

:root {
  /* monochrome elevation — soft, cool, never colored */
  --sh-1: 0 1px 2px rgba(10,10,10,0.05), 0 2px 6px rgba(10,10,10,0.04);
  --sh-2: 0 4px 12px rgba(10,10,10,0.07), 0 12px 28px rgba(10,10,10,0.07);
  --sh-3: 0 8px 24px rgba(10,10,10,0.10), 0 28px 60px rgba(10,10,10,0.12);
  --sh-float: 0 40px 90px -30px rgba(10,10,10,0.55);
  --dur-slow: 1100ms;
}

/* ============================================================
   DEPTH — give the flat paper some air on key surfaces only
   ============================================================ */
.elev { box-shadow: var(--sh-2); }
.elev-3 { box-shadow: var(--sh-3); }

/* ============================================================
   REUSABLE PHOTO PLACEHOLDER — reads as moody monochrome imagery,
   not a flat block. Layered light + grain + vignette.
   ============================================================ */
.ph {
  position: relative; overflow: hidden; background: #16181b;
  background-image:
    radial-gradient(120% 90% at 75% 12%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(80% 70% at 18% 92%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(150deg, #23262a 0%, #131517 60%, #0c0d0f 100%);
  isolation: isolate;
}
.ph::after {
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
  mix-blend-mode: screen; opacity: 0.5; pointer-events: none;
}
.ph--soft {
  background: #d9d6d0;
  background-image:
    radial-gradient(120% 90% at 78% 10%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 45%),
    radial-gradient(90% 80% at 15% 95%, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0) 55%),
    linear-gradient(155deg, #e7e4de 0%, #c9c6bf 55%, #b7b4ac 100%);
}
.ph--soft::after { mix-blend-mode: multiply; opacity: 0.35; }
.ph-tag {
  position: absolute; left: 0.85rem; bottom: 0.8rem; z-index: 2;
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); font-weight: 500;
}

/* ============================================================
   BROWSER WINDOW MOCKUP — the sample local-business site
   ============================================================ */
.browser {
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--sh-float);
  display: flex; flex-direction: column; overflow: hidden;
  width: 100%;
}
.browser--ink { box-shadow: 0 50px 120px -30px rgba(0,0,0,0.8); }
.browser-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel-200); display: block; }
.browser-url {
  flex: 1; font-size: 0.75rem; color: var(--steel-500); letter-spacing: 0.02em;
  background: var(--white); border: 1px solid var(--line); padding: 0.35em 0.8em;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-url b { color: var(--ink); font-weight: 500; }
.browser-body { position: relative; }

/* --- the demo site rendered inside the browser (a salon) --- */
.demo { font-family: var(--font-body); color: var(--ink); background: var(--white); }
.demo-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.3rem; border-bottom: 1px solid var(--line);
}
.demo-logo { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 1rem; }
.demo-nav-links { display: flex; gap: 1.1rem; }
.demo-nav-links span { font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-500); }
.demo-book { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 0.55em 1em; }
.demo-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.demo-hero-copy { padding: clamp(1.1rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; }
.demo-eyebrow { font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel-500); }
.demo-h1 { font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.demo-h1 em { font-style: italic; }
.demo-sub { font-size: 0.8125rem; color: var(--steel-600); line-height: 1.5; max-width: 22em; }
.demo-cta { display: flex; gap: 0.6rem; margin-top: 0.4rem; flex-wrap: wrap; }
.demo-btn { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.7em 1.15em; background: var(--ink); color: var(--paper); }
.demo-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--steel-300); }
.demo-hero-img { min-height: 230px; }
.demo-strip {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: 0.7rem 1.3rem; border-top: 1px solid var(--line); background: var(--paper);
  font-size: 0.6875rem; color: var(--steel-600);
}
.demo-strip .stars { letter-spacing: 0.12em; color: var(--ink); }
.demo-strip b { font-weight: 600; color: var(--ink); }

@media (max-width: 560px) {
  .demo-hero { grid-template-columns: 1fr; }
  .demo-hero-img { min-height: 150px; order: -1; }
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone {
  width: 248px; flex-shrink: 0;
  border: 8px solid #0e0f11; border-radius: 34px; background: #0e0f11;
  box-shadow: var(--sh-float); overflow: hidden;
}
.phone-screen { background: var(--white); border-radius: 26px; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 78px; height: 18px; background: #0e0f11; border-radius: 0 0 12px 12px; z-index: 3; }

/* ============================================================
   FLOATING / TILT WRAPPER for hero devices
   ============================================================ */
.showroom { position: relative; }
.float { animation: floaty 9s ease-in-out infinite; will-change: transform; }
.float.d1 { animation-delay: -3s; }
.float.d2 { animation-delay: -6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

.tilt { transition: transform 500ms var(--ease); transform-style: preserve-3d; }

/* ============================================================
   HERO — showroom split (Direction A)
   ============================================================ */
.hero--show { padding-bottom: 0; overflow: hidden; }
.hero-show-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-show-grid .hero-copy { padding-bottom: clamp(3rem, 7vh, 5rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  border: 1px solid var(--line-dark); padding: 0.5em 0.95em;
  font-size: 0.8125rem; color: var(--steel-300); letter-spacing: 0.02em;
}
.hero-badge b { color: var(--paper); font-weight: 600; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 0 rgba(255,255,255,0.5); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .hero-badge .dot { animation: none; } }

.hero-stage {
  position: relative; align-self: stretch; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.hero-stage::before {
  content: ""; position: absolute; width: 80%; height: 80%; left: 10%; top: 8%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.10), rgba(255,255,255,0));
  filter: blur(10px); z-index: 0;
}
.hero-stage .browser { position: relative; z-index: 1; max-width: 560px; }
.hero-stage .phone { position: absolute; right: -10px; bottom: 18px; z-index: 2; width: 168px; }
@media (max-width: 900px) {
  .hero-show-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-stage { min-height: 0; padding-bottom: clamp(2.5rem, 8vh, 4rem); }
  .hero-stage .browser { max-width: 100%; }
  .hero-stage .phone { display: none; }
}

/* ============================================================
   MARQUEE — scrolling "who it's for" row
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; background: var(--white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 1.1rem; padding: 1.15rem 0;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem); color: var(--steel-700); white-space: nowrap;
}
.marquee-track span::after { content: "·"; color: var(--steel-300); margin-inline: 1.6rem; font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   COUNT-UP STAT (refined stat band)
   ============================================================ */
.metric { display: block; }
.metric .num {
  font-family: var(--font-display); font-weight: 500; line-height: 1;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
  font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.01em;
}
.metric .lbl { display: block; margin-top: 0.5rem; font-size: 0.9375rem; color: var(--steel-600); max-width: 18em; line-height: 1.45; }

/* ============================================================
   ROI CALCULATOR — "what one extra customer pays for"
   ============================================================ */
.calc {
  background: var(--ink); color: var(--paper); background-image: var(--grain);
  padding: clamp(2.25rem, 5vw, 3.5rem); position: relative; overflow: hidden;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.calc-grid .rule { background: var(--line-dark); width: 1px; align-self: stretch; }
.calc h3 { font-size: 1.0625rem; color: var(--paper); }
.calc .calc-q { font-size: 0.875rem; color: var(--steel-400); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.4rem; display: block; }
.calc label { display: block; font-size: 0.9375rem; color: var(--steel-300); margin: 1.5rem 0 0.7rem; }
.calc output { font-family: var(--font-display); font-weight: 500; color: var(--paper); font-variant-numeric: lining-nums; }
.calc input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--steel-700);
  margin: 0.6rem 0 0.2rem; cursor: pointer;
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: var(--paper);
  border: none; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; background: var(--paper); border: none; cursor: pointer; }
.calc-range-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--steel-500); margin-top: 0.4rem; }
.calc-result { text-align: left; }
.calc-result .big {
  font-family: var(--font-display); font-weight: 500; line-height: 0.95;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
  font-size: clamp(3.4rem, 9vw, 6rem);
}
.calc-result .big small { font-size: 0.26em; font-family: var(--font-body); color: var(--steel-300); letter-spacing: 0.04em; display: block; margin-top: 0.6rem; text-transform: uppercase; }
.calc-result .sub { color: var(--steel-300); font-size: 0.9375rem; margin-top: 1rem; max-width: 26em; line-height: 1.5; }
.calc-result .sub b { color: var(--paper); font-weight: 500; }
@media (max-width: 760px) {
  .calc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .calc-grid .rule { width: auto; height: 1px; }
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba {
  position: relative; border: 1px solid var(--line); overflow: hidden;
  aspect-ratio: 16/10; box-shadow: var(--sh-2); user-select: none; background: var(--white);
}
.ba-layer { position: absolute; inset: 0; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; width: 50%; border-right: 2px solid var(--paper); overflow: hidden; }
.ba-before .ba-inner { position: absolute; inset: 0; }
.ba-tag {
  position: absolute; top: 0.9rem; z-index: 3; font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; padding: 0.45em 0.85em; background: var(--ink); color: var(--paper);
}
.ba-tag.before { left: 0.9rem; }
.ba-tag.after { right: 0.9rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--paper);
  z-index: 4; transform: translateX(-1px); cursor: ew-resize; box-shadow: 0 0 0 1px rgba(10,10,10,0.15);
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--sh-2); font-size: 0.8rem; color: var(--ink);
}
/* a fake "old website" — cramped, dated */
.oldsite { position: absolute; inset: 0; background: #e9e7e2; padding: 1rem; font-family: Arial, sans-serif; color: #555; }
.oldsite .ol-logo { font-weight: 700; color: #7a1010; font-size: 1.1rem; }
.oldsite .ol-rule { height: 2px; background: #b9b5ad; margin: 0.5rem 0; }
.oldsite .ol-line { height: 7px; background: #cfccc5; margin: 6px 0; }
.oldsite .ol-line.s { width: 60%; }
.oldsite .ol-box { border: 2px ridge #c4c0b8; height: 60px; margin-top: 0.6rem; background: #ddd9d2; }

/* ============================================================
   GUARANTEE — stepped visual path with connecting line
   ============================================================ */
.path { position: relative; }
.path-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.path-step { background: var(--white); padding: clamp(1.5rem, 3vw, 2.1rem); position: relative; }
.path-step .pin {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink);
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem;
  font-variant-numeric: lining-nums;
}
.path-step h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.path-step p { font-size: 0.9375rem; color: var(--steel-600); }
.path-step.ink { background: var(--ink); color: var(--paper); background-image: var(--grain); }
.path-step.ink p { color: var(--steel-300); }
.path-step.ink .pin { border-color: var(--paper); color: var(--paper); }
@media (max-width: 820px) { .path-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .path-track { grid-template-columns: 1fr; } }

/* ============================================================
   FOUNDER / PERSONAL PROMISE (honest substitute for testimonials)
   ============================================================ */
.promise { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.promise-portrait { aspect-ratio: 4/5; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.promise-quote .h-serif { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.12; }
.promise-quote .h-serif em { font-style: italic; }
.promise-sign { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.promise-sign .sig { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; }
.promise-sign .who { font-size: 0.875rem; color: var(--steel-600); line-height: 1.4; }
.promise-sign .who b { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } .promise-portrait { max-width: 280px; } }

/* ============================================================
   EDITORIAL EXTRAS (Direction B)
   ============================================================ */
.ed-hero { padding: calc(70px + clamp(3rem, 8vh, 6rem)) 0 clamp(3rem, 8vh, 5rem); position: relative; }
.ed-hero .kicker { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.ed-hero .kicker .ln { flex: 1; height: 1px; background: var(--line-dark); }
.ed-display { font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.94; letter-spacing: -0.01em; }
.ed-display .out { -webkit-text-stroke: 1px var(--steel-500); color: transparent; }
.ed-meta-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.ed-meta-row div { font-size: 0.875rem; color: var(--steel-400); }
.ed-meta-row b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--paper); font-weight: 500; margin-bottom: 0.2rem; }

.pullquote { max-width: 18em; }
.pullquote p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; }

/* horizontal feature scroller */
.hscroll { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); overflow-x: auto; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 clamp(260px, 32vw, 360px); background: var(--white); padding: clamp(1.75rem, 3vw, 2.4rem); min-height: 22rem; display: flex; flex-direction: column; }
.hscroll::-webkit-scrollbar { height: 0; }

/* ============================================================
   SECTION DIVIDER ornament
   ============================================================ */
.div-mark { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--steel-400); }
.div-mark .ln { height: 1px; width: 60px; background: var(--line); }

/* reveal scale variant */
.js .reveal--zoom { opacity: 0; transform: scale(0.97) translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .reveal--zoom.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal--zoom { opacity: 1; transform: none; } }

/* ============================================================
   PHOTOGRAPHIC HERO — full-bleed real image with scrim
   ============================================================ */
.hero--photo {
  background-image:
    var(--grain),
    linear-gradient(106deg, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.80) 30%, rgba(8,8,8,0.42) 58%, rgba(8,8,8,0.30) 100%),
    radial-gradient(125% 110% at 0% 100%, rgba(8,8,8,0.72), rgba(8,8,8,0) 55%),
    url("/assets/img/hero.webp");
  background-size: auto, cover, cover, cover;
  background-position: top left, center, center, center 35%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  padding-top: calc(70px + clamp(5rem, 15vh, 9.5rem));
  padding-bottom: clamp(5rem, 13vh, 8.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.hero--photo .hero-strip { border-top-color: rgba(255,255,255,0.16); }
.hero--photo .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.4rem;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel-300);
}
.hero--photo .hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); animation: pulse 2.6s infinite; }
@media (prefers-reduced-motion: reduce) { .hero--photo .hero-eyebrow .dot { animation: none; } }
