:root {
  color-scheme: light;
  --paper: #f7faf6;
  --white: #ffffff;
  --ink: #173b35;
  --body: #486058;
  --mint: #d9f5e6;
  --mint-deep: #b9e5ca;
  --forest: #235445;
  --sun: #f9e48f;
  --line: #dce8df;
  --type: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --page: min(1160px, 100% - 64px);
  font-family: var(--type);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
p { color: var(--body); line-height: 1.65; }
:focus-visible { outline: 3px solid #306e52; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }

.container { width: var(--page); margin-inline: auto; }
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 1;
  background: var(--ink); color: var(--white); border-radius: 10px; padding: 10px 16px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1.28rem; font-weight: 800; letter-spacing: -.045em; }
.brand-mark {
  width: 34px; height: 34px; display: inline-block; flex: none; position: relative; isolation: isolate;
  background: var(--mint); border-radius: 11px;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 7px 7px 7px; background: var(--ink);
  clip-path: polygon(4% 1%, 33% 20%, 64% 20%, 95% 1%, 100% 55%, 95% 78%, 77% 96%, 24% 96%, 7% 78%, 0% 51%);
}
.brand-mark::after {
  content: ""; position: absolute; left: 14px; top: 19px; width: 6px; height: 4px;
  border-radius: 50%; background: var(--sun);
}
nav { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; }
nav a { color: var(--body); font-size: .94rem; text-decoration: none; font-weight: 650; }
nav a:hover, nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 7vw, 94px); padding-block: 76px 88px; }
.intro-label { margin-bottom: 14px; font-weight: 700; font-size: .875rem; color: var(--forest); letter-spacing: .095em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.9rem, 5.3vw, 5rem); line-height: 1.01; font-weight: 750; letter-spacing: -.057em; }
.hero h1 span { color: #316b52; }
.hero-summary { max-width: 39ch; font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 23px; }
.actions { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-top: 27px; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px;
  border-radius: 13px; font-size: .94rem; font-weight: 750; text-decoration: none;
}
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--forest); }
.button-text { padding-inline: 6px; text-decoration: underline; text-underline-offset: 4px; }
.button-text:hover, .inline-link:hover { color: #316b52; }
.store-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.store-links a, .inline-link { font-weight: 700; text-underline-offset: 4px; }

.cat-stage {
  width: 100%; min-width: 0; min-height: min(35vw, 360px); aspect-ratio: 1.07;
  border-radius: clamp(28px, 5vw, 52px);
  background: radial-gradient(circle at 78% 18%, #edf9d8 0, #d9f5e6 49%, #c4ead7 100%);
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
}
.stage-orbit {
  position: absolute; width: 70%; aspect-ratio: 1; background: #f5fbdf;
  opacity: .67; border-radius: 50%; top: 9%; left: 15%;
}
.stage-orbit::after {
  content: ""; position: absolute; inset: -10%; border-radius: 50%;
  border: 1px solid rgba(57, 99, 71, .16);
}
.garden-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.mascot-art {
  z-index: 1; position: absolute; width: 88%; height: 88%;
  left: 6%; top: 0; object-fit: contain; object-position: center;
}
.cat-stage.rive-ready img.mascot-art { display: none; }
.mascot-play {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  white-space: nowrap; cursor: pointer; color: var(--ink); font-size: .9rem; font-weight: 750;
  min-height: 44px; padding: 7px 16px; border: 1px solid #abd4b3; border-radius: 25px; background: #f7faec;
}
.mascot-play:disabled { display: none; }
.mascot-play:hover { background: var(--sun); }
.rhythm-section { background: #173b35; color: var(--paper); }
.rhythm-layout { padding-block: 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: clamp(34px, 8vw, 100px); align-items: center; }
.rhythm-copy h2, .features-copy h2 { font-size: clamp(2.18rem, 4.35vw, 4.1rem); line-height: 1.03; font-weight: 750; letter-spacing: -.048em; max-width: 13ch; }
.rhythm-list { list-style: none; margin: 28px 0 0; padding: 0; }
.rhythm-list li { display: grid; gap: 3px; padding: 13px 0 14px; border-bottom: 1px solid #487065; line-height: 1.45; }
.rhythm-list li:last-child { border-bottom: 0; }
.rhythm-list strong { color: #eff9ed; font-size: 1.05rem; }
.rhythm-list span { color: #c1d7ce; }

.sample-card {
  width: 100%; padding: clamp(18px, 3.3vw, 32px); border-radius: 25px;
  background: #f7faf6; color: var(--ink); box-shadow: 0 16px 42px rgba(11, 32, 27, .36);
}
.sample-top { display: flex; gap: 10px; align-items: flex-end; justify-content: space-between; }
.sample-label { font-size: .9rem; font-weight: 650; }
.sample-top h3 { margin-top: 3px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; font-weight: 750; letter-spacing: -.055em; }
.sample-count { font-size: .88rem; font-weight: 740; white-space: nowrap; padding: 5px 9px; border-radius: 8px; color: var(--ink); background: var(--mint); }
.sample-progress {
  display: block; appearance: none; width: 100%; margin: 23px 0 17px;
  height: 7px; border: 0; border-radius: 999px; background: #dbeadf; color: #4b9271;
}
.sample-progress::-webkit-progress-bar { background: #dbeadf; border-radius: 999px; }
.sample-progress::-webkit-progress-value { background: #4b9271; border-radius: 999px; transition: width 160ms ease; }
.sample-progress::-moz-progress-bar { background: #4b9271; border-radius: 999px; }
.sample-list { display: grid; gap: 8px; }
.habit-sample {
  min-height: 57px; display: grid; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 11px;
  padding: 8px 10px; text-align: left; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
}
.habit-sample:hover { border-color: #8cbaa6; }
.habit-sample[aria-pressed="true"] { background: #e9f7ed; }
.habit-icon { display: grid; place-items: center; min-height: 35px; font-size: 1.07rem; border-radius: 8px; }
.habit-water { background: #dbf1f5; }
.habit-read { background: #ece9fa; }
.habit-outside { background: #eff3d7; }
.habit-name { font-size: 1rem; font-weight: 650; }
.habit-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #659482; display: grid; place-items: center; }
.habit-sample[aria-pressed="true"] .habit-check { background: var(--forest); border-color: var(--forest); }
.habit-sample[aria-pressed="true"] .habit-check::after { content: ""; width: 8px; height: 5px; transform: rotate(-45deg); border: solid white; border-width: 0 0 2px 2px; margin-bottom: 2px; }
.sample-hint { font-size: .85rem; margin-top: 10px; }

.features-layout { padding-block: 76px 87px; display: grid; gap: clamp(34px, 7vw, 110px); }
.features-layout.with-screen { grid-template-columns: 1fr minmax(240px, .6fr); align-items: center; }
.features-copy h2 { max-width: 15ch; }
.feature-set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4.5vw, 60px); margin-top: 30px; }
.with-screen .feature-set { grid-template-columns: 1fr; gap: 19px; }
.feature-set article { border-top: 1px solid var(--line); padding-top: 14px; }
.feature-set h3 { font-size: 1.12rem; letter-spacing: -.025em; margin-bottom: 5px; }
.feature-set p { max-width: 35ch; }
.inline-link { display: inline-block; margin-top: 8px; font-size: .94rem; }
.phone-stage {
  display: grid; gap: 8px; place-items: center; background: var(--mint); border-radius: 32px;
  padding: clamp(13px, 2.5vw, 24px);
}
.phone-stage img { width: min(100%, 285px); height: auto; max-height: 560px; object-fit: contain; border-radius: 15px; }
.phone-stage figcaption { color: var(--body); font-size: .88rem; font-weight: 650; }
.site-footer { background: #e9f4ec; border-top: 1px solid var(--line); }

.document { padding-block: clamp(42px, 8vw, 90px); }
.document-header { max-width: 740px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.document-header h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.075em; }
.document-header p { font-size: 1.1rem; margin-top: 14px; max-width: 62ch; }
.document-header .document-date { font-weight: 740; font-size: .93rem; }
.document-body { max-width: 740px; display: grid; gap: 25px; margin-top: 28px; }
.document-body h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); line-height: 1.16; letter-spacing: -.039em; }
.document-body p { margin-top: 9px; }
.document-body p a { color: var(--forest); font-weight: 670; text-underline-offset: 3px; }
.document-body p a:hover { color: var(--ink); }
.document-body p a.button-primary { color: var(--white); }
.faq { display: grid; gap: 11px; }
details { padding: 13px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
summary { cursor: pointer; color: var(--ink); font-weight: 700; line-height: 1.38; }
.contact-box { background: var(--mint); padding: clamp(15px, 4vw, 25px); border-radius: 17px; }

@media (max-width: 790px) {
  :root { --page: min(580px, 100% - 44px); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 50px 57px; }
  .hero h1 { font-size: clamp(3.1rem, 10.5vw, 5.1rem); }
  .cat-stage { min-height: 0; max-height: 475px; }
  .rhythm-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  .features-layout, .features-layout.with-screen { grid-template-columns: 1fr; padding-block: 50px; }
}
@media (max-width: 470px) {
  :root { --page: calc(100% - 32px); }
  .header-inner, .footer-inner { gap: 8px; min-height: 64px; }
  .wordmark { gap: 7px; font-size: 1.13rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark::after { left: 12px; top: 17px; }
  nav { gap: 12px; }
  nav a { font-size: .875rem; }
  .hero { padding-top: 38px; }
  .hero-summary { margin-top: 17px; }
  .hero h1 { font-size: clamp(2.45rem, 10.5vw, 4.7rem); }
  .actions { margin-top: 19px; }
  .sample-top h3 { font-size: 2.06rem; }
  .feature-set { grid-template-columns: 1fr; gap: 17px; }
}
@media (max-width: 335px) {
  .site-header nav { gap: 8px; }
  .site-header .brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sample-progress::-webkit-progress-value { transition: none; }
}
