/* farm247 — site.css
   The landing at farm247.co. The tokens and the recipes are Playground's
   landing (Playground Demo, static/css/landing.css), with farm247's red
   (#E1251B, the wordmark's) in place of Playground's purple. Class prefix
   ld-, as there. No dark theme: Playground has none. */

/* ── type: DM Sans, self-hosted (SIL Open Font License), so the page makes
   no third-party requests ── */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/DMSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/DMSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/DMSans-SemiBold.woff2') format('woff2'); }

/* ── design tokens (landing.css, brand swapped) ── */
:root {
  --canvas:        #F5F6F8;
  --surface:       #FFFFFF;
  --surface-2:     #F7F8FA;
  --surface-3:     #EEF0F4;
  --border:        #E4E7EC;
  --border-strong: #D0D5DD;
  --ink:    #111318;
  --ink-2:  #454C5E;
  --ink-3:  #6B7385;
  --brand:        #E1251B;
  --brand-ink:    #B31B12;
  --brand-hover:  #C51F16;
  --brand-tint:   #FCE3E1;
  --brand-tint-2: #FEF3F2;
  --amber:        #F5A524;
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-pill: 999px;
  --sh-2: 0 2px 4px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
  --sh-3: 0 8px 20px rgba(16,24,40,0.10), 0 2px 6px rgba(16,24,40,0.05);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t:      160ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --gutter: 24px;
}

/* ── base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ld {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
::selection { background: var(--brand-tint); color: var(--brand-ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }
.ld-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ld-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r); }
.ld-skip:focus { top: 12px; }

/* ── type ── */
.ld-h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; max-width: 16ch; text-wrap: balance; }
.ld-h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.ld-lede { font-size: clamp(16px, 1.45vw, 18.5px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; margin-top: 14px; text-wrap: pretty; }
.ld-small { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-wrap: pretty; }

/* ── the pen: one hand-drawn underline, drawn once in the markup (no
   script). Amber, never the brand red, as Playground's pen is never its
   purple. ── */
.ld-pen { position: relative; z-index: 0; white-space: nowrap; }
.ld-pen-svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.32em; z-index: -1; overflow: visible; pointer-events: none; }
.ld-pen-svg path { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .92; }

/* ── top bar ── */
.ld-top { padding: 18px 0; }
.ld-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ld-brand { display: inline-flex; text-decoration: none; }
.ld-brand img { height: 30px; width: auto; }
.ld-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.ld-nav a { text-decoration: none; transition: color var(--t-fast); }
.ld-nav a:hover { color: var(--ink); }
.ld-nav .ld-nav-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: var(--r-pill); background: var(--brand); color: #fff;
  font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background var(--t-fast);
}
.ld-nav .ld-nav-cta:hover { background: var(--brand-hover); color: #fff; }
@media (max-width: 720px) {
  .ld-nav a:not(.ld-nav-cta) { display: none; }
  .ld-nav .ld-nav-cta { height: 36px; padding: 0 14px; font-size: 13.5px; }
}

/* ── sections ── */
.ld-section { padding: clamp(64px, 9vw, 120px) 0 0; }
.ld-hero { padding-top: clamp(28px, 5vw, 72px); }
.ld-hero-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ── buttons ── */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.ld-btn:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-tint-2); }
.ld-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.ld-btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

/* ── the reel: playground.ar's strip (landing.css §made in Playground).
   One row height; the clips are 16:9, cropped to 4:3 cards as there.
   assets/reel.js sets --ld-half and --ld-drift and copies the cards. ── */
