/* UnbrokenDay — shared base tokens
   Light theme. Disciplined color — warm off-white, dark text, single accent green + a warm-sand secondary.
   Mobile-first. 8px spacing scale. Near-black #171717, not pure black.
*/

:root {
  /* Base neutrals */
  --c-text: #171717;
  --c-muted: #5c5c5c;
  --c-soft: #8a8a8a;
  --c-bg: #fafaf7;
  --c-card: #ffffff;
  --c-border: #e3e0d8;       /* warmer, more visible border than #ececec */
  --c-border-strong: #cfcabf;

  /* Accent — deep forest green (calm, non-clinical) */
  --c-accent: #1f4535;
  --c-accent-hover: #163025;
  --c-accent-soft: #e8efe9;
  --c-accent-soft-2: #d9e4dc; /* slightly deeper soft for hierarchy */

  /* Warm sand for pod section — subtle, not cream-soda */
  --c-warm: #f6f1e6;
  --c-warm-border: #e7dfca;

  /* Platform brand colors kept for pod buttons */
  --c-spotify: #1DB954;
  --c-substack: #FF6719;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 20px;

  --maxw: 720px;

  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(23, 23, 23, 0.06);
  --shadow-focus: 0 0 0 3px rgba(31, 69, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--c-accent);
}

h1, h2, h3 {
  margin: 0 0 var(--s-2) 0;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 var(--s-2) 0; }

small, .fine { font-size: 0.875rem; color: var(--c-muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-3) var(--s-3) var(--s-5);
}

/* Hero
   ------------------------------------------------------------ */
.hero {
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: var(--s-2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-2);
  border-radius: 999px;
}

.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero h1 .highlight {
  background: linear-gradient(180deg, transparent 62%, var(--c-accent-soft-2) 62%);
  padding: 0 2px;
  border-radius: 2px;
}

.hero .sub {
  font-size: 1.075rem;
  color: var(--c-muted);
  margin-top: 0;
  margin-bottom: 10px;
  max-width: 560px;
}

.hero-spec {
  font-size: 0.95rem;
  color: #2a3a33;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-2);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  max-width: 560px;
  margin-top: 0;
  margin-bottom: var(--s-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-2);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.hero-link--primary {
  color: #fff;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
}
.hero-link--primary:hover { background: var(--c-accent-hover); color: #fff; }

.hero-link--secondary {
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1.5px solid var(--c-accent-soft-2);
  font-weight: 600;
}
.hero-link--secondary:hover {
  background: var(--c-accent-soft-2);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* Section kicker (small uppercase label above h2) */
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.section-kicker--accent { color: var(--c-accent); }

/* Pod block
   ------------------------------------------------------------ */
.podblock {
  margin-top: var(--s-2);
  padding: var(--s-3);
  background: var(--c-warm);
  border: 1px solid var(--c-warm-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.podblock h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.podblock-lead {
  color: var(--c-muted);
  margin-top: 0;
  margin-bottom: var(--s-2);
  font-size: 0.98rem;
}

.pod-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-1);
}

.pod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  min-height: 42px;
  min-width: 112px;
  flex: 0 1 auto;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: var(--shadow-sm);
}

.pod-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.pod-btn:active { transform: translateY(0); opacity: 0.92; }
.pod-btn svg { flex-shrink: 0; }

.pod-btn--spotify { background: var(--c-spotify); }
.pod-btn--apple { background: linear-gradient(135deg, #E04F8E 0%, #872EC4 100%); }
.pod-btn--substack { background: var(--c-substack); }

.pod-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-top: var(--s-2);
  margin-bottom: 0;
}

/* Latest episode card (Edge-Function-injected)
   ------------------------------------------------------------ */
.latest-ep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-2);
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--c-accent-soft-2);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--c-text);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.03);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.latest-ep:hover {
  color: var(--c-text);
  border-color: var(--c-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.07);
}
.latest-ep__pulse {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.latest-ep__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(31, 69, 53, 0.45);
  animation: latestPulse 2s infinite;
}
@keyframes latestPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 69, 53, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(31, 69, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 69, 53, 0); }
}
.latest-ep__line {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}
.latest-ep__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  line-height: 1.2;
}
.latest-ep__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.latest-ep__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-2);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.latest-ep__arrow {
  color: var(--c-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.latest-ep:hover .latest-ep__arrow {
  color: var(--c-accent);
  transform: translateX(2px);
}

/* Coaching section
   ------------------------------------------------------------ */
.coach {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-3);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-2);
  border-radius: var(--r-lg);
  position: relative;
}

