/* Skippy landing page.
 *
 * Palette and radii come from app/src/theme/tokens.js — this file must not
 * invent brand colours. The one addition is --chart-paper, an ochre wash that
 * echoes the land tint on an Admiralty chart; it is scoped to the ניווט א'
 * band, where the page deliberately changes material from sea-mist to chart
 * sheet. Brass is the tokens' milestone accent and is likewise spent only
 * there — that band is the milestone.
 *
 * Type is three roles from one family. Rubik is the brand face and Hebrew
 * display faces cannot be loaded from a CDN here, so contrast is carried by
 * weight, scale and tracking rather than by a second family:
 *   display  Rubik 800, tight tracking, line-height 1.12
 *   body     Rubik 400, ~65ch measure
 *   label    Rubik 600, letterspaced, tabular-nums — the chart-annotation role
 */

:root {
  --primary: #0C6E7B;
  --primary-gradient: #13959F;
  --primary-soft: #E2F0F2;
  --surface: #FFFFFF;
  --background: #EDF2F5;
  --ink: #0E2A3B;
  --ink-muted: #62808E;
  --line: #DBE5EA;
  --line-soft: #EEF3F5;
  --navy: #0C3848;
  --navy-deep: #06222F;
  --muted-on-dark: #BFE0E8;
  --brass: #C68A3D;
  --gold-on-dark: #E6BE85;
  --success: #2A8761;
  --chart-paper: #F3ECDD;

  --radius-card: 18px;
  --radius-control: 14px;
  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --section-y: clamp(56px, 8vw, 104px);

  --step-display: clamp(2.4rem, 1.2rem + 4vw, 4.15rem);
  --step-h2: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem);
  --step-h3: 1.1rem;
  --step-lede: clamp(1.06rem, 0.98rem + 0.5vw, 1.28rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--background); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Rubik, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-gradient);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* Roles ------------------------------------------------------------------ */
.display {
  font-weight: 800;
  font-size: var(--step-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0 0 18px;
}
.label {
  font-weight: 600;
  font-size: 0.775rem;
  letter-spacing: 0.13em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.lede {
  font-size: var(--step-lede);
  line-height: 1.6;
  max-width: 33em;
  margin: 0 0 30px;
}

h2 {
  font-weight: 800;
  font-size: var(--step-h2);
  line-height: 1.2;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0 0 10px;
}
.sub { color: var(--ink-muted); margin: 0 0 40px; max-width: 46em; }

/* Hero ------------------------------------------------------------------- */
.hero {
  background: linear-gradient(158deg, var(--navy) 0%, var(--navy-deep) 68%);
  color: #fff;
  padding-block: clamp(28px, 4vw, 40px) var(--section-y);
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(38px, 6vw, 68px); }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: .005em; line-height: 1.2; }
.brand-tag { font-size: 13px; color: var(--muted-on-dark); }

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); }
  .hero-art { order: -1; }
}
.hero .eyebrow { color: var(--gold-on-dark); margin: 0 0 14px; }
.hero .lede { color: var(--muted-on-dark); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  width: min(100%, 340px);
  border-radius: 22px;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .75);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -14% -6%;
  background: radial-gradient(closest-side, rgba(19, 149, 159, .30), transparent 72%);
  pointer-events: none;
}

/* Store buttons ----------------------------------------------------------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink);
  padding: 14px 24px; border-radius: var(--radius-control);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .55); }
.store-btn.suggested { border-color: var(--gold-on-dark); box-shadow: 0 0 0 3px rgba(230, 190, 133, .2); }
.store-btn .glyph {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.suggest-note { color: var(--gold-on-dark); font-size: 13.5px; margin: 14px 0 0; min-height: 1.3em; }

/* Sections ---------------------------------------------------------------- */
.band { padding-block: var(--section-y); }
.band-tint { background: var(--surface); border-block: 1px solid var(--line); }

.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px;
}
.band-tint .card { background: var(--background); border-color: var(--line-soft); }
.card h3 { margin: 0 0 7px; font-size: var(--step-h3); font-weight: 600; line-height: 1.35; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }

