/* Fifti landing page. Every color is a variable (Saffron & Ink); light mode comes from html[data-theme="light"],
   which lang.js sets before first paint. Logical properties only, so RTL and LTR share one stylesheet. */
:root {
  color-scheme: dark;
  /* Palette: Saffron & Ink (chosen 2026-10-25), the same tokens as the app (frontend/src/index.css) */
  --bg: #121016;
  --bg-elev: #1a1720;
  --panel: rgba(28, 25, 34, 0.86);
  --line: rgba(247, 243, 234, 0.1);
  --text: #f7f3ea;
  --text-soft: #ddd6c8;
  --muted: #a39b8e;
  --header-bg: rgba(18, 16, 22, 0.76);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(247, 243, 234, 0.2);
  --shadow: rgba(0, 0, 0, 0.45);
  --btn-1: #ffd666;
  --btn-2: #ffc531;
  --btn-ink: #15131f;
  --link: #ffd666;
  --accent: #ffc531;
  --accent-dim: rgba(255, 197, 49, 0.14);
  --accent-glow: rgba(255, 197, 49, 0.22);
  --pos: #34c38f;
  --neg: #ff7a59;
  --glow-1: rgba(255, 197, 49, 0.13);
  --glow-2: rgba(255, 122, 89, 0.07);
  --coin-a1: #ffd23f;
  --coin-a2: #f5a800;
  --coin-b1: #f7f3ea;
  --coin-b2: #cfc6b4;
  --radius: 18px;
  /* System fonts only: no third-party requests from this page */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fffbf2;
  --bg-elev: #ffffff;
  --panel: rgba(255, 255, 255, 0.95);
  --line: rgba(21, 19, 31, 0.09);
  --text: #15131f;
  --text-soft: #3a3546;
  --muted: #6b6476;
  --header-bg: rgba(255, 251, 242, 0.85);
  --input-bg: #ffffff;
  --input-border: rgba(21, 19, 31, 0.16);
  --shadow: rgba(21, 19, 31, 0.1);
  --btn-1: #ffd23f;
  --btn-2: #ffc531;
  --btn-ink: #15131f;
  --link: #8a5a00;
  --accent: #e0a800;
  --accent-dim: rgba(255, 197, 49, 0.22);
  --accent-glow: rgba(224, 168, 0, 0.25);
  --pos: #12855c;
  --neg: #d9472b;
  --glow-1: rgba(255, 197, 49, 0.28);
  --glow-2: rgba(255, 122, 89, 0.08);
  --coin-a1: #ffd23f;
  --coin-a2: #f5a800;
  --coin-b1: #2b2735;
  --coin-b2: #15131f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(50rem 35rem at 0% 30%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* One language visible at a time; the logo variant that matches the background */
html[data-lang="he"] .en,
html[data-lang="en"] .he,
:root[data-theme="light"] .logo-on-dark,
:root:not([data-theme="light"]) .logo-on-light { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
a { color: var(--link); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: var(--header-bg); border-block-end: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { display: block; height: 34px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch, .theme-switch {
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.theme-switch { padding: 6px 10px; line-height: 0; }
.theme-switch svg { width: 18px; height: 18px; }
:root[data-theme="light"] .theme-switch .sun,
:root:not([data-theme="light"]) .theme-switch .moon { display: none; }
.lang-switch:hover, .theme-switch:hover { border-color: var(--accent); }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
  color: var(--btn-ink); font: inherit; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 12px; padding: 14px 22px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; border-radius: 10px; box-shadow: none; }

.notify-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 520px; margin-block-start: 28px; }
.notify-form input[type="email"] {
  min-width: 0; font: inherit; color: var(--text); background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: 12px; padding: 14px 16px; outline: none;
}
.notify-form input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.notify-form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 0.875rem; color: var(--muted); }
.form-note.ok { color: var(--pos); font-weight: 500; }
.form-note.err { color: var(--neg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-block: 72px 56px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
html[data-lang="he"] h1 { letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--text-soft); margin: 0; max-width: 34em; }

.hero-art { position: relative; display: grid; gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 18px 50px var(--shadow);
}
.card.settle { margin-inline-start: 48px; }
.card-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; margin-block-end: 12px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.coin-a { background: linear-gradient(135deg, var(--coin-a1), var(--coin-a2)); }
.dot.coin-b { background: linear-gradient(135deg, var(--coin-b1), var(--coin-b2)); }
.items, .transfers { list-style: none; margin: 0; padding: 0; }
.items li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "orig num" "tr num";
  padding-block: 9px; border-block-end: 1px dashed var(--line);
}
.items .orig { grid-area: orig; color: var(--muted); font-size: 0.85rem; }
.items .tr { grid-area: tr; font-weight: 500; }
.items .num { grid-area: num; align-self: center; font-weight: 700; }
.total { display: flex; justify-content: space-between; padding-block-start: 12px; font-weight: 700; }
.transfers li { display: flex; justify-content: space-between; padding-block: 8px; border-block-end: 1px dashed var(--line); }
.transfers .num { font-weight: 700; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.settle p { margin: 10px 0 0; }

/* Sections */
section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 28px; text-align: center; font-weight: 800; }
.features, .steps, .plans, .cta { padding-block: 56px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature, .plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3, .plan h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--text-soft); }

.steps ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text-soft); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-dim); color: var(--link); font-weight: 800; margin-block-end: 12px;
}
.steps strong { display: block; color: var(--text); font-size: 1.1rem; margin-block-end: 4px; }

.plans .muted.center { margin: -16px 0 28px; }
.plan-tag { color: var(--muted); margin: 0 0 14px; }
.plan ul { margin: 0; padding-inline-start: 1.1em; color: var(--text-soft); }
.plan li { margin-block: 6px; }
.plan.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim), 0 18px 50px var(--accent-dim); }

.cta { text-align: center; }
.cta .notify-form { margin-inline: auto; text-align: start; }

/* Footer */
.foot { border-block-start: 1px solid var(--line); padding-block: 28px; margin-block-start: 24px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { margin: 0; }

/* Legal pages */
.doc { max-width: 760px; padding-block: 48px 72px; }
.doc h1 { font-size: 2rem; }
.doc h2 { text-align: start; font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 48px 32px; gap: 40px; }
  .card.settle { margin-inline-start: 24px; }
  .grid, .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .notify-form { grid-template-columns: 1fr; }
  .btn-small { display: none; }
  .card.settle { margin-inline-start: 0; }
}
