/* website/assets/site.css — thimariq.com (B27 E2). THE DESIGN SYSTEM, ONCE: colour, type, space, radius, shadow as tokens; phone first;
   right to left done with logical properties (inline-start / inline-end), so one sheet serves the Arabic and the English page.
   The brand's two colours as in the app (frontend/app/_kit/tokens.ts, BRAND_COLOURS.md): green #103B28; lime #87FE48 — a FILL or text ON the green
   only (1.29:1 on white fails, so never text on a light ground). Fonts: the device's own (no download): SF Arabic / SF Pro on Apple, Segoe UI on
   Windows, Noto on Android — reached through system-ui. */
:root {
  --green: #103B28; --green-2: #174A37; --green-3: #1F5641; --lime: #87FE48;
  --paper: #F5F2EA; --surface: #FFFFFF; --sunken: #EEEAE0; --line: #E0D9CA; --line-2: #C9C0AD;
  --ink: #1B1A16; --muted: #57534A; --faint: #6B665B; --on-green: #FFFFFF; --on-green-muted: #C9DCCF;
  --citrus: #E8892B; --focus: #1F6FD1;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(27,26,22,.06), 0 1px 1px rgba(27,26,22,.04);
  --sh-md: 0 6px 18px -6px rgba(27,26,22,.14), 0 2px 4px -2px rgba(27,26,22,.06);
  --sh-lg: 0 28px 60px -18px rgba(16,59,40,.40), 0 10px 20px -10px rgba(16,59,40,.25);
  /* type scale (px): 14 · 16 · 18 · 21 · 26 · 32 · 40 · 52 — Arabic first, so the line height breathes */
  --t-xs: 14px; --t-sm: 16px; --t-md: 18px; --t-lg: 21px; --t-xl: 26px; --t-2xl: clamp(28px, 3.2vw, 40px); --t-hero: clamp(28px, 4.6vw, 52px);
  --font: system-ui, -apple-system, "SF Arabic", "SF Pro Text", "Segoe UI", "Noto Sans Arabic", "Noto Sans", Roboto, "Geeza Pro", Tahoma, sans-serif;
  --lh: 1.6; --lh-head: 1.25;
  --wrap: 1180px; --gutter: 20px;
}
:lang(ar) { --lh: 1.8; --lh-head: 1.45; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 var(--t-md)/var(--lh) var(--font); font-variant-numeric: lining-nums tabular-nums; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: var(--lh-head); letter-spacing: -0.01em; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0; }
a { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 50; }
.skip:focus { top: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s6); border-radius: var(--r-pill); border: 0;
  background: var(--green); color: #fff; font: 700 var(--t-sm)/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; box-shadow: var(--sh-sm); }
