@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --forest: #0f3d2b; --green: #2f9e5e; --green-dark: #23804b; --leaf: #bfe6cd; --mint: #eaf7ef;
  --ink: #23332b; --muted: #5d7266; --line: #d3e9db; --bad: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.6 "Montserrat", system-ui, sans-serif; }
a { color: var(--green-dark); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.logo img { width: 38px; height: 38px; }
.logo b { display: block; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.logo small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.top .free { font-size: 14px; font-weight: 600; color: var(--green-dark); white-space: nowrap; }

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: 'intro card' 'inside card'; gap: 0 64px; align-items: start; padding-top: 34px; }
.intro { grid-area: intro; } .card { grid-area: card; }
h1 { margin: 0; color: var(--forest); font-weight: 700; font-size: clamp(44px, 7.4vw, 92px); line-height: 0.96; letter-spacing: -0.055em; }
.sub { margin: 28px 0 0; max-width: 31em; font-size: 19px; line-height: 1.55; }
.mike { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.mike img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

.stage { background: linear-gradient(#fff 0, #fff 38%, var(--mint) 38%); margin-top: 40px; padding-bottom: 40px; }
.day { width: 100%; height: auto; }
.day .ticks text { font: 600 15px "Montserrat", sans-serif; fill: #557061; }
.key { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 18px 0 0; font-size: 14px; color: var(--forest); }
.key span { display: inline-flex; align-items: center; gap: 9px; }
.key i { width: 14px; height: 14px; border-radius: 4px; }
.key i.line { width: 22px; height: 3px; border-radius: 2px; background: var(--forest); }
.key .note { color: var(--muted); }

/* the one moment: the day draws itself */
@media (prefers-reduced-motion: no-preference) {
  .day .sun { clip-path: inset(0 100% 0 0); animation: rise 1.8s cubic-bezier(.4, 0, .2, 1) .25s forwards; }
  .day .use { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.1s cubic-bezier(.4, 0, .2, 1) .35s forwards; }
}
@keyframes rise { to { clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* form */
.card { position: relative; z-index: 2; background: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 1px 0 var(--line), 0 24px 60px -24px rgba(15, 61, 43, .35); }
.card h2 { margin: 0; color: var(--forest); font-size: 25px; letter-spacing: -0.03em; }
.card .lead { margin: 4px 0 22px; color: var(--muted); font-size: 15px; }
label { display: block; margin: 0 0 6px; color: var(--forest); font-size: 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
.field { margin-bottom: 15px; }
input[type=text], input[type=email] { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fbfdfc; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s; }
input[type=text]:focus, input[type=email]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--mint); }
fieldset { margin: 0 0 16px; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; color: var(--forest); font-size: 14px; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0; font-weight: 400; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 9px 16px; font-size: 14.5px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.choice input:checked + span { color: #fff; background: var(--forest); border-color: var(--forest); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--leaf); }
.tick { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 6px 0 20px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink); cursor: pointer; }
.tick input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
button { width: 100%; padding: 17px; font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--green); border: 0; border-radius: 14px; cursor: pointer; transition: background .15s, transform .15s; }
button:hover { background: var(--green-dark); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
button[disabled] { opacity: .6; cursor: progress; }
.fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.error { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* inside */
.inside { grid-area: inside; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; }
.inside h2 { margin: 0 0 14px; color: var(--forest); font-size: 17px; letter-spacing: -0.01em; }
.inside ul { list-style: none; margin: 0; padding: 0; }
.inside li { position: relative; padding: 0 0 10px 22px; font-size: 15.5px; line-height: 1.5; }
.inside li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

footer { padding: 34px 0 48px; font-size: 13px; line-height: 1.65; color: var(--muted); }
footer p { margin: 0 0 4px; max-width: 80ch; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }

/* simple pages */
.doc { max-width: 720px; margin: 0 auto; padding: 16px 24px 64px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 18px; }
.doc h2 { margin: 32px 0 8px; color: var(--forest); font-size: 21px; letter-spacing: -0.015em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc td, .doc th { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.doc th { color: var(--forest); font-size: 14px; }
.big-btn { display: inline-block; margin: 14px 0 22px; padding: 17px 28px; font-weight: 700; color: #fff; text-decoration: none; background: var(--green); border-radius: 14px; }
.big-btn:hover { background: var(--green-dark); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: 'intro' 'card' 'inside'; gap: 28px; padding-top: 8px; }
  .inside { margin-top: 8px; }
  .card { padding: 24px 20px; }
  .stage { margin-top: 28px; padding-top: 24px; background: var(--mint); }
  .sub { font-size: 17px; margin-top: 20px; }
  .day .ticks text { font-size: 38px; }
  .stage { padding-bottom: 28px; }
}
input[aria-invalid=true] { border-color: var(--bad); }
