*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sf);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

@font-face {
  font-family: 'Orbitron';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Orbitron-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Orbitron';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Orbitron-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Orbitron';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Orbitron-Black.ttf') format('truetype');
}
@font-face {
  font-family: 'Share Tech Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/ShareTechMono-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DSEG7Classic';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/DSEG7Classic-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DSEG7Classic';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/DSEG7Classic-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'ShantellSans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/ShantellSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'ShantellSans';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/ShantellSans-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'ShantellSans';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/ShantellSans-Bold.ttf') format('truetype');
}

:root {
  /* New design system tokens (Watch Space hi-fi) */
  --bg: #0a0a0c;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.72);
  --text-3: rgba(245, 245, 247, 0.5);
  --text-4: rgba(245, 245, 247, 0.32);
  --accent: #f5f5f7;

  /* Activity / status accents (used inside watch faces and small badges) */
  --activity-red: #ff375f;
  --activity-green: #b8ff3c;
  --activity-blue: #1ec4ff;
  --warn-orange: #ff9f0a;

  /* Fonts */
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --sf-mono: ui-monospace, "SF Mono", Menlo, "Roboto Mono", monospace;
  --font-orbitron: 'Orbitron', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-share-tech-mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-watch: 24px;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;

  /* Card sizing for face-card grid (aspect 396:484) */
  --card-width: 160px;
  --card-image-h: 195px;
  --detail-width: 260px;
  --detail-image-h: 318px;

  /* Legacy aliases — map old token names onto new palette so any
     unmigrated component still inherits the new theme. */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-2: var(--surface-2);
  --color-text-1: var(--text);
  --color-text-2: var(--text-2);
  --color-text-3: var(--text-3);
  --color-card-border: var(--line-2);
  --color-tag-bg: rgba(255, 255, 255, 0.06);
  --color-tag-active-bg: rgba(245, 245, 247, 0.18);
  --color-primary: var(--text);
  --color-primary-dark: rgba(245, 245, 247, 0.85);
  --color-premium: #ffd60a;
  --color-success: var(--activity-green);
  --color-destructive: var(--activity-red);

  --gradient-install: linear-gradient(135deg, var(--activity-green), var(--activity-blue));
  --gradient-premium: linear-gradient(135deg, #ffd60a, #ff9500);

  --font: var(--sf);
}

/* ─────────────────────────────────────────────
   Layout — containers, grids, section padding, responsive
   Breakpoints: tablet ≤900px, mobile ≤640px
   ───────────────────────────────────────────── */

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
}

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

/* Section padding helper */
.h-section { padding: 60px 0; }
.h-section-pad { padding: 60px 48px; }
.h-section-tight { padding: 40px 0; }

@media (max-width: 900px) {
  .h-section { padding: 48px 0; }
  .h-section-pad { padding: 48px 24px; }
  .h-section-tight { padding: 32px 0; }
}

@media (max-width: 640px) {
  .h-section { padding: 36px 0; }
  .h-section-pad { padding: 36px 18px; }
  .h-section-tight { padding: 24px 0; }
}

/* Header/footer padding */
.h-header { padding: 18px 48px; }
.h-footer { padding: 60px 48px 40px; }

@media (max-width: 900px) {
  .h-header { padding: 14px 24px; }
  .h-footer { padding: 48px 24px 32px; }
}

@media (max-width: 640px) {
  .h-header { padding: 12px 16px; }
  .h-footer { padding: 36px 18px 28px; }
}

