/* ---------------------------------------------------------------------------
   tashchetz.benbasha.com — "Daily Hub" web identity.
   Mirrors the app's design tokens (src/theme.ts): warm paper, deep ink,
   Amatic SC display + Assistant body, gradient mode cards, soft shadows,
   a crossword-grid motif instead of any emoji or stock icon.
--------------------------------------------------------------------------- */

:root {
  --paper: #f5f2ea;
  --card: #fffdf8;
  --ink: #211f2b;
  --ink2: #4a4756;
  --muted: #7c7989;
  --line: rgba(33, 31, 43, 0.09);
  --line-solid: #e4ddcf;

  --blue: #2563d6;
  --blue-dark: #1c4fb0;
  --teal: #0f9b8a;
  --coral: #ef6a45;
  --violet: #6d5fe0;
  --gold: #f0b429;
  --green: #2fa84f;

  /* Mode-card gradients, lifted straight from the app's gradients map. */
  --grad-daily: linear-gradient(145deg, #3b7af0, #2056c4);
  --grad-mini: linear-gradient(145deg, #19b3a0, #0c8576);
  --grad-themed: linear-gradient(145deg, #8b76f0, #5a48c8);
  --grad-champion: linear-gradient(145deg, #f47a57, #cf3f1e);
  --grad-gift: linear-gradient(145deg, #ffce5a, #f0a516);
  --grad-premium: linear-gradient(145deg, #3a3470, #221d44);

  --font-display: 'Amatic SC', system-ui, sans-serif;
  --font-body: 'Assistant', system-ui, sans-serif;

  --radius-card: 22px;
  --radius-tile: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 30px rgba(33, 31, 43, 0.13);
  --shadow-soft: 0 4px 14px rgba(33, 31, 43, 0.08);
  --shadow-pop: 0 18px 44px rgba(33, 31, 43, 0.2);

  --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 warm background never reads as flat. */
  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.02 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: 700;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin: 0;
}

a {
  color: inherit;
}

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

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

/* Crossword tile mark: a small inked square with a clue-corner notch. */
.tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--card);
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  position: relative;
}

.tile-mark::after {
  content: '';
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 22%;
  height: 22%;
  background: var(--gold);
  border-radius: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

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

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

.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: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

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

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

.store-badge.soon::after {
  content: 'בקרוב';
  position: absolute;
  top: -10px;
  inset-inline-end: -10px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 10px;
  box-shadow: var(--shadow-soft);
  transform: rotate(5deg);
}

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

.site-footer {
  background: var(--ink);
  color: #c9c6d4;
  font-size: 14px;
  padding: 44px 0 52px;
}

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

.site-footer a {
  color: #ece9f3;
  text-decoration-color: rgba(236, 233, 243, 0.4);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 6px;
}

.footer-brand .tile-mark {
  width: 30px;
  height: 30px;
  font-size: 20px;
  background: var(--card);
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  color: #a09db0;
  max-width: 60ch;
}

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

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

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

.legal-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.legal-toggle a {
  padding: 8px 22px;
  text-decoration: none;
  color: var(--ink2);
}

.legal-toggle a.active {
  background: var(--ink);
  color: var(--card);
}

.legal-doc {
  background: var(--card);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-card);
  padding: 38px 42px 46px;
  box-shadow: var(--shadow-soft);
}

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

.legal-doc h1 {
  font-size: 52px;
  margin-bottom: 2px;
}

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

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

.legal-doc p,
.legal-doc li {
  color: var(--ink2);
}

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

.legal-doc li {
  margin: 4px 0;
}

.legal-doc a {
  color: var(--blue-dark);
  text-decoration-color: rgba(28, 79, 176, 0.4);
  text-decoration-thickness: 2px;
}

.callout {
  background: linear-gradient(145deg, #fff8e6, #fdeecb);
  border: 1px solid #f2dca0;
  border-radius: var(--radius-tile);
  padding: 16px 20px;
  margin: 18px 0;
}

.callout p {
  color: #5a4a1e;
  margin: 0;
}

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

  .legal-doc h1 {
    font-size: 44px;
  }

  .legal-doc h2 {
    font-size: 28px;
  }

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