/* =========================================================
   LifeOS public pages — shared base + landing
   Calm premium, warm. Zero JavaScript. No external assets.
   System font stack only. All motion is CSS, and it respects
   prefers-reduced-motion.
   ========================================================= */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #070a10;
  --bg-deep: #05070b;
  --bg-raised: #0c1017;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-strong: rgba(255, 255, 255, 0.06);

  /* Ink */
  --ink: #f3f5f9;
  --muted: #b3bac7;
  --faint: #828c9b;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  /* Brand accents — evolved softer + warmer from the app palette */
  --cyan: #56d0e0;
  --cyan-soft: #a9e9f2;
  --gold: #e9c47f;
  --gold-soft: #f5ddb0;
  --green: #7fd0a0;
  --rose: #e79aac;
  --violet: #b4a8e6;
  --sand: #d9c9ae;

  /* Shape + depth */
  --radius-lg: 26px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 16px 50px rgba(0, 0, 0, 0.3);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    ui-serif, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 18% -140px, rgba(86, 208, 224, 0.08), transparent 70%),
    radial-gradient(900px 480px at 92% -60px, rgba(233, 196, 127, 0.06), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: rgba(86, 208, 224, 0.28);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.13rem;
  line-height: 1.3;
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gold-soft);
}

.site-shell {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #07111a;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu-panel {
  position: fixed;
  top: 64px;
  right: 14px;
  left: 14px;
  z-index: 30;
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(9, 13, 20, 0.98);
  box-shadow: var(--shadow-soft);
}

.mobile-menu:not([open]) .mobile-menu-panel {
  display: none;
}

.mobile-menu-panel a {
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 650;
}

.mobile-menu-panel a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease,
    background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #06191c;
  box-shadow: 0 10px 32px rgba(86, 208, 224, 0.22);
}

.button.primary:hover {
  box-shadow: 0 14px 40px rgba(86, 208, 224, 0.3);
}

.button.ghost {
  background: transparent;
}

.button.small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(540px, 74svh, 650px);
  padding: clamp(48px, 7vw, 86px) 0 clamp(48px, 6vw, 74px);
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-media,
.hero-scrim,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background: #05070b;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 620ms ease, transform 1800ms ease;
}

#hero-slide-command:checked ~ .hero-media .hero-bg-command,
#hero-slide-day:checked ~ .hero-media .hero-bg-day,
#hero-slide-community:checked ~ .hero-media .hero-bg-community {
  opacity: 1;
  transform: scale(1);
}

.hero-scrim {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92) 0%, rgba(5, 8, 13, 0.7) 42%, rgba(5, 8, 13, 0.24) 100%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.08) 0%, rgba(5, 8, 13, 0.12) 42%, rgba(5, 8, 13, 0.92) 100%);
}

.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(780px 360px at 26% 34%, rgba(6, 14, 24, 0.78), transparent 72%),
    radial-gradient(640px 420px at 82% 82%, rgba(127, 208, 160, 0.1), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: clamp(430px, 56svh, 520px);
  text-align: left;
}

.hero-copy {
  display: none;
  max-width: 660px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

#hero-slide-command:checked ~ .hero-inner .hero-copy-command,
#hero-slide-day:checked ~ .hero-inner .hero-copy-day,
#hero-slide-community:checked ~ .hero-inner .hero-copy-community {
  display: grid;
  justify-items: start;
  animation: rise 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.signal {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(127, 208, 160, 0.14);
  flex: 0 0 auto;
}

.hero h1 {
  max-width: 780px;
}

.hero-lede {
  color: var(--muted);
  max-width: 640px;
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  margin-top: 24px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin-top: 26px;
  color: var(--faint);
  font-size: 0.86rem;
}

.hero-trust a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-decoration-color: rgba(169, 233, 242, 0.38);
  text-underline-offset: 3px;
}

.hero-trust a:hover {
  color: var(--ink);
}

.hero-trust span:not(:last-child)::after,
.hero-trust a:not(:last-child)::after {
  content: "\00B7";
  margin: 0 12px;
  color: var(--faint);
  text-decoration: none;
}

/* Load-in rise for the hero */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 6px;
  background: rgba(7, 10, 16, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-switcher label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-switcher label:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-switcher span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-switcher strong {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1;
}

#hero-slide-command:checked ~ .hero-inner label[for="hero-slide-command"],
#hero-slide-day:checked ~ .hero-inner label[for="hero-slide-day"],
#hero-slide-community:checked ~ .hero-inner label[for="hero-slide-community"] {
  border-color: rgba(86, 208, 224, 0.34);
  background: rgba(86, 208, 224, 0.13);
}