/* ─── Grid system ─── */
.h-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.h-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-grid-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.h-grid-pack-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-grid-feature { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.h-grid-footer { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.h-grid-meta-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.h-grid-comp-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.h-grid-belief { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

@media (max-width: 900px) {
  .h-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .h-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .h-grid-split { grid-template-columns: 1fr; gap: 32px; }
  .h-grid-pack-hero { grid-template-columns: 1fr; gap: 40px; }
  .h-grid-feature { grid-template-columns: 1fr 1fr; gap: 14px; }
  .h-grid-footer { grid-template-columns: 1fr 1fr; gap: 28px; }
  .h-grid-comp-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .h-grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .h-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .h-grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .h-grid-feature { grid-template-columns: 1fr; gap: 12px; }
  .h-grid-footer { grid-template-columns: 1fr; gap: 24px; }
  .h-grid-meta-3 { grid-template-columns: 1fr; }
  .h-grid-comp-4 { grid-template-columns: repeat(2, 1fr); }
  .h-grid-belief { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── Face card grid (preview cards) ─── */
.face-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .face-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 1024px) {
  .face-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (min-width: 1440px) {
  .face-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─── Mobile show/hide utilities ─── */
.h-show-mobile { display: none; }
.h-hide-mobile { display: initial; }

@media (max-width: 640px) {
  .h-show-mobile { display: initial !important; }
  .h-hide-mobile { display: none !important; }
}

/* Horizontal scroll helper (used by chips row, scroll-row) */
.h-noscroll::-webkit-scrollbar { display: none; }
.h-noscroll { scrollbar-width: none; }

.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-row > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ─── Tools page layout (Phase 7 will refine; for now functional grids) ─── */
.epoch-page,
.timezone-page { padding-bottom: 48px; }

.epoch-hero {
  align-items: flex-start;
  text-align: left;
  padding-bottom: 24px;
}

.epoch-hero__subtitle { max-width: 780px; }

.epoch-live-grid,
.epoch-grid {
  display: grid;
  gap: 16px;
}

.epoch-live-grid { grid-template-columns: 1fr; width: 100%; }
.epoch-grid { grid-template-columns: 1fr; margin-bottom: 24px; }
.epoch-grid--info { margin-bottom: 0; }
.epoch-grid--stacked { grid-template-columns: 1fr; margin-top: 24px; }

.epoch-date-grid,
.timezone-form-grid,
.timezone-results-grid,
.cron-builder-grid,
.seo-tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.seo-tools__grid { margin-top: 20px; }

@media (min-width: 700px) {
  .epoch-date-grid,
  .timezone-form-grid,
  .cron-builder-grid,
  .seo-tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1200px) {
  .epoch-date-grid,
  .cron-builder-grid,
  .seo-tools__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .timezone-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─────────────────────────────────────────────
   Components — Watch Space hi-fi design system
   ───────────────────────────────────────────── */

/* ─── Typography ─── */
.h-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.h-display {
  font-size: 88px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--text);
}

.h-h1 { font-size: 44px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; color: var(--text); }
.h-h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em;  line-height: 1.1;  color: var(--text); }
.h-h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em;  color: var(--text); }
.h-body { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.h-small { font-size: 13px; color: var(--text-3); }
.h-mono { font-family: var(--sf-mono); font-size: 12px; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .h-display { font-size: 56px; line-height: 1.0; letter-spacing: -0.03em; }
  .h-h1 { font-size: 32px; }
  .h-h2 { font-size: 24px; }
  .h-h3 { font-size: 18px; }
  .h-body { font-size: 16px; }
}

@media (max-width: 640px) {
  .h-display { font-size: 40px; line-height: 1.02; letter-spacing: -0.025em; }
  .h-h1 { font-size: 26px; letter-spacing: -0.02em; }
  .h-h2 { font-size: 20px; }
  .h-h3 { font-size: 17px; }
  .h-body { font-size: 15px; }
  .h-small { font-size: 12px; }
  .h-eyebrow { font-size: 11px; }
}

/* ─── Buttons ─── */
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sf);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.h-btn-primary {
  background: var(--text);
  color: var(--bg);
}

.h-btn-primary:hover {
  background: rgba(245, 245, 247, 0.92);
  transform: translateY(-1px);
}

.h-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.h-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}

.h-btn-block { display: flex; width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .h-btn { padding: 11px 18px; font-size: 14px; }
}

/* ─── Chips / pills ─── */
.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.h-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-2);
  color: var(--text);
}

.h-chip-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.h-chip-active:hover {
  background: var(--text);
  color: var(--bg);
}

.h-chip-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-4);
  font-size: 12px;
}

.h-chip-active .h-chip-count { color: rgba(10, 10, 12, 0.55); }

@media (max-width: 640px) {
  .h-chip { padding: 6px 12px; font-size: 12px; }
}

/* ─── Cards ─── */
.h-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.h-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  background: var(--surface-2);
}

.h-card-feature {
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 100%);
}

.h-card-pad { padding: 24px; }

