@font-face { font-family: "Asap Condensed"; font-weight: 600; font-display: swap; src: url("/assets/asap-600.627b0315776eeb8a.woff2") format("woff2"); }
@font-face { font-family: "Asap Condensed"; font-weight: 700; font-display: swap; src: url("/assets/asap-700.5876191aae1faa72.woff2") format("woff2"); }

:root {
  --ink: #1e2a44;
  --ink-soft: #4b5872;
  --bg: #e6efda;
  --bg-deep: #d6e4c6;
  --card: rgba(255, 255, 255, 0.86);
  --line: #d3dec6;
  --green: #5cb238;
  --green-dark: #2e661e;
  --honey: #f0a21b;
  --focus: #805614;
  --rapeseed: #e9c62a;
  --phacelia: #7867d6;
  --meadow: #64ad45;
  --heather: #b25a98;
  --shadow: 0 18px 40px -18px rgba(30, 42, 68, 0.45);
  --radius-l: 32px;
  --radius-s: 16px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 1.1875rem/1.5 "Asap Condensed", "Arial Narrow", system-ui, sans-serif;
}
::selection { background: #f4d78e; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3 { font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* top bar */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.5rem; background: var(--card); backdrop-filter: blur(10px); padding: 5px 18px 5px 5px; border-radius: 999px; box-shadow: var(--shadow); }
.brand img { width: 40px; height: 40px; border-radius: 999px; }
.lang { display: flex; gap: 6px; background: var(--card); backdrop-filter: blur(10px); padding: 5px; border-radius: 999px; box-shadow: var(--shadow); }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.language-suggestion { position: absolute; top: 90px; right: var(--gutter); display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 1rem; }
.language-suggestion a { padding-block: 10px; }
.language-suggestion button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 1.5rem; cursor: pointer; }

