/* Otlub landing page — tokens mirror designsystem/.../tokens/Tokens.kt (same values as admin.css). */
:root {
  --primary: #E8542F;
  --primary-soft: #FFF3EE;
  --primary-strong: #C9421F;
  --background: #FFFFFF;
  --surface: #F6F6F7;
  --border: #E3E4E8;
  --text: #111827;
  --text-muted: #6B7280;
  --text-inverse: #FFFFFF;
  --success: #16A34A;
  --success-soft: #ECFDF5;
  --info: #0EA5E9;
  --info-soft: #EFF8FF;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 40px;
  --space-3xl: 72px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 18px rgba(17, 24, 39, 0.06);
  --shadow-float: 0 18px 40px rgba(17, 24, 39, 0.10);
  --content: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
img { max-width: 100%; height: auto; display: block; }
.accent { color: var(--primary); }
.wrap { width: min(100% - 2 * var(--space-xl), var(--content)); margin-inline: auto; }
.section { padding-block: var(--space-3xl); }
.section-head { max-width: 620px; margin-bottom: var(--space-2xl); display: grid; gap: var(--space-md); }
.section-head.centred { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary-strong);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  width: fit-content;
}
.section-head.centred .eyebrow { margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* Top bar ------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--text); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.topnav { display: flex; align-items: center; gap: var(--space-xl); }
.topnav .nav-link { color: var(--text-muted); font-weight: 600; }
.topnav .nav-link:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; white-space: nowrap; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--background); }
.btn-ghost:hover { background: var(--surface); }

.lang-switch { min-height: 40px; padding: 0 14px; font-size: 0.88rem; }

/* Arabic (RTL) — flex/grid mirror on their own; only the Latin-centric tracking needs resetting. */
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .step-who { letter-spacing: 0; }

/* Hero --------------------------------------------------------------- */
.hero { padding-block: var(--space-3xl); background: linear-gradient(180deg, var(--background) 0%, var(--primary-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-2xl); align-items: center; }
.hero-copy { display: grid; gap: var(--space-xl); min-width: 0; }
.hero-copy .lead { max-width: 520px; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; filter: drop-shadow(0 24px 30px rgba(201, 66, 31, 0.12)); }
.hero-note { display: flex; flex-wrap: wrap; gap: var(--space-lg); color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.hero-note li { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.hero-note ul, ul.hero-note { margin: 0; padding: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }

/* Store badges ------------------------------------------------------- */
.store-links { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 18px 8px 14px; border-radius: var(--radius-md);
  background: var(--text); color: var(--text-inverse); border: 1px solid var(--text);
  line-height: 1.1; transition: transform 120ms ease, box-shadow 120ms ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge-text { display: grid; gap: 2px; }
.store-badge-text small { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.store-badge-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.store-links.light .store-badge { background: var(--background); color: var(--text); border-color: var(--border); }

/* How it works ------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 26px;
  border-top: 3px dashed var(--border); z-index: 0;
}
.step { position: relative; z-index: 1; min-width: 0; display: grid; gap: var(--space-md); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-lg); box-shadow: var(--shadow-card); }
.step-number {
  counter-increment: step;
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--text-inverse); font-weight: 800; font-size: 1rem;
  margin-top: -34px; border: 4px solid var(--background);
}
.step-number::before { content: counter(step); }
.step-art { margin: 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.step-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step h3 { display: flex; align-items: center; gap: var(--space-sm); }
.step p { color: var(--text-muted); font-size: 0.95rem; }
.step-who { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-strong); }

/* Why Otlub ---------------------------------------------------------- */
.why { background: var(--surface); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.benefit { display: grid; min-width: 0; gap: var(--space-md); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-xl); }
.benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.benefit-icon.green { background: var(--success-soft); color: var(--success); }
.benefit-icon.blue { background: var(--info-soft); color: var(--info); }
.benefit-icon svg { width: 26px; height: 26px; }
.benefit p { color: var(--text-muted); }

/* Download band ------------------------------------------------------ */
.download { padding-block: var(--space-3xl); }
.download-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center;
  background: var(--text); color: var(--text-inverse); border-radius: var(--radius-xl); padding: clamp(var(--space-xl), 5vw, 56px);
  box-shadow: var(--shadow-float);
}
.download-card h2 { color: var(--text-inverse); }
.download-card .lead { color: rgba(255, 255, 255, 0.72); }
.download-copy { display: grid; gap: var(--space-lg); min-width: 0; }
.download-art { margin: 0; background: var(--primary-soft); border-radius: var(--radius-lg); padding: var(--space-lg); }
.download-card .plate {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: var(--background); color: var(--text); border-radius: 8px; padding: 4px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: 0.08em;
  direction: ltr; unicode-bidi: isolate;
}

/* Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-xl); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: var(--space-lg); }
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-version { font-size: 0.8em; opacity: 0.8; unicode-bidi: isolate; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .download-card { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .step-number { margin-top: 0; border-width: 0; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .download-art { display: none; }
}
@media (max-width: 600px) {
  .section, .hero, .download { padding-block: var(--space-2xl); }
  .topnav .nav-link { display: none; }
  .topnav { gap: var(--space-sm); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .store-links .store-badge { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-badge { transition: none; }
}
