/* ===== Font: Rubik (SIL Open Font License), stored in /fonts so it works offline. Hebrew + Latin only. ===== */
@font-face{font-family:"Rubik";font-style:normal;font-weight:400 900;font-display:swap;src:url(/fonts/rubik-hebrew.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 900;font-display:swap;src:url(/fonts/rubik-latin.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}

/* ===== Self-Trained V4 — design tokens ===== */
:root{
  --bg:#0d0e10;
  --surface:#16181b;
  --surface2:#1e2125;
  --surface3:#262a2f;
  --line:#2a2e33;
  --line2:#353a40;
  --text:#f3f4f6;
  --text2:#b4bac2;
  --muted:#9aa1a9;
  --soft:#d4d8dc;
  --lime:#b6ff68;
  --lime2:#9be84f;
  --lime-ink:#0f1a05;
  --ink:var(--lime-ink);   /* dark text on lime */
  --lime-rgb:182,255,104;
  --lime-hi:#c4ff84;   /* the light and dark ends of the button gradient */
  --lime-lo:#a6f257;
  --lime-bg:rgba(var(--lime-rgb),.10);
  --red:#ff6b6b;
  --red-bg:rgba(255,107,107,.10);
  --yellow:#ffc15a;
  --blue:#7cb8ff;
  --radius:18px;
  --radius-sm:12px;
  --tap:48px;
  --font:"Rubik",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Noto Sans Hebrew","Arial Hebrew",Arial,sans-serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.45}
body{min-height:100vh;min-height:100dvh}
/* No rubber-band bounce of the whole page (iPhone): the bottom bar and header stay put while scrolling. */
html,body{overscroll-behavior-y:none}
/* No double-tap zoom (a quick second tap on a button used to zoom the page). Pinch zoom stays on, for accessibility. */
*,*::before,*::after{touch-action:manipulation}   /* on every element: it does not pass into scrolling sheets */
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
a{color:var(--lime)}
:focus{outline:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:10px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-60px;right:12px;z-index:2000;background:var(--lime);color:var(--lime-ink);padding:10px 14px;border-radius:10px;font-weight:800;text-decoration:none}
.skip-link:focus{top:12px}
.app{max-width:720px;margin:auto;min-height:100vh;padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.hidden{display:none!important}
svg.i{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ===== Header ===== */
.topbar{
  position:sticky;top:0;z-index:30;
  background:rgba(13,14,16,.92);backdrop-filter:saturate(1.4) blur(16px);-webkit-backdrop-filter:saturate(1.4) blur(16px);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.05)
}
.brand-lockup{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.sf-logo{display:flex;align-items:baseline;font-weight:900;letter-spacing:-.5px;line-height:1;font-size:13px;direction:ltr}
.sf-logo .sf-s{color:var(--lime)}
.sf-logo .sf-fit{color:var(--text2)}
.brand-sub{display:none}
.topbar h1{margin:4px 0 0;font-size:24px;font-weight:800;letter-spacing:-.4px}
.top-actions{display:flex;align-items:center;gap:8px}
.icon-btn,.close{
  width:44px;height:44px;border-radius:50%;
  background:var(--surface2);color:var(--text);border:0;
  display:grid;place-items:center;font-size:20px;padding:0
}
.close{font-size:24px;line-height:1}
.cloud-pill{height:32px;padding:0 10px;border-radius:999px;background:var(--surface2);display:flex;gap:6px;align-items:center;color:var(--text2)}
.cloud-pill span{width:8px;height:8px;border-radius:50%;background:var(--yellow)}
.cloud-pill small{font-size:12px;font-weight:600}
.cloud-pill.online span{background:var(--lime)}
.cloud-pill.saving span{background:var(--yellow)}
.cloud-pill.offline span{background:var(--red)}
#notificationBtn.permission-granted{color:var(--lime)}
#notificationBtn.permission-denied{opacity:.55}

/* ===== Layout ===== */
main{padding:12px 16px 24px}
.screen{display:none}
.screen.active{display:block;animation:in .18s ease}
@keyframes in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.section-intro{padding:4px 2px 12px}
.section-intro h2{font-size:22px;margin:0 0 4px;font-weight:800;letter-spacing:-.3px}
.section-intro p{color:var(--text2);line-height:1.5;margin:0;font-size:15px}
.kicker{display:none}

/* ===== Cards ===== */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-top:12px}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.card h3{margin:0 0 4px;font-size:18px;font-weight:750;letter-spacing:-.2px}
.card p{margin:0;color:var(--text2);line-height:1.5;font-size:14px}
.grow{flex:1;min-width:0}
.matte-note{background:var(--surface2);border-radius:var(--radius-sm);padding:14px;color:var(--text2);font-size:14px;line-height:1.55}
.matte-note b{color:var(--text)}
.matte-note p{margin:4px 0 0}
.card.matte-note{background:var(--surface)}

