/* Fonts, as in the app: Young Serif for titles, Rubik for Hebrew titles, Figtree for text, and Hebrew text in the system's
   own. All SIL OFL (fonts/OFL-*.txt), served from this site with no third-party requests; each file loads only for the
   characters it covers. */
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/young-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/young-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/rubik-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

/* Fifti's website. Every color is a variable: Indigo, the same tokens as the app (frontend/src/index.css, whose comment
   gives the rules). 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;
  --bg: oklch(0.18 0.012 264);
  --panel: oklch(0.29 0.02 264);
  --panel-border: oklch(0.96 0.02 264 / 0.2);
  --line: oklch(0.96 0.02 264 / 0.12);
  --text: oklch(0.96 0.015 264);
  --text-soft: oklch(0.88 0.02 264);
  --muted: oklch(0.79 0.03 264);
  --header-bg: oklch(0.18 0.012 264 / 0.8);
  --input-bg: oklch(0.32 0.02 264);
  --input-border: oklch(0.61 0.05 264);
  --shadow: rgba(0, 0, 0, 0.45);
  --btn-ink: oklch(0.18 0.02 264);
  --link: oklch(0.82 0.08 264);
  --accent: oklch(0.72 0.1 264);
  --accent-dim: oklch(0.72 0.1 264 / 0.18);
  --accent-glow: oklch(0.72 0.1 264 / 0.26);
  --pos: oklch(0.83 0.081 145.9);
  --neg: oklch(0.801 0.093 37.3);
  --coin-a1: oklch(0.72 0.1 264);
  --coin-a2: oklch(0.64 0.1 264);
  --coin-b1: oklch(0.94 0.01 264);
  --coin-b2: oklch(0.82 0.02 264);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --font-display: "Young Serif", "Rubik", Georgia, "Noto Sans Hebrew", serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(0.9 0.025 264);
  --panel: oklch(0.975 0.01 264);
  --panel-border: oklch(0.2 0.02 264 / 0.24);
  --line: oklch(0.2 0.02 264 / 0.13);
  --text: oklch(0.2 0.025 264);
  --text-soft: oklch(0.31 0.03 264);
  --muted: oklch(0.42 0.03 264);
  --header-bg: oklch(0.9 0.025 264 / 0.85);
  --input-bg: oklch(0.995 0.005 264);
  --input-border: oklch(0.58 0.05 264);
  --shadow: oklch(0.35 0.03 264 / 0.16);
  --btn-ink: oklch(0.99 0.008 264);
  --link: oklch(0.42 0.1 264);
  --accent: oklch(0.48 0.1 264);
  --accent-dim: oklch(0.48 0.1 264 / 0.14);
  --accent-glow: oklch(0.48 0.1 264 / 0.26);
  --pos: oklch(0.435 0.079 148.6);
  --neg: oklch(0.45 0.129 30.2);
  --coin-a1: oklch(0.6 0.1 264);
  --coin-a2: oklch(0.48 0.1 264);
  --coin-b1: oklch(0.32 0.02 264);
  --coin-b2: oklch(0.25 0.02 264);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: 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="he"] .es,
html[data-lang="en"] .he, html[data-lang="en"] .es,
html[data-lang="es"] .en, html[data-lang="es"] .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;
}
select.lang-switch { appearance: none; -webkit-appearance: none; padding-inline: 14px; text-align: center; }
select.lang-switch option { color: var(--text); background: var(--bg); } /* the open list follows the theme */
.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: var(--accent);
  color: var(--btn-ink); font: inherit; font-weight: 700; text-decoration: none;
  border: 0; border-radius: var(--radius-sm); padding: 14px 22px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px 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; }
#join { scroll-margin-block-start: 96px; } /* the header button lands here, clear of the sticky header */
.no-limits {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 7px 14px; border-radius: 12px;
  background: var(--accent-dim); color: var(--link); font-weight: 600; font-size: 0.92rem; line-height: 1.45;
}
.no-limits::before { content: "✓"; font-weight: 800; }
.no-limits + .notify-form { margin-block-start: 18px; }
.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: var(--radius-sm); 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; }
html[data-lang="he"] h1 { letter-spacing: 0; line-height: 1.15; }
h1, h2, h3, .steps strong { font-family: var(--font-display); font-weight: 600; font-synthesis: none; }
.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(--panel-border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 18px 50px var(--shadow);
}
.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; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "what num" "how num"; column-gap: 12px;
  padding-block: 8px; border-block-end: 1px dashed var(--line);
}
.lines .what { grid-area: what; font-weight: 500; }
.lines .how { grid-area: how; color: var(--muted); font-size: 0.85rem; }
.lines .num { grid-area: num; align-self: center; font-weight: 700; }

/* Use-case carousel (app.js): one slide per kind of shared tab. It scrolls in reading direction (a flex row follows
   html[dir]), snaps per slide, and can be swiped, stepped with the buttons or dots, or paused. */
.carousel { display: block; min-width: 0; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; outline: none; border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { box-shadow: 0 0 0 3px var(--accent-dim); }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; gap: 16px; align-content: start; padding: 6px 12px 26px; }
.slide .card { box-shadow: 0 8px 22px var(--shadow); } /* smaller: the track's edges would cut a big shadow */
.use-chip {
  justify-self: start; margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--accent-dim); color: var(--link);
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.car-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.car-btn:hover { border-color: var(--accent); }
.car-btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .car-btn .chev { transform: scaleX(-1); } /* "next" points the way the slides move */
.carousel .i-play, .carousel.is-paused .i-pause, .carousel .when-paused, .carousel.is-paused .when-playing { display: none; }
.carousel.is-paused .i-play, .carousel.is-paused .when-paused { display: inline; }
.car-dots { display: flex; align-items: center; gap: 6px; }
.car-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: var(--line);
  transition: width 0.25s, background-color 0.25s;
}
.car-dots button[aria-current="true"] { width: 22px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .car-dots button { transition: none; }
}

/* Sections */
section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 28px; text-align: center; }
.features, .steps, .plans, .cta { padding-block: 56px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plans-grid { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.feature, .plan { background: var(--panel); border: 1px solid var(--panel-border); 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(--panel-border); 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; }
.plans h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 28px; text-align: center; } /* /pricing */
.plans-more { margin: 24px 0 0; }
.doc.pricing-details { padding-block-start: 0; }
.plan-tag { color: var(--muted); margin: 0 0 6px; }
.plan-for { color: var(--link); font-size: 0.875rem; font-weight: 600; margin: 0 0 14px; } /* the carousel's uses it fits */
.plan-price { font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.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; }
  .grid, .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  select.lang-switch { font-size: 16px; } /* iOS zooms in on a smaller one when tapped */
  body { font-size: 16px; }
  .notify-form { grid-template-columns: 1fr; }
  .btn-small { display: none; }
}

.doc ul { padding-inline-start: 1.25rem; }
.doc li { margin-block: 6px; }
