/* ============================================================
   AI Day Plan — "Sunrise"
   Warm, human, anti-overwhelm wellbeing brand.
   The day as a gentle arc, not a grind.
   ============================================================ */

:root {
  /* Sunrise palette */
  --cream:        #FFF7ED;
  --cream-deep:   #FFEFDD;
  --peach:        #FED7AA;
  --peach-soft:   #FEEBD2;
  --apricot:      #FDBA74;
  --coral:        #FB7185;
  --coral-deep:   #E11D5B;
  --ink:          #4A2F2A;   /* warm dark brown, never pure black */
  --ink-soft:     #7C5A52;
  --hill:         #FBCFA0;
  --white-warm:   #FFFCF7;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --radius: 22px;
  --radius-lg: 34px;

  --shadow-soft: 0 18px 50px -28px rgba(74, 47, 42, 0.35);
  --shadow-card: 0 24px 60px -34px rgba(225, 29, 91, 0.30);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white-warm);
  padding: 0.65rem 1.2rem;
  border-radius: 0 0 14px 14px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--coral-deep); }

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; z-index: 1; }

/* ============================================================
   The sky: fixed behind everything, holds the dawn gradient.
   The hero sun + arc colours live here.
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sky-gradient {
  position: absolute;
  inset: 0;
  /* dawn gradient: warms toward the horizon */
  background:
    radial-gradient(120% 80% at 50% 8%, #FFE7C2 0%, transparent 55%),
    linear-gradient(180deg,
      #FFE9CF 0%,
      #FFF1DF 30%,
      var(--cream) 62%,
      var(--cream) 100%);
  transition: background 0.6s linear;
}

.clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 100px;
  filter: blur(2px);
  opacity: 0.7;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 100px;
}
.cloud-1 { width: 160px; height: 30px; top: 14%; left: 8%; }
.cloud-1::before { width: 70px; height: 70px; top: -34px; left: 28px; }
.cloud-2 { width: 220px; height: 38px; top: 24%; right: 10%; opacity: 0.55; }
.cloud-2::before { width: 90px; height: 90px; top: -46px; left: 50px; }
.cloud-3 { width: 130px; height: 26px; top: 40%; left: 22%; opacity: 0.4; }
.cloud-3::before { width: 60px; height: 60px; top: -28px; left: 30px; }

.hills {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 34vh;
  background:
    radial-gradient(60% 120% at 20% 100%, var(--hill) 0%, transparent 72%),
    radial-gradient(70% 130% at 78% 100%, var(--peach) 0%, transparent 70%),
    radial-gradient(90% 140% at 50% 130%, var(--apricot) 0%, transparent 60%);
  opacity: 0.5;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.85), rgba(255, 247, 237, 0));
}
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1rem var(--gut);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-sun {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE3B0, var(--apricot) 55%, var(--coral) 100%);
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.28);
  flex: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  color: var(--white-warm);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 64px -30px rgba(225, 29, 91, 0.5); }
.btn-ghost {
  background: var(--white-warm);
  color: var(--ink);
  border-color: var(--peach);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--apricot); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: rgba(74, 47, 42, 0.18);
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
}
.btn-quiet:hover { border-color: var(--coral); color: var(--coral-deep); }

/* ============================================================
   Hero
   ============================================================ */
.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral-deep);
  margin: 0 0 1rem;
}
.eyebrow.centered { text-align: center; }

.hero {
  padding: clamp(3rem, 9vh, 7rem) 0 clamp(4rem, 12vh, 8rem);
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--apricot), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.hero-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.scroll-hint-arrow {
  width: 14px; height: 14px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(45deg);
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ============================================================
   Shared section titles
   ============================================================ */
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 18ch;
  margin: 0.4rem auto 2.6rem;
  color: var(--ink);
}

/* ============================================================
   How it works
   ============================================================ */
