/* =========================================================
   ClaudeBuiltThis — shared product-page styles
   Design system lifted from the landing page (index.html).
   One stylesheet, linked by every products/*.html page.
========================================================= */

/* ---------- TOKENS ---------- */
:root {
  --primary:           #cc785c;
  --primary-active:    #a9583e;
  --canvas:            #faf9f5;
  --surface-soft:      #f5f0e8;
  --surface-card:      #efe9de;
  --surface-dark:      #181715;
  --surface-dark-el:   #252320;
  --surface-dark-soft: #1f1e1b;
  --ink:               #141413;
  --body:              #3d3d3a;
  --muted:             #6c6a64;
  --muted-soft:        #8e8b82;
  --on-dark:           #faf9f5;
  --on-dark-soft:      #a09d96;
  --hairline:          #e6dfd8;
  --hairline-soft:     #ebe6df;
  --hairline-dark:     #2a2825;
  --accent-teal:       #5db8a6;
  --accent-amber:      #e8a55a;

  --f-display: "Fraunces","Tiempos Headline","Cormorant Garamond",Georgia,serif;
  --f-body:    "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --f-mono:    "JetBrains Mono",ui-monospace,Menlo,monospace;

  --ease-out: cubic-bezier(.22,.61,.36,1);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 400; margin: 0; color: var(--ink); text-wrap: pretty; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -1.2px; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.5px; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 22px;
  border-radius: 8px; border: 0;
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background 160ms var(--ease-out), color 160ms, border-color 160ms, transform 160ms;
}
.btn:hover { text-decoration: none; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-active); }
.btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-cream { background: var(--canvas); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-dark { background: var(--surface-dark); color: var(--on-dark); }
.btn-dark:hover { background: #000; }
.btn .ar { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn:hover .ar { transform: translateX(3px); }

/* ---------- NAV (visible by default — no intro JS on sub-pages) ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(24,23,21,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-dark);
}
.topnav-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 21px; font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--on-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mascot {
  width: 68px; height: 44px;
  object-fit: contain; object-position: left center;
  margin: -8px 0; flex-shrink: 0;
}
.brand-claude { color: var(--primary); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--on-dark-soft);
  transition: color 160ms;
}
.nav-links a:hover { color: var(--on-dark); text-decoration: none; }

/* ---------- PRODUCT HERO (dark) ---------- */
.product-hero {
  position: relative;
  background: var(--surface-dark);
  color: var(--on-dark);
  padding: 132px 0 88px;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute; top: -160px; right: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,120,92,0.18), transparent 65%);
  pointer-events: none;
}
.product-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.product-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 28px;
  transition: color 160ms, gap 160ms;
}
.product-back:hover { color: var(--on-dark); text-decoration: none; gap: 12px; }
.product-back svg { width: 14px; height: 14px; }

.product-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 22px;
}
.product-eyebrow .num { color: var(--primary); }
.product-eyebrow .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}

.product-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.0; letter-spacing: -2px;
  color: var(--on-dark);
  margin: 0 0 20px;
}
.product-title em { font-style: italic; color: var(--primary); font-weight: 300; }

.product-tagline {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3; color: var(--on-dark);
  margin-bottom: 22px; max-width: 26ch;
}
.product-summary {
  font-size: 17px; line-height: 1.65;
  color: var(--on-dark-soft);
  max-width: 50ch; margin-bottom: 30px;
}
.product-summary strong { color: var(--on-dark); font-weight: 600; }

.product-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.4px; color: var(--on-dark-soft);
  margin-bottom: 32px;
}
.product-meta-row .sep { color: var(--hairline-dark); }

.product-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- HERO SHOT FRAMES ---------- */
.product-shot {
  display: flex; align-items: center; justify-content: center;
}
/* Desktop apps — screenshots already include browser chrome */
.shot-mac {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.04) inset,
    0 40px 80px rgba(0,0,0,0.45),
    0 12px 28px rgba(0,0,0,0.35);
}
.shot-mac img { width: 100%; height: auto; display: block; }

/* iOS apps — raw screenshots, full phone chassis */
.shot-iphone {
  width: 280px; max-width: 78%;
  background: #2c2c2e;
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.18),
    inset 1.5px 0 0 rgba(255,255,255,0.10),
    0 40px 80px rgba(0,0,0,0.45),
    0 12px 28px rgba(0,0,0,0.35);
}
.shot-iphone-screen {
  border-radius: 33px;            /* 44 − 11 = concentric */
  overflow: hidden;
  background: #000;
}
.shot-iphone-screen img { width: 100%; height: auto; display: block; }

