/* Israel National Trail app — site styles */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #14213d;
  --muted: #5a6b82;
  --line: #e3e7ee;
  --blue: #1e63e9;
  --blue-ink: #0d3fa8;
  --blue-soft: #e4edff;
  --orange: #ff9f1c;
  --orange-ink: #c96a00;
  --orange-soft: #fff1dc;
  --stripe-white: #ffffff;
  --btn-bg: #1e63e9;
  --btn-text: #ffffff;
  --shadow: 0 12px 32px -12px rgba(20, 33, 61, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(20, 33, 61, 0.45);
  --radius: 18px;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1524;
    --surface: #152036;
    --surface-2: #1b2a45;
    --text: #eaf0fa;
    --muted: #a3b1c6;
    --line: #26364f;
    --blue: #6a9cff;
    --blue-ink: #a9c4ff;
    --blue-soft: #1a2d52;
    --orange: #ffb13b;
    --orange-ink: #ffc46a;
    --orange-soft: #3a2a12;
    --stripe-white: #f4f6fa;
    --btn-bg: #7aa6ff;
    --btn-text: #0d1524;
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Trail blaze mark (orange / blue / white) */
.blaze {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--orange) 0 34%, var(--blue) 34% 67%, var(--stripe-white) 67% 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,.15), inset 0 0 0 1px rgba(0,0,0,.06);
  flex: none;
}
.blaze--sm { width: 28px; height: 28px; border-radius: 7px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .blaze { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.nav a { color: var(--muted); padding: 8px 11px; border-radius: 10px; font-weight: 500; font-size: .97rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.btn { color: var(--btn-text); background: var(--btn-bg); }
.nav a.btn:hover { color: var(--btn-text); background: var(--btn-bg); }
.lang-select { position: relative; display: inline-flex; align-items: center; margin-inline-start: 8px; color: var(--muted); }
.lang-select .globe { position: absolute; inset-inline-start: 11px; width: 18px; height: 18px; pointer-events: none; }
.lang-select::after {
  content: ""; position: absolute; inset-inline-end: 13px; top: 50%; width: 7px; height: 7px;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.lang-select select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 30px 8px 36px; padding-inline: 36px 30px; cursor: pointer; max-width: 170px;
}
.lang-select select:hover { border-color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600;
  background: var(--btn-bg); color: var(--btn-text); border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  font: inherit; font-weight: 600; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--sm { padding: 8px 14px; font-size: .95rem; }
@media (max-width: 1040px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .site-header .container { gap: 12px; }
  .brand { font-size: .98rem; }
  .nav .btn { display: none; }
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-block; border-radius: 8px; transition: transform .15s ease; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 54px; width: auto; }
@media (max-width: 480px) { .stores img { height: 48px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 34rem; margin-bottom: 28px; }
.hero__note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__glow {
  position: absolute; inset: -10% -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 30%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 70%),
    radial-gradient(35% 35% at 75% 70%, color-mix(in srgb, var(--orange) 30%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero__blaze {
  position: absolute; z-index: 0; width: 360px; height: 360px; border-radius: 96px;
  top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  background: linear-gradient(135deg, var(--orange) 0 34%, var(--blue) 34% 67%, var(--stripe-white) 67% 100%);
  opacity: .16;
}
.phone {
  position: relative; z-index: 1;
  width: 280px; aspect-ratio: 540 / 1037;
  border-radius: 40px; padding: 10px;
  background: #0b1020;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone img, .phone picture { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.phone--sm { width: 230px; border-radius: 34px; padding: 8px; }
.phone--sm img { border-radius: 27px; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .hero__eyebrow { justify-content: center; }
  .phone { width: 250px; }
}

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--orange) 0 34%, var(--blue) 34% 67%, var(--stripe-white) 67%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features .card--wide { grid-column: span 2; display: flex; gap: 22px; align-items: center; }
.features .card--wide .card__icon { margin-bottom: 0; flex: none; width: 56px; height: 56px; }
.features .card--wide h3 { font-size: 1.3rem; }
.features .card--wide p { font-size: 1.05rem; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .features .card--wide { grid-column: auto; display: block; }
  .features .card--wide .card__icon { margin-bottom: 16px; width: 48px; height: 48px; }
  .features .card--wide h3 { font-size: 1.15rem; }
  .features .card--wide p { font-size: 1rem; }
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(20,33,61,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.section--alt .card { background: var(--bg); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card:nth-child(4n+2) .card__icon { background: var(--orange-soft); color: var(--orange-ink); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Screens */
.screens { display: flex; gap: 28px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.screen { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 260px; text-align: center; }
.screen p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 640px) {
  .screens { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 20px; margin-inline: -24px; }
  .screen { scroll-snap-align: center; flex: 0 0 220px; }
}

/* Angels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split .card { padding: 30px; }
.split .card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.split ul { margin: 12px 0 0; padding-inline-start: 1.2em; color: var(--muted); }
.split li { margin-bottom: 8px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--blue-ink), var(--blue));
  color: #fff; padding: 64px 0;
  position: relative; overflow: hidden;
}
@media (prefers-color-scheme: dark) { .cta { background: linear-gradient(120deg, #1a3f8f, #2f6fe0); } }
.cta .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: rgba(255,255,255,.82); margin: 0; font-size: 1.1rem; }
.cta::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 420px; height: 420px; border-radius: 120px;
  background: linear-gradient(135deg, var(--orange) 0 34%, #fff 34% 67%, transparent 67%); opacity: .14; transform: rotate(15deg);
}

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Article (privacy) */
.article { max-width: 780px; padding: 48px 0 80px; }
.article h1 { margin-bottom: 8px; }
.article .updated { color: var(--muted); margin-bottom: 32px; }
.article h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: .2em; }
.article h3 { font-size: 1.12rem; margin-top: 1.6em; }
.article ul { padding-inline-start: 1.3em; }
.article li { margin-bottom: .45em; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .97rem; }
.article th, .article td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.article .table-wrap { overflow-x: auto; }
.summary {
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--orange);
  border-radius: 14px; padding: 20px 24px; margin: 24px 0 8px;
}
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.summary ul { margin: 0; }
.toc { columns: 2; gap: 32px; margin: 8px 0 24px; padding-inline-start: 1.9em; font-size: .97rem; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 560px) { .toc { columns: 1; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0 20px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 44px; margin-bottom: 12px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
}
kbd.ui { font-family: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .92em; white-space: nowrap; }

/* Error page */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.error-page .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--orange) 0 48%, var(--blue) 52%); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .stores a { transition: none; }
}
