/* FrostSow site. Garden/frost palette: frost-white ground, spruce ink, seedling green action,
   ice-blue frame. Almanac serif headings from the system (no font download). */
:root {
  --bg: #f3f6f2;
  --surface: #e6ede7;
  --frost: #dbe8ee;
  --ink: #15281d;
  --muted: #34443a;
  --accent: #2e7d4f;
  --action: #1f6b40;
  --action-ink: #ffffff;
  --line: #c6d3c9;
  --spruce: #13241a;
  --spruce-ink: #e8efe9;
  --spruce-muted: #b5c6ba;
  --gut: 80px;
  --nav: 72px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
main:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
footer :focus-visible { outline-color: var(--spruce-ink); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(36px, 4.2vw, 60px); }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-size: 24px; line-height: 1.2; }
p { max-width: 62ch; }
.wrap { width: min(calc(100% - 2 * var(--gut)), 1280px); margin-inline: auto; }

/* Nav */
.nav {
  height: var(--nav);
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; position: relative; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; text-decoration: none;
}
.wordmark img { border-radius: 7px; }
.nav nav, .footer-bottom nav { display: flex; align-items: center; gap: 28px; }
.footer-bottom nav { flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
.nav nav a, .footer-bottom nav a, .text-button {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px;
}
.nav nav a:hover, .footer-bottom nav a:hover, .text-button:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.text-button { background: none; border: 0; padding: 0; color: inherit; }
.skip-link {
  position: absolute; left: 0; top: 14px; z-index: 20; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--action);
  background: var(--action); color: var(--action-ink); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.button:hover { background: var(--ink); border-color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.button:active { transform: translateY(1px) scale(0.98); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--bg); }

/* Sections: one per screen */
.section { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 48px) 0 64px; }
@media (min-width: 901px) { .section { height: calc(var(--h, 1) * 100vh); min-height: 0; } }
.section > .wrap { width: min(calc(100% - 2 * var(--gut)), 1280px); }

