/* ==========================================================================
   Workoutt landing page styles
   ========================================================================== */

:root {
  --bg: #0f172a;
  --bg-raised: #1e293b;
  --bg-sunken: #020617;
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;

  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.4);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Bricolage Grotesque', 'Google Sans', system-ui, sans-serif;
  --font-body: 'Google Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;
}

/* -------------------------------------------------------------------- */
/* Reset / base                                                          */
/* -------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
}

section {
  padding-block: clamp(64px, 10vh, 120px);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-400);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 150ms var(--ease), box-shadow 250ms var(--ease), background 250ms var(--ease), border-color 250ms var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--bg-sunken);
  box-shadow: 0 4px 14px -2px var(--gold-glow);
}

.btn-primary:hover {
  background: var(--gold-400);
  box-shadow: 0 6px 20px -2px var(--gold-glow);
}

.btn-primary .arrow {
  transition: transform 200ms var(--ease);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.btn-outline-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
}

.btn-outline-sm:hover {
  background: var(--gold-500);
  color: var(--bg-sunken);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------- */
/* Reveal / scroll animation utility                                    */
/* -------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
  }
}

/* -------------------------------------------------------------------- */
/* Nav                                                                   */
/* -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 250ms var(--ease);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.3);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 200ms var(--ease);
}

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

.nav-anchors {
  display: flex;
  gap: 28px;
}

@media (max-width: 640px) {
  .nav-anchors {
    display: none;
  }
}

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--bg-sunken);
  overflow: hidden;
  padding-block: 56px;
}

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

.hero-glow {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.14), transparent);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 32px;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-in-up 500ms var(--ease) forwards;
}

.hero-copy .eyebrow { animation-delay: 60ms; }
.hero-copy h1 { animation-delay: 150ms; }
.hero-copy .hero-sub { animation-delay: 240ms; }
.hero-copy .hero-ctas { animation-delay: 330ms; }
.hero-copy .hero-meta { animation-delay: 420ms; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 14px;
  border-radius: 9999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 22px;
}

.hero h1 .accent {
  position: relative;
  white-space: nowrap;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.09em;
  background: var(--gold-500);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-draw 600ms var(--ease) forwards;
  animation-delay: 700ms;
}

@keyframes underline-draw {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .accent::after {
    animation: none;
    transform: scaleX(1);
  }
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 46ch;
  margin: 0 0 32px;
}

@media (max-width: 900px) {
  .hero-sub {
    margin-inline: auto;
  }
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .hero-ctas {
    justify-content: center;
  }
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-phone-col {
  display: flex;
  justify-content: center;
}

.hero-phone-wrap {
  transform: rotate(-4deg);
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes phone-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-wrap {
    animation: none;
    transform: rotate(-4deg);
  }
}

/* -------------------------------------------------------------------- */
/* Phone frame component                                                */
/* -------------------------------------------------------------------- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  background: var(--bg-sunken);
  border: 3px solid #334155;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.5);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--bg-sunken);
  border-radius: 9999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
}

/* -------------------------------------------------------------------- */
/* Hero phone demo (fake live workout)                                  */
/* -------------------------------------------------------------------- */

.demo-workout {
  padding: 34px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.8rem;
}

.demo-workout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-workout-header .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.demo-workout-header .timer {
  font-family: var(--font-mono);
  color: var(--gold-400);
  font-size: 0.9rem;
}

.demo-exercise-name {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-set-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  transition: background 300ms var(--ease);
}

.demo-set-row.active-tint {
  background: rgba(245, 158, 11, 0.08);
}

.demo-set-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.demo-set-check.done {
  background: var(--gold-500);
  border-color: var(--gold-500);
  animation: check-pop 250ms var(--ease);
}

.demo-set-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.demo-set-check.done svg {
  opacity: 1;
}

.demo-set-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

@keyframes check-pop {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.demo-rest-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(120%);
  transition: transform 350ms var(--ease);
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5);
}

.demo-rest-bar.shown {
  transform: translateY(0);
}

.demo-rest-bar .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.demo-rest-ring {
  width: 28px;
  height: 28px;
}

.demo-rest-ring circle.bg {
  stroke: var(--border-strong);
}

.demo-rest-ring circle.fg {
  stroke: var(--gold-400);
  transition: stroke-dashoffset 200ms linear;
}

/* -------------------------------------------------------------------- */
/* Marquee                                                               */
/* -------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding-block: 18px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-list {
  display: flex;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 28px;
}

.marquee-item .sep {
  color: var(--gold-500);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

/* -------------------------------------------------------------------- */
/* Feature grid                                                         */
/* -------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
  width: 28px;
  height: 28px;
  stroke: var(--gold-400);
  fill: none;
  stroke-width: 1.8;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}

.feature-demo {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Effort slider demo */

.effort-demo-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 120ms var(--ease);
}

.effort-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, hsl(0, 72%, 45%), hsl(60, 72%, 45%), hsl(120, 72%, 45%));
  outline: none;
}

.effort-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--effort-color, var(--gold-400));
  border: 3px solid var(--bg-raised);
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
  transition: background 120ms var(--ease);
}

.effort-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--effort-color, var(--gold-400));
  border: 3px solid var(--bg-raised);
  cursor: pointer;
}

/* Rest timer demo */

.timer-demo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timer-ring-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.timer-ring-wrap.flash svg circle.fg {
  stroke: var(--gold-300);
}

.timer-ring-wrap.shake {
  animation: timer-shake 300ms ease-in-out;
}