#hero-slide-command:checked ~ .hero-inner label[for="hero-slide-command"] span,
#hero-slide-day:checked ~ .hero-inner label[for="hero-slide-day"] span,
#hero-slide-community:checked ~ .hero-inner label[for="hero-slide-community"] span {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(86, 208, 224, 0.13);
}

#hero-slide-command:focus-visible ~ .hero-inner label[for="hero-slide-command"],
#hero-slide-day:focus-visible ~ .hero-inner label[for="hero-slide-day"],
#hero-slide-community:focus-visible ~ .hero-inner label[for="hero-slide-community"] {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* ---------------------------------------------------------
   Schedule preview
   --------------------------------------------------------- */

.schedule-preview-section {
  padding: clamp(36px, 6vw, 74px) 0 0;
  background:
    radial-gradient(680px 320px at 50% 0%, rgba(86, 208, 224, 0.07), transparent 72%),
    var(--bg);
}

.day-frame {
  position: relative;
  margin: 0 auto;
  max-width: 720px;
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 420ms both;
}

.day-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 25, 35, 0.92), rgba(9, 13, 19, 0.96));
  box-shadow: var(--shadow);
  padding: clamp(14px, 2.4vw, 18px);
  position: relative;
}

.day-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.day-title strong {
  display: block;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.day-title span {
  display: block;
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 2px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(127, 208, 160, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--green);
  background: rgba(127, 208, 160, 0.09);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.day-chip svg {
  width: 14px;
  height: 14px;
}

.day-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 2px;
  display: grid;
}

.day-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
}

.day-time {
  color: var(--faint);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.day-item strong {
  display: block;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
}

.day-item span {
  display: block;
  color: var(--faint);
  font-size: 0.8rem;
  margin-top: 1px;
}

.day-list li.done {
  opacity: 0.52;
}

.day-list li.done .day-item strong {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 1px;
}

.day-check {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.day-list li.now {
  border: 1px solid rgba(86, 208, 224, 0.28);
  background: rgba(86, 208, 224, 0.07);
}

.day-list li.now .day-item span {
  color: var(--cyan);
}

.day-now-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(86, 208, 224, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
  margin-right: 5px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(86, 208, 224, 0.1); }
  50% { box-shadow: 0 0 0 7px rgba(86, 208, 224, 0.2); }
}

.day-rings {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.ring-wrap {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 0.76rem;
}

.ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #0d1219;
}

.ring.move {
  background: conic-gradient(var(--green) 272deg, rgba(255, 255, 255, 0.09) 0);
}

.ring.sleep {
  background: conic-gradient(var(--violet) 300deg, rgba(255, 255, 255, 0.09) 0);
}

.ring.read {
  background: conic-gradient(var(--gold) 160deg, rgba(255, 255, 255, 0.09) 0);
}

.ring-note {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.84rem;
  max-width: 230px;
  text-align: right;
  text-wrap: pretty;
}

.day-caption {
  margin-top: 10px;
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
}

.schedule-panel {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.schedule-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.schedule-topbar strong,
.schedule-context strong,
.schedule-summary strong {
  display: block;
}

.schedule-topbar span,
.schedule-summary span,
.schedule-context p,
.day-caption {
  color: var(--faint);
}

.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.schedule-tab,
.context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}

.schedule-tab.active,
.context-pill {
  color: #071016;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.schedule-tab:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.schedule-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.schedule-view {
  display: none;
  gap: 9px;
}

.schedule-panel[data-view="day"] .schedule-view-day,
.schedule-panel[data-view="week"] .schedule-view-week,
.schedule-panel[data-view="month"] .schedule-view-month,
.schedule-panel[data-view="timeline"] .schedule-view-timeline {
  display: grid;
  animation: rise 220ms ease both;
}

.schedule-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: 6px;
}

.schedule-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
}

.schedule-summary span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.schedule-summary strong {
  margin-top: 2px;
  font-size: clamp(0.86rem, 1.7vw, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 8px;
}

.schedule-context {
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background:
    radial-gradient(240px 160px at 0% 0%, rgba(86, 208, 224, 0.11), transparent 70%),
    rgba(255, 255, 255, 0.035);
}

.schedule-context strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.schedule-context p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.context-pill {
  justify-self: start;
}

.schedule-timeline-preview {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(4, 7, 12, 0.44);
}

.time-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 34px;
  align-items: center;
  color: var(--faint);
  font-size: 0.74rem;
}

