/* Sprout's site: the landing page and the policy pages.
   Colours, type and radii are the game's own (app/src/assets/app.css). */

@font-face { font-family: "Spectral"; font-weight: 400; font-display: swap; src: url(/assets/fonts/spectral-regular.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 600; font-display: swap; src: url(/assets/fonts/spectral-semibold.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/spectral-italic.woff2) format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/hankengrotesk.woff2) format("woff2"); }

:root {
  --bg: #efe8d8;
  --panel: #f7f3e9;
  --surface: #fdfbf4;
  --surface-2: #f1ecde;
  --ink: #2b2a20;
  --muted: #7a7459;
  --faint: #a7a085;
  --primary: #57744f;
  --primary-2: #63825b;
  --primary-deep: #3a5735;
  --primary-ink: #f7f3e9;
  --primary-text: #4a6643;
  --accent: #c2703f;
  --accent-soft: #eedccb;
  --line: #e0d9c5;
  --soil: #5b3f2a;
  --radius: 8px;
  --radius-lg: 14px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(70, 58, 30, .05), 0 10px 26px -18px rgba(70, 58, 30, .3);
  --shadow-lift: 0 2px 4px rgba(70, 58, 30, .08), 0 24px 48px -24px rgba(40, 40, 20, .45);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  font: 700 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* ---- header ---------------------------------------------------------- */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; }
.brand img { width: 174px; height: auto; } /* the 87px wordmark at 2x, on whole pixels */
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---- hero ------------------------------------------------------------ */
.hero { padding: 26px 0 70px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  margin: 0 0 18px;
  font: 600 clamp(40px, 5.6vw, 66px)/1.04 var(--serif);
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--primary-text); }
.lede { margin: 0 0 30px; max-width: 30em; font-size: 19px; color: var(--muted); }

.stage { position: relative; justify-self: center; width: min(360px, 100%); }
.phone {
  position: relative; z-index: 1;
  padding: 10px; border-radius: 46px;
  background: #24251c;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(0, 0, 0, .3) inset;
  transform: rotate(3deg);
}
.phone > img { border-radius: 37px; width: 100%; height: auto; aspect-ratio: 390 / 844; }
.stage__card {
  position: absolute; z-index: 2; left: -64px; bottom: 70px; width: 150px;
  border-radius: 12px; box-shadow: var(--shadow-lift);
  height: auto;
  transform: rotate(-8deg);
  animation: bob 6s ease-in-out infinite;
}
.stage__bee { position: absolute; z-index: 3; left: -92px; top: 8px; width: 48px; height: 48px; scale: -1 1; animation: buzz 3.4s ease-in-out infinite; } /* faces the words */
.stage__glow { position: absolute; inset: 8% -18% 4% -18%; z-index: 0; background: radial-gradient(closest-side, rgba(194, 112, 63, .18), transparent); }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes buzz { 25% { translate: -6px -4px; } 50% { translate: -2px 3px; } 75% { translate: 4px -2px; } }

/* ---- how it plays ---------------------------------------------------- */
.steps { padding: 70px 0; background: var(--panel); border-block: 1px solid var(--line); }
.steps h2, .split h2, .final h2 { margin: 0 0 12px; font: 600 clamp(30px, 3.6vw, 42px)/1.12 var(--serif); letter-spacing: -.015em; }
.steps__head { max-width: 34em; margin-bottom: 40px; }
.steps__head p:not(.eyebrow) { margin: 0; color: var(--muted); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.steps li img { width: 48px; height: 48px; margin-bottom: 14px; }
.steps li h3 { margin: 0 0 6px; font: 600 21px/1.25 var(--serif); }
.steps li h3::before { content: counter(step) ". "; color: var(--accent); }
.steps li p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---- feature splits -------------------------------------------------- */
.split { padding: 84px 0; }
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); max-width: 30em; }
.split ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.split li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.split li img { width: 24px; height: 24px; }
.split--flip .split__media { order: 2; }
.split__media { justify-self: center; }
.split__media .phone { width: min(300px, 80vw); transform: rotate(-3deg); }
.fan { position: relative; width: 420px; height: 360px; max-width: 100%; }
.fan img { position: absolute; top: 40px; width: 190px; height: auto; border-radius: 14px; box-shadow: var(--shadow-lift); transition: transform .25s ease; }
.fan img:nth-child(1) { left: 0; transform: rotate(-10deg); }
.fan img:nth-child(2) { right: 0; transform: rotate(9deg); }
.fan img:nth-child(3) { left: 50%; top: 0; z-index: 1; width: 210px; transform: translateX(-50%); }
.fan:hover img:nth-child(1) { transform: rotate(-14deg) translateX(-12px); }
.fan:hover img:nth-child(2) { transform: rotate(13deg) translateX(12px); }