@media (max-width: 640px) {
  .h-card { border-radius: 14px; }
  .h-card-pad { padding: 18px; }
}

/* ─── Tags ─── */
.h-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

.h-tag-accent {
  background: var(--activity-green);
  color: #0a0a0c;
}

/* ─── Divider ─── */
.h-rule {
  height: 1px;
  background: var(--line);
  width: 100%;
  border: none;
}

/* ─── Search input ─── */
.h-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-3);
  cursor: text;
  transition: all 0.15s ease;
}

.h-search:hover { border-color: var(--line-2); }

.h-search:focus-within {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
}

.h-search input {
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

.h-search input::placeholder { color: var(--text-3); }

.h-search-kbd {
  margin-left: auto;
  font-family: var(--sf-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-3);
}

/* ─── Nav links ─── */
.h-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s;
}

.h-nav-link:hover { color: var(--text); }

.h-nav-link-active { color: var(--text); }

/* ─── Halo / blurred radial ─── */
.h-halo {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

/* ─── Carousel progress bars ─── */
.h-progress {
  display: flex;
  gap: 6px;
  align-items: center;
}

.h-progress-dot {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  flex: 0 0 18px;
  cursor: pointer;
}

.h-progress-dot-active {
  flex: 0 0 56px;
  background: var(--text);
  position: relative;
  overflow: hidden;
}

.h-progress-dot-active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(10, 10, 12, 0.25);
  animation: progress 4s linear infinite;
}

@keyframes progress {
  from { width: 100%; }
  to   { width: 0%; }
}

@media (max-width: 640px) {
  .h-progress-dot { flex: 0 0 14px; }
  .h-progress-dot-active { flex: 0 0 36px; }
}

/* ─── Carousel fade ─── */
.h-fade-enter { opacity: 0; transform: scale(0.985); }
.h-fade-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.h-fade-exit {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ─── Sticky bottom CTA (mobile detail page) ─── */
.h-sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .h-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid var(--line);
    z-index: 60;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .h-sticky-cta .h-btn { flex: 1; justify-content: center; }
}

