/* self-hosted fonts (no requests to Google) */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/InstrumentSerif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/InstrumentSerif-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/Newsreader-normal.woff2') format('woff2');
}

/* Daily Focus Ritual — "evening study room"
   night room lit by a desk lamp: warm dark, amber accent, paper cards */

:root {
  --night: #191410;
  --surface: #221b14;
  --paper: #f5edde;
  --paper-edge: #e6d9c2;
  --ink: #2a2118;
  --ink-soft: #5c4f3e;
  --cream: #ece1cd;
  --body: #d3c6b0;
  --stone: #b7a88f;
  --lamp: #e5a04f;
  --lamp-deep: #c97f2e;
  --lamp-soft: rgba(229, 160, 79, 0.14);
  --hairline: rgba(236, 225, 205, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--body);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 450; /* light-on-dark thins strokes; compensate */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* ambient lamp-light so wide screens aren't a flat void */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 50% -120px, rgba(229, 160, 79, 0.08), transparent 70%),
    radial-gradient(900px 900px at 108% 110%, rgba(229, 160, 79, 0.04), transparent 65%);
}

::selection { background: var(--lamp); color: var(--night); }

a { color: var(--lamp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }

main { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ---------- brand row ---------- */
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 40px 0 0;
  color: var(--cream);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.brand img { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(236, 225, 205, 0.18); }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 7vw, 3.7rem); letter-spacing: -0.01em; margin: 26px 0 20px; }
h1 em, h2 em { font-style: italic; color: var(--lamp); }
h2 { font-size: 1.8rem; margin: 0 0 14px; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 18px; }
.lede { font-size: 1.2rem; color: var(--cream); opacity: 0.92; }
.small { font-size: 0.95rem; color: var(--stone); }
.disclosure { font-style: italic; font-size: 0.98rem; color: var(--stone); }

/* ---------- hero photo ---------- */
.hero {
  position: relative;
  margin: 34px 0 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero img { display: block; width: 100%; height: auto; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(25, 20, 16, 0.55), transparent 45%),
    linear-gradient(to right, transparent 55%, rgba(25, 20, 16, 0.5));
  pointer-events: none;
}

