/* spontanyapp.com on the app's design system (DECISIONS #47).
   Every colour, radius, size and face comes from brand.css, which is GENERATED
   from constants/designTokens.ts (see constants/brandCss.ts). Do not write a hex
   here: map a role to a --sp-* token instead. Night is pinned on <html>, as on
   the phone after dark and in the business portal. */

/* The app's three faces, self-hosted (SIL OFL 1.1, see fonts/README.txt), so a
   visitor's browser never calls Google Fonts. Split by script with
   unicode-range: a Hebrew page downloads no Latin face it does not show. */
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/rubik-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/rubik-latin-400-normal.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: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/rubik-hebrew-500-normal.woff2) format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/rubik-latin-500-normal.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: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/rubik-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/rubik-latin-700-normal.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: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/karantina-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/karantina-latin-700-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }

/* One language at a time. Both are in the markup (so the page works and is
   indexed without JavaScript, in Hebrew); lang.js picks one before first paint. */
html[data-lang="he"] [data-l="en"],
html[data-lang="en"] [data-l="he"] { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--sp-ground);
  color: var(--sp-text);
  font-family: var(--sp-font-text);
  font-size: var(--sp-type-body-size);
  line-height: 1.55;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--sp-accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--sp-action); outline-offset: 3px; border-radius: var(--sp-radius-detail); }

.shell { max-width: 720px; margin: 0 auto; padding: var(--sp-space-x4) var(--sp-space-xl) var(--sp-space-x4); }

/* ── Header: icon + wordmark, and the language switch ── */
.topbar { align-items: center; display: flex; gap: var(--sp-space-l); justify-content: space-between; margin-bottom: var(--sp-space-x3); }
.brand { align-items: center; color: var(--sp-text); display: inline-flex; gap: var(--sp-space-m); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: var(--sp-radius-small); display: block; height: 40px; width: 40px; }
/* Karantina only at display size (>= 28, DECISIONS #48). */
.wordmark { font-family: var(--sp-font-display); font-size: 32px; font-weight: 700; letter-spacing: 0.3px; line-height: 1; }

button.lang {
  appearance: none;
  background: transparent;
  border: 1px solid var(--sp-overlay-line-on-dark);
  border-radius: var(--sp-radius-pill);
  color: var(--sp-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--sp-type-caption-size);
  font-weight: 500;
  min-height: var(--sp-button-s);
  padding: 0 var(--sp-space-l);
}
button.lang:hover { color: var(--sp-text); }

/* ── Documents (privacy, terms, support, delete account) ── */
.doc h1 { font-size: var(--sp-type-title-size); font-weight: var(--sp-type-title-weight); line-height: var(--sp-type-title-line); margin-bottom: var(--sp-space-s); }
.doc .updated { color: var(--sp-text-muted); font-size: var(--sp-type-caption-size); margin-bottom: var(--sp-space-x3); }
.doc h2 { font-size: var(--sp-type-headline-size); font-weight: var(--sp-type-headline-weight); line-height: var(--sp-type-headline-line); margin: var(--sp-space-x3) 0 var(--sp-space-m); }
.doc h3 { font-size: var(--sp-type-label-size); font-weight: 700; margin: var(--sp-space-xxl) 0 var(--sp-space-s); }
.doc p, .doc li { color: var(--sp-text-muted); margin-bottom: var(--sp-space-m); }
.doc strong { color: var(--sp-text); font-weight: 500; }
.doc ul, .doc ol { padding-inline-start: var(--sp-space-xxl); margin-bottom: var(--sp-space-l); }
.doc li { margin-bottom: var(--sp-space-s); }
.doc .lead { color: var(--sp-text); font-size: var(--sp-type-headline-size); line-height: 1.45; }
.doc .warning { color: var(--sp-danger); font-weight: 500; }

.card {
  background: var(--sp-card);
  border: 1px solid var(--sp-overlay-line-on-dark);
  border-radius: var(--sp-radius-card);
  margin: var(--sp-space-xl) 0;
  padding: var(--sp-space-xxl);
}
.card h2 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* A Hebrew reader of an English-only legal text: say so once, above it. */
.note {
  background: var(--sp-tonal);
  border-radius: var(--sp-radius-small);
  color: var(--sp-on-tonal);
  font-size: var(--sp-type-caption-size);
  margin-bottom: var(--sp-space-xxl);
  padding: var(--sp-space-m) var(--sp-space-l);
}

/* ── Buttons ── */
.btn {
  align-items: center;
  border-radius: var(--sp-radius-pill);
  display: inline-flex;
  font-size: var(--sp-type-label-size);
  font-weight: 700;
  gap: var(--sp-space-s);
  justify-content: center;
  min-height: var(--sp-button-l);
  padding: 0 var(--sp-space-xxl);
}
.btn:hover { text-decoration: none; }
/* The one metal button on a page: the thing the page is for. */
.btn.metal { background: var(--sp-metal); color: var(--sp-on-action); box-shadow: var(--sp-shadow-floating); }
.btn.tonal { background: var(--sp-tonal); color: var(--sp-on-tonal); }
/* Not a link yet: the App Store listing does not exist. */
.btn.soon { border: 1px dashed var(--sp-outline); color: var(--sp-text-muted); cursor: default; }
.btns { display: flex; flex-direction: column; gap: var(--sp-space-m); }
.btn svg { height: 20px; width: 20px; flex: none; }

