/* ============================================================
   AKS UNBOUND — single-product sales page
   Cool-grey editorial · Cormorant Garamond + DM Sans
   ============================================================ */

:root {
  /* cool-grey palette (no warmth) */
  --paper:      #FFFFFF;
  --bg:         #F6F7F8;   /* soft white, cool */
  --bone:       #ECEEF0;   /* grey-leaning bone */
  --stone:      #E1E4E6;   /* cool grey panel */
  --stone-deep: #CFD4D7;
  --tint:       #F1EDE6;   /* section background tint */
  --rule:       #DCE0E2;
  --rule-deep:  #C5CACE;
  --ink:        #1D2022;   /* charcoal */
  --ink-2:      #2A2E30;
  --soft:       #51565A;
  --muted:      #888E92;

  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans:  "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --ls-eyebrow: .32em;
  --ls-btn:     .22em;

  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(80px, 11vw, 168px);
  --container:  1200px;
  --container-narrow: 960px;
  --container-text: 660px;

  --dur:  320ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p { margin: 0; }
em, i { font-style: italic; }

/* ---------- primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--soft);
  display: inline-block;
}
.eyebrow-rule {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--soft);
}
.eyebrow-rule::before, .eyebrow-rule::after {
  content: ''; width: 36px; height: 1px; background: var(--rule-deep);
}

.display {
  font-family: var(--font-serif);
  font-weight: 400; line-height: 1.05; letter-spacing: -.005em;
  color: var(--ink);
  font-size: clamp(40px, 4.6vw, 72px);
}
.display em { font-style: italic; }
.display.lg { font-size: clamp(52px, 6.4vw, 104px); }
.display.sm { font-size: clamp(28px, 2.6vw, 40px); }
.hero-unbound { letter-spacing: -.04em; }

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5; color: var(--soft); font-weight: 400;
}
.body {
  font-size: 17px; line-height: 1.8; color: var(--soft);
}
.body p + p { margin-top: 1.1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-btn); text-transform: uppercase;
  padding: 18px 34px;
  border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--soft); border-color: var(--soft); }
.btn--buy { padding: 20px 44px; font-size: 12px; }

/* ---------- price ---------- */
.price { display: inline-flex; align-items: baseline; gap: 16px; }
.price-now {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 52px); line-height: 1; color: var(--ink);
}
.price-was {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 28px); color: var(--muted);
  text-decoration: line-through; text-decoration-thickness: 1px;
}

/* ---------- placeholder ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--stone); color: var(--soft); overflow: hidden;
}
.ph-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--soft); max-width: 70%;
}

/* ---------- section helpers ---------- */
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--bone  { background: var(--tint); }
.section--stone { background: var(--tint); }
.section-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  margin-bottom: clamp(48px, 6vw, 86px);
}
.section-head .display { max-width: 20ch; }
.section-head .body { max-width: 52ch; }
.hr { width: 64px; height: 1px; background: var(--rule-deep); border: 0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,247,248,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.topbar-back {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--soft);
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur) var(--ease);
}
.topbar-back:hover { color: var(--ink); }
.topbar-logo { justify-self: center; }
.topbar-logo img { height: 40px; width: auto; display: block; }
.topbar-cta {
  justify-self: end;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-btn); text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.topbar-cta:hover { color: var(--soft); border-color: var(--soft); }
@media (max-width: 720px) {
  .topbar-back span, .topbar-cta { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto 1fr; }
}

/* ============================================================
   BEFORE / AFTER SLIDER (the core component)
   ============================================================ */
.ba {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--stone);
  touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
  --pct: 50;
}
.ba-layer { position: absolute; inset: 0; }
.ba-after  .ph { background: var(--stone-deep); }
.ba-before { clip-path: inset(0 calc(100% - var(--pct) * 1%) 0 0); }
.ba-before .ph { background: var(--bone); }

/* placeholder photo hint: faint frame */
.ba .ph::before {
  content: ''; position: absolute; inset: 16px; border: 1px solid var(--rule-deep);
  pointer-events: none; opacity: .6;
}
.ba-side {
  position: absolute; top: 16px; z-index: 4;
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  padding: 7px 12px; background: rgba(29,32,34,.78); color: #fff;
  backdrop-filter: blur(3px);
}
.ba-side-before { left: 16px; }
.ba-side-after  { right: 16px; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--pct) * 1%);
  width: 0; z-index: 5; transform: translateX(-0.5px);
  pointer-events: none;
}
.ba-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: rgba(255,255,255,.9); transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(29,32,34,.12); }
.ba-grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 4px 18px rgba(29,32,34,.22);
  pointer-events: auto; cursor: ew-resize;
}
.ba-grip svg { width: 17px; height: 17px; stroke: var(--ink); stroke-width: 1.5; fill: none; }
.ba.dragging .ba-grip { box-shadow: 0 4px 24px rgba(29,32,34,.32); }
.ba-caption {
  margin-top: 16px; text-align: center;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--soft);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 80;
  padding: 16px 0;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), padding var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
  padding: 9px 0;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.nav-brand {
  justify-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; position: relative;
}
.nav-brand-img {
  height: 54px; width: auto; display: block;
  transition: height var(--dur) var(--ease);
}
.nav.scrolled .nav-brand-img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links-left { justify-self: start; }
.nav-links-right { justify-self: end; gap: 24px; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--ink);
  position: relative; padding: 6px 0;
  transition: opacity var(--dur) var(--ease);
  opacity: .82;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.nav-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); opacity: .75;
  transition: opacity var(--dur) var(--ease);
}
.nav-icon:hover { opacity: 1; }
.nav-icon svg { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--paper); padding: clamp(32px, 4vw, 60px) 0 clamp(24px, 3vw, 48px); }
.hero-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.hero-head .display { max-width: 14ch; }
.hero-buy {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  margin-top: 6px;
}
.hero-ba { max-width: 1040px; margin: 0 auto; }
.hero-ba .ba { aspect-ratio: 16 / 10; }
.hero-trust {
  margin-top: 22px; text-align: center;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; color: var(--muted);
}

