/* Farmwork Tycoon site: the app's own palette (indigo night, parchment, gold) and pixel font. */
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/PixelifySans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --deep: #151326;
  --panel: #1e1b33;
  --card: #262240;
  --ink: #f6ecd6;
  --muted: #b9b2cf;
  --gold: #f4c64e;
  --gold-dark: #c99a22;
  --edge: #f1dfb6;
  --line: rgba(241, 223, 182, 0.16);
  --green: #82dc6e;
  --red: #eb6050;
  --cyan: #5ae1ff;
  --pixel: "Pixelify Sans", ui-rounded, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd978; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--deep); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--pixel); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 14px; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); color: var(--gold); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--gold); }
h3 { font-size: 1.3rem; color: var(--ink); }
p { margin: 0 0 14px; text-wrap: pretty; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(21, 19, 38, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--pixel); font-size: 1.2rem; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 600; }
.brand img { border-radius: 7px; }
.top-nav { display: flex; align-items: center; gap: 18px; }
.top-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.top-nav > a:not(.btn):hover { color: var(--ink); }

/* buttons: chunky, slightly 3D, single-hue */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 600 1.15rem var(--pixel); white-space: nowrap; text-decoration: none;
  color: var(--deep);
  background: linear-gradient(180deg, #ffd770 0%, var(--gold) 55%, #e8b53a 100%);
  border: 2px solid #8a6511;
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(120, 80, 0, 0.35), 0 4px 0 #6d4f0c, 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 90ms ease, box-shadow 90ms ease, filter 140ms ease;
  cursor: pointer;
}
.btn:hover { color: var(--deep); filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(120, 80, 0, 0.35), 0 1px 0 #6d4f0c, 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 1rem; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(120, 80, 0, 0.35), 0 3px 0 #6d4f0c; }
.btn.is-soon { cursor: default; color: var(--muted); background: var(--card); border-color: var(--line); box-shadow: none; transform: none; filter: none; }

.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 56px; background: radial-gradient(1200px 500px at 70% 0%, rgba(96, 78, 160, 0.35), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.eyebrow { font-family: var(--pixel); color: var(--muted); font-size: 1.05rem; margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: #e7dfcb; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 14px; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* screenshots in a parchment-edged frame, like the app's dialog boxes */
.shot { margin: 0; border: 2px solid var(--edge); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 2px 0 rgba(241, 223, 182, 0.25), 0 24px 60px rgba(0, 0, 0, 0.5); }
.shot figcaption { font-family: var(--pixel); color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); font-size: 0.95rem; }

/* sections */
section { padding: clamp(52px, 7vw, 88px) 0; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p, .split p { color: #ddd5c2; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 8px; position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  font: 600 1.1rem var(--pixel); color: var(--deep); background: var(--gold); border-radius: 8px;
  box-shadow: inset 0 -2px 0 rgba(120, 80, 0, 0.35);
}
.steps p { color: #ddd5c2; font-size: 0.98rem; }

.tag { display: inline-block; font: 600 0.85rem var(--pixel); padding: 2px 9px; border-radius: 6px; white-space: nowrap; color: var(--deep); }
.tag-gold { background: var(--gold); }
.tag-red { background: var(--red); color: #fff; }
.tag-green { background: var(--green); }
.tag-cyan { background: var(--cyan); }

.tiers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.tiers li { display: grid; justify-items: center; gap: 12px; padding: 18px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.tiers img { width: 100%; max-width: 170px; }

.cast { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cast li { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 20px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.cast img { height: 72px; width: auto; margin-bottom: 8px; object-fit: contain; }
.cast b { font-family: var(--pixel); font-size: 1.15rem; color: var(--gold); font-weight: 600; }
.cast span { color: var(--muted); font-size: 0.95rem; }

.sizes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 20px; align-items: start; }

.final { text-align: center; background: radial-gradient(900px 400px at 50% 100%, rgba(96, 78, 160, 0.35), transparent 70%); }
.final-inner { display: grid; justify-items: center; gap: 4px; }
.final .btn { margin: 14px 0 12px; }
.small { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 16px 0; font-size: 0.85rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .split, .split-even, .sizes { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .top-nav > a:not(.btn) { display: none; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { gap: 8px; }
  .tiers li { padding: 12px 6px; }
  .cta-row { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .btn-small { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
