/* Stepwood: the marketing site. One file, no build step. */

:root {
  --cream: #FBF8F2;
  --surface: #F1EEE5;
  --ink: #1F2A24;
  --body: #55615A;
  --forest: #2F5D46;
  --deep: #143524;
  --moss: #4F8A5B;
  --mint: #E4EDE0;
  --line: #E3DED2;
  --sun: #FFE9A0;
  --radius: 26px;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--forest); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 78px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid #7CC4F2; outline-offset: 3px; border-radius: 8px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 20px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--deep), 0 14px 26px rgba(20, 53, 36, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--deep), 0 18px 30px rgba(20, 53, 36, 0.26); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--deep), 0 6px 12px rgba(20, 53, 36, 0.2); }
.btn-small { min-height: 42px; padding: 0 18px; border-radius: 15px; font-size: 15px; box-shadow: 0 3px 0 var(--deep); }
.btn-small:hover { box-shadow: 0 5px 0 var(--deep); }
.btn-light { background: var(--cream); color: var(--deep); box-shadow: 0 5px 0 #C9C2B1, 0 14px 26px rgba(0, 0, 0, 0.25); }
.btn-light:hover { box-shadow: 0 7px 0 #C9C2B1, 0 18px 30px rgba(0, 0, 0, 0.28); }
.link-arrow { font-weight: 700; color: var(--deep); text-decoration: none; padding: 14px 4px; }
.link-arrow::after { content: ' →'; display: inline-block; transition: transform 0.2s ease; margin-left: 4px; }
.link-arrow:hover::after { transform: translateX(4px); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); margin-bottom: 12px; }

/* ---------------------------------------------------------------- Nav */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), var(--wrap));
  height: 60px;
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(31, 60, 44, 0.12);
  z-index: 50;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled { background: rgba(251, 248, 242, 0.95); box-shadow: 0 10px 30px rgba(31, 60, 44, 0.18); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--deep); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 8px 12px; border-radius: 12px; color: var(--forest); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav nav a:hover { background: var(--mint); }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: #6CCAD8;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Morning mist behind the words, so they stay easy to read over the trees */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 34% at 50% 44%, rgba(226, 246, 238, 0.86) 0%, rgba(226, 246, 238, 0.5) 55%, rgba(226, 246, 238, 0) 100%); }
.hero-copy, .scroll-cue { z-index: 2; }
.hero-copy {
  position: relative;
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: clamp(96px, 15vh, 150px) var(--pad) 0;
  text-align: center;
}
.hero-copy h1 { color: var(--deep); text-wrap: balance; }
.hero-copy .eyebrow { color: #1F5A4A; }
.lede { margin: 18px auto 0; max-width: 30em; font-size: clamp(17px, 2.1vw, 20px); color: #24483A; font-weight: 500; text-wrap: pretty; }
.cta-row { margin-top: 26px; display: flex; gap: 10px 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; font-weight: 500; color: #2F5D46; opacity: 0.9; }
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, rgba(222, 244, 238, 0.9) 0%, rgba(222, 244, 238, 0.74) 30%, rgba(222, 244, 238, 0) 56%); }
  .hero { align-items: center; }
  .hero-copy { text-align: left; padding-top: 60px; padding-bottom: 60px; }
  .hero-copy > * { max-width: 560px; }
  .lede { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
}
@media (max-width: 899px) {
  .hero-note, .hero .link-arrow { display: none; }
  .lede { max-width: 21em; }
  .hero-copy { padding-top: clamp(92px, 13vh, 130px); }
}
@media (max-width: 899px) and (max-height: 700px) {
  .hero-copy { padding-top: 84px; }
  .lede { display: none; }
}
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 30px; height: 46px; margin-left: -15px; border: 2.5px solid rgba(255, 255, 255, 0.85); border-radius: 16px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 5px; height: 9px; margin-left: -2.5px; border-radius: 3px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (max-width: 899px) { .scroll-cue { display: none; } }

/* ---------------------------------------------------------------- Facts */

.facts {
  position: relative;
  width: min(calc(100% - 2 * var(--pad)), var(--wrap));
  margin: -44px auto 0;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 50, 35, 0.16);
  z-index: 2;
}
.fact { text-align: center; padding: 8px 6px; }
.fact strong { display: block; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; color: var(--deep); letter-spacing: -0.02em; }
.fact span { color: var(--body); font-size: 14.5px; }
.fact strong span { color: inherit; font-size: inherit; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); margin-top: -30px; } }

/* ---------------------------------------------------------------- Sections */