/* ============================================================
   PROOF GALLERY
   ============================================================ */
.proof-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 4vw, 64px);
}
.proof-grid .ba-item:last-child {
  grid-column: 1 / -1; max-width: calc(50% - clamp(18px, 2vw, 32px)); margin: 0 auto;
}
@media (max-width: 820px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid .ba-item:last-child { max-width: none; }
}

/* ============================================================
   WHAT'S INSIDE
   ============================================================ */
.inside-count {
  text-align: center; margin-bottom: clamp(40px, 5vw, 72px);
}
.inside-count .num {
  font-family: var(--font-serif); font-size: clamp(56px, 7vw, 104px); line-height: 1; color: var(--ink);
}
.inside-count .num em { font-style: italic; }
.inside-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.inside-col { background: var(--paper); padding: clamp(40px, 4vw, 64px); }
.inside-col h3 {
  font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; color: var(--ink);
  margin-bottom: 6px;
}
.inside-col .sub {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.idx { display: flex; flex-direction: column; }
.idx li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0; border-top: 1px solid var(--rule);
}
.idx li:first-child { border-top: 0; }
.idx .idx-no {
  font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--muted);
  min-width: 26px;
}
.idx .idx-name {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink); letter-spacing: .01em;
}
.idx .idx-name .tag {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 8px;
}
@media (max-width: 760px) {
  .inside-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 88px) clamp(48px, 6vw, 96px);
}
.why-item { display: flex; flex-direction: column; gap: 14px; }
.why-item .why-no {
  font-family: var(--font-serif); font-style: italic; font-size: 28px; color: var(--muted); line-height: 1;
}
.why-item h3 {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(22px, 2vw, 29px); color: var(--ink); line-height: 1.2;
}
.why-item p { color: var(--soft); font-size: 16px; line-height: 1.8; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COMPATIBILITY / WHAT YOU GET
   ============================================================ */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.spec {
  background: var(--paper); padding: clamp(34px, 3.4vw, 52px) clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 12px; min-height: 180px;
}
.spec .spec-label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--muted);
}
.spec .spec-val {
  font-family: var(--font-serif); font-size: clamp(22px, 2vw, 27px); font-weight: 400; color: var(--ink); line-height: 1.25;
}
.spec p { font-size: 14.5px; color: var(--soft); line-height: 1.7; }
@media (max-width: 820px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .spec-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 56px); }
.tcard {
  background: var(--paper); padding: clamp(40px, 4vw, 60px);
  display: flex; flex-direction: column; gap: 28px;
  border: 1px solid var(--rule);
}
.tcard-quote {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.5; color: var(--ink); font-weight: 400;
}
.tcard-name {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--soft);
}
@media (max-width: 760px) { .t-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--ink); color: var(--bg); text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.final .display { color: var(--paper); max-width: 16ch; }
.final .price-now { color: var(--paper); }
.final .price-was { color: rgba(255,255,255,.45); }
.final .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final .btn--solid:hover { background: var(--stone); border-color: var(--stone); }
.final-fine { font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .04em; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: var(--container-text); margin: 0 auto; border-top: 1px solid var(--rule-deep); }
.faq-item { border-bottom: 1px solid var(--rule-deep); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 0;
  font-family: var(--font-serif); font-size: clamp(20px, 1.8vw, 26px); color: var(--ink); font-weight: 400;
}
.faq-icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { opacity: 0; transform: translateX(-50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--soft); font-size: 16px; line-height: 1.8; padding-bottom: 30px; max-width: 60ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 8vw, 120px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-brand-img { width: 240px; max-width: 100%; height: auto; display: block; }
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  margin-top: 24px;
  max-width: 28ch;
}
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color var(--dur) var(--ease);
}
.footer-col li a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.footer-studio-link {
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-studio-link:hover { color: var(--paper); border-color: var(--paper); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 16px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- fade-in (fail-visible: hidden only when JS active) ---------- */
.fade { opacity: 1; transform: none; }
html.js .fade { opacity: 0; transform: translateY(14px); }
html.js .fade.anim { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .fade { opacity: 1; transform: none; transition: none; } }
