:root {
  color-scheme: light;
  --ink: #182430;
  --muted: #596774;
  --paper: #f6f4ee;
  --surface: #ffffff;
  --line: #d9d5ca;
  --teal: #1f8a70;
  --deep-teal: #113c43;
  --coral: #d95f59;
  --blue: #315f7d;
  --yellow: #f3c74f;
  --shadow: 0 24px 80px rgba(24, 36, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir Next, Avenir, Trebuchet MS, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(246, 244, 238, 0.92);
  border-bottom: 1px solid rgba(217, 213, 202, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--deep-teal);
  color: white;
  font-size: 13px;
}

nav {
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 148px 28px 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(246, 244, 238, 0.96), rgba(246, 244, 238, 0.78) 52%, rgba(246, 244, 238, 0.28)),
    radial-gradient(circle at 80% 10%, rgba(243, 199, 79, 0.22), transparent 34%),
    var(--paper);
}

.routine-scene {
  position: absolute;
  inset: 82px 42px auto auto;
  min-width: 0;
  width: min(760px, 64vw);
  height: 560px;
  transform: rotate(-4deg);
  pointer-events: none;
}

.portal-frame {
  height: 100%;
  overflow: hidden;
  padding: 26px;
  background: #102c32;
  border: 12px solid #0b2024;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  color: white;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 18px;
}

.kid-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: calc(100% - 54px);
}

.kid-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  background: #fbfaf7;
  border-radius: 8px;
}

.kid-name {
  font-size: 28px;
  font-weight: 900;
}

.kid-a .kid-name {
  color: var(--teal);
}

.kid-b .kid-name {
  color: var(--coral);
}

.task {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 86px;
  padding: 10px 14px;
  border: 2px solid #d7d9d6;
  border-radius: 8px;
  background: white;
  font-size: 20px;
}

.task span {
  font-size: 34px;
  text-align: center;
}

.task strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.task.done {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.hero-copy,
.download-panel,
.plain-section,
.note-section {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
  margin-left: max(28px, calc((100vw - 1120px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, Charter, Cambria, serif;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 700;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, Charter, Cambria, serif;
  font-size: 40px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lede {
  max-width: 620px;
  color: #2f3a43;
  font-size: 21px;
}

.small-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--deep-teal);
  color: white;
}

.button.primary:hover {
  background: #0d3036;
}

.button.secondary {
  border: 2px solid var(--deep-teal);
  color: var(--deep-teal);
}

.button.secondary:hover {
  background: rgba(17, 60, 67, 0.08);
}

.download-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  padding: 58px 28px;
}

.download-panel > div > p,
.plain-section > p {
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.steps p,
.feature-grid p,
.note-section li {
  color: var(--muted);
}

.plain-section,
.note-section {
  padding: 58px 28px;
}

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

.feature-grid article {
  min-height: 190px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.note-section {
  border-top: 1px solid var(--line);
}

.note-section ul {
  max-width: 820px;
  margin: 0 0 24px;
  padding-left: 22px;
}

.note-section li + li {
  margin-top: 10px;
}

.text-link {
  color: var(--deep-teal);
  font-weight: 800;
}

@media (min-width: 1281px) and (max-width: 1920px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(560px, 760px);
    gap: clamp(34px, 3vw, 48px);
    justify-content: center;
    align-items: center;
    min-height: 700px;
    padding: 122px 28px 58px;
    background:
      radial-gradient(circle at 82% 12%, rgba(243, 199, 79, 0.16), transparent 32%),
      var(--paper);
  }

  .routine-scene {
    position: relative;
    inset: auto;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: clamp(500px, 29vw, 540px);
    transform: rotate(-3deg);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
}

@media (max-width: 1280px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(420px, 650px);
    gap: 36px;
    justify-content: center;
    align-items: center;
    min-height: 660px;
    padding: 122px 28px 58px;
    background:
      radial-gradient(circle at 82% 12%, rgba(243, 199, 79, 0.16), transparent 32%),
      var(--paper);
  }

  .routine-scene {
    position: relative;
    inset: auto;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 470px;
    transform: rotate(-3deg);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  h1 {
    font-size: 66px;
  }

  .lede {
    font-size: 20px;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 136px 28px 52px;
    background:
      radial-gradient(circle at 78% 48%, rgba(243, 199, 79, 0.14), transparent 34%),
      var(--paper);
  }

  .routine-scene {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 700px);
    height: 390px;
    margin: 28px auto 0;
    opacity: 1;
    transform: rotate(-2deg);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    margin: 0 auto;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 34px;
  }

  .download-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  nav {
    width: calc(100vw - 40px);
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 42px 20px 46px;
    max-width: 100vw;
  }

  .routine-scene {
    width: calc(100vw - 72px);
    max-width: 360px;
    height: 326px;
    margin: 26px auto 0;
    opacity: 1;
    transform: rotate(-1deg);
  }

  .hero-copy {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    min-width: 0;
    margin: 0;
  }

  .portal-frame {
    padding: 18px;
    border-width: 8px;
    border-radius: 24px;
  }

  .portal-topbar {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .kid-board {
    grid-template-columns: 1fr;
    height: calc(100% - 42px);
  }

  .kid-column.kid-b {
    display: none;
  }

  .kid-column {
    padding: 16px;
  }

  .kid-column .task:last-child {
    display: none;
  }

  .kid-name {
    font-size: 30px;
    line-height: 1.05;
  }

  .task {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 14px;
    font-size: 20px;
    min-width: 0;
  }

  .task strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .task span {
    font-size: 30px;
  }

  h1 {
    font-size: 44px;
  }

  .eyebrow {
    font-size: 13px;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 31px;
    overflow-wrap: break-word;
  }

  .lede {
    max-width: calc(100vw - 40px);
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .button {
    justify-content: center;
  }

  .download-panel,
  .plain-section,
  .note-section {
    max-width: 100vw;
    overflow: hidden;
    padding: 44px 20px;
  }
}

@media (max-width: 360px) {
  .routine-scene {
    width: 100%;
    height: 304px;
  }

  .portal-frame {
    padding: 14px;
  }

  .portal-topbar {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .kid-column {
    gap: 10px;
    padding: 14px;
  }

  .kid-name {
    font-size: 27px;
  }

  .task {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 64px;
    padding: 8px 12px;
    font-size: 18px;
  }

  .task span {
    font-size: 26px;
  }
}