/* ── Footer: the same five links on every page ── */
.foot {
  border-top: 1px solid var(--sp-overlay-line-on-dark);
  color: var(--sp-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--sp-type-caption-size);
  gap: 0 var(--sp-space-xs);
  justify-content: center;
  margin-top: var(--sp-space-x4);
  padding-top: var(--sp-space-xl);
}
/* 44px tall targets: the old footer's links were 17px, too small for a thumb. */

.foot > a, .foot > span { align-items: center; color: var(--sp-text-muted); display: inline-flex; min-height: var(--sp-button-m); padding: 0 var(--sp-space-s); }
.foot > a:hover { color: var(--sp-text); }

/* ── Landing ── */
.hero { display: grid; gap: var(--sp-space-x3); align-items: center; padding-top: var(--sp-space-l); }
.hero .eyebrow { color: var(--sp-accent-ink); font-size: var(--sp-type-label-size); font-weight: 500; margin-bottom: var(--sp-space-s); }
.hero h1 { font-family: var(--sp-font-display); font-size: 64px; font-weight: 700; line-height: 0.95; margin-bottom: var(--sp-space-l); }
.hero .sub { color: var(--sp-text-muted); font-size: var(--sp-type-headline-size); line-height: 1.45; margin-bottom: var(--sp-space-x3); max-width: 30ch; }
.hero .biz { color: var(--sp-text-muted); font-size: var(--sp-type-caption-size); margin-top: var(--sp-space-xl); }
.hero .biz a { font-weight: 500; }

.map {
  aspect-ratio: 4 / 3.4;
  background: var(--sp-panel);
  border: 1px solid var(--sp-overlay-line-on-dark);
  border-radius: var(--sp-radius-sheet);
  overflow: hidden;
  position: relative;
}
.map svg { display: block; height: 100%; width: 100%; }
.map .road { stroke: var(--sp-overlay-wash-on-dark); fill: none; }
.map .road.main { stroke: var(--sp-overlay-line-on-dark); }
.map .sea { fill: var(--sp-raised); }
.map .pin { stroke: var(--sp-ground); stroke-width: 3; }
.map .pin.place { fill: var(--sp-metal-flat); }
.map .pin.social { fill: var(--sp-social); }
.map .pin.deal { fill: var(--sp-deal); }
.map .tag { fill: var(--sp-deal); }
.map .tag-text { fill: var(--sp-on-deal); font: 700 11px var(--sp-font-latin); }
/* Live is always a dot (CLAUDE.md, design system). */
.map .live { fill: var(--sp-live); }
.map .you { fill: var(--sp-selected); }
.map .you-ring { fill: none; stroke: var(--sp-selected); stroke-width: 2; opacity: 0.35; }
.map figcaption { bottom: var(--sp-space-m); color: var(--sp-text-muted); font-size: var(--sp-type-caption-size); inset-inline-start: var(--sp-space-l); position: absolute; }

.points { display: grid; gap: var(--sp-space-m); margin-top: var(--sp-space-x4); }
.point { background: var(--sp-card); border: 1px solid var(--sp-overlay-line-on-dark); border-radius: var(--sp-radius-card); padding: var(--sp-space-xl); }
.point h2 { font-size: var(--sp-type-label-size); font-weight: 700; margin-bottom: var(--sp-space-xs); }
.point p { color: var(--sp-text-muted); font-size: var(--sp-type-caption-size); line-height: 1.5; }

@media (min-width: 820px) {
  .shell.wide { max-width: 1040px; }
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: var(--sp-space-x4); }
  .hero h1 { font-size: 88px; }
  .btns { flex-direction: row; }
  .points { grid-template-columns: repeat(3, 1fr); }
}

/* ── Invite and share cards ── */
.center { margin: 0 auto; max-width: 440px; text-align: center; }
.center .btns { margin-top: var(--sp-space-xxl); }
.invite .avatar {
  align-items: center;
  background: var(--sp-tonal);
  border-radius: 50%;
  color: var(--sp-on-tonal);
  display: flex;
  font-size: 34px;
  height: 84px;
  justify-content: center;
  margin: 0 auto var(--sp-space-l);
  width: 84px;
}
.invite h1, .share h1 { font-size: var(--sp-type-title-size); font-weight: 700; line-height: var(--sp-type-title-line); margin-bottom: var(--sp-space-s); }
.invite p, .share .meta { color: var(--sp-text-muted); }
.share .photo {
  aspect-ratio: 4 / 3;
  background: var(--sp-panel);
  border-radius: var(--sp-radius-card);
  margin-bottom: var(--sp-space-l);
  overflow: hidden;
  position: relative;
}
.share .photo img { display: block; height: 100%; object-fit: cover; width: 100%; }
.share .alt { color: var(--sp-text-muted); font-family: var(--sp-font-latin); font-size: var(--sp-type-caption-size); margin-bottom: var(--sp-space-xs); }
.share .fallback { display: inline-block; font-size: var(--sp-type-caption-size); margin-top: var(--sp-space-l); min-height: var(--sp-button-m); line-height: var(--sp-button-m); }

@media (max-width: 480px) {
  .shell { padding: var(--sp-space-xxl) var(--sp-space-l) var(--sp-space-xxl); }
  .topbar { margin-bottom: var(--sp-space-xxl); }
  .card { padding: var(--sp-space-xl); }
  .hero h1 { font-size: 56px; }
}

.nowrap { white-space: nowrap; }
