@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-hebrew.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/rubik-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Assistant';
  src: url('/assets/fonts/assistant-hebrew.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  src: url('/assets/fonts/assistant-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F6F9FA;
  --ink: #12283A;
  --ink-soft: #3B5266;
  --road: #25435A;
  --teal: #0B6F7A;
  --signal: #F5B800;
  --tint: #DDEBEE;
  --line: #B9CCD2;
  --display: 'Rubik', 'Arial Hebrew', Arial, sans-serif;
  --body: 'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 125%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2 { font-family: var(--display); margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.1rem + 4.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.4rem); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--pad), 72rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -4rem; inset-inline-start: 1rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: .4rem;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--signal); }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 2.2rem; height: 2.2rem; flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .6rem 1.6rem;
  background: var(--signal); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--ink); border-radius: 999px;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; }
.btn--small { min-height: 2.75rem; padding-inline: 1.2rem; font-size: .9rem; }
.btn--wide { width: 100%; }
[hidden] { display: none !important; }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.lead { font-size: 1.2rem; max-width: 33rem; margin-block: 1.4rem 2rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.route { margin: 0; }
.route svg { display: block; width: 100%; height: auto; font-family: var(--display); }
.route__reveal { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .3s cubic-bezier(.45, 0, .2, 1) forwards; }
.route__stop { opacity: 0; animation: pop .4s ease forwards; }
.route__stop--1 { animation-delay: .2s; }
.route__stop--2 { animation-delay: 1.1s; }
.route__stop--3 { animation-delay: 2.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* bands */
.band { padding-block: var(--section); }
.band--tint { background: var(--tint); }
.split { display: grid; gap: 1.6rem; }
.prose p, .faq p { max-width: 34rem; }
.note { color: var(--ink-soft); font-size: .9rem; }

.plain { margin: 0 0 1.4em; padding: 0; list-style: none; max-width: 34rem; }
.plain li { padding-block: .35rem; padding-inline-start: 1.4rem; position: relative; }
.plain li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 1.05em;
  width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal);
}

.rows { margin: 0; padding: 0; list-style: none; max-width: 36rem; }
.rows li { padding-block: 1.1rem; border-top: 2px solid var(--ink); font-size: 1.1rem; }
.rows li:last-child { border-bottom: 2px solid var(--ink); }

.faq { max-width: 38rem; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 1.1rem; padding-inline-end: 2.4rem;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; inset-inline-end: 0; top: .75rem;
  width: 2rem; height: 2rem; line-height: 1.8rem; text-align: center;
  border: 2px solid var(--ink); border-radius: 50%; font-size: 1.3rem; font-weight: 500;
}
.faq details[open] summary::after { content: '\2212'; background: var(--signal); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); }

/* footer */
.foot { padding-block: 2rem; background: var(--paper); border-top: 1px solid var(--line); font-size: .9rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot__note { color: var(--ink-soft); }
.foot__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot__nav a { padding-block: .35rem; }

/* document pages (accessibility, privacy, terms) */
.docpage { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.docpage h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3rem); margin-bottom: .6rem; }
.docpage .meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: 2.4rem; }
.doc { max-width: 40rem; }
.doc h2 { font-size: 1.45rem; margin: 2.4rem 0 .7rem; }
.doc ul { margin: 0 0 1.2em; padding-inline-start: 1.3rem; }
.doc li { margin-bottom: .45rem; }
.doc a { color: var(--teal); text-underline-offset: .2em; }
.doc a:hover { color: var(--ink); }
.doc .box { background: var(--tint); border-radius: 1rem; padding: 1.1rem 1.3rem; margin: 0 0 1.4em; }
.doc .box p:last-child { margin-bottom: 0; }

@media (min-width: 56em) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .split { grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
  .split > h2 { position: sticky; top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route__reveal { animation: none; stroke-dashoffset: 0; }
  .route__stop { animation: none; opacity: 1; }
  .btn { transition: none; }
}

/* blog */
.crumbs { margin-bottom: 1.4rem; font-size: .9rem; color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: '‹'; margin-inline-end: .5rem; }
.crumbs a { padding-block: .3rem; }
.lead-doc { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.glance h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.glance dl { margin: 0; }
.glance dt { font-family: var(--display); font-weight: 600; margin-top: .7rem; }
.glance dd { margin: 0; }
.related { list-style: none; padding: 0; }
.related a { display: inline-block; padding-block: .25rem; }
.posts { margin: 0 0 1.4em; padding: 0; list-style: none; max-width: 40rem; }
.posts li { border-top: 2px solid var(--ink); }
.posts li:last-child { border-bottom: 2px solid var(--ink); }
.posts a { display: block; padding-block: 1.1rem; text-decoration: none; color: var(--ink); }
.posts__t { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: var(--signal); }
.posts__d { display: block; margin-top: .3rem; color: var(--ink-soft); }
.posts a:hover .posts__t { text-decoration-color: var(--ink); }
.docpage .note { margin-top: 2rem; }

/* long-form articles */
.doc ol { margin: 0 0 1.2em; padding-inline-start: 1.5rem; }
.toc { border-inline-start: 4px solid var(--signal); padding-inline-start: 1.1rem; margin: 0 0 2rem; }
.doc .toc h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.toc ol { margin: 0; }
.toc li { margin-bottom: .2rem; }
.toc a { display: inline-block; padding-block: .2rem; }
.doc .tip { background: transparent; border: 2px solid var(--ink); }
.doc .tip strong { font-family: var(--display); }
.doc .faq { margin-top: .4rem; }
.doc .faq summary { font-size: 1.05rem; }
.doc h2[id] { scroll-margin-top: 1.5rem; }