.how { padding: clamp(3rem, 8vh, 6rem) 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.step {
  background: var(--white-warm);
  border: 1px solid var(--peach-soft);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white-warm);
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 26px -14px rgba(225, 29, 91, 0.6);
}
.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.step p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   Signature demo: the arc of the day
   ============================================================ */
.demo { padding: clamp(3rem, 9vh, 7rem) 0; }
.demo-lead {
  text-align: center;
  max-width: 56ch;
  margin: -1.6rem auto 2.5rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.demo-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  /* aspect ratio matches the viewBox so moments line up on the path */
  aspect-ratio: 1000 / 520;
}
.arc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.arc-horizon {
  stroke: rgba(74, 47, 42, 0.14);
  stroke-width: 2;
  stroke-dasharray: 4 8;
}
.arc-track {
  stroke: rgba(253, 186, 116, 0.35);
  stroke-width: 4;
  stroke-linecap: round;
}
.arc-progress {
  stroke: url(#arcGrad);
  stroke-width: 5;
  stroke-linecap: round;
  /* dash trick: revealed by JS as you scroll */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.arc-sun circle {
  fill: radial-gradient; /* fallback overridden below */
  fill: #FFD08A;
}
.arc-sun { transition: opacity 0.3s; }
/* layered glow disc */
.arc-sun circle {
  fill: #FFCE82;
}

/* moments */
.moments {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}
.moment {
  position: absolute;
  /* JS sets --x and --y as percentages of the stage */
  left: calc(var(--x, 50) * 1%);
  top: calc(var(--y, 50) * 1%);
  transform: translate(-50%, -50%);
  width: max-content;
}
.moment-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white-warm);
  border: 3px solid var(--coral);
  box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.16);
  z-index: 2;
}
.moment-card {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 16px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--white-warm);
  border: 1px solid var(--peach-soft);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  box-shadow: var(--shadow-soft);
  width: 200px;
  text-align: left;
  /* reveal state controlled by JS .is-on */
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
/* alternate cards below the arc near the ends so they don't clip off-canvas */
.moment.below .moment-card {
  bottom: auto;
  top: calc(50% + 16px);
  transform: translateX(-50%) translateY(-8px) scale(0.96);
}
.moment.is-on .moment-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.moment.is-on.below .moment-card {
  transform: translateX(-50%) translateY(0) scale(1);
}
.moment.is-on .moment-dot {
  background: var(--coral);
}

/* Edge-aware anchoring: cards at the far left/right of the arc anchor
   their inner edge to the dot instead of centring, so they never spill
   past the stage on narrow screens. */
.moment.anchor-left .moment-card {
  left: 0;
  transform: translateY(8px) scale(0.96);
}
.moment.anchor-left.is-on .moment-card {
  transform: translateY(0) scale(1);
}
.moment.anchor-left.below .moment-card {
  transform: translateY(-8px) scale(0.96);
}
.moment.anchor-left.below.is-on .moment-card {
  transform: translateY(0) scale(1);
}
.moment.anchor-right .moment-card {
  left: auto;
  right: 0;
  transform: translateY(8px) scale(0.96);
}
.moment.anchor-right.is-on .moment-card {
  transform: translateY(0) scale(1);
}
.moment.anchor-right.below .moment-card {
  transform: translateY(-8px) scale(0.96);
}
.moment.anchor-right.below.is-on .moment-card {
  transform: translateY(0) scale(1);
}
.moment-time {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--coral-deep);
}
.moment-task {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}