.coach-inner { max-width: 620px; }

.coach h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
}

.coach-lead {
  color: #2a3a33;
  margin-bottom: var(--s-2);
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 var(--s-3);
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-accent-soft-2);
}

.offer-list li:last-child { border-bottom: none; }

.offer-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-color: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

.offer-list .offer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-list .offer-text strong {
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.3;
}

.offer-list .offer-text span {
  font-size: 0.9rem;
  color: #4a4a47;
  line-height: 1.35;
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--s-2);
  background: #fff;
  border: 1px solid var(--c-accent-soft-2);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  color: #1d3a2d;
  font-size: 0.95rem;
  margin-bottom: var(--s-3);
}

.privacy svg {
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: 2px;
}

/* Form card
   ------------------------------------------------------------ */
.form-card {
  margin-top: var(--s-2);
  padding: var(--s-3);
  background: #fff;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.form-heading {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--c-text);
  font-weight: 600;
}

.form-intro {
  font-size: 0.95rem;
  color: var(--c-muted);
  margin-top: 0;
  margin-bottom: var(--s-2);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.005em;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input[type="email"]::placeholder { color: #9a9a94; }

.form input[type="email"]:hover {
  border-color: var(--c-accent);
}

.form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-focus);
}

.form-fine {
  font-size: 0.85rem;
  color: #3a3a38;
  margin: 4px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-height: 48px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn:hover { background: var(--c-accent-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }

.btn--cta { width: 100%; }

.btn.secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
}
.btn.secondary:hover { background: #f1f1ee; color: var(--c-text); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: var(--s-2) var(--s-3);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-2);
  border-radius: var(--r-sm);
  color: #1d3a2d;
  font-size: 0.95rem;
}

.hidden { display: none !important; }

/* About
   ------------------------------------------------------------ */
.about {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
}

.about h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-2);
}

.about p {
  color: #2e2e2c;
  max-width: 620px;
}

.about p:last-child { margin-bottom: 0; }

/* FAQ
   ------------------------------------------------------------ */
.faq {
  margin-top: var(--s-5);
}

.faq details {
  border-top: 1px solid var(--c-border);
  padding: var(--s-2) 0;
}
.faq details:last-child { border-bottom: 1px solid var(--c-border); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding-right: var(--s-3);
  position: relative;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--c-muted);
  font-weight: 400;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer {
  margin-top: var(--s-1);
  color: var(--c-muted);
}

/* Footer
   ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--c-border);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  color: var(--c-muted);
  font-size: 0.9rem;
}
footer a { color: var(--c-muted); }

/* Breakpoints
   ------------------------------------------------------------ */
@media (min-width: 640px) {
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }
  .form-row input[type="email"] { flex: 1 1 auto; }
  .btn--cta { width: auto; white-space: nowrap; flex: 0 0 auto; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .container { padding: var(--s-4) var(--s-4) var(--s-6); }
  .hero { padding-top: var(--s-4); padding-bottom: var(--s-3); }
  .hero h1 { font-size: 2.5rem; }
  .hero .sub { font-size: 1.15rem; }
  h2 { font-size: 1.625rem; }
  .podblock { padding: var(--s-4); }
  .coach { padding: var(--s-5) var(--s-4); }
}

@media (min-width: 1200px) {
  .container { padding-top: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Legacy variant pages (/a/, /b/, /c/) still use these — keep for compatibility */
.pod-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.pod-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--c-text);
  background: var(--c-card);
}
.pod-links a:hover { border-color: var(--c-text); }
