:root {
  color-scheme: light;
  --ink: #17342d;
  --ink-soft: #49645d;
  --paper: #f7f7f1;
  --white: #fffefa;
  --line: #dfe5dc;
  --mint: #d8eee3;
  --mint-deep: #2e715e;
  --coral: #ff745f;
  --coral-soft: #ffe0d7;
  --sun: #f6d98b;
  --blue: #dbe9ef;
  --shadow: 0 24px 70px rgba(30, 58, 49, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 52, 45, 0.08);
  background: rgba(247, 247, 241, 0.88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); text-decoration: none; font-size: 1.4rem; font-weight: 760; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px 12px 18px 12px; color: white; background: var(--coral); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; box-shadow: 0 8px 18px rgba(255, 116, 95, 0.25); }
.desktop-nav { display: flex; gap: 34px; font-size: 0.9rem; font-weight: 650; }
.desktop-nav a, footer a { text-decoration: none; }
.desktop-nav a:hover, footer a:hover { color: var(--coral); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.system-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 0.75rem; font-weight: 650; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d39b42; box-shadow: 0 0 0 4px rgba(211, 155, 66, 0.12); }
.system-pill.healthy .status-dot { background: #4f9a7e; box-shadow: 0 0 0 4px rgba(79, 154, 126, 0.12); }
.system-pill.unavailable .status-dot { background: var(--coral); }
.button { min-height: 44px; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 3px solid rgba(255, 116, 95, .45); outline-offset: 3px; }
.button-dark { background: var(--ink); color: white; }
.button-ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.button-primary { color: white; background: var(--coral); box-shadow: 0 12px 28px rgba(255, 116, 95, .24); }
.full-width { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  min-height: calc(100vh - 76px);
  padding: clamp(64px, 9vw, 126px) clamp(22px, 8vw, 124px);
}
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: 6%; border-radius: 50%; background: var(--mint); filter: blur(2px); opacity: .65; z-index: -1; }
.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 18px; color: var(--mint-deep); font-size: .76rem; font-weight: 820; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -0.045em; }
h1 { max-width: 740px; margin-bottom: 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7vw, 7.4rem); font-weight: 500; }
.hero-lead { max-width: 620px; margin: 0 0 34px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-link { color: var(--ink); font-size: .9rem; font-weight: 750; text-underline-offset: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 42px; color: var(--ink-soft); font-size: .76rem; font-weight: 650; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--mint-deep); }

.day-card { position: relative; padding: 30px; border: 1px solid rgba(23, 52, 45, .08); border-radius: var(--radius-lg); background: rgba(255, 254, 250, .94); box-shadow: var(--shadow); transform: rotate(1deg); }
.day-card::after { content: ""; position: absolute; inset: 10px -12px -12px 12px; z-index: -1; border-radius: var(--radius-lg); background: var(--coral-soft); transform: rotate(-3deg); }
.day-card-header, .rhythm-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mini-label { margin: 0 0 3px; color: var(--ink-soft); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.day-card h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.weather-orb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sun); font-weight: 800; }
.next-action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin: 25px 0; padding: 18px; border-radius: 18px; color: white; background: var(--ink); }
.next-action div { display: grid; }
.next-action .mini-label, .next-action span { color: rgba(255,255,255,.68); }
.next-action strong { font-size: .9rem; }
.next-action time { font-size: 1.08rem; font-weight: 800; }
.next-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--coral); color: white !important; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 48px 14px 1fr; gap: 12px; align-items: start; min-height: 72px; color: var(--ink-soft); font-size: .76rem; }
.timeline time { padding-top: 2px; font-variant-numeric: tabular-nums; font-weight: 700; }
.timeline-pin { position: relative; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--mint); }
.timeline-pin::after { content: ""; position: absolute; width: 1px; height: 55px; left: 4px; top: 11px; background: var(--line); }
.timeline li:last-child .timeline-pin::after { display: none; }
.pin-coral { background: var(--coral); }.pin-sun { background: #d5a83a; }.pin-blue { background: #6e9caf; }
.timeline div { display: grid; gap: 2px; }
.timeline strong { color: var(--ink); font-size: .86rem; }
.timeline-current strong { color: var(--coral); }
.balance-note { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--mint); font-size: .76rem; }
.balance-note > span { font-size: 1.3rem; }.balance-note p { margin: 0; }