/* ─── Mobile hamburger sheet ─── */
.h-mobile-sheet {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 100;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  animation: sheet-in 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.h-mobile-sheet a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.h-mobile-sheet a:last-of-type { border-bottom: none; }

.h-mobile-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ─── Icon button (hamburger / close / search icon) ─── */
.h-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.h-icon-btn:hover { background: rgba(255, 255, 255, 0.06); }

/* ─── Watch frame (bezel) ─── */
.watch-frame {
  position: relative;
  display: inline-block;
  border-radius: 22%;
  background: linear-gradient(160deg, #2a2a2e 0%, #1a1a1c 50%, #0c0c0e 100%);
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.watch-frame__screen {
  position: relative;
  border-radius: 18%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 396 / 484;
  width: 100%;
}

.watch-frame__screen canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.watch-frame__crown {
  position: absolute;
  right: -3px;
  top: 38%;
  width: 6px;
  height: 24px;
  background: linear-gradient(90deg, #1a1a1c, #3a3a3e);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* ─── Face card (preview tile in grids) ─── */
.face-card {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.face-card:hover { transform: translateY(-3px); }

.face-card__preview {
  position: relative;
  aspect-ratio: 396 / 484;
  border-radius: var(--radius-watch);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transition: border-color 0.2s ease;
}

.face-card:hover .face-card__preview { border-color: var(--line-2); }

.face-card__preview canvas {
  width: 100%;
  height: 100%;
}

.face-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.7);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.face-card__badge--premium {
  background: var(--color-premium);
  color: #0a0a0c;
}

.face-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.face-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.face-card__label {
  font-size: 12px;
  color: var(--text-3);
}

.face-card__label--free { color: var(--activity-green); }
.face-card__label--premium { color: var(--color-premium); }

/* ─── Variant picker (detail page) ─── */
.variant-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.variant-picker__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: all 0.15s ease;
}

.variant-picker__arrow:hover { background: rgba(255, 255, 255, 0.12); }

.variant-picker__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.variant-picker__dots { display: flex; gap: 8px; }

.variant-picker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-4);
  cursor: pointer;
  transition: background 0.2s;
}

.variant-picker__dot--active { background: var(--text); }

.variant-picker__name {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* ─── Watch preview wrap (used by detail) ─── */
.watch-preview {
  aspect-ratio: 396 / 484;
  border-radius: var(--radius-watch);
  overflow: hidden;
  border: 1px solid var(--line);
}

.watch-preview canvas {
  width: 100%;
  height: 100%;
}

/* ─── Legacy hero shim (tool pages) ─── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 60px 0 32px;
  gap: 16px;
}

.hero__title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 720px;
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 24px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 20px; }
  .hero__title { font-size: 26px; }
  .hero__subtitle { font-size: 15px; }
}

.hero__cta {
  margin-top: 12px;
  width: auto;
  max-width: 320px;
  display: inline-flex;
}

/* ─── Epoch value card (legacy, used by tools) ─── */
.epoch-value-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

/* ─── Tools panels (Phase 7 will refine) ─── */
.epoch-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.epoch-panel__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.epoch-panel__text,
.epoch-panel__hint {
  color: var(--text-2);
  line-height: 1.6;
}

.epoch-panel__text { margin-bottom: 16px; }
.epoch-panel__hint { margin-top: 16px; font-size: 13px; }

.epoch-input,
.epoch-date-field__input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.epoch-input:focus,
.epoch-date-field__input:focus {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}

.epoch-date-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.epoch-date-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.epoch-date-field__input {
  min-height: 64px;
  font-size: 20px;
}

.epoch-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.epoch-segmented__button {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.epoch-segmented__button--active {
  background: var(--text);
  color: var(--bg);
}

.epoch-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--activity-red);
  font-size: 13px;
}

.epoch-result,
.timezone-card {
  padding: 16px;
  margin-top: 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}

.epoch-result__label,
.epoch-value-card__label,
.epoch-reference__label,
.epoch-eyebrow,
.timezone-card__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.epoch-value-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.epoch-result__value,
.epoch-value-card__value,
.epoch-reference__value,
.timezone-card__time {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
  color: var(--text);
}

.epoch-result__meta,
.epoch-value-card__meta,
.timezone-card__meta {
  margin-top: 8px;
  color: var(--text-2);
  line-height: 1.5;
  font-size: 13px;
}

.epoch-value-card__value--small { font-size: 17px; }

.epoch-copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.epoch-copy-button {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.epoch-copy-button:hover,
.epoch-copy-button--active {
  background: var(--text);
  color: var(--bg);
}

.epoch-copy-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(12, 12, 13, 0.95);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.epoch-copy-wrap:hover .epoch-copy-tooltip,
.epoch-copy-button--active + .epoch-copy-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.epoch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.epoch-reference {
  display: grid;
  gap: 12px;
}

.epoch-reference__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 699px) {
  .epoch-reference__item { flex-direction: column; }
}

.epoch-reference__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timezone-select { appearance: none; }

.timezone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cosmic-hero { position: relative; }

.cosmic-timeline { display: grid; gap: 16px; }
.cosmic-timeline__item { display: grid; gap: 8px; }

.cosmic-timeline__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cosmic-timeline__marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd60a, #ff8c42);
  box-shadow: 0 0 18px rgba(255, 214, 10, 0.5);
  transform: translate(-50%, -50%);
}

.cosmic-timeline__title { font-size: 16px; font-weight: 600; color: var(--text); }
.cosmic-timeline__meta,
.cosmic-timeline__description { color: var(--text-2); line-height: 1.5; font-size: 14px; }

.seo-tools {
  margin: 0 0 32px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}

.seo-tools__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

.seo-tools__intro {
  max-width: 760px;
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

.seo-tools__card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.seo-tools__card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.seo-tools__card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.seo-tools__card-text {
  margin-top: 8px;
  color: var(--text-2);
  line-height: 1.6;
  font-size: 14px;
}

/* ─── CTA button (legacy, used by detail page download) ─── */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-bottom: 24px;
}

.cta-button:hover {
  background: rgba(245, 245, 247, 0.92);
  transform: translateY(-1px);
}

.cta-button--app-store {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-2);
}

.cta-button--app-store:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* ─── Feature badge (legacy, used by detail) ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-badge__icon {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-badge__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-align: center;
}

/* ─── Tags row ─── */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}
