/* ---------------------------------------------------------------------------
   theory.benbasha.com — "Learner Plate" web identity.
   Extends the app's design tokens: warm paper, asphalt ink, plate yellow,
   Suez One display + Rubik body, dashed lane lines, sign-like cards.
--------------------------------------------------------------------------- */

:root {
  --paper: #faf6ed;
  --card: #ffffff;
  --ink: #1a1c1e;
  --asphalt: #15171a;
  --asphalt-soft: #23262b;
  --muted: #6b675c;
  --muted-on-dark: #a9a399;
  --line: #ddd6c6;
  --plate: #ffc400;
  --plate-deep: #ebb200;
  --plate-wash: #fff3cc;
  --go: #0a7b3e;
  --stop: #c1272d;

  --font-display: 'Suez One', serif;
  --font-body: 'Rubik', sans-serif;

  --radius-card: 10px;
  --radius-button: 12px;

  --content: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Faint paper grain so the background never reads as sterile white. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* Dashed lane-line divider, like the app's laneLine token. */
.lane {
  border: 0;
  height: 2px;
  margin: 0;
  background: repeating-linear-gradient(
    to left,
    var(--line) 0 28px,
    transparent 28px 48px
  );
}

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
}

.brand strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.header-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--ink);
}

/* ----------------------------- store badge ------------------------------- */

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.store-badge img {
  height: 54px;
  width: auto;
}

/* Pre-launch state: badge is visible but clearly marked "soon" and inert. */
.store-badge.soon {
  pointer-events: none;
  filter: grayscale(0.15);
}

.store-badge.soon::after {
  content: 'בקרוב';
  position: absolute;
  top: -10px;
  inset-inline-end: -12px;
  background: var(--plate);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 9px;
  transform: rotate(6deg);
}

/* -------------------------------- footer --------------------------------- */

.site-footer {
  background: var(--asphalt);
  color: var(--muted-on-dark);
  font-size: 14px;
  padding: 40px 0 48px;
}

.site-footer .wrap {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #e8e3d8;
  text-decoration-color: rgba(232, 227, 216, 0.4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 500;
}

.footer-plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e8e3d8;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-plate .plate-mini {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

/* A small learner plate: yellow square, black ל. */
.plate-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--plate);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-display);
  line-height: 1;
}

/* ------------------------------ legal pages ------------------------------ */

.legal-main {
  padding: 40px 0 80px;
}

.legal-main .wrap {
  max-width: 760px;
}

.legal-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 500;
}

.legal-toggle a {
  padding: 7px 20px;
  text-decoration: none;
  color: var(--ink);
}

.legal-toggle a + a {
  border-inline-start: 2px solid var(--ink);
}

.legal-toggle a.active {
  background: var(--plate);
}

.legal-doc {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px 40px 44px;
}

.legal-doc + .legal-doc {
  margin-top: 36px;
}

.legal-doc h1 {
  font-size: 34px;
  margin-bottom: 4px;
}

.legal-doc .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.legal-doc h2 {
  font-size: 21px;
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--line);
}

.legal-doc p,
.legal-doc li {
  color: #34322c;
}

.legal-doc ul {
  padding-inline-start: 22px;
}

.legal-doc a {
  text-decoration-color: var(--plate-deep);
  text-decoration-thickness: 2px;
}

.callout {
  background: var(--plate-wash);
  border: 1.5px solid var(--plate-deep);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin: 18px 0;
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 26px 22px 32px;
  }

  .header-nav {
    gap: 14px;
  }
}