.btn:hover { background: #0A2A1C; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 var(--s8); font-size: var(--t-md); box-shadow: 0 10px 24px -10px rgba(16,59,40,.55); }
.btn-lime { background: var(--lime); color: var(--green); }
.btn-lime:hover { background: #A2FF70; }

/* the top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245,242,234,.86); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(201,192,173,.55); }
.top-in { display: flex; align-items: center; gap: var(--s3); min-height: 64px; }
.brand img { width: 118px; height: auto; }
.nav { display: none; gap: var(--s6); margin-inline-start: var(--s8); }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; opacity: .82; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang { margin-inline-start: auto; color: var(--green-2); font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 10px; border-radius: var(--r-md); }
.lang:hover { background: var(--sunken); }
.signin { color: var(--green); font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); white-space: nowrap; }
.signin:hover { background: var(--surface); border-color: var(--green-2); }
.nf .signin { margin-inline-start: auto; }
/* a phone: the top bar keeps the brand, the language and Sign in; "Request a pilot" is the first screen's big button (and the pilot band) */
@media (max-width: 520px) { .top .btn-sm { display: none; } .nf .signin { margin-inline-start: auto; } }

/* the privacy and terms pages, and the 404 page */
.doc-in { max-width: 760px; }
.doc h1 { font-size: var(--t-2xl); color: var(--green); }
.doc h2 { font-size: var(--t-xl); color: var(--green); margin-top: var(--s10); }
.doc h1 + h2 { margin-top: var(--s6); }
.doc p { margin-top: var(--s3); }
.doc .ver { color: var(--muted); font-weight: 700; }
.signed { margin-top: var(--s5); padding: var(--s5) var(--s6); background: var(--paper); border-radius: var(--r-lg); border-inline-start: 4px solid var(--green); display: grid; gap: var(--s2); }
.signed h3 { font-size: var(--t-md); color: var(--green); margin-top: var(--s3); }
.signed h3:first-child { margin-top: 0; }
.signed p { margin-top: 0; font-size: var(--t-sm); }
.doc .terms { margin-top: var(--s4); }
.more-link { margin-top: var(--s6) !important; font-weight: 700; font-size: var(--t-sm); }
.nf-in { min-height: 60vh; }
.nf-block { max-width: 640px; }
.nf-block + .nf-block { margin-top: var(--s12); padding-top: var(--s8); border-top: 1px solid var(--line); }
.nf-block h1, .nf-block h2 { color: var(--green); font-size: var(--t-2xl); }
.nf-block p { margin-top: var(--s3); color: var(--muted); }
.nf-block .btn { margin-top: var(--s5); }

/* the first screen */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 64px); display: flex; background: #EEF2E8; isolation: isolate; }
.hero-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero-art { position: absolute; inset-inline: 0; bottom: 0; width: 100%; z-index: -1; }
.hero-art-wide { display: none; height: 100%; }
.hero-art-phone { height: 54%; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 47%; background: linear-gradient(180deg, #EEF2E8 0%, #F5EFDE 100%); z-index: -2; }
.hero-in { display: block; padding-top: clamp(24px, 5vh, 56px); padding-bottom: 50svh; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: var(--t-hero); color: var(--green); font-weight: 800; text-wrap: balance; }
.hero .btn-lg { margin-top: var(--s5); }
.hero-every { margin-top: var(--s3); color: var(--green-2); font-weight: 600; font-size: var(--t-sm); }
.hero-phone { margin: 0; position: absolute; inset-inline-end: 16px; bottom: -118px; width: min(156px, 40vw); transform: rotate(-4deg); }
[dir="rtl"] .hero-phone { transform: rotate(4deg); }
.chip { position: absolute; inset-inline-start: 50%; top: -14px; white-space: nowrap; background: var(--green); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: var(--r-pill); box-shadow: var(--sh-md); transform: translateX(-50%); z-index: 2; }
[dir="rtl"] .chip { transform: translateX(50%); }

/* a phone frame around a real screenshot of the app */
.phone { position: relative; border-radius: 34px; padding: 7px; background: #0C110E; box-shadow: var(--sh-lg); }
.phone img { width: 100%; height: auto; border-radius: 27px; background: var(--paper); }

/* bands */
.band { padding-block: clamp(56px, 9vw, 104px); }
.band-paper { background: var(--paper); }
.band-green { background: radial-gradient(1200px 500px at 85% -10%, #1F5641 0%, rgba(31,86,65,0) 60%), var(--green); color: var(--on-green); }
.band-green h2 { color: #fff; }
.head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { margin-top: var(--s3); color: var(--muted); font-size: var(--t-md); }
.head h2::after { content: ""; display: block; width: 56px; height: 5px; margin-top: var(--s4); border-radius: 3px; background: var(--lime); box-shadow: inset 0 0 0 1px rgba(16,59,40,.18); }

/* the video */
.video-grid { display: grid; gap: var(--s8); align-items: center; }
.video-copy p { margin-top: var(--s3); color: var(--on-green-muted); max-width: 46ch; }
.video-copy .btn { margin-top: var(--s6); }
.video-frame { justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #0B2A1C; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* what it does */
.feats { display: grid; gap: var(--s6); }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s6) var(--s6) var(--s8); overflow: hidden; }
.feat-pic { height: 300px; margin: calc(-1 * var(--s6)) calc(-1 * var(--s6)) var(--s6); padding-top: var(--s8); background: linear-gradient(180deg, #E9EFE3, #F5F2EA); display: flex; justify-content: center; overflow: hidden; position: relative; }
.feat-pic .phone { width: 220px; align-self: flex-start; }
.feat-pic .phone-end { align-self: flex-end; margin-bottom: calc(-1 * var(--s6)); }   /* shows the lower half of the screen (Home's "Your farms") */
.feat-pic .screen { align-self: center; width: 92%; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-lg); padding-top: 22px; position: relative; }
.screen .dots { position: absolute; top: 7px; inset-inline-start: 10px; display: flex; gap: 5px; }
.screen .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.screen img { width: 100%; height: auto; }
.feat h3 { color: var(--green); }
.feat p { margin-top: var(--s2); color: var(--muted); }
.demo-line { margin-top: var(--s5); color: var(--faint); font-size: var(--t-xs); }

/* your farm's numbers */
.calc { display: grid; gap: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s5); box-shadow: var(--sh-md); }
.f { display: grid; gap: 6px; margin-bottom: var(--s4); }
.f > span { font-size: 15px; font-weight: 600; color: var(--muted); }
.f input, .f select { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #8A8170; border-radius: var(--r-md); background: #fff; color: var(--ink); font: 500 var(--t-md) var(--font); }
.f select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: right 18px center, right 12px center; padding-inline-end: 34px; }
[dir="rtl"] .f select { background-position: left 12px center, left 18px center; }
.f input:focus, .f select:focus { outline: 3px solid rgba(31,111,209,.35); border-color: var(--focus); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.private { display: flex; gap: var(--s2); align-items: flex-start; color: var(--green-2); font-size: 15px; font-weight: 600; background: #E2EEE7; border-radius: var(--r-md); padding: var(--s3); }
.private svg { flex: none; margin-top: 4px; }
.calc-out { background: var(--green); color: #fff; border-radius: var(--r-xl); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.out-crop { font-weight: 700; font-size: var(--t-lg); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: var(--s3) var(--s4); display: grid; gap: 2px; min-height: 104px; align-content: start; }
.tl { font-size: 14px; color: var(--on-green-muted); }
.tv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--lime); line-height: 1.2; }
.tv-n { font-size: clamp(22px, 3vw, 32px); font-weight: 800; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.tv-u { font-size: 14px; font-weight: 600; color: var(--on-green-muted); }
.tn { font-size: 13px; color: var(--on-green-muted); }
.tile.off .tv { color: rgba(255,255,255,.55); }
.season { background: rgba(255,255,255,.07); border-radius: var(--r-lg); padding: var(--s4); }
.season-head { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; font-size: 15px; }
.season-head span { color: var(--on-green-muted); }
.season-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: var(--s3); position: relative; }
.season-bar i { height: 26px; border-radius: 5px; background: rgba(255,255,255,.14); position: relative; }
.season-bar i.done { background: #5CBB90; }
.season-bar i.now { background: var(--lime); box-shadow: 0 0 0 2px rgba(135,254,72,.35); }
.season-bar i.now::after { content: attr(data-label); position: absolute; top: 32px; inset-inline-start: 50%; transform: translateX(-50%); font-size: 12px; font-style: normal; color: var(--lime); white-space: nowrap; font-weight: 700; }
[dir="rtl"] .season-bar i.now::after { transform: translateX(50%); }
.season-ends { display: flex; justify-content: space-between; margin-top: 26px; font-size: 13px; color: var(--on-green-muted); }
.after { font-size: 15px; color: var(--on-green-muted); border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--s4); }

/* who it is for */
.crops { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0 0 var(--s8); }
.crops li { padding: 8px 16px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--green-2); }
.whos { display: grid; gap: var(--s4); }
.who { border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s6); background: #fff; }
.who-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green); margin-bottom: var(--s4); }
.who-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.who p { margin-top: var(--s2); color: var(--muted); }
.today { margin-top: var(--s8); display: grid; gap: var(--s6); background: var(--paper); border-radius: var(--r-2xl); padding: var(--s8) var(--s6); border: 1px solid var(--line); }
.today p { margin-top: var(--s2); color: var(--muted); }
.founder { font-size: var(--t-xl); font-weight: 700; color: var(--green); line-height: var(--lh-head); padding-inline-start: var(--s5); border-inline-start: 5px solid var(--lime); align-self: center; }
.today .founder { margin-top: 0; color: var(--green); }

/* privacy and terms */
.two { display: grid; gap: var(--s10); }
.two h2 { margin-bottom: var(--s4); }
.lead { color: var(--muted); }
.quote { margin: var(--s4) 0; padding: var(--s5); background: #fff; border-radius: var(--r-lg); border-inline-start: 4px solid var(--green); display: grid; gap: var(--s3); color: var(--ink); font-size: var(--t-sm); }
.terms { margin: 0; padding-inline-start: 1.3em; display: grid; gap: var(--s3); color: var(--muted); font-size: var(--t-sm); }

/* the pilot request */
.pilot { display: grid; gap: var(--s8); align-items: start; }
.pilot-copy p { margin-top: var(--s3); color: var(--on-green-muted); max-width: 44ch; }
.pilot-form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-2xl); padding: var(--s6); }
.pilot-form .f > span { color: var(--on-green-muted); }
.pilot-form .btn { width: 100%; margin-top: var(--s2); }
.pilot-form .btn svg { flex: none; }
.form-hint { margin-top: var(--s3); color: var(--on-green-muted); font-size: 15px; }
.pilot-call { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.14); color: var(--on-green-muted); font-size: var(--t-sm); }
.pilot-call a { color: var(--lime); font-weight: 700; text-decoration: none; unicode-bidi: isolate; }
.pilot-none { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-2xl); padding: var(--s6); color: var(--on-green-muted); font-size: var(--t-md); }
.pilot-none .pilot-soon { color: #fff; font-weight: 700; font-size: var(--t-lg); margin-bottom: var(--s4); }
.pilot-none .btn { width: 100%; margin-top: var(--s4); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.form-note { margin-top: var(--s4); background: #fff; color: var(--ink); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: var(--t-sm); }

/* the footer */
.foot { background: #0B2A1C; color: var(--on-green-muted); padding-block: var(--s10); font-size: var(--t-sm); }
.foot-in { display: grid; gap: var(--s4); }
.foot-in img { width: 120px; height: auto; }
.foot nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.copy { font-size: var(--t-xs); opacity: .8; }

/* computer width */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .whos { grid-template-columns: repeat(3, 1fr); }
  .today { grid-template-columns: 1.4fr 1fr; padding: var(--s10); }
  .two { grid-template-columns: 1.4fr 1fr; gap: var(--s16); }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .brand img { width: 132px; }
  .hero { min-height: 860px; }
  .hero h1 { font-size: clamp(34px, 3.6vw, 50px); }
  .hero-art-wide { display: block; }
  .hero-art-phone { display: none; }
  .hero::before { display: none; }
  .hero-in { position: relative; padding-top: clamp(48px, 9vh, 96px); padding-bottom: 0; }
  .hero-copy { max-width: 690px; }
  .hero-phone { position: absolute; inset-inline-end: 56px; top: clamp(70px, 10vh, 100px); bottom: auto; width: 270px; }
  .chip { font-size: 13px; padding: 6px 12px; top: -44px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-frame { width: 340px; }
  .calc { grid-template-columns: 1fr 1.1fr; padding: var(--s8); gap: var(--s8); }
  .calc-out { padding: var(--s8); }
  .pilot { grid-template-columns: 1fr 1fr; }
  .feat-pic { height: 360px; }
  .feat-pic .phone { width: 250px; }
}