/* Tracks ------------------------------------------------------------------ */
.tracks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }
.track {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 20px 22px;
}
.track .code { color: var(--primary); }
.track .name { font-size: 17px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.track .meta { color: var(--ink-muted); font-size: 14px; margin-top: 5px; }

/* Screenshot rail --------------------------------------------------------- */
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail img {
  width: 252px; flex: 0 0 auto; border-radius: 18px;
  border: 1px solid var(--line); scroll-snap-align: start;
}
.rail-hint { color: var(--ink-muted); font-size: 13.5px; margin: 14px 0 0; }

/* ניווט א' — the chart band. The page's one loud moment: the ground changes
   from sea mist to a navy chart sheet ruled with a graticule, and brass (the
   tokens' milestone accent) is spent here and nowhere else. */
.chart-band {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding-block: var(--section-y);
  overflow: hidden;
}
.chart-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(191, 224, 232, .075) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(90deg, rgba(191, 224, 232, .075) 0 1px, transparent 1px 76px);
  mask-image: radial-gradient(120% 90% at 78% 12%, #000 20%, transparent 78%);
  pointer-events: none;
}
.chart-band > .wrap { position: relative; }
.chart-band .eyebrow { color: var(--gold-on-dark); margin: 0 0 14px; }
.chart-band h2 { max-width: 15em; }
.chart-band .sub { color: var(--muted-on-dark); margin-bottom: clamp(38px, 5vw, 56px); }

.chart-steps { display: grid; gap: clamp(26px, 3.4vw, 38px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.chart-step figure { margin: 0; }
.chart-step img {
  width: 100%; border-radius: 18px;
  /* the three crops differ slightly in height; pinning one ratio keeps the
     "מהלך" labels on a shared baseline across the columns */
  aspect-ratio: 20 / 19;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(191, 224, 232, .2);
  box-shadow: 0 26px 54px -30px rgba(0, 0, 0, .85);
}
.chart-step .bearing {
  color: var(--gold-on-dark);
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 8px;
}
.chart-step .bearing::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(to left, rgba(230, 190, 133, .55), transparent);
}
.chart-step h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.chart-step p { margin: 0; color: var(--muted-on-dark); font-size: 15px; line-height: 1.62; }

.chart-note {
  margin-top: clamp(38px, 5vw, 54px);
  padding: 22px 24px;
  border: 1px solid rgba(230, 190, 133, .3);
  border-radius: var(--radius-card);
  background: rgba(198, 138, 61, .07);
  color: var(--muted-on-dark);
  font-size: 15.5px;
  max-width: 62em;
}
.chart-note strong { color: var(--gold-on-dark); font-weight: 600; }

/* FAQ --------------------------------------------------------------------- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 19px 24px; cursor: pointer; font-weight: 600; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0; padding: 0 24px 21px; color: var(--ink-muted); font-size: 15.5px; max-width: 66em; }

/* Community + CTA --------------------------------------------------------- */
.community-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.community-card h2 { font-size: 1.42rem; margin-bottom: 6px; }
.community-card .sub { margin: 0; max-width: 40em; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto;
  background: var(--success); color: #fff;
  padding: 14px 24px; border-radius: var(--radius-control);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .14s ease;
}
.wa-btn:hover { transform: translateY(-2px); }
.wa-btn .glyph { display: grid; place-items: center; }

.cta { background: var(--surface); border-top: 1px solid var(--line); text-align: center; }
.cta .sub { margin-inline: auto; }
.cta .stores { justify-content: center; }
.cta .store-btn { background: var(--primary); color: #fff; }
.cta .store-btn .glyph { background: rgba(255, 255, 255, .17); color: #fff; }

footer { padding: 38px 0 52px; color: var(--ink-muted); font-size: 14.5px; }
footer a { color: var(--ink-muted); }
footer .disclaimer { margin-top: 14px; font-size: 13.5px; max-width: 58em; }

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .community-card { padding: 24px; }
  .wa-btn { width: 100%; justify-content: center; }
  .rail img { width: 214px; }
}
