/* Kumo landing page. Light and dark follow the system. Logical properties (inline-start/end) make
   the same rules work left-to-right (English) and right-to-left (Persian). */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn-fa.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}

:root {
  color-scheme: light dark;
  --bg: #f3faf6;
  --surface: #ffffff;
  --surface-2: #e9f5ee;
  --text: #0e1f19;
  --muted: #4a6057;
  --line: #d3e5db;
  --brand: #1c7a4c;
  --brand-strong: #14633c;
  --on-brand: #ffffff;
  --brand-soft: #dcf3e7;
  --focus: #1a5fd0;
  --shadow: 0 1px 2px rgba(14, 31, 25, .06), 0 12px 32px rgba(14, 31, 25, .10);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #12201b;
    --surface-2: #0f1b17;
    --text: #e6f2ec;
    --muted: #9db4a9;
    --line: #223730;
    --brand: #3ecf8e;
    --brand-strong: #6fe0ae;
    --on-brand: #04210f;
    --brand-soft: #16372a;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
html[lang="fa"] body { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.lang { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  min-height: 34px; padding: 0 14px; border-radius: 9px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(700px 420px at -10% 10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; font-weight: 600;
}
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
html[lang="fa"] h1 { line-height: 1.35; letter-spacing: 0; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 16px; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 38%, transparent); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.cta-meta { margin-top: 12px; color: var(--muted); font-size: 14px; min-height: 1.6em; }
.cta-note {
  margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-size: 15px; max-width: 34em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { padding: 5px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--brand-strong); background: var(--surface); }
.trust { margin-top: 18px; font-size: 14px; color: var(--muted); }

.stage { position: relative; padding-bottom: 44px; }
.shot-desktop { width: 92%; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot-phone {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 27%;
  border: 5px solid #0d1b16; border-radius: 26px; box-shadow: var(--shadow); background: var(--surface);
}

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
html[lang="fa"] .section-head h2 { line-height: 1.45; letter-spacing: 0; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.ic {
  width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 16px;
  fill: none; stroke: var(--brand-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 19px; line-height: 1.35; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Download */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  appearance: none; font: inherit; font-weight: 600; min-height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line); transition: background-color .15s ease, border-color .15s ease;
}
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.file:last-child { border-bottom: 0; }
.file.is-primary { background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); }
.file .t { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file .hint { grid-column: 1; color: var(--muted); font-size: 14px; }
.file .size { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.file .btn { grid-row: 1 / span 2; grid-column: 3; }
.badge { padding: 2px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.fname { display: block; font-size: 12.5px; opacity: .8; overflow-wrap: anywhere; text-align: start; }
html[dir="rtl"] .fname { text-align: right; }
.dl-notes { margin-top: 22px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; max-width: 46em; }
.plain-link { margin-top: 14px; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.notes li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.notes h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.notes p { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot > div { max-width: 36em; display: grid; gap: 8px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.foot-brand img { border-radius: 8px; }
.links { display: grid; gap: 8px; align-content: start; }
.links a { color: var(--text); }

@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .section { padding: 60px 0; }
  .stage { max-width: 560px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .file { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .file .size { grid-column: 1; grid-row: 3; }
  .file .btn { grid-row: 1 / span 3; grid-column: 2; }
  .shot-phone { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover, .btn-primary:hover { transform: none; }
}
