/* Plants Won't Freeze — site styles. Colours and type follow docs/style-guide.md (Palette, roundFont/textFont). */
:root {
  --page: #FBF6EA;
  --surface: #FFFFFF;
  --ink: #2A2833;
  --mute: #5E5A66;
  --tan: #7C6D58;
  --faint: #726D7B;
  --border: #E6DCC6;
  --hairline: #EFE5CF;
  --chip: #F1E8D4;
  --jacket: #3E7C5B;
  --jacket-deep: #2F6247;
  --on-jacket: #FFFFFF;
  --frost: #BA4E2C;
  --calm: #2F7A4B;
  --watch: #9A6112;
  --beanie: #D5482F;
  --night: #1B2A55;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #16151B;
    --surface: #221F28;
    --ink: #F3EEE3;
    --mute: #B9B2A6;
    --tan: #B0A186;
    --faint: #9A94A3;
    --border: #3A3642;
    --hairline: #302D37;
    --chip: #2B2831;
    --jacket: #6FB08A;
    --jacket-deep: #4A8466;
    --on-jacket: #0E1C14;
    --frost: #F08A64;
    --calm: #7CC593;
    --watch: #E7AE4F;
    --beanie: #F07A62;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--jacket); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--jacket-deep); }
:focus-visible { outline: 3px solid var(--jacket); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- type ---------- */
h1, h2, h3, .round { font-family: var(--round); letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.6vw, 54px); line-height: 1.08; font-weight: 800; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.8vw, 38px); line-height: 1.15; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--mute); font-weight: 500; }
.mute { color: var(--mute); }
.label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tan);
  margin: 0 0 10px;
}
.fine { font-size: 13px; color: var(--mute); }

/* ---------- header ---------- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--round); font-weight: 800; font-size: 19px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--mute); text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 16px; }
.top nav a:hover { color: var(--jacket); }
@media (max-width: 640px) { .top nav { display: none; } }

/* ---------- boxes (the app's .box(): surface, 2pt border, 18pt corners) ---------- */
.box { background: var(--surface); border: 2px solid var(--border); border-radius: 18px; padding: 14px 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: 18px; background: var(--jacket); color: var(--on-jacket); font-family: var(--round); font-weight: 700;
  font-size: 19px; text-decoration: none; box-shadow: 0 5px 0 var(--jacket-deep); border: 0;
}
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
@media (max-width: 420px) { .btn { font-size: 17px; padding: 0 18px; gap: 8px; white-space: nowrap; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.cta .fine { max-width: 260px; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* The phone card: the Tonight screen's header scene over the cream sheet */
.phone {
  max-width: 390px; width: 100%; margin: 0 auto; border-radius: 40px; overflow: hidden; background: var(--page);
  border: 2px solid var(--border); box-shadow: 0 30px 60px -30px rgba(27, 42, 85, 0.45);
}
.phone .sheet { background: var(--page); border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; padding: 22px 20px 22px; }
.verdict { display: flex; align-items: center; gap: 10px; color: var(--frost); font-family: var(--round); font-weight: 800; font-size: 28px; line-height: 1.1; margin: 4px 0 14px; }
.verdict svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; }
.numbers > div { text-align: center; padding: 6px 4px; }
.numbers > div + div { border-left: 2px solid var(--border); }
.numbers .label { margin-bottom: 2px; }
.num { font-family: var(--round); font-weight: 800; font-size: 44px; line-height: 1.05; }
.num.garden { color: var(--frost); }
.num.forecast { color: var(--faint); }
.action { margin-top: 12px; font-size: 15px; }

/* ---------- scenes ---------- */
.scene { position: relative; width: 100%; overflow: hidden; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art { border-radius: 28px; overflow: hidden; border: 2px solid var(--border); }
@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before, .scene *::after { animation: none !important; }
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
section.alt .box { background: var(--page); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* Temperature tiles: centered, same height (AGENTS.md) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 18px; }
.tile { text-align: center; display: flex; flex-direction: column; justify-content: center; padding: 16px 12px; }
.tile .label { margin-bottom: 4px; }

/* Notifications */
.notes { display: grid; gap: 10px; }
.note { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.note img { width: 40px; height: 40px; border-radius: 10px; }
.note .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.note .meta b { color: var(--ink); font-weight: 600; }
.note p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }

/* Plant groups */
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; margin-top: 26px; }
.tier { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.tier img { width: 56px; height: 56px; }
.tier h3 { font-size: 18px; margin: 0; }
.tier p { margin: 2px 0 0; font-size: 14px; color: var(--mute); line-height: 1.4; }
.tier .at { font-family: var(--round); font-weight: 700; color: var(--ink); font-size: 14px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 22px 22px 18px; }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.badge { font-family: var(--round); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--jacket); color: var(--on-jacket); border-radius: 999px; padding: 3px 10px; }
.price { font-family: var(--round); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.plan li svg { width: 20px; height: 20px; margin-top: 1px; fill: var(--jacket); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { padding: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px; min-height: 44px; font-family: var(--round); font-weight: 700;
  font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--tan); border-bottom: 2.5px solid var(--tan); transform: rotate(45deg); flex: none; margin-top: -4px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details > div { padding: 0 18px 16px; color: var(--mute); font-size: 16px; }
.faq details > div p:last-child { margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Closing */
.closing { text-align: center; }
.closing .gardener { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%; }
.closing .cta { justify-content: center; }

/* Footer */
footer { padding: 30px 0 44px; border-top: 2px solid var(--border); font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Legal page */
.legal { padding: 20px 0 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
