/* Grown Tracker website. Colours match the app's palette (src/lib/palette.ts). */

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #EEEBE4;
  --ink: #1D2428;
  --muted: #5B666C;
  --line: #DCD7CC;
  --primary: #1F6987;
  --primary-ink: #FFFFFF;
  --primary-soft: #DCEBF1;
  --leaf: #A7DCCF;
  --amber: #8A5A12;
  --amber-soft: #F6E9D3;
  --success-soft: #DDEFE5;
  --dark: #12333F;
  --dark-ink: #ECF3F5;
  --shadow: 0 24px 60px -24px rgba(18, 51, 63, 0.35);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121618;
    --surface: #1B2124;
    --surface-2: #252C30;
    --ink: #ECEFF0;
    --muted: #A2ADB2;
    --line: #323B40;
    --primary: #6FB5D3;
    --primary-ink: #0D2530;
    --primary-soft: #1E3A47;
    --amber: #E2B66B;
    --amber-soft: #3D3020;
    --success-soft: #1F3A2D;
    --dark: #0C2129;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.big { font-size: 1.15rem; }
.small { font-size: 0.85rem; }
.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--primary); color: var(--primary-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--primary); color: var(--primary-ink);
  border-radius: 999px; border: 2px solid var(--primary);
  font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.btn-large { min-height: 56px; padding: 0 34px; font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .header-inner .btn-small { margin-left: auto; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.accent { color: var(--primary); font-style: italic; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.assurances li { display: inline-flex; align-items: center; gap: 6px; }
.assurances svg { width: 18px; height: 18px; fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.glow {
  position: absolute; inset: 8% 6%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--leaf) 70%, transparent), transparent 70%),
              radial-gradient(closest-side at 70% 70%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 70%);
  filter: blur(20px);
}
.phone {
  position: relative; width: 300px; padding: 12px;
  background: #0E1416; border-radius: 46px;
  box-shadow: var(--shadow), inset 0 0 0 2px #2A3236;
  transform: rotate(-2deg);
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: #0E1416; border-radius: 14px; z-index: 2; }
.screen {
  /* The mockup always shows the app's light theme. */
  --s-bg: #F6F4EF; --s-surface: #fff; --s-ink: #1D2428; --s-muted: #5B666C; --s-line: #DCD7CC; --s-primary: #1F6987;
  background: var(--s-bg); color: var(--s-ink);
  border-radius: 36px; padding: 50px 16px 12px; min-height: 560px;
  font-size: 13px; line-height: 1.35; display: flex; flex-direction: column; gap: 8px;
}
.app-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4px; }
.app-title { font-size: 24px; font-weight: 800; }
.app-sub { color: var(--s-muted); font-size: 12px; }
.app-bell { position: relative; width: 22px; height: 22px; border: 2px solid var(--s-primary); border-radius: 50% 50% 6px 6px; }
.app-bell span { position: absolute; top: -9px; right: -10px; background: var(--s-primary); color: #fff; font-size: 10px; font-weight: 800; border-radius: 99px; padding: 1px 5px; }
.toast { background: #DDEFE5; border-radius: 10px; padding: 8px 10px; font-size: 12px; }
.app-heading { font-weight: 700; font-size: 14px; margin-top: 6px; }
.row { display: flex; gap: 10px; align-items: center; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 12px; padding: 9px 10px; }
.tick { flex: none; width: 20px; height: 20px; border: 2px solid var(--s-primary); border-radius: 50%; position: relative; }
.tick-anim::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--s-primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0);
  animation: tick 3.2s ease-in-out infinite;
}
@keyframes tick { 0%, 35% { transform: rotate(45deg) scale(0); } 45%, 85% { transform: rotate(45deg) scale(1); } 100% { transform: rotate(45deg) scale(0); } }
@media (prefers-reduced-motion: reduce) { .tick-anim::after { animation: none; transform: rotate(45deg) scale(1); } }
.row-title { font-weight: 700; }
.row-meta { color: var(--s-muted); font-size: 11.5px; }
.rep { color: var(--s-muted); }
.done { color: var(--s-muted); font-size: 12px; }
.tabbar { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--s-line); padding-top: 10px; font-size: 10.5px; color: var(--s-muted); }
.tabbar .on { color: var(--s-primary); font-weight: 700; }

.float-card {
  position: absolute; width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow); font-size: 0.85rem;
}
.fc-label { color: var(--primary); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.fc-title { font-weight: 700; }
.fc-body { color: var(--muted); }
.float-a { top: 46%; left: -12%; transform: rotate(-3deg); }
.float-b { bottom: 6%; right: -4%; transform: rotate(3deg); }
@media (max-width: 980px) { .float-a { left: 0; } .float-b { right: 0; } }

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { padding-bottom: 40px; }
}
@media (max-width: 520px) {
  .float-card { width: 180px; font-size: 0.78rem; }
  .float-a { top: 44%; left: -4px; }
  .float-b { bottom: 2%; right: -4px; }
  .phone { width: 272px; }
}

/* Sections */
.section { padding: 88px 0; }
.band { padding: 72px 0; background: var(--surface); border-block: 1px solid var(--line); }
.tint { background: var(--surface-2); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.quotes blockquote {
  margin: 0; padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
}
.band .big { max-width: 40em; margin: 0 auto; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  background: var(--primary-soft); display: grid; place-items: center;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.templates { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.templates span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 0.92rem;
}

.guides-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .guides-inner { grid-template-columns: 1fr; } }
.guide-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.guide-list li { padding-left: 26px; position: relative; font-weight: 600; }
.guide-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 4px;
  background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary);
}
@media (max-width: 520px) { .guide-list { grid-template-columns: 1fr; } }

.checker {
  background: var(--surface); border: 2px solid var(--primary); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow);
}
.checker-label { display: inline-block; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 99px; }
.checker h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.checker fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.checker legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.yn { display: flex; gap: 10px; }
.yn button {
  min-height: 44px; min-width: 84px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.yn button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.checker-result { min-height: 1.6em; font-weight: 700; font-size: 1.05rem; margin: 6px 0 12px; }
.checker-result[data-state] { padding: 12px 14px; border-radius: 12px; }
.checker-result[data-state="yes"] { background: var(--amber-soft); }
.checker-result[data-state="no"] { background: var(--success-soft); }
.checker-source { color: var(--muted); font-size: 0.85rem; margin: 0; }

.dark { background: var(--dark); color: var(--dark-ink); }
.dark .eyebrow { color: var(--leaf); }
.privacy-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .privacy-inner { grid-template-columns: 1fr; } }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-list li {
  padding: 18px 20px 18px 54px; border-radius: 16px; position: relative;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CFE0E6;
}
.privacy-list strong { color: #fff; display: block; }
.privacy-list li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--leaf);
}

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

.final { background: radial-gradient(ellipse at top, var(--primary-soft), transparent 70%); }
.final h2 { max-width: 18em; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-links { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-inner .small { flex-basis: 100%; margin: 0; }

/* Simple content pages (privacy) */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; font-family: var(--sans); font-weight: 700; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 620px) { .page table, .page tbody, .page tr, .page td { display: block; } .page thead { display: none; } .page td { border: 0; padding: 4px 0; } .page tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