.ld-made { padding-top: clamp(42px, 5.94vw, 79px); }
.ld-reel { position: relative; overflow: hidden; padding: 12px 0 8px; --ld-reel-h: 300px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ld-reel-track { display: flex; gap: 18px; width: max-content; padding: 0 var(--gutter); animation: ld-drift var(--ld-drift, 60s) linear infinite; }
.ld-reel:hover .ld-reel-track { animation-play-state: paused; }
.ld-reel.is-static { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scrollbar-width: none; }
.ld-reel.is-static::-webkit-scrollbar { display: none; }
.ld-reel.is-static .ld-reel-track { animation: none; }
@keyframes ld-drift { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--ld-half, 0px))); } }
.ld-reel-card {
  position: relative; flex: none; width: calc(var(--ld-reel-h) * 4 / 3); margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow var(--t), border-color var(--t);
}
.ld-reel-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--border-strong); }
.ld-reel-media { position: relative; height: var(--ld-reel-h); background: #000; }
.ld-reel-media img, .ld-reel-media video { width: 100%; height: 100%; object-fit: cover; }
.ld-reel-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.ld-reel-media.is-playing video { opacity: 1; }
.ld-reel-ai { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(17,19,24,.72); color: #fff; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2px; }
.ld-reel-cap { padding: 11px 13px 12px; }
.ld-reel-cap b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-reel-cap span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-reel-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .ld-reel { --ld-reel-h: 220px; } }

/* ── draft and upscale: one stacked clip drawn on a canvas, the draft left
   of the bar and the upscale right of it (assets/compare.js). The video
   sits under the canvas, full size, so the browser keeps decoding it. ── */
.ld-compare-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ld-pill { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.ld-pill:hover { border-color: var(--brand); color: var(--brand-ink); }
.ld-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ld-compare { position: relative; margin-top: 16px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--sh-3); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ld-compare video, .ld-compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ld-compare canvas { background: #000; }
.ld-compare-tag { position: absolute; top: 12px; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(17,19,24,.72); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 500; pointer-events: none; }
.ld-compare-l { left: 12px; }
.ld-compare-r { right: 12px; }
.ld-compare-bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ld-compare-handle { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-3); pointer-events: auto; cursor: ew-resize; }
.ld-compare-handle::before, .ld-compare-handle::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border: 5px solid transparent; }
.ld-compare-handle::before { left: 7px; border-right: 7px solid var(--ink); }
.ld-compare-handle::after { right: 7px; border-left: 7px solid var(--ink); }
@media (max-width: 640px) { .ld-compare-tag { top: 8px; font-size: 10px; } .ld-compare-l { left: 8px; } .ld-compare-r { right: 8px; } }

/* ── how it works: four numbered steps (landing.css §how it works) ── */
.ld-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.ld-step { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.ld-step-n { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding: 2px 6px; border-radius: var(--r-sm); background: var(--surface-3); }
.ld-step h3 { margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ld-step p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 900px) { .ld-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ld-steps { grid-template-columns: 1fr; gap: 12px; } }

/* ── plans: the capability cards' recipe (landing.css §what you can do) ── */
.ld-plans { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.ld-plan {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  transition: border-color var(--t), box-shadow var(--t), transform .4s var(--ease-out);
}
.ld-plan::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); }
.ld-plan:hover { border-color: var(--border-strong); box-shadow: var(--sh-3); transform: translateY(-2px); }
.ld-plan h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ld-price { margin-top: 10px; color: var(--ink-3); font-size: 14px; }
.ld-price b { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
/* Starter's intro: the full price struck through, the price now in red */
.ld-price s { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-3); text-decoration-thickness: 2px; }
.ld-price b.ld-price-now { color: var(--brand); }
.ld-intro { margin-top: 2px; min-height: 1.5em; font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.ld-feats { list-style: none; margin: 18px 0 22px; flex: 1; }
.ld-feats li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--ink-2); }
.ld-feats li b { color: var(--ink); font-weight: 600; }
.ld-plan .ld-btn { width: 100%; }
.ld-plan-ent::before { background: var(--ink); }
/* the videos-a-week slider (plans.js shows it) */
.ld-slider { display: block; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.ld-slider[hidden] { display: none; }
.ld-slider output { font-weight: 600; color: var(--ink); }
.ld-range { display: block; width: 100%; margin-top: 8px; accent-color: var(--brand); cursor: pointer; }
@media (max-width: 1080px) { .ld-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ld-plans { grid-template-columns: 1fr; } }

/* the last section before the footer */
.ld-last { padding-bottom: clamp(48px, 7vw, 96px); }

/* ── footer ── */
.ld-foot { border-top: 1px solid var(--border); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--ink-3); }
.ld-foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
/* "Powered by" and Playground's full logo (mark and wordmark, one image) */
.ld-powered { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; transition: color var(--t-fast); }
.ld-powered:hover { color: var(--ink); }
.ld-powered img { height: 22px; width: auto; }
@media (max-width: 560px) { .ld-foot-row { flex-direction: column; } }

/* ── not found (404.html) ── */
.ld-nf { padding: clamp(40px, 8vw, 96px) 0 clamp(64px, 10vw, 128px); }
.ld-nf .ld-hero-go { margin-top: 24px; }

@media (max-width: 640px) { :root { --gutter: 16px; } .ld-lede { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ld-plan, .ld-reel-card { transition: none; }
  .ld-reel-track { animation: none !important; }
}