/* ---------- VIDEO / SEE IT IN ACTION (canvas) ---------- */
.video-section { background: var(--canvas); }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-dark);
  box-shadow: 0 30px 70px rgba(0,0,0,0.22), 0 10px 24px rgba(0,0,0,0.14);
}
/* The YouTube iframe drops straight in here and fills the frame */
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
/* Placeholder shown until the real embed is added */
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(204,120,92,0.22), transparent 60%),
    var(--surface-dark);
  color: var(--on-dark);
  text-align: center;
}
.video-play {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(204,120,92,0.45);
  transition: transform 200ms var(--ease-out);
}
.video-frame:hover .video-play { transform: scale(1.06); }
.video-play svg { width: 26px; height: 26px; margin-left: 4px; color: #fff; }
.video-placeholder-label {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* ---------- FEATURES (canvas) ---------- */
.features { background: var(--canvas); }
.section-eyebrow {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--primary);
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p {
  font-size: 18px; line-height: 1.6; color: var(--body);
  margin-top: 16px; max-width: 56ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
}
.feature-card .fnum {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.5px; color: var(--primary);
}
.feature-card h3 { margin: 14px 0 10px; }
.feature-card p { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- GUIDE / WHAT YOU GET (dark) ---------- */
.guide { background: var(--surface-dark); color: var(--on-dark); }
.guide h2 { color: var(--on-dark); }
.guide .section-head p { color: var(--on-dark-soft); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-step {
  background: var(--surface-dark-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  padding: 30px;
}
.guide-step .step-num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--on-dark-soft);
}
.guide-step h4 {
  font-family: var(--f-display); font-size: 21px;
  color: var(--on-dark); margin: 16px 0 10px; letter-spacing: -0.3px;
}
.guide-step p { font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); }

/* ---------- CTA CALLOUT (coral) ---------- */
.cta-section { padding: 80px 0 96px; background: var(--canvas); }
.callout {
  position: relative;
  background: var(--primary); color: #fff;
  border-radius: 24px;
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: center;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,0.9); margin-top: 14px; font-size: 17px; line-height: 1.6; }
.callout-cta { position: relative; display: flex; justify-content: flex-end; }
@media (max-width: 820px) {
  .callout { grid-template-columns: 1fr; padding: 48px 36px; }
  .callout-cta { justify-content: flex-start; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--surface-dark); color: var(--on-dark-soft); padding: 72px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer-brand .brand { color: var(--on-dark); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--on-dark); margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--on-dark-soft); }
.footer-col a:hover { color: var(--on-dark); text-decoration: none; }
.footer-base {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; font-size: 13px;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--on-dark-soft);
}
.footer-legal {
  margin-top: 20px;
  font-size: 12px; line-height: 1.5;
  color: var(--on-dark-soft); opacity: 0.7;
  max-width: 72ch;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .product-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .product-shot { order: -1; }
  .feature-grid, .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- COMING-SOON GATE (pre-launch teaser) ----------
   Wraps everything below the hero (video → CTA). The content is
   blurred and non-interactive; a sharp dark card floats on top with
   the notify-me signup. Footer stays outside the gate, sharp + usable.
   Remove the .product-gate / .product-gate-card wrappers (and unwrap
   the sections) to go fully live. */
.product-gate {
  position: relative;
  max-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.product-gate-veil {
  filter: blur(7px) saturate(0.9);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
/* fade the clipped bottom into the canvas so the cut reads as deliberate */
.product-gate::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 260px;
  background: linear-gradient(to bottom, rgba(250,249,245,0) 0%, var(--canvas) 80%);
  pointer-events: none;
  z-index: 2;
}
.product-gate-card {
  position: absolute;
  z-index: 3;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, calc(100% - 40px));
  text-align: center;
  background: var(--surface-dark);
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 44px 44px 40px;
  box-shadow: 0 34px 80px rgba(24,23,21,0.30), 0 6px 18px rgba(24,23,21,0.18);
}
.product-gate-card .gate-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.product-gate-card .gate-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(204,120,92,0.18);
}
.product-gate-card .gate-title {
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.12;
  color: var(--on-dark);
  margin-bottom: 14px;
}
.product-gate-card .gate-title .dot { color: var(--primary); }
.product-gate-card .gate-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 40ch;
  margin: 0 auto 26px;
}
@media (max-width: 520px) {
  .product-gate { max-height: 560px; }
  .product-gate-card { padding: 34px 26px 30px; top: 48px; }
}
