:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142724;
  background: #f4f7f3;
  --text: #142724;
  --muted: #4e635d;
  --green: #176752;
  --ink: #102522;
  --mint: #b9efda;
  --line: #dce6db;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { color: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid #5987eb;
  outline-offset: 3px;
}

.shell { width: min(73rem, calc(100% - 5rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-size: 1.28rem; font-weight: 760; letter-spacing: -.035em; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .62rem;
  color: var(--ink);
  background: linear-gradient(150deg, #bcf4df, #81cfb2);
  box-shadow: inset 0 1px 0 #ffffff80;
}
.header-inner nav { display: flex; gap: 1.85rem; font-size: .94rem; color: var(--muted); font-weight: 650; }
.header-inner nav a:hover { color: var(--green); }

.clock-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  border: .105em solid currentColor;
  border-radius: 50%;
}
.clock-icon::before, .clock-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .095em;
  border-radius: .1em;
  background: currentColor;
}
.clock-icon::before { height: .29em; transform: translate(-50%, -100%); }
.clock-icon::after { height: .24em; transform: translateX(-50%) rotate(-52deg); transform-origin: center top; }
.download-icon {
  display: inline-block;
  position: relative;
  width: 1em;
  height: .93em;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 .14em .14em;
  clip-path: polygon(0 52%, 20% 52%, 20% 0, 80% 0, 80% 52%, 100% 52%, 100% 100%, 0 100%);
}
.download-icon::before, .download-icon::after { content: ""; position: absolute; left: 50%; }
.download-icon::before { top: 0; width: 1.5px; height: .6em; background: currentColor; transform: translateX(-50%); }
.download-icon::after { top: .26em; width: .35em; height: .35em; transform: translateX(-50%) rotate(45deg); border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .57rem;
  min-height: 2.65rem;
  padding: .57rem .91rem;
  border: 1px solid transparent;
  border-radius: .64rem;
  font-weight: 700;
  white-space: nowrap;
}
.button-outline { border-color: #c7d6c9; font-size: .9rem; }
.button-outline:hover { background: #e8f2e8; }
.button-primary { min-height: 3.35rem; padding-inline: 1.15rem; background: var(--ink); color: #fff; box-shadow: 0 6px 14px #203c2730; }
.button-primary:hover { background: #1a4b3f; }

.hero { padding-block: 3.25rem 3.8rem; }
.hero-copy { text-align: center; padding-bottom: 2.4rem; }
.hero h1 {
  font-size: clamp(3.25rem, 7.2vw, 6.05rem);
  font-weight: 770;
  letter-spacing: -.075em;
  line-height: .99;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-copy > p { margin: .93rem auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.57; }
.hero-actions { display: grid; justify-items: center; gap: .6rem; margin-top: 1.32rem; }
.requirements { color: var(--muted); font-size: .82rem; }
.file-preview-help { color: var(--green); font-size: .82rem; text-decoration: underline; text-underline-offset: .2em; }

.desktop {
  overflow: hidden;
  min-height: 31rem;
  color: #fff;
  border: 1px solid #475f53;
  border-radius: 1.25rem;
  background: #24483f url("assets/coast.jpg") center 58% / cover no-repeat;
  box-shadow: 0 18px 50px #1b443b20;
  scroll-margin-top: 1rem;
}
.desktop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.45rem;
  padding-inline: 1.05rem;
  border-bottom: 1px solid #ffffff30;
  background: #122c29ad;
  font-size: .8rem;
  font-weight: 660;
}
.desktop-status { display: inline-flex; align-items: center; gap: .55rem; }
.status-clock { display: grid; place-items: center; border-radius: .28rem; background: #fff3; width: 1.65rem; height: 1.39rem; }
.desktop-inner {
  display: flex;
  justify-content: end;
  align-items: start;
  gap: .9rem;
  padding: .94rem clamp(1rem, 3.8vw, 3.1rem) 1.25rem;
}
.preview-window {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text);
  background: #fcfefb;
  border: 1px solid #fff9;
  border-radius: .9rem;
  padding: .88rem;
  box-shadow: 0 14px 38px #061c1b70;
}
.planner-window { width: 22rem; }
.module-window { width: 15.5rem; }
.window-header { display: flex; align-items: center; justify-content: space-between; min-height: 1.86rem; gap: .4rem; margin-bottom: .74rem; }
.window-header h2 { font-size: 1rem; font-weight: 740; }
.demo-brand { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 750; }
.demo-brand .brand-mark { width: 1.48rem; height: 1.48rem; border-radius: .39rem; font-size: .8rem; }
.small-button, .focus-button {
  border: 0;
  border-radius: .44rem;
  background: #e6f0e5;
  padding: .29rem .52rem;
  min-height: 1.83rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.small-button:hover { background: #d9ebdd; }
.demo-title { font-size: 1.46rem; font-weight: 770; letter-spacing: -.04em; }
.demo-date { font-size: .82rem; color: var(--muted); margin-top: .12rem; }
.demo-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .22rem; margin: .66rem 0; }
.day-button {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: .1rem;
  padding: .32rem .12rem .2rem;
  border: 0;
  border-radius: .38rem;
  background: #edf2eb;
  cursor: pointer;
}
.day-button:hover { background: #dfeee2; }
.day-button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.day-button span { font-size: .66rem; }
.day-button strong { font-size: .83rem; font-variant-numeric: tabular-nums; }
.day-dot { width: .2rem; height: .2rem; border-radius: 50%; }
.day-button.has-blocks .day-dot { background: var(--green); }
.day-button[aria-pressed="true"].has-blocks .day-dot { background: var(--mint); }
.schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block: .46rem; font-size: .83rem; }
.schedule-heading span { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.demo-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.demo-task {
  min-height: 2.54rem;
  padding: .18rem .35rem .18rem .47rem;
  display: flex;
  align-items: center;
  gap: .44rem;
  background: #f0f3ee;
  border-radius: .37rem;
}
.demo-task.is-current { background: #e1f0e6; }
.task-stripe { width: .16rem; height: 1.32rem; flex: 0 0 auto; border-radius: .2rem; background: #4d9b84; }
.task-stripe.personal { background: #9777b3; }
.task-copy { display: grid; gap: .05rem; flex: 1; min-width: 0; }
.task-copy strong { font-size: .81rem; font-weight: 705; }
.task-copy small { font-size: .72rem; color: var(--muted); }
.is-done .task-copy strong { text-decoration: line-through; color: #50615a; }
.task-toggle {
  width: 1.62rem;
  height: 1.62rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  cursor: pointer;
}
.task-toggle:hover { background: #dceadf; }
.task-check { position: relative; width: .9rem; height: .9rem; border: 1.5px solid #789489; border-radius: 50%; }
.demo-task > .task-check { margin-inline: .36rem; }
.is-done .task-check { border-color: var(--green); background: var(--green); }
.is-done .task-check::after {
  content: "";
  position: absolute;
  width: .38rem;
  height: .21rem;
  top: 43%;
  left: 50%;
  border: solid #fff;
  border-width: 0 0 1.4px 1.4px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.demo-focus {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .55rem;
  padding: .56rem .64rem;
  margin-top: .62rem;
  border-radius: .54rem;
  color: #f5fffa;
  background: linear-gradient(125deg, #234942, #102824);
}
.focus-label { display: inline-flex; align-items: center; gap: .32rem; font-size: .78rem; font-weight: 660; }
.focus-label .clock-icon { color: var(--mint); }
.focus-time { margin-top: .11rem; font: 650 1.7rem/1.1 ui-monospace, monospace; letter-spacing: -.045em; }
.focus-button { display: inline-flex; align-items: center; gap: .32rem; background: var(--mint); color: var(--ink); }
.focus-button:hover { background: #e2f9ef; }
.play-icon { width: .65em; height: .72em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.is-running .play-icon { clip-path: polygon(0 0, 35% 0, 35% 100%, 65% 100%, 65% 0, 100% 0, 100% 100%, 0 100%); }
.empty-day, .demo-paused { padding: .85rem .4rem; text-align: center; color: var(--muted); border-radius: .42rem; background: #f0f3ee; font-size: .82rem; }
.demo-paused { padding: 1.25rem .5rem; display: grid; justify-items: center; gap: .5rem; }

.module-window .window-header { margin-bottom: .34rem; }
.module-row, .lead-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; border-bottom: 1px solid #e2ebe1; padding: .68rem 0; cursor: pointer; }
.module-row:last-of-type, .lead-row { border-bottom: 0; }
.module-row span { display: grid; gap: .12rem; }
.module-row strong { font-size: .86rem; }
.module-row small { color: var(--muted); font-size: .73rem; }
.module-power { padding: .46rem .52rem; border-radius: .42rem; background: #ecf4eb; border: 0; }
.module-row input {
  position: relative;
  appearance: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 1.15rem;
  margin: 0;
  border-radius: 1rem;
  background: #b2c2b8;
  cursor: pointer;
}
.module-row input::before {
  position: absolute;
  content: "";
  inset: .15rem auto auto .15rem;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.module-row input:checked { background: #247861; }
.module-row input:checked::before { transform: translateX(.85rem); }
.module-row input:disabled { cursor: default; }
.lead-row { padding-bottom: .15rem; font-size: .72rem; }
.lead-row select { max-width: 8.5rem; border: 1px solid var(--line); border-radius: .3rem; background: #f1f6f0; padding: .21rem; }

.features { padding-block: 1.95rem 4.2rem; border-top: 1px solid var(--line); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.055em; line-height: 1.07; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.55rem; }
.feature-grid article { border: 1px solid var(--line); border-radius: .85rem; padding: 1.2rem; background: #f9fbf7; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .57rem;
  background: #def0e1;
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.calendar-icon { width: .93em; height: .85em; border: 1.5px solid currentColor; border-radius: .15em; border-top-width: .3em; }
.switch-icon { width: 1.08em; height: .65em; border: 1.5px solid currentColor; border-radius: .6em; padding-left: .13em; display: flex; align-items: center; }
.switch-icon::before { content: ""; width: .31em; height: .31em; border-radius: 50%; background: currentColor; }
.feature-grid h3 { font-size: 1.14rem; letter-spacing: -.022em; }
.feature-grid p { color: var(--muted); margin-top: .38rem; line-height: 1.56; }

.install { padding-bottom: 3.4rem; }
.install-panel {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 2rem;
  align-items: center;
  border-radius: 1rem;
  padding: clamp(1.3rem, 4.4vw, 3.45rem);
  color: #f1fff7;
  background: linear-gradient(125deg, #254e42, #122923);
}
.button-light { background: var(--mint); color: var(--ink); margin-top: 1rem; }
.button-light:hover { background: #e4fbef; }
.local-note { margin-top: .76rem; max-width: 24rem; font-size: .85rem; line-height: 1.5; color: #d7eee3; }
.install-steps { margin: 0; padding: 0; display: grid; gap: .66rem; list-style: none; }
.install-steps li { display: flex; align-items: center; gap: .65rem; font-size: .96rem; line-height: 1.35; }
.install-steps span { display: grid; place-items: center; height: 1.82rem; width: 1.82rem; flex: 0 0 auto; background: #ffffff24; border-radius: .43rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner > span { color: var(--muted); font-size: .85rem; }

@media (max-width: 53rem) {
  .shell { width: calc(100% - 2.8rem); }
  .hero { padding-block: 2.7rem; }
  .desktop-inner { padding-inline: .85rem; }
}

@media (max-width: 44rem) {
  .shell { width: calc(100% - 2rem); }
  .desktop { min-height: 29rem; }
  .desktop-inner { display: grid; justify-items: center; justify-content: stretch; padding-inline: .8rem; }
  .preview-window { width: min(100%, 22rem); }
  .feature-grid { grid-template-columns: 1fr; gap: .65rem; }
  .feature-grid article { padding: .9rem; }
  .features { padding-bottom: 2.75rem; }
  .install-panel { grid-template-columns: 1fr; gap: 1.35rem; }
  .install { padding-bottom: 2.65rem; }
}

@media (max-width: 31rem) {
  .header-inner { min-height: 4rem; }
  .header-inner nav { display: none; }
  .hero { padding-block: 2.45rem; }
  .hero-copy { padding-bottom: 1.65rem; }
  .hero h1 { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  .desktop { border-radius: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-row input::before { transition: none; }
}
