:root {
  --ink: #0b0b0f;
  --muted: #6b6b73;
  --bg: #ffffff;
  --soft: #f5f5f7;
  --card: #ffffff;
  --line: #e6e6ea;
  --chip: #f0f0f3;
  --chip-ink: #4b4b53;
  --sun: #f59e0b;
  --sun-dark: #d97706;
  --teal: #0fb5ae;
  --teal-dark: #0a8f89;
  --gig: #8b5cf6;
  --gig-dark: #7c3aed;
  --shadow: 0 24px 60px rgba(0,0,0,.08);
  --nav-bg: rgba(255,255,255,0.72);
  --hero-glow: #fff7ec;
  --maxw: 1080px;
  --font: -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --ink: #f3f3f6;
  --muted: #9a9aa6;
  --bg: #0b0b0f;
  --soft: #131318;
  --card: #16161c;
  --line: #2a2a33;
  --chip: #20202a;
  --chip-ink: #c7c7d1;
  --sun: #fbbf24;
  --sun-dark: #fcd34d;
  --teal: #2dd4cf;
  --teal-dark: #5eead4;
  --gig: #a78bfa;
  --gig-dark: #c4b5fd;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --nav-bg: rgba(15,15,20,0.72);
  --hero-glow: #1a160c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav .brand { font-weight: 800; letter-spacing: -0.02em; font-size: 19px; display: flex; align-items: center; gap: 9px; transition: opacity .15s; }
.nav .brand:hover { opacity: .8; }
.nav .brand img { width: 28px; height: 28px; }
.nav .links { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav .links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav .links a:hover { color: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 15px; font-family: var(--font); padding: 0; transition: color .2s; }
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-dropdown-trigger svg { width: 11px; height: 11px; transition: transform .2s; flex-shrink: 0; }
.nav-dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; min-width: 190px; box-shadow: 0 8px 32px rgba(0,0,0,.12); opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .18s, transform .18s; z-index: 100; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink) !important; transition: background .15s; }
.nav-dropdown-menu a:hover { background: var(--soft); }
.nav-dropdown-menu .np-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-dropdown-menu .sj-item .np-icon { filter: invert(55%) sepia(90%) saturate(600%) hue-rotate(5deg); }
.nav-dropdown-menu .mg-item .np-icon { filter: invert(55%) sepia(60%) saturate(600%) hue-rotate(155deg); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 980px;
  border: 1px solid var(--line); background: var(--soft);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: transform .15s ease, background .2s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Hero */
.hero { position: relative; text-align: center; padding: 130px 0 96px; overflow: hidden;
  background: radial-gradient(1200px 520px at 50% -12%, var(--hero-glow) 0%, var(--bg) 62%); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 16px; border-radius: 980px; font-size: 14px; font-weight: 600;
  color: var(--sun-dark); background: color-mix(in srgb, var(--sun) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sun) 30%, transparent);
}
.hero h1 { font-size: clamp(40px, 7vw, 82px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.hero p { color: var(--muted); font-size: clamp(18px, 2.4vw, 24px); margin: 22px auto 0; max-width: 640px; }
.hero .cta { margin-top: 36px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 980px; font-weight: 600; font-size: 16px;
  transition: transform .15s, opacity .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

/* Values strip */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.value { text-align: center; padding: 8px; }
.value .ico { font-size: 30px; margin-bottom: 10px; }
.value h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.value p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Sections */
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--muted); font-size: 19px; margin-top: 12px; }

/* Product cards — App Store style */
/* Product cards — minimal centered */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.product {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 28px; padding: 48px 32px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, border-color .2s;
  min-height: 460px;
}
.product:hover { transform: translateY(-10px); border-color: transparent; }
.product.magen:hover { box-shadow: 0 24px 64px rgba(15,181,174,.15), 0 0 0 1.5px rgba(15,181,174,.40); }
.product.summerjob:hover { box-shadow: 0 24px 64px rgba(245,158,11,.15), 0 0 0 1.5px rgba(245,158,11,.40); }
.product.gig:hover { box-shadow: 0 24px 64px rgba(139,92,246,.15), 0 0 0 1.5px rgba(139,92,246,.40); }
.product .mark { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; }
.product .mark.sun { background: linear-gradient(160deg,#ffd27a,#f59e0b); }
.product .mark.shield { background: linear-gradient(160deg,#7fe3df,#0fb5ae); }
.product .mark.gig { background: linear-gradient(160deg,#c4b5fd,#8b5cf6); }
.product .mark svg, .product .mark img { width: 36px; height: 36px; }
.product .mark img { filter: brightness(0) invert(1); }
.product h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.soon-label { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 980px; background: var(--chip); color: var(--muted); letter-spacing: .02em; }
.product-badge {
  position: absolute; top: 20px; inset-inline-start: 20px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 980px; color: #fff;
}
.product.magen .product-badge { background: var(--teal); }
.product.gig .product-badge { background: var(--gig); }
.product .lede { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 240px; }
.product .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { background: var(--chip); color: var(--chip-ink); font-size: 12px; padding: 5px 11px; border-radius: 980px; }
.product .foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }

/* Contact */
.contact { text-align: center; }
.contact a.mail { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--sun-dark); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; background: var(--bg); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: nowrap; }
.footer .copy { white-space: nowrap; flex-shrink: 0; }
.footer .legal { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; padding: 0; max-width: none; margin: 0; }
.footer a { color: var(--muted); position: relative; transition: color .2s; white-space: nowrap; }
.footer a::after { content: ''; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.footer a:hover { color: var(--ink); }
.footer a:hover::after { transform: scaleX(1); }
.section.contact { padding-bottom: 52px; }

/* Page header (for sub-pages) */
.page-head { text-align: center; padding: 96px 0 8px;
  background: radial-gradient(1000px 420px at 50% -20%, var(--hero-glow) 0%, var(--bg) 60%); }
.page-head h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--muted); font-size: 19px; margin: 16px auto 0; max-width: 560px; }

/* Reveal animation (enhancement) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.legal a.back { color: var(--muted); font-size: 15px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; line-height: 1.7; }
.legal ul { padding-inline-start: 22px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal .disclaimer { background: color-mix(in srgb, var(--sun) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--sun) 40%, transparent); border-radius: 16px; padding: 16px 18px; color: var(--ink); font-size: 14px; margin: 28px 0; }
.legal section + section { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 8px; }

@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 96px 0 68px; }
  .section { padding: 64px 0; }
  .nav .links { gap: 14px; }
  .footer .wrap { flex-wrap: wrap; gap: 10px; }
  .footer .legal { flex-wrap: wrap; gap: 8px 16px; }
}

/* Skip link */
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 22px; border-radius: 0 0 14px 14px; font-size: 15px; font-weight: 600; z-index: 9999; transition: top .18s; text-decoration: none; }
.skip-link:focus { top: 0; outline: 3px solid var(--sun); outline-offset: 2px; }

/* Cookie / privacy notice */
.cookie-bar { position: fixed; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 200; background: var(--card); border-top: 1px solid var(--line); padding: 14px 0; box-shadow: 0 -4px 24px rgba(0,0,0,.10); }
.cookie-bar .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-bar p { flex: 1; font-size: 14px; color: var(--muted); min-width: 200px; line-height: 1.55; }
.cookie-bar p strong { color: var(--ink); }
.cookie-bar a { color: var(--sun-dark); text-decoration: underline; }
.cookie-bar button { flex-shrink: 0; padding: 8px 20px; font-size: 14px; font-weight: 600; border-radius: 980px; border: none; background: var(--ink); color: var(--bg); cursor: pointer; font-family: var(--font); transition: opacity .2s; }
.cookie-bar button:hover { opacity: .8; }

/* Accessibility widget — pinned to physical right edge */
.a11y-widget { position: fixed; right: 20px; bottom: 24px; z-index: 190; }
.a11y-trigger { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bg); border: none; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; font-family: var(--font); }
.a11y-trigger:hover { transform: scale(1.08); box-shadow: 0 6px 26px rgba(0,0,0,.3); }
.a11y-trigger svg { width: 22px; height: 22px; }
.a11y-trigger:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.a11y-panel { position: absolute; bottom: calc(100% + 12px); right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 220px; box-shadow: 0 8px 32px rgba(0,0,0,.14); display: none; }
.a11y-panel.open { display: block; }
.a11y-panel-title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.a11y-row + .a11y-row { border-top: 1px solid var(--line); }
.a11y-row span { font-size: 14px; font-weight: 500; }
.a11y-btns { display: flex; gap: 5px; }
.a11y-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; font-family: var(--font); transition: background .15s; display: grid; place-items: center; }
.a11y-btn:hover { background: var(--chip); }
.a11y-btn:focus-visible { outline: 2px solid var(--sun); }
.a11y-tog { width: 42px; height: 23px; border-radius: 980px; background: var(--line); border: none; cursor: pointer; position: relative; transition: background .2s; flex-shrink: 0; }
.a11y-tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; transition: transform .2s; }
.a11y-tog.on { background: var(--ink); }
.a11y-tog.on::after { transform: translateX(19px); }
html[data-hc="1"] { filter: contrast(1.5) brightness(.95); }

/* Simple centered nav */
.nav-center { position: relative; justify-content: flex-end; gap: 0; }
.nav-center .brand { position: absolute; left: 50%; transform: translateX(-50%); }

/* Product overlay (clickable cards) */
.product { cursor: pointer; }
.product-overlay { position: absolute; inset: 0; z-index: 0; border-radius: 28px; }
.product .foot a, .product .chips, .product h3, .product .mark, .product .lede { position: relative; z-index: 1; }

/* Store badges — identical size for both live and coming-soon */
.store-badge, .soon-badge {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; direction: ltr;
  position: relative; z-index: 1;
}
.store-badge {
  background: var(--ink); color: var(--bg) !important;
  border: none; text-decoration: none; transition: opacity .2s;
}
.store-badge:hover { opacity: .8; }
.store-badge svg, .soon-badge svg { flex-shrink: 0; width: 16px; height: 16px; }
.soon-badge {
  background: var(--soft); color: var(--muted) !important;
  border: 1px dashed var(--line); cursor: default;
}
.badge-sub { display: none; }
.badge-name { font-size: 13px; font-weight: 600; display: block; }
