/* Mikan site. Colors mirror mikanColors / mikanDarkColors in src/theme.ts. */
:root {
  --bg: #FAF6EE;
  --bg-secondary: #F3ECDD;
  --card: #ffffff;
  --border: #E8DFC8;
  --border-strong: #D8CBA0;
  --text: #241541;
  --text-secondary: #4B3B6B;
  --subtext: #7A6A93;
  --link: #3E1F6A;
  /* Brand band (header + hero), same in both themes: app icon purple + logo cream. */
  --brand: #1C033A;
  --brand-border: #3A2761;
  --cream: #FFD494;
  --on-brand: #F3ECDD;
  --on-brand-muted: #CBB9E8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150B2B;
    --bg-secondary: #1E1240;
    --card: #241541;
    --border: #3A2761;
    --border-strong: #4C3874;
    --text: #F3ECDD;
    --text-secondary: #CBB9E8;
    --subtext: #9C8FB5;
    --link: #F3E4B8;
    color-scheme: dark;
  }
}

/* Language switch: lang.js sets <html lang>; the other language's copy is hidden. */
html[lang="he"] [data-l="en"],
html:not([lang="he"]) [data-l="he"] { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--link); }
img { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Logo: the app's single-color glyph (icon.png), tinted through a mask. */
.glyph {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: var(--cream);
  -webkit-mask: url("/img/glyph.png") center / 158% no-repeat;
  mask: url("/img/glyph.png") center / 158% no-repeat;
  flex: none;
}

/* Top bar */
.topbar { background: var(--brand); color: var(--on-brand); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-brand); text-decoration: none; font-weight: 700; font-size: 21px; }
.brand .glyph { font-size: 28px; }
.lang-toggle {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: 5px 16px;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 212, 148, 0.12); }
.lang-toggle:focus-visible, .store:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Hero */
.hero { background: var(--brand); color: var(--on-brand); text-align: center; padding: 40px 0 56px; border-bottom: 1px solid var(--brand-border); }
.hero .glyph { font-size: 96px; }
.hero h1 { margin: 8px 0 4px; font-size: 44px; line-height: 1.15; }
.tagline { margin: 0 0 16px; font-family: Georgia, "Times New Roman", "David", serif; font-size: 23px; color: var(--cream); }
.lead { margin: 0 auto 28px; max-width: 34em; color: var(--on-brand-muted); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 190px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--brand);
  text-decoration: none;
  line-height: 1.25;
}
.store small { font-size: 12px; font-weight: 600; opacity: 0.8; }
.store strong { font-size: 19px; }
.store:hover { filter: brightness(1.06); }

/* Home sections */
.section { padding: 48px 0 8px; }
.section h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.25; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 16px; }
.feature::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--border-strong); margin-bottom: 14px; }
.who { background: var(--bg-secondary); border-radius: 16px; padding: 24px; color: var(--text-secondary); margin: 0; }

/* Documents (privacy policy, delete account) */
.doc { padding-top: 32px; padding-bottom: 16px; }
.doc h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.2; }
.doc h2 { margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid var(--border-strong); font-size: 22px; line-height: 1.3; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-inline-start: 1.4em; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--subtext); font-size: 15px; margin-bottom: 20px !important; }
.note { color: var(--subtext); font-size: 15px; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 20px 0 8px; }
.toc ol { margin: 0; }
.toc li { margin-bottom: 2px; }
.callout { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 0 0 12px; }

/* Footer */
.footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--border); color: var(--subtext); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--subtext); }
.footer a:hover { color: var(--text); }

@media (max-width: 480px) {
  .hero { padding: 28px 0 44px; }
  .hero .glyph { font-size: 80px; }
  .hero h1 { font-size: 38px; }
  .tagline { font-size: 21px; }
  .store { width: 100%; }
  .doc h1 { font-size: 28px; }
}
