/* 参考：refs/cartesia、refs/upload-zone-x，加上现站 santacam.org 的品牌 token
   (santa-theme.css: evergreen #073a2e, panel #0d4939, accent #b72b39, Bree Serif + Nunito).
   Shared by drafts A/B/C. Mobile-first: base = 390px phone, min-width queries scale up.
   One accent colour (red). Radii: 12 (buttons, cards) / 20 (media panels) / 999 (chips).
   Spacing in multiples of 4. Dark theme: no drop shadows, layers via 3 greens + 1px lines. */

@font-face {
  font-family: 'Santa Bree';
  src: url('fonts/bree-serif.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Santa Nunito';
  src: url('fonts/nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #073a2e;
  --panel: #0d4939;
  --panel-2: #12503f;
  --deep: #052a21;
  --line: #4e7865;
  --line-soft: rgba(240, 246, 242, 0.12);
  --text: #f0f6f2;
  --text-2: #bfd4c8;
  --accent: #b72b39;
  --accent-press: #972431;
  --scrim: rgba(3, 20, 15, 0.72);
  --display: 'Santa Bree', Georgia, serif;
  --body: 'Santa Nunito', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-btn: 12px;
  --r-panel: 20px;
  --pad: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

/* Top bar */
.top {
  height: 56px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.top .logo {
  display: block;
  height: 28px;
  color: var(--text);
}
.top .logo svg {
  height: 28px;
  width: auto;
  display: block;
}
.top nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-2);
  padding: 12px 0 12px 16px;
}

/* Hero copy */
.hero {
  padding: 16px var(--pad) 24px;
}
.hero h1 {
  margin: 0;
  font: 400 34px/1.1 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .soft {
  color: var(--text-2);
}
.hero .sub {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
}

/* Buttons */
.ctas {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font: 700 17px/1.2 var(--body);
  text-decoration: none;
  text-align: center;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-press);
}
.btn.secondary {
  min-height: 48px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}
.btn.secondary:hover {
  background: var(--panel);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.price {
  margin: 8px 0 0;
  text-align: center;
  font-size: 16px;
  color: var(--text-2);
}
.price b {
  color: var(--text);
  font-weight: 700;
}

/* Trust row: one verified line */
.trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 4px;
  font-size: 16px;
  color: var(--text-2);
}
.trust li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text);
}

/* Camera overlay pieces shared by A and C */
.cam {
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.cam video,
.cam > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam::after {
  /* light vignette so overlay text stays readable on bright frames */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 26%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 34%);
  pointer-events: none;
  z-index: 1;
}
.osd {
  position: absolute;
  z-index: 2;
  font: 600 16px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.osd.rec {
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.osd.rec i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  animation: blink 1.2s steps(1) infinite;
}
.osd.time {
  bottom: 12px;
  left: 12px;
}
.osd.ai {
  bottom: 12px;
  right: 12px;
  color: rgba(255, 255, 255, 0.85);
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
.caption {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 44px;
  margin: 0 auto;
  max-width: 340px;
  padding: 8px 12px;
  border-radius: var(--r-btn);
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font: 600 18px/1.35 var(--body);
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s var(--ease, ease),
    transform 0.2s ease;
}
.caption.on {
  opacity: 1;
  transform: none;
}
.caption .who {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}
.caption .name {
  color: #fff;
  font-weight: 800;
  background: var(--accent);
  border-radius: 8px;
  padding: 0 4px;
}
.sound {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: var(--scrim);
  color: #fff;
  font: 700 16px/1 var(--body);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sound::before {
  /* larger hit area without a bigger chip */
  content: '';
  position: absolute;
  inset: -8px;
}

/* Peek of the next section */
.next {
  padding: 24px var(--pad) 96px;
  border-top: 1px solid var(--line-soft);
  background: var(--deep);
}
.next h2 {
  margin: 0 0 12px;
  font: 400 26px/1.15 var(--display);
  letter-spacing: -0.01em;
}
.next .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.next figure {
  margin: 0;
}
.next img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-soft);
}
.next figcaption {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}

/* Sticky bottom button (shown once the hero button scrolls away) */
.sticky {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 42, 33, 0.94);
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky.show {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Desktop: copy left, media right; text column stays <= 560px */
@media (min-width: 900px) {
  :root {
    --pad: 32px;
  }
  .top {
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px var(--pad) 64px;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    column-gap: 64px;
    align-items: center;
  }
  .hero .copy {
    grid-column: 1;
    grid-row: 1;
  }
  .hero .media {
    grid-column: 2;
    grid-row: 1;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero .sub {
    font-size: 19px;
  }
  .ctas {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .price,
  .trust {
    max-width: 440px;
  }
  .price {
    text-align: left;
  }
  .next {
    padding: 48px max(var(--pad), calc((100% - 1136px) / 2)) 96px;
  }
  .next .row {
    max-width: 720px;
  }
  .sticky {
    display: none;
  }
}