/* ---------- CTA ---------- */
.cta-row { margin: 6px 0 8px; }
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #f2b569 0%, #dd9440 100%);
  color: var(--night);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 650;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 17px 36px;
  border-radius: 999px;
  box-shadow:
    0 10px 34px -10px rgba(229, 160, 79, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover {
  color: var(--night);
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px -12px rgba(229, 160, 79, 0.75),
    0 3px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow:
    0 6px 18px -8px rgba(229, 160, 79, 0.45),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.paper .btn {
  box-shadow:
    0 12px 28px -10px rgba(150, 88, 20, 0.5),
    0 2px 5px rgba(90, 60, 20, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-note { display: block; margin-top: 12px; }

/* ---------- straight talk ---------- */
.talk { margin: 56px 0 0; }
.talk-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}
.talk-item:last-child { border-bottom: 1px solid var(--hairline); }
.talk-item dt {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--lamp);
}
.talk-item dd { margin: 0; }
@media (max-width: 540px) {
  .talk-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- paper card ---------- */
.paper {
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 20px;
  border: 1px solid var(--paper-edge);
  padding: 38px 36px 26px;
  margin: 64px 0;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
}
.paper h2, .paper h3 { color: var(--ink); }
.paper .strong { color: var(--ink); font-weight: 600; }
.paper a { color: var(--lamp-deep); }
.paper a:hover { color: var(--ink); }
.paper .small { color: #5f5140; }
@media (max-width: 540px) { .paper { padding: 30px 22px 20px; } }

/* ---------- breath pacer (signature) ---------- */
.pacer {
  display: flex; align-items: center; gap: 16px;
  margin: 6px 0 22px;
}
.pacer-ring {
  position: relative;
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--lamp); /* guide ring = lungs full */
}
.pacer-ring::before {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 160, 79, 0.95) 0%, rgba(229, 160, 79, 0.45) 55%, transparent 78%);
  transform: scale(0.45);
  animation: breathe 15s ease-in-out infinite;
}
.paper .pacer-ring { border-color: #a05e17; }
.paper .pacer-ring::before { background: radial-gradient(circle, rgba(160, 94, 23, 0.9) 0%, rgba(191, 116, 32, 0.4) 55%, transparent 78%); }
.pacer-text { flex: 1; min-width: 0; }
.pacer-title {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--lamp);
  margin-bottom: 2px;
}
.paper .pacer-title { color: #a05e17; }
.pacer-labels { position: relative; height: 1.5em; overflow: hidden; font-size: 0.95rem; }
.pacer-labels span {
  position: absolute; inset: 0;
  opacity: 0;
  animation: label 15s linear infinite;
}
.pacer-labels span:nth-child(2) { animation-delay: -11s; } /* hold appears after 4s in  */
.pacer-labels span:nth-child(3) { animation-delay: -7s; }  /* out appears after 8s */
@keyframes breathe {
  0%   { transform: scale(0.45); }
  26.7%{ transform: scale(1); }     /* in: 4s */
  53.3%{ transform: scale(1); }     /* hold: 4s */
  93.3%{ transform: scale(0.45); }  /* out: 6s */
  100% { transform: scale(0.45); }  /* settle: 1s */
}
@keyframes label {
  0% { opacity: 0; }
  2% { opacity: 1; }
  24% { opacity: 1; }
  27% { opacity: 0; }
  100% { opacity: 0; }
}
/* Reduced motion: the breathing disc stays — it is the element's content,
   slow and small by design. Only the cycling text goes static. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pacer-labels span { animation: none; position: static; opacity: 1; display: inline; }
  .pacer-labels span + span::before { content: " · "; }
  .pacer-labels { height: auto; overflow: visible; }
}

/* ---------- MailerLite embed on paper ---------- */
.ml-embedded { margin: 4px 0 6px; }
.ml-embedded .ml-form-embedWrapper,
.ml-embedded .ml-form-embedBody,
.ml-embedded .ml-form-align-center { background: transparent !important; }
.ml-embedded .ml-form-embedWrapper { border: none !important; box-shadow: none !important; }
.ml-embedded .ml-form-embedBody { padding: 0 !important; }
.ml-embedded h4 { display: none !important; } /* heading duplicated by card copy */
.ml-embedded .ml-form-embedContent p { display: none !important; }
.ml-embedded input[type="email"] {
  background: #fffdf8 !important;
  border: 1px solid #cbbb9e !important;
  color: var(--ink) !important;
  font-family: "Newsreader", Georgia, serif !important;
  border-radius: 10px !important;
  min-height: 44px;
}
.ml-embedded input[type="email"]::placeholder { color: #75654e !important; opacity: 1 !important; }
.ml-embedded button {
  background: var(--night) !important;
  color: var(--paper) !important;
  font-family: "Newsreader", Georgia, serif !important;
  font-weight: 650 !important;
  font-size: 1.02rem !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  min-height: 48px;
  box-shadow: 0 10px 24px -10px rgba(42, 33, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
.ml-embedded button:hover {
  background: var(--lamp-deep) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(160, 94, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.ml-embedded button:active { transform: translateY(0); }

/* ---------- guide page ---------- */
.guide-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.guide-step:last-of-type { border-bottom: 1px solid var(--hairline); }
.step-n {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--lamp);
}
.step-n small { display: block; font-family: "Newsreader", Georgia, serif; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
.guide-step h3 { margin-bottom: 8px; }
.guide-step ul { padding-left: 20px; margin: 0 0 10px; }
.guide-step li { margin-bottom: 7px; }
@media (max-width: 540px) { .guide-step { grid-template-columns: 44px 1fr; gap: 14px; } .step-n { font-size: 1.8rem; } }

.tracker {
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  border: 1px dashed var(--paper-edge);
  border-radius: 10px;
  padding: 12px 16px;
  display: inline-block;
  color: var(--ink-soft);
  background: #fffdf8;
}

/* ---------- product (kit) page ---------- */
/* z-index scale: 10 content overlays · 30 sticky bar */
.kit-eyebrow {
  margin: 28px 0 0;
  color: var(--lamp);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.kit-hero-block { text-align: center; padding-top: 8px; }
.kit-hero-block h1 { margin-top: 18px; }
.kit-hero-block .lede { max-width: 34em; margin-inline: auto; }
.kit-buy { text-align: center; margin: 26px 0 4px; }
.kit-buy .btn-note { margin-top: 12px; }
.btn-big { font-size: 1.22rem; padding: 20px 46px; }
.kit-back { text-align: center; margin: 46px 0 0; }

/* listen: ring play buttons */
.listen-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin: 30px 0 6px;
}
.listen {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  min-height: 56px;
  color: var(--cream);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.listen:hover { border-color: var(--lamp); box-shadow: 0 8px 26px -12px rgba(229, 160, 79, 0.5); }
.listen-ring {
  position: relative; width: 34px; height: 34px; flex: none;
  border-radius: 50%; border: 2px solid var(--lamp);
}
.listen-ring::before { /* play triangle */
  content: ""; position: absolute; left: 12px; top: 9px;
  border-left: 10px solid var(--lamp);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transition: opacity 0.15s ease;
}
.listen.playing { border-color: var(--lamp); background: rgba(229, 160, 79, 0.1); }
.listen.playing .listen-ring::before {
  border: none; left: 10px; top: 10px; width: 4px; height: 12px;
  background: var(--lamp); box-shadow: 7px 0 0 var(--lamp); /* pause bars */
}
.listen.playing .listen-ring { animation: listenpulse 2s ease-in-out infinite; }
@keyframes listenpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 160, 79, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(229, 160, 79, 0); }
}
.listen-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.listen-label small { color: var(--stone); font-size: 0.8rem; }
.listen-hint { text-align: center; margin-top: 10px; }

/* trust row */
.trust-row {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 34px; margin: 26px 0 0;
  color: var(--stone); font-size: 0.95rem;
}
.trust-row strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem; font-weight: 400; color: var(--lamp);
  margin-right: 6px;
}

/* track grid */
.tracks { margin-top: 70px; text-align: center; }
.track-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-top: 26px; text-align: left;
}
.track-grid figure { margin: 0; }
.track-grid img {
  width: 100%; height: auto; border-radius: 14px; display: block;
  border: 1px solid var(--hairline);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.track-grid figure:hover img {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(229, 160, 79, 0.35);
}
.track-grid figcaption { font-size: 0.92rem; color: var(--stone); margin-top: 8px; line-height: 1.45; }
.track-grid figcaption strong { display: block; color: var(--cream); font-weight: 550; }

/* the feeling */
.feel { margin-top: 76px; }
.feel-img { margin-bottom: 26px; }
.feel-copy h2 { margin-bottom: 12px; }

/* price block */
.price-block {
  margin-top: 76px; text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 46px 34px 38px;
}
.price-block p { max-width: 36em; margin-inline: auto; }
.guarantee {
  margin-top: 22px; font-size: 0.95rem; color: var(--stone);
}
.guarantee strong { color: var(--cream); }

/* FAQ */
.faq { margin-top: 70px; }
.faq h2 { margin-bottom: 16px; }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  padding: 16px 30px 16px 0;
  position: relative;
  color: var(--cream); font-weight: 550; font-size: 1.05rem;
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem; color: var(--lamp);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--lamp); }
.faq details p { padding-bottom: 16px; margin: 0; }

/* sticky buy bar */
.buybar {
  position: fixed; z-index: 30;
  left: 50%; bottom: 18px;
  transform: translate(-50%, 90px);
  display: flex; align-items: center; gap: 14px;
  background: rgba(34, 27, 20, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 160, 79, 0.3);
  border-radius: 999px;
  padding: 10px 12px 10px 14px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
  max-width: calc(100vw - 24px);
}
.buybar.show { transform: translate(-50%, 0); }
.buybar img { border-radius: 50%; }
.buybar-text { display: flex; flex-direction: column; line-height: 1.3; }
.buybar-text strong { color: var(--cream); font-weight: 550; font-size: 0.98rem; }
.buybar-text span { color: var(--stone); font-size: 0.8rem; }
.buybar-btn { padding: 12px 24px; font-size: 1rem; white-space: nowrap; }
@media (max-width: 540px) {
  .buybar-text span { display: none; }
  .trust-row { gap: 8px 20px; font-size: 0.85rem; }
  .track-grid { gap: 12px; }
  .track-grid figcaption { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .listen.playing .listen-ring { animation: none; box-shadow: 0 0 0 4px rgba(229, 160, 79, 0.3); }
  .buybar { transition: none; }
}

/* ---------- kit promo card (bridge page) ---------- */
.kit-promo {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(229, 160, 79, 0.22);
  border-radius: 20px;
  padding: 30px 34px;
  margin: 56px 0 10px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.kit-promo-art { display: block; border-radius: 14px; overflow: hidden; }
.kit-promo-art img {
  display: block; width: 100%; height: auto;
  transition: transform 0.25s ease;
}
.kit-promo:hover .kit-promo-art img { transform: scale(1.03); }
.kit-promo-copy h2 { margin: 6px 0 10px; }
.kit-promo-copy p { margin-bottom: 12px; }
.kit-promo-cta { margin: 16px 0 0; }
.kit-promo .kit-eyebrow { margin: 0; }
@media (max-width: 620px) {
  .kit-promo { grid-template-columns: 1fr; padding: 24px 22px; text-align: center; }
  .kit-promo-art { max-width: 220px; margin: 0 auto; }
}
@media (min-width: 1000px) {
  .kit-promo { margin-inline: -110px; grid-template-columns: 230px 1fr; padding: 34px 44px; gap: 40px; }
}

/* ---------- footer ---------- */
footer {
  max-width: 680px;
  margin: 30px auto 0;
  padding: 30px 24px 60px;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--stone);
}
footer strong { color: var(--cream); }

/* ---------- desktop layout: let the big moments breathe ---------- */
@media (min-width: 1000px) {
  main { max-width: 720px; }
  footer { max-width: 720px; }
  .hero, .paper { margin-inline: -110px; }   /* breakout to ~940px */
  .paper { padding: 44px 52px 30px; }
  .talk-item { grid-template-columns: 170px 1fr; gap: 24px; }
  /* signup card: copy + pacer left, form right */
  .signup-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "head form" "copy form" "pacer form" "note note";
    column-gap: 44px;
    align-items: start;
  }
  .signup-grid h2 { grid-area: head; }
  .signup-grid > p:not(.small) { grid-area: copy; }
  .signup-grid .pacer { grid-area: pacer; margin-bottom: 8px; }
  .signup-grid .ml-embedded { grid-area: form; margin-top: 10px; }
  .signup-grid > .small { grid-area: note; margin-top: 14px; }
  /* kit page desktop */
  .track-grid { grid-template-columns: repeat(4, 1fr); margin-inline: -110px; }
  .feel {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 44px; align-items: center;
    margin-inline: -110px;
  }
  .feel-img { margin: 0; }
  .feel .hero { margin-inline: 0; }
  .price-block { margin-inline: -110px; padding: 54px 60px 46px; }
}
footer p { margin: 0 0 10px; }

/* ---------- footer social icons ---------- */
.social-row { display: flex; gap: 16px; margin: 4px 0 10px; }
.social-row a { color: var(--stone); display: inline-flex; transition: color 0.18s ease, transform 0.18s ease; }
.social-row a:hover { color: var(--lamp); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; fill: currentColor; display: block; }