@keyframes timer-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
}

.timer-ring {
  transform: rotate(-90deg);
}

.timer-ring circle.bg {
  stroke: var(--border-strong);
  fill: none;
}

.timer-ring circle.fg {
  stroke: var(--gold-400);
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 950ms linear, stroke 200ms var(--ease);
}

.timer-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.timer-controls {
  display: flex;
  gap: 8px;
}

.timer-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
}

.timer-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.timer-btn:active {
  transform: scale(0.93);
}

.timer-btn.plus {
  width: auto;
  padding-inline: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Set-type pill demo */

.set-demo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.set-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

.set-pill.pop {
  animation: check-pop 250ms var(--ease);
}

.set-pill[data-type="warmup"] {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold-300);
}

.set-pill[data-type="dropset"] {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

.set-pill[data-type="failure"] {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.set-demo-info .set-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.set-demo-info .set-type-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.set-demo-caption {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* -------------------------------------------------------------------- */
/* Offline section                                                      */
/* -------------------------------------------------------------------- */

.offline {
  background: var(--bg-sunken);
  border-block: 1px solid var(--border);
}

.offline-inner {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .offline-inner {
    grid-template-columns: 1fr;
  }
}

.offline-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}

.offline-copy p {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 1rem;
}

.offline-ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offline-ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.offline-ticks svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-400);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Airplane-mode simulator */

.sim-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: opacity 300ms var(--ease);
}

.sim-card.offline-state {
  opacity: 0.85;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
}

.sim-wifi-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.offline-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.sim-card.offline-state .offline-badge {
  opacity: 1;
  transform: translateY(0);
}

.sim-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 200ms var(--ease);
}

.sim-toggle.on {
  background: var(--gold-500);
}

.sim-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform 200ms var(--ease);
}

.sim-toggle.on::after {
  transform: translateX(20px);
}

.sim-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

.sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  animation: fade-in-up 300ms var(--ease);
}

.sim-row.leaving {
  animation: fade-out-row 250ms var(--ease) forwards;
}

@keyframes fade-out-row {
  to { opacity: 0; transform: translateY(-6px); }
}

.sim-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sim-chip.pending {
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.14);
}

.sim-chip.synced {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

.sim-chip.pop {
  animation: check-pop 250ms var(--ease);
}

.sim-actions {
  margin-top: 16px;
}

.sim-log-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.sim-log-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

/* -------------------------------------------------------------------- */
/* Stats                                                                */
/* -------------------------------------------------------------------- */

.stats-inner {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

.stats-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}

.stats-copy p {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 1rem;
}

.stats-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.stats-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.stats-tab {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

.stats-tab:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.stats-tab.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--bg-sunken);
}

.stats-chart-wrap {
  position: relative;
  margin-bottom: 4px;
}

.stats-line-chart {
  width: 100%;
  height: 150px;
  display: block;
  overflow: visible;
}

.stats-line-dot {
  fill: var(--gold-400);
  stroke: var(--bg-raised);
  stroke-width: 2;
  cursor: pointer;
  transition: r 300ms var(--ease), opacity 300ms var(--ease);
}

.stats-pulse-ring {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 2;
  opacity: 0.6;
  pointer-events: none;
  animation: stats-pulse 1.8s ease-out infinite;
}

@keyframes stats-pulse {
  from { r: 4; opacity: 0.6; }
  to { r: 11; opacity: 0; }
}

.stats-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, calc(-100% - 10px));
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms var(--ease);
  z-index: 2;
}

.stats-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg-sunken);
}

.stats-tooltip.visible {
  opacity: 1;
}

.stats-line-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-inline: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stats-highlights {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stats-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-highlight-figure {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-400);
  line-height: 1;
}

.stats-highlight-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .stats-line-path,
  .stats-line-area,
  .stats-line-dot {
    transition: none !important;
  }
  .stats-pulse-ring {
    display: none;
  }
}

/* -------------------------------------------------------------------- */
/* Gallery                                                               */
/* -------------------------------------------------------------------- */

.gallery {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .gallery {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding-bottom: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .gallery-item {
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-item .phone {
  transition: transform 300ms var(--ease);
}

.gallery-item:nth-child(1) .phone { transform: rotate(-3deg); }
.gallery-item:nth-child(2) .phone { transform: rotate(0deg); }
.gallery-item:nth-child(3) .phone { transform: rotate(3deg); }

.gallery-item:hover .phone {
  transform: rotate(0deg);
}

.gallery-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-raised);
  padding: 20px;
  text-align: center;
}

.shot-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-400);
  fill: none;
  stroke-width: 1.6;
}

.shot-placeholder span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

/* -------------------------------------------------------------------- */
/* Checklist                                                            */
/* -------------------------------------------------------------------- */

.checklist {
  columns: 3;
  column-gap: 32px;
  max-width: 900px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .checklist {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .checklist {
    columns: 1;
  }
}

.checklist-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  break-inside: avoid;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.checklist-item .plus {
  color: var(--gold-400);
  font-weight: 700;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------- */
/* Final CTA                                                            */
/* -------------------------------------------------------------------- */

.final-cta {
  position: relative;
  text-align: center;
  padding-block: 120px;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.16), transparent);
  pointer-events: none;
  z-index: 0;
}

.final-cta-particle {
  position: absolute;
  color: var(--gold-400);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 0;
  animation: particle-float 5s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta-particle {
    animation: none;
  }
}

.final-cta-inner {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
