/* Timestones — dark theme, black + turquoise, mobile-first */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --text-dim: #6b6b6b;
  --accent: #40e0d0;
  --accent-soft: rgba(64, 224, 208, 0.12);
  --accent-mid: rgba(64, 224, 208, 0.28);
  --accent-strong: #2ec4b6;
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 720px;
  --wide: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

/* —— Header / Hero —— */
.site-header {
  padding: 1.25rem 0 0.5rem;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header .logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}
.site-header .wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero {
  padding: 2rem 0 2.5rem;
  text-align: center;
}
.hero .logo-hero {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero .tagline {
  margin: 0 auto;
  max-width: 28ch;
  color: var(--accent);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
}
.hero .lede {
  margin: 1rem auto 0;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* —— Sections —— */
section {
  padding: 2.25rem 0;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 42ch;
}

/* —— Primary CTA card (Find your next) —— */
.cta-panel {
  background: linear-gradient(160deg, var(--bg-elevated) 0%, #0e1615 100%);
  border: 1px solid var(--accent-mid);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
@media (min-width: 560px) {
  .cta-panel { padding: 1.75rem 1.75rem 1.5rem; }
}

.incentive {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.85rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 560px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.field-hint {
  font-weight: 400;
  color: var(--text-dim);
}

input[type="email"],
input[type="date"],
input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
input::placeholder { color: var(--text-dim); }
input:hover { border-color: #3a3a3a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #04201c;
  margin-top: 0.35rem;
}
.btn-primary:hover { background: #5aebd9; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn-ghost:hover { background: var(--accent-soft); }

.microcopy {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.form-thanks {
  display: none;
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.form-thanks.is-visible { display: block; }
.form-thanks .check {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.form-body.is-hidden { display: none; }

/* —— Date tool results —— */
.tool-block {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}
.tool-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.demo-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
#milestone-results {
  margin-top: 1rem;
}
.milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.milestone-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.2rem;
}
.milestone-item .ms-label {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--accent);
}
.milestone-item .ms-when {
  font-size: 0.92rem;
  color: var(--text);
}
.milestone-item .ms-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.tool-empty, .tool-error {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0.5rem 0 0;
}
.tool-error { color: var(--danger); }
.noon-flag {
  color: #e6c07b;
}

/* —— Today's Timestones —— */
#today {
  background: radial-gradient(ellipse at top, #0f1a18 0%, var(--bg) 55%);
}
.today-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .today-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.stone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.stone-card:hover {
  border-color: var(--accent-mid);
  background: var(--bg-card-hover);
}
.stone-card .ms {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.stone-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.3;
}
.stone-card .hook {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.stone-card .meta {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}
.stone-card .meta a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stone-card .meta a:hover { color: var(--accent); }

.today-loading {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Video —— */
#watch {
  padding-bottom: 2.75rem;
}
.video-layout {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}
.player-shell {
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.player-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.watch-elsewhere {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.watch-elsewhere h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.social-chip:hover {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 0.5rem;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 650;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  justify-content: center;
}
.footer-socials a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-socials a:hover { color: var(--accent); }
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.beehiiv-embed{margin:1.25rem 0 0.5rem;min-height:120px;}
.beehiiv-embed iframe{max-width:100%;}

/* Center the video block under Today's Timestones */
#watch .video-layout { justify-content: center; }
#watch .video-layout > div:first-child { display: flex; flex-direction: column; align-items: center; }

.subscribed-note{margin:1.25rem 0 0.5rem;padding:0.9rem 1rem;border:1px solid rgba(64,224,208,.45);border-radius:12px;text-align:center;font-weight:600;}