/* before / after aside */
.demo-aside {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  max-width: 820px;
  margin: 3rem auto 0;
}
.dump-card, .plan-card {
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.dump-card {
  background: #FDE7E7;
  border: 1px solid #F8CFCF;
}
.plan-card {
  background: var(--white-warm);
  border: 1px solid var(--peach-soft);
}
.dump-label, .plan-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.dump-label { color: #C2410C; }
.plan-label { color: var(--coral-deep); }
.dump-text {
  margin: 0;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}
.plan-text { margin: 0; color: var(--ink); }
.dump-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apricot), var(--coral));
  position: relative;
  flex: none;
  box-shadow: var(--shadow-card);
}
.dump-arrow::after {
  content: "";
  position: absolute;
  left: 44%; top: 50%;
  width: 11px; height: 11px;
  border-right: 3px solid var(--white-warm);
  border-top: 3px solid var(--white-warm);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ============================================================
   Why it's calm
   ============================================================ */
.why { padding: clamp(3rem, 8vh, 6rem) 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.why-card {
  background: linear-gradient(180deg, var(--white-warm), var(--cream-deep));
  border: 1px solid var(--peach-soft);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.why-icon {
  display: block;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: var(--peach-soft);
  position: relative;
}
.why-icon-arc::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 14px;
  height: 18px;
  border: 3px solid var(--coral);
  border-bottom: none;
  border-radius: 40px 40px 0 0;
}
.why-icon-brain::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 50% 10px;
  background: var(--coral);
}
.why-icon-rest::after {
  content: "";
  position: absolute;
  left: 50%; top: 54%;
  width: 26px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 0 0 30px 30px;
  background: var(--apricot);
  box-shadow: 0 -7px 0 -2px var(--coral);
}
.why-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.why-card p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   Closing CTA
   ============================================================ */
.cta { padding: clamp(4rem, 10vh, 7rem) 0; }
.cta-inner {
  position: relative;
  max-width: 720px;
  text-align: center;
  background: linear-gradient(165deg, #FFE9CF 0%, var(--peach) 70%, #FECBA0 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cta-sun {
  position: absolute;
  top: -70px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFE3B0, var(--apricot) 60%, var(--coral) 100%);
  opacity: 0.55;
  filter: blur(2px);
}
.cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  color: var(--ink);
  position: relative;
}
.cta-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 1.8rem;
  position: relative;
}
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  position: relative;
}
.waitlist-form input[type="email"] {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 0.9rem 1.3rem;
  border-radius: 100px;
  border: 2px solid var(--white-warm);
  background: var(--white-warm);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
}
.waitlist-form input::placeholder { color: #B89589; }
.waitlist-form input:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 2px;
}
.form-status {
  flex-basis: 100%;
  margin: 0.6rem 0 0;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--coral-deep);
}
.cta-note {
  position: relative;
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: clamp(3rem, 6vh, 4.5rem) 0 2.5rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}
.brand-footer { font-size: 1.3rem; }
.footer-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--coral-deep); }
.footer-fine {
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin: 0.4rem 0 0;
}

/* ============================================================
   Scroll reveal (progressive assembly)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .steps, .why-grid { grid-template-columns: 1fr; }
  .demo-aside {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .dump-arrow { transform: rotate(90deg); margin: 0 auto; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: 2rem; }
  .scroll-hint { display: none; }
  .nav-cta { margin-left: auto; }
  /* On small screens the arc cards get tight; widen the stage handling in JS,
     but also let cards shrink so nothing overflows. */
  .moment-card { width: 150px; padding: 0.45rem 0.6rem; }
  .moment-task { font-size: 0.8rem; }
  .moment-time { font-size: 0.85rem; }
}

@media (max-width: 414px) {
  :root { --gut: 1.15rem; }
  .moment-card { width: 130px; }
}

/* ============================================================
   Reduced motion: static arc, all moments shown, no scroll drive,
   no bobbing, no smooth scroll.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint-arrow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .arc-progress { stroke-dashoffset: 0 !important; }
  .moment .moment-card { opacity: 1 !important; transform: translateX(-50%) !important; }
  .moment.below .moment-card { transform: translateX(-50%) !important; }
  .moment.anchor-left .moment-card,
  .moment.anchor-right .moment-card { transform: none !important; }
  .btn { transition: none; }
}