.time-row + .time-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.time-row span {
  padding-left: 13px;
}

.time-row i {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.event-block {
  position: absolute;
  left: 74px;
  right: 14px;
  top: 5px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(86, 208, 224, 0.32);
  border-radius: 9px;
  padding: 4px 10px;
  color: #dff7fb;
  background: rgba(86, 208, 224, 0.13);
  font-size: 0.8rem;
}

.event-block.routine {
  border-color: rgba(127, 208, 160, 0.32);
  background: rgba(127, 208, 160, 0.12);
}

.event-block.reflect {
  border-color: rgba(180, 168, 230, 0.34);
  background: rgba(180, 168, 230, 0.13);
}

.week-preview-grid,
.month-preview-grid,
.unified-timeline-preview {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 7, 12, 0.44);
}

.week-preview-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.week-preview-grid span {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px;
  color: var(--faint);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.025);
}

.week-preview-grid b,
.week-preview-grid i,
.week-preview-grid em {
  display: block;
  border-radius: 999px;
}

.week-preview-grid b {
  height: 34px;
  background: rgba(86, 208, 224, 0.16);
  border: 1px solid rgba(86, 208, 224, 0.24);
}

.week-preview-grid b.hot {
  height: 54px;
  background: rgba(233, 196, 127, 0.16);
  border-color: rgba(233, 196, 127, 0.26);
}

.week-preview-grid i {
  height: 22px;
  background: rgba(127, 208, 160, 0.13);
}

.week-preview-grid em {
  height: 70px;
  background: rgba(180, 168, 230, 0.12);
}

.month-preview-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 30px;
  gap: 5px;
  padding: 10px;
}

.month-preview-grid span {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.month-preview-grid .mark::after,
.month-preview-grid .today::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 4px;
  border-radius: 999px;
  background: var(--cyan);
}

.month-preview-grid .mark.soft::after {
  background: var(--green);
}

.month-preview-grid .today {
  border-color: rgba(233, 196, 127, 0.5);
  background: rgba(233, 196, 127, 0.12);
}

.unified-timeline-preview {
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 12px 12px 20px;
}

.unified-timeline-preview::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 70px;
  width: 1px;
  background: rgba(86, 208, 224, 0.28);
}