/* hero: the farm itself */
.hero { position: relative; overflow: hidden; background: #8fbf5a; }
.hero__farm { width: 100%; aspect-ratio: 1692 / 1003; object-fit: cover; max-height: 88vh; min-height: 420px; }
.hero__card {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 5vw, 64px);
  width: min(560px, 100% - 2 * var(--gutter));
  background: var(--card); backdrop-filter: blur(14px);
  border-radius: var(--radius-l); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow);
}
.hero__card h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero__card .tagline { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.2; margin-top: 10px; }
.hero__card .lead { color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px;
  background: var(--green-dark); color: #fff; border: 0; border-radius: var(--radius-s);
  font-family: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  padding-block: 14px; text-align: center; transition: background-color .2s ease, transform .2s ease;
}
.button:hover { background: #244f18; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.game-status { color: var(--ink); margin-top: 18px; font-size: 1rem; }
.button svg { width: 24px; height: 24px; flex-shrink: 0; }
.note { color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 1000px) {
  .hero__farm { min-height: 0; aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .hero__card { position: relative; left: auto; bottom: auto; width: auto; margin: -56px var(--gutter) 0; }
  .hero { background: none; overflow: visible; }
}

/* sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.head { max-width: 640px; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.25rem; }

/* demo: the one interactive thing */
.demo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); grid-template-areas: "main nursery" "main honey"; gap: 24px clamp(24px, 4vw, 48px); align-items: start; margin-top: 32px; }
.demo-main { grid-area: main; min-width: 0; }
.nursery { grid-area: nursery; }
.honey { grid-area: honey; }
.board { position: relative; width: 100%; aspect-ratio: 5.6 / 4.284570907; user-select: none; -webkit-user-select: none; }
.board__ground { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board .tile, .board .node, .board .hive, .board .range { position: absolute; }
.board .tile { pointer-events: none; z-index: 30; transition: filter 0.35s ease; }
.board .tile.is-idle { filter: saturate(0.3) brightness(1.1) contrast(0.85); }
.crop-slot { position: absolute; z-index: 35; min-width: 44px; min-height: 32px; transform: translate(-50%,-50%); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); border: 0; padding: 0; background: transparent; cursor: pointer; }
.crop-slot:hover, .crop-slot:focus-visible { background: rgba(244,215,142,.35); }
.is-sowing .crop-slot { z-index: 55; background: rgba(244,215,142,.2); }
.crop-slot.is-target, .is-sowing .crop-slot:hover, .crop-slot:focus-visible { background: rgba(244,215,142,.65); }
.plant-choices { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.plant-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 98px; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.5); color: var(--ink); font: inherit; font-size: 1rem; padding: 8px 4px; cursor: grab; touch-action: none; }
.plant-choice img { height: 52px; width: 72px; object-fit: contain; pointer-events: none; }
.plant-choice:hover { background: #fff; }
.plant-choice[aria-pressed="true"] { border-color: var(--green-dark); background: #fff; }
.nursery-trees { margin-top: 24px; padding-top: 20px; border-top: 1px solid #a4ba92; }
.nursery-trees > p { margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }
.board .range { z-index: 40; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.16); pointer-events: none; transition: left 0.25s ease, top 0.25s ease; }
.board .node {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: transparent; border: 0; padding: 0; cursor: pointer; z-index: 50;
}
.board .node::before { content: ""; position: absolute; width: 34px; height: 22px; left: 5px; top: 11px; border-radius: 50%; background: rgba(230, 196, 130, 0.92); border: 2px solid rgba(160, 120, 60, 0.55); }
.board .node:hover::before, .board .node:focus-visible::before { background: #fff1c9; }
.board .hive { z-index: 70; width: 44px; height: 44px; margin: -22px; padding: 0; border: 0; background: transparent; pointer-events: auto; touch-action: none; cursor: grab; transition: left 0.25s ease, top 0.25s ease; }
.hive-art { position: absolute; bottom: 19px; left: 50%; transform: translate(-50%, 8%); max-width: none; pointer-events: none; filter: drop-shadow(0 8px 6px rgba(40, 30, 10, 0.35)); }
.board .hive.is-invalid { opacity: .45; }
.tree-slot { position: absolute; z-index: 20; width: 44px; height: 44px; margin: -22px; border: 0; background: transparent; cursor: pointer; padding: 0; touch-action: none; }
.tree-slot::before { content: ""; position: absolute; inset: 12px 3px; border: 2px dashed var(--green-dark); border-radius: 50%; background: rgba(255,255,255,.45); }
.tree-slot.is-filled::before { border-style: solid; opacity: .45; }
.is-planting .tree-slot::before, .tree-slot.is-target::before { background: #f4d78e; border-color: #765916; opacity: 1; }
.tree-slot.is-target::before { outline: 3px solid #765916; outline-offset: 3px; }
.planted-tree { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: none; pointer-events: none; transition: filter .25s ease; }
.planted-tree.is-idle { filter: saturate(.55); }
.tree-ghost { position: fixed; z-index: 100; width: 80px; max-height: 120px; object-fit: contain; transform: translate(-50%,-90%); pointer-events: none; filter: drop-shadow(0 8px 6px rgba(30,42,68,.25)); }
.tree-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.tree-choice { display: flex; flex-direction: column; align-items: center; min-height: 132px; border: 2px solid transparent; border-radius: 16px; background: rgba(255,255,255,.5); color: var(--ink); font: inherit; padding: 8px 4px; cursor: grab; touch-action: none; }
.tree-choice img { height: 72px; width: 72px; object-fit: contain; pointer-events: none; }
.tree-choice strong { font-size: 1.15rem; }
.tree-choice span { color: var(--ink-soft); font-size: .9rem; }
.tree-choice:hover { background: #fff; }
.tree-choice[aria-pressed="true"] { border-color: var(--green-dark); background: #fff; }
.nursery h3 { font-size: 1.6rem; }
.nursery > p { margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }
.demo-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.demo-tools button, .image-viewer__tools button { min-height: 44px; padding: 8px 14px; border: 1px solid #779367; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; }
.demo-tools button:hover, .demo-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nursery .plant-status { min-height: 3em; margin-top: 12px; }
.demo-summary { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.8); border-radius: 16px; padding: 10px 16px; min-height: 72px; }
.demo-summary img { width: 48px; height: 48px; object-fit: contain; }
.demo-summary strong { display: block; font-size: 1.35rem; line-height: 1.15; }
.demo-summary [data-honey-rating] { color: #805614; letter-spacing: 2px; min-height: 1em; display: block; }
.demo-explainer { margin-top: 18px; color: var(--ink-soft); }
.demo-explainer summary { color: var(--green-dark); cursor: pointer; padding-block: 10px; }
.demo-explainer p { margin-top: 12px; max-width: 70ch; font-size: 1rem; }
.board.is-dragging .hive, .board.is-dragging .range { transition: none; }
.board.is-dragging .hive { cursor: grabbing; }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.phase {
  min-height: 64px; padding: 8px 10px; text-align: left;
  border: 2px solid var(--line); border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.6);
  font: inherit; color: var(--ink); cursor: pointer; line-height: 1.15;
}
.phase b { display: block; font-size: 1.35rem; }
.phase span { font-size: 0.95rem; color: var(--ink-soft); }
.phase[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.phase[aria-pressed="true"] span { color: #c9d3e6; }

.honey { background: var(--card); border-radius: var(--radius-l); padding: 26px 28px; box-shadow: var(--shadow); }
.honey__top { display: flex; align-items: center; gap: 18px; }
.honey__jar { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
.honey__name { font-size: 1.65rem; min-height: 2.1em; }
.honey__stars { color: #805614; font-size: 1.5rem; letter-spacing: 2px; min-height: 1.6rem; }
.mix { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #e3e8db; margin-top: 18px; }
.mix i { display: block; height: 100%; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; min-height: 3.25em; display: flex; flex-wrap: wrap; align-content: start; gap: 4px 18px; font-size: 1.05rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.honey__why { margin-top: 16px; min-height: 4.5em; color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 900px) { .demo { grid-template-columns: 1fr; grid-template-areas: "nursery" "main" "honey"; } .nursery { max-width: 600px; width: 100%; } .tree-choice { min-height: 116px; } .tree-choice img { height: 56px; } }
@media (max-width: 480px) { .phase { padding: 6px 7px; } .phase b { font-size: 1.1rem; } .phase span { font-size: 0.82rem; } }

/* features: real screens */
.features { background: var(--bg-deep); }
.features h2 { margin-bottom: 48px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 520px); gap: clamp(28px, 6vw, 88px); align-items: center; justify-content: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature:nth-child(even) { grid-template-columns: minmax(0, 520px) minmax(0, 300px); }
.feature:nth-child(even) .phone { order: 2; }
.phone { border-radius: 34px; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.phone img { border-radius: 26px; }
.screenshot-link { display: block; text-decoration: none; position: relative; }
.screenshot-link > span { display: block; padding: 12px; color: #fff; text-align: center; font-size: 1rem; }
.screenshot-link:hover > span { color: #f4d78e; }
.image-viewer { width: min(960px,calc(100vw - 24px)); max-height: 92dvh; padding: 16px; border: 0; border-radius: 16px; background: #f2f6ec; color: var(--ink); }
.image-viewer::backdrop { background: rgba(15,25,20,.8); }
.image-viewer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.image-viewer__tools [data-close-image] { margin-left: auto; }
.image-viewer__tools a { font-size: 1rem; }
.image-viewer__canvas { overflow: auto; max-height: 76dvh; }
.image-viewer__canvas img { margin-inline: auto; width: min(600px,100%); height: auto; }
.image-viewer.is-zoomed .image-viewer__canvas img { width: 1024px; max-width: none; }
.feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.feature p { margin-top: 14px; color: var(--ink-soft); font-size: 1.25rem; max-width: 42ch; }
@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .feature:nth-child(even) .phone { order: 0; }
  .phone { width: min(280px, 78vw); }
}

/* closing */
.faq h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.faq__list { max-width: 780px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--ink-soft); padding-block: 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.4rem; line-height: 1.3; min-height: 44px; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.faq details p { margin-top: 12px; color: var(--ink-soft); max-width: 65ch; }
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.closing p { color: var(--ink-soft); margin: 14px auto 0; max-width: 52ch; font-size: 1.25rem; }
.closing .cta { justify-content: center; }
.closing .developer { font-size: 1rem; margin-top: 32px; }

footer { padding-block: 36px 48px; color: var(--ink-soft); font-size: 1rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
