/* newfarmworld.com landing page (index.html, en/index.html).
   Colours are shared/design/tokens-v2.json roles (UI v2, approved 11.10.2026); web adaptation per
   docs/design/01-visual-language.md §7. Role mapping (also in docs/design/briefs/site-landing.md):
     --bg        colors.bg            page background
     --sunken    colors.bgSunken      alternate section (screenshots), footer
     --surface   colors.surface       cards, top bar
     --muted     colors.surfaceMuted  icon tile behind feature icons
     --line      colors.line          card and divider borders
     --text      colors.textPrimary   all body text and headings
     --text-2    textSecondary, darkened for the web (#857F74 is 3.6:1 on bg; #6B655B is 5.2:1)
     --link      colors.primaryText   links (5.3:1 on bg)
     --primary / --primary-edge / --primary-tint   accent 1: green (active language, focus)
     --gold-tint / --gold-text / --gold-edge       accent 2: the "Yakında / Coming soon" tag
     --off / --off-edge / --off-text   disabledFill / disabledEdge / disabledText: store pills while
                                       there is no store link
     --ink       colors.ink           phone frames
   Radii, spacing and shadows: radius.*, spacing.*, elevation.card / floating. No wood, textures or
   outlined text (tokens-v2 rules). Font: Nunito (SIL OFL 1.1, shared/fonts), self-hosted subset. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-600-900.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #F7F3E8;
  --sunken: #EFEADD;
  --surface: #FFFDF8;
  --muted: #F6F2E8;
  --line: #E9E2D2;
  --text: #3A3631;
  --text-2: #6B655B;
  --link: #24723C;
  --primary: #4DB86A;
  --primary-edge: #2F8F4B;
  --primary-tint: #E1F4E5;
  --gold-tint: #FFF3CF;
  --gold-text: #6B4E00;
  --gold-edge: #D49A16;
  --off: #E6E0D2;
  --off-edge: #CFC7B5;
  --off-text: #9C9587;
  --ink: #2B2926;
  --shadow-card: 0 2px 0 rgba(58,54,49,0.05), 0 6px 18px rgba(58,54,49,0.09);
  --shadow-float: 0 3px 0 rgba(58,54,49,0.06), 0 10px 24px rgba(58,54,49,0.14);
  --r-tile: 20px;
  --r-card: 24px;
  --r-sheet: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 700 17px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .store:focus-visible {
  outline: 3px solid var(--primary-edge);
  outline-offset: 3px;
  border-radius: 8px;
}
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.15; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 10;
  padding: 8px 16px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-float);
}
.skip:focus { left: 16px; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.langs { display: flex; gap: 4px; padding: 4px; background: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.langs a {
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 900; font-size: 15px;
}
.langs a[aria-current="page"] { background: var(--link); color: #FFFFFF; }

/* Hero */
.hero { padding: 24px 0 40px; }
.hero-in { display: grid; gap: 28px; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo { width: 300px; }
.hero h1 { margin-top: 16px; font-size: 30px; max-width: 16em; }
.lead { margin: 12px 0 0; font-size: 18px; color: var(--text-2); max-width: 32em; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.store {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 14px; min-width: 196px;
  border-radius: 999px; text-decoration: none;
  background: var(--off); border: 2px solid var(--off-edge); box-shadow: 0 3px 0 var(--off-edge);
  color: var(--text);
}
.store[aria-disabled="true"] { cursor: default; }
.store-glyph { flex: none; color: var(--off-text); }
.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-name { font-weight: 900; font-size: 17px; }
.store-state {
  margin-top: 3px; padding: 1px 8px; border-radius: 999px;
  background: var(--gold-tint); border: 1px solid var(--gold-edge); color: var(--gold-text);
  font-size: 12px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
}
/* Turned on by assets/site.js when STORE_LINKS has a URL. */
.store.is-live { background: var(--primary-edge); border-color: var(--link); box-shadow: 0 4px 0 var(--link); color: #FFFFFF; cursor: pointer; }
/* 19px 900 white on primaryEdge is 4.1:1 (large-text rule); --primary would be 2.5:1. */
.store.is-live .store-name { font-size: 19px; }
.store.is-live .store-glyph { color: #FFFFFF; }
.store.is-live .store-state { display: none; }
.store.is-live:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--link); }
/* User 18.10: the store pills carry the Apple / Google Play marks (the trademark guidelines prefer
   the official badges; the user accepted the risk). App Store black, Google Play the game's green. */
.store-apple, .store-apple.is-live { background: #141414; border-color: #000000; box-shadow: 0 3px 0 #000000; color: #FFFFFF; }
.store-play, .store-play.is-live { background: var(--link); border-color: #1B5A2E; box-shadow: 0 3px 0 #1B5A2E; color: #FFFFFF; }
.store-play.is-live:active { box-shadow: 0 1px 0 #1B5A2E; }
/* The long live labels stay on one line on phones; white on #141414 / --link (#24723C, 5.9:1) keeps
   normal-text contrast at the smaller size. */
.store-apple.is-live .store-name, .store-play.is-live .store-name { white-space: nowrap; font-size: clamp(15px, 4.2vw, 19px); }
.store-apple .store-glyph, .store-play .store-glyph { color: #FFFFFF; }
.store-apple.is-live:active { box-shadow: 0 1px 0 #000000; }
.hint { margin: 14px 0 0; font-size: 15px; color: var(--text-2); }
.hero-art picture, .hero-art img {
  display: block; width: 100%; border-radius: var(--r-sheet);
}
.hero-art picture { box-shadow: var(--shadow-float); border: 4px solid var(--surface); border-radius: calc(var(--r-sheet) + 4px); overflow: hidden; }
.hero-art img { border-radius: var(--r-sheet); }

/* Features */
.features { padding: 16px 0 48px; }
.features h2, .shots h2 { font-size: 26px; text-align: center; }
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 20px;
  display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 4px; align-items: start; align-content: start;
}
.card img { grid-row: 1 / span 2; width: 72px; height: 72px; padding: 6px; background: var(--muted); border-radius: var(--r-tile); }
.card h3 { font-size: 19px; padding-top: 4px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Screenshots */
.shots { background: var(--sunken); padding: 40px 0 48px; border-top: 1px solid var(--line); }
.note { margin: 8px 0 0; text-align: center; color: var(--text-2); font-size: 15px; }
.phones {
  list-style: none; margin: 24px -16px 0; padding: 4px 16px 16px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 16px; overscroll-behavior-x: contain;
}
.phones li { flex: none; width: 220px; scroll-snap-align: start; }
figure { margin: 0; }
.phone {
  background: var(--ink); padding: 7px; border-radius: 34px; box-shadow: var(--shadow-float);
}
.phone img { width: 100%; border-radius: 27px; background: var(--off); }
figcaption { margin-top: 10px; text-align: center; font-weight: 900; font-size: 16px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-in { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.copy { margin: 0; font-size: 14px; color: var(--text-2); }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
}
@media (min-width: 900px) {
  .phones { margin: 32px 0 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(3, 240px); justify-content: center; gap: 40px 48px; }
  .phones li { width: auto; }
}
@media (min-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-in { grid-template-columns: 5fr 7fr; align-items: center; gap: 48px; }
  .hero-text { align-items: flex-start; text-align: left; }
  .logo { width: 400px; margin-left: -8px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 19px; }
  .stores { justify-content: flex-start; }
  .features { padding: 24px 0 72px; }
  .features h2, .shots h2 { font-size: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
  .card { grid-template-columns: 1fr; padding: 24px; }
  .card img { grid-row: auto; margin-bottom: 12px; }
  .shots { padding: 64px 0 72px; }
  .footer-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store.is-live:active { transform: none; }
}