.unified-timeline-preview span {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.unified-timeline-preview span::before {
  content: "";
  position: absolute;
  left: 43px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(86, 208, 224, 0.11);
}

.unified-timeline-preview b {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 650;
}

.unified-timeline-preview i {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-style: normal;
  font-weight: 650;
  font-size: 0.82rem;
}

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */

.section {
  padding: clamp(64px, 9vw, 108px) 0 0;
}

.section:last-of-type {
  padding-bottom: clamp(64px, 9vw, 108px);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.kicker {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.04rem;
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   Loop deck
   --------------------------------------------------------- */

.loop-deck {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 22px);
  background:
    radial-gradient(500px 260px at 80% 20%, rgba(86, 208, 224, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026));
  box-shadow: var(--shadow-soft);
}

.loop-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.loop-rail {
  display: grid;
  gap: 8px;
}

.loop-rail label {
  display: grid;
  gap: 3px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.loop-rail label:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
}

.loop-rail span {
  color: var(--ink);
  font-weight: 720;
}

.loop-rail small {
  color: var(--faint);
}

#loop-schedule:checked ~ .loop-rail label[for="loop-schedule"],
#loop-goals:checked ~ .loop-rail label[for="loop-goals"],
#loop-habits:checked ~ .loop-rail label[for="loop-habits"],
#loop-reflect:checked ~ .loop-rail label[for="loop-reflect"] {
  border-color: rgba(86, 208, 224, 0.48);
  background: rgba(86, 208, 224, 0.11);
}

.loop-stage {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(440px 220px at 18% 0%, rgba(233, 196, 127, 0.08), transparent 72%),
    rgba(4, 7, 12, 0.38);
}

.loop-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(24px, 5vw, 54px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.loop-panel > * {
  min-width: 0;
}

#loop-schedule:checked ~ .loop-stage .loop-panel-schedule,
#loop-goals:checked ~ .loop-stage .loop-panel-goals,
#loop-habits:checked ~ .loop-stage .loop-panel-habits,
#loop-reflect:checked ~ .loop-stage .loop-panel-reflect {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.loop-panel h3 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  max-width: 640px;
}

.loop-panel p {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.02rem;
}

.mini-timeline,
.reflect-lines {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  max-width: 420px;
}

.mini-timeline {
  grid-template-columns:
    minmax(16px, 54px)
    minmax(48px, 0.8fr)
    minmax(16px, 54px)
    minmax(48px, 0.7fr)
    minmax(16px, 54px);
  align-items: center;
}

.mini-timeline span,
.reflect-lines span {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mini-timeline b {
  min-width: 0;
  border: 1px solid rgba(86, 208, 224, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--cyan-soft);
  background: rgba(86, 208, 224, 0.1);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-timeline .gold {
  border-color: rgba(233, 196, 127, 0.34);
  color: var(--gold-soft);
  background: rgba(233, 196, 127, 0.09);
}

.goal-orbit,
.growth-row {
  display: flex;
  align-items: end;
  gap: 14px;
}

.goal-orbit span {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(233, 196, 127, 0.36);
  background: rgba(233, 196, 127, 0.1);
}

.goal-orbit span:nth-child(2) {
  width: 86px;
  height: 86px;
  border-color: rgba(86, 208, 224, 0.36);
  background: rgba(86, 208, 224, 0.1);
}

.growth-row i {
  display: block;
  width: 36px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--green), rgba(127, 208, 160, 0.22));
}

.growth-row i:nth-child(1) { height: 34px; }
.growth-row i:nth-child(2) { height: 58px; }
.growth-row i:nth-child(3) { height: 82px; }
.growth-row i:nth-child(4) { height: 112px; }

.reflect-lines span:nth-child(1) { width: 68%; }
.reflect-lines span:nth-child(2) { width: 92%; }
.reflect-lines span:nth-child(3) { width: 50%; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

.chip-cyan {
  color: var(--cyan);
  background: rgba(86, 208, 224, 0.1);
  border-color: rgba(86, 208, 224, 0.28);
}

.chip-gold {
  color: var(--gold);
  background: rgba(233, 196, 127, 0.1);
  border-color: rgba(233, 196, 127, 0.28);
}

.chip-green {
  color: var(--green);
  background: rgba(127, 208, 160, 0.1);
  border-color: rgba(127, 208, 160, 0.28);
}

.chip-rose {
  color: var(--rose);
  background: rgba(231, 154, 172, 0.1);
  border-color: rgba(231, 154, 172, 0.28);
}

.chip-violet {
  color: var(--violet);
  background: rgba(180, 168, 230, 0.1);
  border-color: rgba(180, 168, 230, 0.28);
}

.chip-sand {
  color: var(--sand);
  background: rgba(217, 201, 174, 0.1);
  border-color: rgba(217, 201, 174, 0.28);
}

/* ---------------------------------------------------------
   Proof strip
   --------------------------------------------------------- */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-strip article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
}

.proof-strip span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.proof-strip strong {
  display: block;
  font-size: 1.08rem;
}

.proof-strip p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   Community band (landing)
   --------------------------------------------------------- */

.warm-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 280px at 85% 10%, rgba(233, 196, 127, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028));
  padding: clamp(34px, 6vw, 58px) clamp(22px, 5vw, 56px);
  text-align: center;
}

.warm-band .icon-chip {
  margin: 0 auto 20px;
}

.warm-band p {
  color: var(--muted);
  max-width: 620px;
  margin: 16px auto 0;
  text-wrap: pretty;
}

.warm-band .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 12px;
  width: min(100%, 470px);
  margin: 28px auto 0;
}

.warm-band .hero-actions .button {
  width: 100%;
  min-height: 48px;
  padding-inline: 18px;
}

.warm-sub {
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  margin-top: clamp(70px, 10vw, 110px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(130px, 0.55fr));
  gap: 26px;
  padding: 44px 0 34px;
}

.footer-tag {
  margin-top: 14px;
  color: var(--faint);
  max-width: 320px;
  font-size: 0.93rem;
  text-wrap: pretty;
}

.footer-inner h3 {
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-inner li {
  margin-top: 9px;
  font-size: 0.93rem;
}

.footer-inner a {
  transition: color 160ms ease;
}

.footer-inner a:hover {
  color: var(--ink);
}

.copyright {
  border-top: 1px solid var(--line);
  padding: 18px 0 30px;
  color: var(--faint);
  font-size: 0.88rem;
}

.copyright a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  transition: color 160ms ease;
}

