/* Sprout website. Colours and type follow the app (ios/Sprout/DesignSystem/Palette.swift):
   serif headings (New York on Apple devices), rounded body text, soft washes and white cards.
   System fonts only, so the site makes no third-party requests. */

:root {
  --paper: #FAF8F5;
  --card: #FFFFFF;
  --card-muted: #F0ECE6;
  --ink: #2B2838;
  --ink-secondary: #5E5A6E;
  --hairline: rgba(43, 40, 56, 0.08);
  --accent: #4466C0;
  --accent-text: #34509A;
  --accent-soft: #E3ECFA;
  --on-accent: #FFFFFF;
  --growth-text: #3E7556;
  --lavender: #EEEAFB;
  --sky: #E3F0FA;
  --peach: #FDEBDD;
  --butter: #FBF4D8;
  --sage: #E4F2EA;
  --rose: #FBE8EF;
  --wash-sky: #E4EEF8;
  --wash-lavender: #F3EFFA;
  --shadow: 0 10px 30px rgba(43, 40, 56, 0.07);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16151C;
    --card: #211F2A;
    --card-muted: #2A2833;
    --ink: #F2EFF7;
    --ink-secondary: #B9B4C7;
    --hairline: rgba(242, 239, 247, 0.08);
    --accent: #8EA8F0;
    --accent-text: #B7C8F5;
    --accent-soft: #26324D;
    --on-accent: #16151C;
    --growth-text: #9BD3AF;
    --lavender: #2A2640;
    --sky: #1F2C3A;
    --peach: #3A2A22;
    --butter: #35311F;
    --sage: #1F3128;
    --rose: #3A2230;
    --wash-sky: #1E2432;
    --wash-lavender: #1C1A26;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper) linear-gradient(180deg, var(--wash-sky) 0, var(--wash-lavender) 340px, var(--paper) 720px) no-repeat;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */

.top { padding: 20px 0 8px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 40px; height: 38px; }

footer.wrap { margin-top: 56px; padding-top: 28px; padding-bottom: 64px; border-top: 1px solid var(--hairline); color: var(--ink-secondary); font-size: 0.93rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-weight: 700; }
footer .links a { color: var(--ink); text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer p + p { margin-top: 8px; }

/* Building blocks */

main { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }

.card { background: var(--card); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.tinted { border-radius: 22px; padding: 20px; }
.lavender { background: var(--lavender); }
.sky { background: var(--sky); }
.peach { background: var(--peach); }
.butter { background: var(--butter); }
.sage { background: var(--sage); }
.rose { background: var(--rose); }

.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-secondary); }
.muted { color: var(--ink-secondary); }
.small { font-size: 0.93rem; }
.stack > * + * { margin-top: 10px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  transition: transform 0.2s ease;
}
.button:hover { transform: scale(1.02); text-decoration: none; }
.button:active { transform: scale(0.97); }
.button svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.button.soon { background: var(--card-muted); color: var(--ink-secondary); cursor: default; }
.button.soon:hover { transform: none; }

.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--card-muted); font-size: 0.85rem; font-weight: 800; color: var(--ink-secondary);
}

/* Landing */

.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; padding: 20px 0 8px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-secondary); max-width: 34em; margin-top: 14px; }
.hero .actions { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero .mascot { width: 180px; height: 168px; }

@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: floaty 5s ease-in-out infinite; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features h3 { margin-bottom: 8px; }
.features p { font-size: 0.97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.check li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 900;
  background: var(--sage); color: var(--growth-text);
}

/* Test page */

.test-head { display: flex; flex-direction: column; gap: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Legal pages */

.legal h1 { margin-bottom: 6px; }
.legal h2 { margin: 30px 0 10px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--ink); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero .mascot { width: 120px; height: 112px; grid-row: 1; }
  .hero .actions { align-items: stretch; }
  .button { width: 100%; padding: 0 16px; font-size: 1rem; text-align: center; }
  .features, .split { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