.section { padding: clamp(88px, 11vw, 150px) clamp(22px, 8vw, 124px); }
.intro-section { background: var(--ink); color: white; }
.section-heading { max-width: 700px; margin-bottom: 54px; }
.section-heading h2, .wellbeing-copy h2, .cta-section h2 { margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 500; }
.section-heading > p:last-child, .wellbeing-copy > p { color: rgba(255,255,255,.66); font-size: 1.05rem; line-height: 1.75; }
.intro-section .eyebrow { color: #9fd0bd; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { display: flex; flex-direction: column; min-height: 310px; padding: 28px; border-radius: var(--radius-md); color: var(--ink); }
.feature-card h3 { margin: 24px 0 14px; font-size: 1.3rem; }
.feature-card p { margin: 0 0 28px; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.feature-coral { background: var(--coral-soft); }.feature-mint { background: var(--mint); }.feature-blue { background: var(--blue); }.feature-sun { background: var(--sun); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(23,52,45,.15); border-radius: 14px; font-size: 1.2rem; }
.feature-tag { margin-top: auto; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.wellbeing-section { display: grid; grid-template-columns: 1fr minmax(380px, .8fr); align-items: center; gap: clamp(52px, 10vw, 150px); background: #eef1e8; }
.wellbeing-copy > p { color: var(--ink-soft); }
.check-list { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 650; }
.check-list span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 10px; border-radius: 50%; background: var(--mint); color: var(--mint-deep); }
.rhythm-card { padding: 30px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.rhythm-top { font-size: .76rem; font-weight: 750; }.rhythm-top span:last-child { color: var(--ink-soft); }
.rhythm-chart { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; height: 230px; margin: 28px 0; border-bottom: 1px solid var(--line); }
.rhythm-chart span { position: relative; border-radius: 10px 10px 0 0; background: var(--mint); }
.rhythm-chart span:nth-child(1) { height: 54%; }.rhythm-chart span:nth-child(2) { height: 72%; }.rhythm-chart span:nth-child(3) { height: 62%; }.rhythm-chart span:nth-child(4) { height: 88%; }.rhythm-chart span:nth-child(5) { height: 68%; }.rhythm-chart span:nth-child(6) { height: 45%; }.rhythm-chart span:nth-child(7) { height: 38%; }
.rhythm-chart span.active { background: var(--coral); }
.rhythm-chart b { position: absolute; left: 50%; bottom: -27px; transform: translateX(-50%); color: var(--ink-soft); font-size: .65rem; font-weight: 700; }
.rhythm-card > p { margin: 48px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.65; }
.rhythm-card > p strong { color: var(--ink); }

.cta-section { padding: clamp(90px, 12vw, 170px) 22px; text-align: center; background: var(--coral-soft); }
.cta-section h2 { max-width: 800px; margin-left: auto; margin-right: auto; }
.small-print { max-width: 620px; margin: 22px auto 0; color: var(--ink-soft); font-size: .75rem; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 36px clamp(22px, 5vw, 72px); color: var(--ink-soft); background: var(--white); font-size: .76rem; }
footer p { margin: 0; text-align: center; } footer > div { display: flex; justify-content: flex-end; gap: 22px; }.footer-brand { font-size: 1.15rem; }.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 1rem; }

dialog { width: min(430px, calc(100% - 32px)); padding: 38px; border: 0; border-radius: 28px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); text-align: center; }
dialog::backdrop { background: rgba(16, 35, 30, .58); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: var(--paper); cursor: pointer; font-size: 1.35rem; }
.dialog-mark { margin: 0 auto 22px; }.dialog-mark + h2 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
dialog p { color: var(--ink-soft); }.dialog-note { margin: 18px 0 0; font-size: .7rem; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 380px; padding: 14px 18px; border-radius: 14px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .8rem; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }.desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 82px; }.hero-copy { max-width: 780px; }.day-card { width: min(100%, 570px); margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }.wellbeing-section { grid-template-columns: 1fr; }.rhythm-card { max-width: 620px; }
}
@media (max-width: 680px) {
  .site-header { min-height: 66px; padding: 10px 16px; }.brand { font-size: 1.2rem; }.brand-mark { width: 32px; height: 32px; }
  .system-pill { display: none; }.button { min-height: 42px; padding: 9px 16px; }
  .hero { min-height: auto; padding: 64px 18px 88px; }.hero::before { width: 330px; height: 330px; right: -180px; }
  h1 { font-size: clamp(3.05rem, 15vw, 4.4rem); }.hero-lead { font-size: 1rem; }.trust-row { gap: 10px 16px; }
  .day-card { padding: 20px; border-radius: 24px; transform: none; }.day-card::after { display: none; }.next-action { grid-template-columns: auto 1fr; }.next-action time { grid-column: 2; }.timeline li { grid-template-columns: 42px 12px 1fr; }
  .section { padding: 82px 18px; }.feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: 260px; }.wellbeing-section { gap: 54px; }.rhythm-card { padding: 22px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; } footer > div { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