.copyright a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------
   Scroll reveals — progressive enhancement only
   --------------------------------------------------------- */

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .loop-deck {
    grid-template-columns: 1fr;
  }

  .loop-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 1140px);
  }

  .hero {
    min-height: clamp(560px, 70svh, 630px);
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero-bg {
    object-position: center top;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5, 8, 13, 0.86) 0%, rgba(5, 8, 13, 0.58) 42%, rgba(5, 8, 13, 0.94) 100%),
      linear-gradient(90deg, rgba(5, 8, 13, 0.36), rgba(5, 8, 13, 0.08));
  }

  .hero-inner {
    min-height: auto;
    justify-items: center;
    text-align: center;
  }

  #hero-slide-command:checked ~ .hero-inner .hero-copy-command,
  #hero-slide-day:checked ~ .hero-inner .hero-copy-day,
  #hero-slide-community:checked ~ .hero-inner .hero-copy-community {
    justify-items: center;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-switcher {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-switcher label {
    min-height: 32px;
    padding: 7px 10px;
    text-align: center;
  }

  .hero-switcher strong {
    font-size: 0.76rem;
  }

  .loop-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop-stage {
    min-height: 360px;
  }

}

@media (max-width: 560px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    flex-shrink: 0;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 0.88rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .warm-band .hero-actions {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
  }

  .hero-switcher small {
    display: none;
  }

  .hero-switcher {
    gap: 6px;
  }

  .hero-switcher label {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .hero-switcher strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero-trust {
    flex-direction: column;
    gap: 6px;
  }

  .hero-trust span:not(:last-child)::after,
  .hero-trust a:not(:last-child)::after {
    content: none;
  }

  .schedule-topbar {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .schedule-tabs {
    justify-content: flex-start;
  }

  .schedule-body {
    grid-template-columns: 1fr;
  }

  .schedule-panel {
    gap: 8px;
  }

  .schedule-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .schedule-summary div {
    padding: 7px 6px;
  }

  .schedule-summary span {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .schedule-summary strong {
    font-size: 0.76rem;
  }

  .schedule-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .schedule-tab {
    justify-content: center;
    min-width: 0;
    min-height: 27px;
    padding: 4px 5px;
    font-size: 0.68rem;
  }

  .schedule-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
  }

  .schedule-context p {
    display: none;
  }

  .schedule-context strong {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .context-pill {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.66rem;
  }

  .time-row {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 30px;
    font-size: 0.68rem;
  }

  .event-block {
    left: 55px;
    right: 7px;
    min-height: 22px;
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .week-preview-grid,
  .month-preview-grid,
  .unified-timeline-preview {
    min-height: 112px;
  }

  .week-preview-grid span {
    gap: 4px;
    padding: 6px 3px;
    font-size: 0.6rem;
  }

  .week-preview-grid b {
    height: 24px;
  }

  .week-preview-grid b.hot {
    height: 42px;
  }

  .week-preview-grid i {
    height: 16px;
  }

  .week-preview-grid em {
    height: 54px;
  }

  .month-preview-grid {
    grid-auto-rows: 23px;
    gap: 3px;
    padding: 7px;
  }

  .month-preview-grid .mark::after,
  .month-preview-grid .today::after {
    left: 5px;
    right: 5px;
    bottom: 5px;
    height: 3px;
  }

  .unified-timeline-preview {
    gap: 5px;
    padding: 9px 8px 9px 16px;
  }

  .unified-timeline-preview::before {
    left: 58px;
  }

  .unified-timeline-preview span {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .unified-timeline-preview span::before {
    left: 36px;
    width: 7px;
    height: 7px;
  }

  .unified-timeline-preview b {
    font-size: 0.65rem;
  }

  .unified-timeline-preview i {
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .loop-panel {
    padding: 24px;
  }

  .loop-rail label {
    min-height: 62px;
    padding: 11px;
  }

  .loop-rail small {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 15.5px;
  }

  .site-shell {
    width: calc(100% - 22px);
  }

  h1 {
    font-size: 2.18rem;
  }

  .hero {
    min-height: 590px;
  }

  .hero-switcher label {
    padding: 0;
  }

  .hero-switcher strong {
    font-size: 0.76rem;
  }

  .day-panel {
    padding: 12px 10px;
  }

  .schedule-tab {
    font-size: 0.68rem;
    padding: 5px 4px;
  }
}

@media (max-width: 344px) {
  /* Logo-only brand: the wordmark plus two header buttons cannot share a
     sub-345px row without the brand text painting under the buttons. */
  .brand span {
    display: none;
  }
}