/* ---- final call ------------------------------------------------------ */
.final { padding: 76px 0 84px; text-align: center; background: linear-gradient(var(--bg), var(--accent-soft)); }
.final p { margin: 0 auto 28px; max-width: 28em; color: var(--muted); }
.final .others { justify-content: center; }
.final__sprouts { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.final__sprouts img { width: 40px; height: 40px; }

/* ---- footer ---------------------------------------------------------- */
.foot { padding: 30px 0 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ---- policy pages ---------------------------------------------------- */
.doc { padding: 20px 0 80px; }
.doc article {
  width: min(720px, 100% - 40px); margin-inline: auto;
  padding: clamp(26px, 5vw, 54px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.doc h1 { margin: 0 0 6px; font: 600 clamp(32px, 4.4vw, 44px)/1.1 var(--serif); letter-spacing: -.015em; }
.doc h2 { margin: 38px 0 10px; font: 600 24px/1.25 var(--serif); }
.doc .updated { margin: 0 0 24px; color: var(--faint); font-size: 14px; }
.doc p, .doc li { color: #48463a; }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .back { display: inline-block; margin: 0 0 18px; font-size: 15px; text-decoration: none; }

/* ---- small screens --------------------------------------------------- */
@media (max-width: 880px) {
  .hero .wrap, .split .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 6px; }
  .stage { width: min(300px, 78vw); }
  .stage__card { left: -18px; width: 116px; }
  .stage__bee { left: -24px; }
  .fan { width: 320px; height: 290px; }
  .fan img { width: 150px; }
  .fan img:nth-child(3) { width: 166px; }
  .steps ol { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split { padding: 64px 0; }
  .top nav a:not(.top__cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- the playable phone (option D) ----------------------------------- */
.phone--live { width: 100%; }
.mg { position: relative; aspect-ratio: 390 / 760; border-radius: 37px; overflow: hidden; background: #9bb97f; font-family: var(--sans); user-select: none; }
.mg__hud { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 40px 18px 10px; }
.mg__lv { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fdfbf4; box-shadow: inset 0 0 0 4px #a9c98f; font: 700 17px/1 var(--sans); color: var(--ink); }
.mg__xp { flex: 1; color: #2b2a20; }
.mg__xp small { display: block; font-size: 11px; font-weight: 700; opacity: .7; }
.mg__xp i { display: block; height: 8px; margin-top: 4px; border-radius: 99px; background: rgba(255,255,255,.55); overflow: hidden; }
.mg__xp u { display: block; height: 100%; background: var(--primary); transition: width .4s ease; }
.mg__coins { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 6px; border-radius: 99px; background: rgba(253,251,244,.85); font: 700 13px/1 var(--sans); color: var(--ink); }
.mg__coins img { width: 20px; height: 20px; }
.mg__sky { position: absolute; inset: 0 0 auto; height: 27%; background: linear-gradient(#8fc3d6, #dcecd2); }
.mg__sun { position: absolute; right: 22px; top: 50%; width: 40px; }
.mg__cloud { position: absolute; left: 30px; top: 56%; width: 56px; animation: mg-drift 8s ease-in-out infinite; }
@keyframes mg-drift { 50% { translate: 14px 0; } }
.mg__hills { position: absolute; left: 0; right: 0; top: calc(27% - 30px); height: 30px; background: url(/assets/downs-bright.png) repeat-x left bottom / auto 30px; image-rendering: pixelated; }
.mg__lawn { position: absolute; inset: 27% 0 0; background: #9bb97f url(/assets/lawn-mown.png) repeat 0 0 / 16px; image-rendering: pixelated; border-top: 6px solid #f2ecd8; }
.mg__beds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 16px; }
.mg__bed { position: relative; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer; background: url(/assets/px/tile_soil.png) center / 100% no-repeat; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.mg__bed img { position: absolute; inset: 3%; width: 94%; height: 94%; transform-origin: 50% 85%; }
.mg__bed.is-ripe img { animation: mg-sway 2.4s ease-in-out infinite; }
.mg__bed.is-ripe:hover img { animation-duration: .5s; }
@keyframes mg-sway { 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
.mg__bed:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.mg__bar { position: absolute; left: 14px; right: 14px; bottom: 20px; display: flex; justify-content: flex-end; padding: 10px; border-radius: 16px; background: rgba(253, 251, 244, .92); box-shadow: var(--shadow); }
.mg__all { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font: 700 14px var(--sans); cursor: pointer; }
.mg__all:hover { background: var(--primary-2); }
.mg__all:disabled { opacity: .45; cursor: default; }
.mg__toast { position: absolute; left: 50%; top: 30%; translate: -50% 0; padding: 8px 14px; border-radius: 99px; background: #3a5735; color: #f4f1e4; font: 700 13px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; }
.mg__toast.is-on { animation: mg-toast 1.6s ease forwards; }
@keyframes mg-toast { 10%, 70% { opacity: 1; translate: -50% -6px; } 100% { opacity: 0; translate: -50% -16px; } }
.try { position: absolute; z-index: 4; right: -150px; top: 34%; margin: 0; color: var(--accent); font: italic 400 19px/1.2 var(--serif); transform: rotate(6deg); }
.try span { display: block; }
.try svg { display: block; width: 56px; height: 38px; margin: 2px 0 0 -26px; }
.stage .stage__card { left: -70px; bottom: 30px; width: 130px; }
@media (max-width: 880px) { .try { right: -10px; top: -46px; } .try svg { display: none; } .stage .stage__card { display: none; } }

/* ---- the hero is the garden: sky, Rolling Downs, the fence, the lawn ------ */
@font-face { font-family: "Pixel"; src: url(/assets/fonts/pressstart.woff2) format("woff2"); }
.scene { position: relative; overflow: hidden; --h: 66%; --sky-a: #8fc3d6; --sky-b: #dcecd2; }
.scene.is-morning { --sky-a: #a9d2dc; --sky-b: #f6dcc0; }
.scene.is-evening { --sky-a: #9cc3d2; --sky-b: #f3d29e; }
.scene__sky { position: absolute; inset: 0 0 auto; height: var(--h); background: linear-gradient(var(--sky-a), var(--sky-b)); }
.scene__sun { position: absolute; right: 7%; top: 120px; width: 88px; height: 88px; }
.scene__cloud { position: absolute; top: 40px; left: 34%; width: 104px; animation: float 9s ease-in-out infinite; }
.scene__cloud--b { top: 260px; left: auto; right: 3%; width: 88px; animation-delay: -4s; }
@keyframes float { 50% { translate: 18px 0; } }
/* the game's own strips, at four screen pixels to one art pixel */
.scene__hills {
  position: absolute; left: 0; right: 0; top: calc(var(--h) - 88px + 44px); height: 88px;
  background: url(/assets/downs-bright.png) repeat-x 0 0 / 960px 88px; image-rendering: pixelated;
  translate: 0 -44px;
}
.scene__hills::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 44px;
  background: url(/assets/fence-bright.png) repeat-x 0 0 / 960px 44px; image-rendering: pixelated;
}
.is-morning .scene__hills { background-image: url(/assets/downs-morning.png); }
.is-morning .scene__hills::after { background-image: url(/assets/fence-morning.png); }
.is-evening .scene__hills { background-image: url(/assets/downs-evening.png); }
.is-evening .scene__hills::after { background-image: url(/assets/fence-evening.png); }
.scene__lawn { position: absolute; left: 0; right: 0; top: var(--h); bottom: 0; background: #9bb97f url(/assets/lawn-mown.png) repeat 0 0 / 32px; image-rendering: pixelated; }
.scene .top, .scene .hero { position: relative; z-index: 1; }
.scene .top nav a { color: #3c4a33; }
.scene .hero { padding-bottom: 60px; }
.scene .hero .wrap { align-items: start; }
.scene .eyebrow { display: inline-block; padding: 7px 11px; background: var(--surface); color: var(--primary-text); box-shadow: 4px 4px 0 rgba(43, 42, 32, .16); }
.scene .hero h1 { color: #1d2414; }
.scene .hero h1 em { color: #3a5735; }
.scene .lede { color: #2f3826; }
.scene .fine { color: #2f3826; }

/* C's chunky pixel button, which presses in */
.press {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 26px 18px 20px; text-decoration: none;
  background: #f0c75e; color: #2a210c; font: 400 13px/1.3 "Pixel", monospace; text-transform: uppercase;
  box-shadow: 0 0 0 4px #2a210c, 4px 8px 0 4px #2a210c;
  transition: transform .08s steps(1), box-shadow .08s steps(1);
}
.press:hover { background: #ffd877; color: #2a210c; }
.press:active { transform: translate(4px, 4px); box-shadow: 0 0 0 4px #2a210c; }
.press img { width: 32px; height: 32px; }
.press small { display: block; margin-bottom: 6px; font: 700 11px/1 var(--sans); letter-spacing: .14em; opacity: .7; }
.press.is-soon { background: #f7f1df; cursor: default; }
.alts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; font-size: 14px; font-weight: 600; color: #1d2414; }
.alts a { color: inherit; text-decoration: none; border-bottom: 2px dotted currentColor; }
.alts a.is-soon { pointer-events: none; opacity: .7; }
.alts a.is-soon::after { content: " · soon"; }
.final .press { margin-top: 4px; }

@media (max-width: 880px) {
  .scene__cloud { display: none; }
  .scene__sun { width: 56px; height: 56px; top: 92px; right: 18px; }
  .press { width: 100%; justify-content: center; }
}