.section { padding: clamp(72px, 11vw, 132px) var(--pad); }
.section, .closing { scroll-margin-top: 70px; }
.section > * { width: min(100%, var(--wrap)); margin-left: auto; margin-right: auto; }
.section-tint { background: linear-gradient(180deg, #EEF5E6 0%, #F6F7EC 100%); }
.section-deep { background: radial-gradient(120% 90% at 78% 20%, #24573C 0%, var(--deep) 62%); color: #DCEBDD; }
.section-deep h2 { color: #fff; }
.section-deep .eyebrow { color: #9BD3A0; }
.section-head { text-align: center; max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--body); font-size: 18.5px; text-wrap: pretty; }
.section-head h2 { text-wrap: balance; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px 26px 30px; box-shadow: 0 10px 30px rgba(20, 50, 35, 0.08); }
.step h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.step p { color: var(--body); }
.num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 15px; background: var(--mint); color: var(--forest); font-size: 15px; font-weight: 800; }
.step-art { height: 190px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #D8F1EC 0%, #EAF6DF 100%); overflow: hidden; }
.step-art { padding: 0; }
.step-art canvas { width: 100%; height: 100%; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step-art { height: 170px; } }

.ring { stroke-dashoffset: 339.3; }
.in .ring { animation: ring 4.2s cubic-bezier(0.3, 0.7, 0.2, 1) infinite; }
@keyframes ring { 0% { stroke-dashoffset: 339.3; } 62%, 88% { stroke-dashoffset: 34; } 100% { stroke-dashoffset: 339.3; } }
.foot { transform-box: fill-box; transform-origin: center; }
.in .foot-a { animation: tread 0.9s ease-in-out infinite; }
.in .foot-b { animation: tread 0.9s ease-in-out 0.45s infinite; }
@keyframes tread { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-9px); opacity: 0.55; } }
.drip { opacity: 0; }
.in .drip { animation: drip 1.5s ease-in infinite; }
.in .d2 { animation-delay: 0.3s; }
.in .d3 { animation-delay: 0.6s; }
.in .d4 { animation-delay: 0.9s; }
.in .d5 { animation-delay: 1.2s; }
@keyframes drip { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }
.pop > g { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
.in .pop > g { animation: pop 4.6s cubic-bezier(0.3, 1.5, 0.5, 1) infinite; }
.in .p2 > g { animation-delay: 0.35s; }
.in .p3 > g { animation-delay: 0.7s; }
@keyframes pop { 0% { transform: scale(0); } 14% { transform: scale(0.5); } 20%, 86% { transform: scale(var(--s, 1)); } 96%, 100% { transform: scale(0); } }
.p1 > g { --s: 0.5; }
.p2 > g { --s: 0.62; }
.p3 > g { --s: 0.44; }

/* Forests */
.forests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.forest-card { margin: 0; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 16px 44px rgba(20, 50, 35, 0.14); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.forest-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(20, 50, 35, 0.2); }
.forest-card canvas { width: 100%; aspect-ratio: 600 / 440; }
.forest-card figcaption { padding: 24px 26px 28px; }
.forest-card h3 { font-size: 25px; font-weight: 800; }
.forest-card p { margin-top: 8px; color: var(--body); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 6px 12px; border-radius: 12px; background: var(--mint); color: var(--forest); font-size: 13.5px; font-weight: 600; }
@media (max-width: 860px) { .forests { grid-template-columns: 1fr; } }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split-copy h2 { text-wrap: balance; }
.split-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 18.5px; color: var(--body); text-wrap: pretty; }
.section-deep .split-copy > p:not(.eyebrow) { color: #C9DECC; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-flip .seedling { order: -1; } }

.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 12px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5D46' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.500 12.500l3.500 3.500 7.500-8'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ticks-light li { color: #EAF4EA; }
.ticks-light li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6E895' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.500 12.500l3.500 3.500 7.500-8'/%3E%3C/svg%3E"); }

.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cast-card { position: relative; border-radius: 26px; padding: 18px 14px 46px; background: linear-gradient(180deg, #D5F0EC 0%, #E8F6DC 62%, #BDE39A 62.2%, #A9DA86 100%); overflow: hidden; }
.cast-card canvas { width: 100%; height: 150px; }
.cast-card span { position: absolute; left: 12px; bottom: 11px; padding: 5px 12px; border-radius: 11px; background: rgba(251, 248, 242, 0.92); font-size: 13.5px; font-weight: 700; color: var(--forest); }
.cast-heart { grid-row: span 2; display: flex; align-items: flex-end; }
.cast-heart canvas { height: 300px; }
.cast-wide { grid-column: span 2; }
.cast-wide canvas { height: 130px; }
@media (max-width: 480px) { .cast-heart canvas { height: 250px; } .cast-card canvas { height: 120px; } }

.seedling svg { width: min(100%, 420px); margin: 0 auto; }
.sprout { transform-box: fill-box; transform-origin: 50% 100%; }
.in .sprout { animation: sprout 1.4s cubic-bezier(0.3, 1.4, 0.5, 1) both, breeze 5s ease-in-out 1.4s infinite; }
@keyframes sprout { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes breeze { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
.mote { animation: mote 6s ease-in-out infinite; }
.m2 { animation-delay: 1.4s; } .m3 { animation-delay: 2.7s; } .m4 { animation-delay: 4s; }
@keyframes mote { 0%, 100% { transform: translateY(0); opacity: 0.2; } 50% { transform: translateY(-22px); opacity: 0.95; } }

/* Calm */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(20, 50, 35, 0.08); }
.feature p { margin-top: 8px; color: var(--body); }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; align-items: stretch; }
.plan { position: relative; padding: 32px 30px 34px; border-radius: 30px; background: #fff; box-shadow: 0 12px 34px rgba(20, 50, 35, 0.1); }
.plan h3 { font-size: 22px; }
.price { margin-top: 10px; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.price span { font-size: 17px; font-weight: 600; color: var(--body); letter-spacing: 0; }
.price-sub { color: var(--body); font-weight: 500; }
.plan-plus { background: var(--deep); color: #E3EFE3; box-shadow: 0 24px 54px rgba(20, 53, 36, 0.34); }
.plan-plus h3, .plan-plus .price { color: #fff; }
.plan-plus .price span, .plan-plus .price-sub { color: #B9D3BC; }
.plan-plus .ticks li::before { background-color: rgba(255, 255, 255, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B6E895' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.500 12.500l3.500 3.500 7.500-8'/%3E%3C/svg%3E"); }
.badge { position: absolute; top: -14px; right: 24px; padding: 6px 14px; border-radius: 14px; background: var(--sun); color: #5A4300; font-size: 13.5px; font-weight: 800; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }
.fine { margin-top: 20px; font-size: 13.5px; color: var(--body); }
.plan-plus .fine { color: #A9C6AD; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 480px); } }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: 0 6px 20px rgba(20, 50, 35, 0.07); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 3px solid var(--forest); border-bottom: 3px solid var(--forest); transform: rotate(45deg); transition: transform 0.25s ease, margin 0.25s ease; border-radius: 2px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 24px 22px; color: var(--body); }

/* Closing */
.closing { position: relative; padding: clamp(60px, 9vw, 110px) var(--pad) clamp(70px, 9vw, 110px); text-align: center; background: radial-gradient(110% 100% at 50% 0%, #2B6646 0%, var(--deep) 66%); color: #D6E8D8; overflow: hidden; }
.closing h2 { color: #fff; text-wrap: balance; }
.closing p { margin: 14px 0 28px; font-size: 18.5px; }
.closing-maple { width: 190px; height: 205px; margin: 0 auto 8px; }

/* Footer */
.footer { padding: 36px var(--pad) 44px; background: #0F2A1C; color: #A9C6AD; display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand img { border-radius: 9px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer a { color: #DCEBDD; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer .fine { margin: 0; color: #7FA088; max-width: 44em; }

/* ---------------------------------------------------------------- Reveal on scroll */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .forests .reveal:nth-child(2), .grid3 .reveal:nth-child(2), .plans .reveal:nth-child(2), .facts .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3), .grid3 .reveal:nth-child(3), .facts .reveal:nth-child(3) { transition-delay: 0.2s; }
.facts .reveal:nth-child(4) { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .pop > g { transform: scale(var(--s, 1)); }
  .ring { stroke-dashoffset: 34; }
  .drip { opacity: 1; }
}

/* ---------------------------------------------------------------- Text pages (privacy, terms, support) */

.page { background: var(--cream); }
.page-head { padding: 120px var(--pad) 40px; background: linear-gradient(180deg, #D8F1EC 0%, #EEF5E6 100%); }
.page-head > * { width: min(100%, 760px); margin: 0 auto; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); }
.page-head p { margin-top: 12px; color: var(--body); }
.prose { width: min(100%, 760px); margin: 0 auto; padding: 44px var(--pad) 90px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: #3C4A42; }
.prose p { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; display: grid; gap: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; }
.card-note { padding: 18px 20px; border-radius: 18px; background: var(--mint); color: var(--deep); font-weight: 500; margin: 0 0 22px; }