/* Hero */
.hero { height: 100vh; height: 100svh; min-height: 560px; padding: calc(var(--nav) + 32px) 0 24px; display: flex; flex-direction: column; overflow: hidden; }
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero-text { text-align: center; max-width: 960px; margin: 0 auto; display: grid; justify-items: center; gap: 18px; }
.hero-text h1 { max-width: 26ch; }
.pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--action);
}
.hero-lead { color: var(--muted); font-size: 19px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-frame {
  position: relative; flex: 1; min-height: 0; margin-top: 32px; overflow: hidden;
  border-radius: var(--r-lg); container-type: size;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, var(--frost) 0%, #cfe2d6 100%);
  border: 1px solid var(--line);
  display: flex; justify-content: center; align-items: flex-start; padding: 32px 24px 0;
}
.device {
  width: 300px; flex: none; border-radius: 40px; background: var(--bg); border: 12px solid #0f1a13; position: relative;
  box-shadow: 0 30px 60px -30px rgba(21, 40, 29, 0.55); padding: 40px 16px 14px; min-height: 540px;
}
.device-camera { position: absolute; top: 8px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 10px; background: #0f1a13; z-index: 2; }
.device-home { display: none; }
.app-screen { display: flex; flex-direction: column; gap: 10px; }
.app-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.app-sub { font-size: 13px; color: var(--muted); margin-top: -6px; }
.app-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.app-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: 13px; line-height: 1.35;
}
.app-list li > .tag { grid-column: 1 / -1; }
.app-list strong { font-size: 15px; grid-column: 1; }
.app-list li > span:not(.tag):not(.done):not(.mark) { grid-column: 1; color: var(--muted); }
.app-list .done, .app-list .mark { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 10px; }
.app-list .done { background: var(--accent); color: #fff; }
.app-list .mark { border: 1px solid var(--accent); color: var(--action); }
.tag { font-size: 11px; font-weight: 700; text-transform: none; color: #2b5d78; margin-bottom: 2px; }
.app-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: auto; }
.app-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; color: var(--muted); }
.app-tabs .on { color: var(--action); font-weight: 700; }
.card-title { font-weight: 700; font-size: 13px; color: var(--muted); }
.warn { font-weight: 700; color: #7a420c; }
.rotation-ui { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 10px; }
.beds { list-style: none; padding: 0; display: grid; gap: 8px; }
.beds li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 15px; }
.beds li.warn-row { background: #f6e3cf; }
.beds .ok { color: var(--action); font-weight: 600; font-size: 14px; }
.years { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.years li { text-align: center; font-size: 13px; line-height: 1.3; padding: 6px 0; border-radius: 8px; background: var(--surface); }
.years li.hit { background: #f2dcc4; color: #8a4b0f; font-weight: 700; }

/* Reasons */
.reasons .wrap { display: grid; gap: 64px; }
.reasons-head .mo-lt__type { font-size: clamp(44px, 7vw, 104px); max-width: 14ch; }
.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reason-grid article { display: grid; gap: 14px; align-content: start; }
.reason-grid p { color: var(--muted); }
.reason-icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Pro */
.pro { background: var(--surface); }
.pro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.pro-text { display: grid; gap: 22px; }
.pro-text p { color: var(--muted); }
.pro-text .fine { font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: grid; gap: 12px; align-content: start; }
.plan-pro { background: var(--spruce); color: var(--spruce-ink); border-color: var(--spruce); }
.price { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; }
.price span { font-family: var(--font-text); font-size: 15px; font-weight: 400; }
.alt { font-size: 14px; color: var(--spruce-muted); }
.plan ul { padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.faq article h3 { display: flex; gap: 12px; align-items: flex-start; }
.faq-action { justify-self: start; grid-column: 1 / -1; }
.faq-icon { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.faq article { display: grid; gap: 10px; align-content: start; }
.faq p { color: var(--muted); }

/* Footer */
.closing { background: var(--spruce); color: var(--spruce-ink); padding: 96px 0 48px; }
.footer-wrap { align-items: start !important; }

.footer-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: end; }
.footer-statement { display: grid; gap: 28px; }
.footer-statement p { font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; max-width: 18ch; }
.store-soon { display: flex; flex-wrap: wrap; gap: 12px; }
.soon-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--spruce-muted); border-radius: 12px; font-size: 15px; color: var(--spruce-muted); }
.footer-directory { display: grid; gap: 14px; justify-items: start; }
.closing .wordmark { font-size: 26px; }
.contact { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: grid; gap: 4px; color: var(--spruce-muted); font-size: 14px; width: 100%; border-top: 1px solid rgba(232, 239, 233, 0.2); padding-top: 16px; }
.footer-bottom nav a, .footer-bottom .text-button { color: var(--spruce-ink); }

/* Consent */
.consent-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30;
  width: min(calc(100% - 32px), 720px); background: #ffffff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center;
  box-shadow: 0 24px 60px -24px rgba(21, 40, 29, 0.45);
}
.consent-banner h2 { font-size: 20px; margin-bottom: 4px; }
.consent-banner p { font-size: 15px; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; }
.consent-banner :focus-visible { outline-color: var(--action); }
body.consent-open { padding-bottom: var(--consent-space, 0px); }

/* Legal pages */
.legal-main { padding: calc(var(--nav) + 64px) 0 96px; }
.legal-copy { max-width: 760px; display: grid; gap: 16px; }
.legal-copy h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 4px; }
.legal-copy h2 { font-size: 28px; margin-top: 28px; scroll-margin-top: calc(var(--nav) + 16px); }
.legal-copy ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-copy p, .legal-copy li { color: var(--ink); }
.legal-copy a { overflow-wrap: anywhere; }
.legal-copy .effective { color: var(--muted); font-size: 15px; }
.legal-copy .legal-part { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; scroll-margin-top: calc(var(--nav) + 16px); }
.legal-footer { background: var(--spruce); color: var(--spruce-ink); padding: 48px 0 32px; }
.legal-footer .wrap { display: grid; gap: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --gut: 48px; }
  .plan { padding: 20px; }
  .plan .button { width: 100%; padding: 0 12px; font-size: 15px; white-space: nowrap; }
}
@media (max-width: 900px) {
  .pro-grid, .faq-grid, .footer-wrap, .reason-grid { grid-template-columns: minmax(0, 1fr); }
  .reason-grid { gap: 32px; }
  .section { min-height: 0; }
}
@media (max-width: 639px) {
  :root { --gut: 16px; --nav: 64px; }
  body { font-size: 16px; }
  .nav nav { gap: 16px; }
  .nav nav a[href="#pro"] { display: none; }
  .hero-lead { font-size: 17px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .button.secondary { display: none; }
  .hero-frame { padding: 20px 16px 0; margin-top: 20px; }
  .device { width: 270px; }
  .plans, .faq { grid-template-columns: minmax(0, 1fr); }
  .consent-banner { grid-template-columns: 1fr; bottom: 12px; }
  .consent-actions .button { flex: 1; }
  .section { padding: calc(var(--nav) + 40px) 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* The phone fills the hero frame's height; packet rows that do not fit wrap into a hidden
   second column, so a row is shown whole or not at all (never cut through its text). */
.device { display: flex; flex-direction: column; height: 100%; max-height: 640px; min-height: 0; overflow: hidden; }
.app-screen { flex: 1; min-height: 0; }
.app-list { flex: 1 1 auto; min-height: 0; display: flex; flex-flow: column wrap; align-content: flex-start; column-gap: 64px; overflow: hidden; }
.app-list li { width: 100%; flex: none; }
@container (max-height: 470px) { .app-tabs, .app-note { display: none; } }
@container (max-height: 200px) { .app-sub { display: none; } }

/* Focus ring on the dark Pro card: light green on spruce (well over 3:1). */
.plan-pro .button:focus-visible, .plan-pro a:focus-visible { outline: 3px solid #9fd3b0; outline-offset: 3px; }

/* Small phones (320-360px): tighter hero text, and a compact mock (no phone chrome) when the
   frame is short, so at least one whole packet row shows and nothing is cut. */
@media (max-width: 360px) {
  .hero .pill { display: none; }
  .hero-text h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; line-height: 1.5; }
}
@container (max-height: 260px) {
  .device { border-width: 0; border-radius: var(--r-md); padding: 12px; box-shadow: none; }
  .device-camera, .app-title { display: none; }
}
.plan { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.plan:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(21, 40, 29, 0.45); }
@media (prefers-reduced-motion: reduce) { .plan, .plan:hover { transition: none; transform: none; } }
