/* softov design system — friendly, minimal, Hebrew RTL. Material-ish palette, 24px radii, generous whitespace. */
:root {
  --bg: #FAFAF7; --green: #388E3C; --green-dark: #2E7D32; --green-light: #E8F5E9; --green-border: #A5D6A7; --green-text: #1B5E20;
  --text: #2A2A2A; --dark: #263238; --white: #FFFFFF; --pink: #FF6D7F; --muted: #5F6B6F; --line: #D9DDD9; --amber: #E08A00;
  --r: 24px;
  --font-head: "Playpen Sans Hebrew", "Playpen Sans", "Open Sans", sans-serif;
  --font-body: "Open Sans Hebrew", "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-card: 0 4px 30px rgba(0,0,0,.05);
  --shadow-inset: 0 4px 40px rgba(0,0,0,.15);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 20px; }
body {
  margin: 0; overflow-x: hidden; max-width: 100vw; font-family: var(--font-body); letter-spacing: 0; line-height: normal;
  background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; min-height: 100vh;
}
h1 { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.2; margin: .2rem 0 1.2rem; color: var(--text); }
h2 { font-size: 22px; font-weight: 700; margin: 1.8rem 0 .7rem; color: var(--text); }
label { display: block; font-size: 20px; color: var(--muted); margin: .8rem 0 .35rem; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=time], input[type=search], select {
  width: 100%; font-size: 22px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--white); color: var(--text); font-family: inherit; min-width: 0; max-width: 100%; -webkit-appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(56,142,60,.15); }
.muted { color: var(--muted); }
.small { font-size: 18px; }
.error { color: var(--pink); font-weight: 700; }
.empty { color: var(--muted); font-size: 22px; text-align: center; padding: 2.5rem 0; }
.count { background: var(--pink); color: var(--dark); border-radius: 50%; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-family: var(--font-body); font-weight: 400; vertical-align: middle; margin-inline-start: .5rem; }

.demo-bar { background: var(--amber); color: var(--white); text-align: center; font-size: 18px; padding: .4rem; }

.view { display: none; padding: 1.2rem 1.2rem 3rem; max-width: 560px; margin: 0 auto; }
.view.active { display: block; }

/* ---- home ---- */
.home { flex-direction: column; min-height: 100vh; padding-top: 2.4rem; }
.view.home.active { display: flex; }
.greeting { text-align: center; margin: 0 0 1.6rem; }
.hero { background: var(--green); border-radius: var(--r); padding: 1.2rem 1.2rem 1rem; text-align: center; margin-bottom: 1.2rem; box-shadow: var(--shadow-card); }
.hero-btn {
  display: block; width: 100%; background: var(--white); color: var(--text); border: 0; border-radius: var(--r);
  padding: 1.1rem 1rem; font-size: 24px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-inset);
}
.hero-btn:active { background: #F1F3EF; }
.hero-sub { display: block; width: 100%; margin-top: .9rem; background: none; border: 0; color: var(--white); font-family: inherit; font-size: 20px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }

.notice {
  display: block; width: 100%; background: var(--green-light); border: 1.5px solid var(--green-border); color: var(--green-text);
  border-radius: var(--r); padding: 1rem 1.2rem; font-family: inherit; font-size: 22px; text-align: start; margin-bottom: 1.2rem; cursor: pointer;
}
.notice small { display: block; font-size: 18px; margin-top: .3rem; }
.hint-link { display: block; width: 100%; background: none; border: 0; color: var(--green); font-family: inherit; font-size: 18px; text-align: center; padding: .2rem 0 1rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.nav-row {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; background: var(--white);
  border: 1.5px solid var(--dark); border-radius: var(--r); color: var(--text); font-family: inherit; font-size: 24px; font-weight: 400;
  margin-bottom: 1rem; cursor: pointer; position: relative;
}
.nav-row:active { background: #F1F3EF; }
.badge-count { position: absolute; inset-inline-start: 1.1rem; top: 50%; transform: translateY(-50%); background: var(--pink); color: var(--dark); font-style: normal; font-size: 22px; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.brand { margin-top: auto; padding-top: 3rem; display: flex; align-items: center; justify-content: center; }
.brand-img { height: 48px; width: auto; max-width: 100%; }
.brand-img.big { height: 64px; display: block; margin: 0 auto 1rem; }
.logo { display: inline-flex; align-items: center; background: var(--dark); color: #E8F5E9; border-radius: 999px; padding: .35rem 1.1rem; font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1; direction: ltr; letter-spacing: 0; }
.logo .o { display: inline-block; width: .95em; height: .95em; margin: 0 .04em; vertical-align: -0.1em; }
.big-logo { font-size: 44px; padding: .45rem 1.4rem; margin-bottom: 1rem; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: inherit;
  border: 1.5px solid var(--dark); background: var(--white); color: var(--text); border-radius: var(--r); padding: .8rem 1.1rem;
  font-size: 22px; font-weight: 700; cursor: pointer; user-select: none;
}
.btn.primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn.primary:active { background: var(--green-dark); }
.btn.dark { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); font-weight: 400; }
.btn.big { width: 100%; min-height: 64px; font-size: 24px; margin-bottom: .75rem; }
.back { background: none; border: 0; color: var(--text); font-family: inherit; font-size: 20px; padding: .4rem 0 1rem; cursor: pointer; }

/* ---- cards & forms ---- */
.card { background: var(--white); border: 1.5px solid var(--dark); border-radius: var(--r); padding: 1.2rem; }
.card img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 16px; background: #F1F3EF; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: .45rem 1rem; font-size: 18px; font-family: inherit; cursor: pointer; color: var(--text); }
.chip.active { background: var(--green); color: var(--white); border-color: var(--green); }
.chip.hint { border-style: dashed; color: var(--muted); }
.busy { text-align: center; padding: 3.5rem 0; color: var(--muted); font-size: 22px; }
.spinner { width: 52px; height: 52px; border: 5px solid var(--green-light); border-top-color: var(--green); border-radius: 50%; margin: 0 auto 1rem; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stepper { display: flex; align-items: stretch; justify-content: flex-start; }
.stepper button { width: 3.2rem; font-size: 28px; border: 1.5px solid var(--dark); background: var(--white); border-radius: var(--r); font-family: inherit; color: var(--text); cursor: pointer; }
.stepper input { text-align: center; margin: 0 .4rem; width: 4.6rem; padding-inline: .2rem; font-size: 26px; font-weight: 700; }
.actions { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.time-row { display: flex; align-items: center; gap: .9rem; margin-top: .5rem; }
.time-row label { margin: 0; white-space: nowrap; }
.time-row input[type=time] { width: auto; min-width: 8.5rem; font-size: 24px; font-weight: 700; text-align: center; }
.push-card { margin-bottom: .6rem; }
.push-status { font-weight: 700; margin: 0 0 .4rem; font-size: 20px; }
.push-card .actions { margin-top: .7rem; }
.install-how { text-align: start; background: var(--white); border: 1.5px solid var(--dark); border-radius: var(--r); padding: .7rem 1.3rem .7rem .8rem; margin-top: .7rem; font-size: 20px; }
.install-how ol { margin: 0; padding-inline-start: 1.3rem; }
.install-how li { margin: .4rem 0; }
.rule-form { display: flex; gap: .5rem; margin-top: .6rem; }
.rule-form input { font-size: 20px; padding: .6rem .8rem; }
.rule-form input[type=text] { flex: 1; min-width: 0; }
.rule-form input[type=number] { width: 4.4rem; flex: 0 0 auto; text-align: center; }
.rule-form .btn { flex: 0 0 auto; padding: .6rem .9rem; font-size: 20px; }
.setting-row { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; }
.setting-row input { font-size: 20px; padding: .5rem .7rem; border-radius: 16px; }
.setting-row input[type=number] { width: 4rem; flex: 0 0 auto; text-align: center; }
.setting-row input[type=text] { flex: 1; min-width: 0; }
.setting-row .small { flex: 0 0 auto; }
.setting-row .del { background: none; border: 0; color: var(--pink); font-family: inherit; font-size: 26px; line-height: 1; padding: 0 .2rem; cursor: pointer; }
.link { background: none; border: none; color: var(--green); font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer; padding: .5rem 0 0; }

.toast { position: fixed; bottom: 1.4rem; inset-inline: 1.2rem; background: var(--dark); color: var(--white); padding: 1rem 1.2rem; border-radius: var(--r); display: flex; justify-content: space-between; align-items: center; gap: 1rem; z-index: 20; font-size: 20px; box-shadow: var(--shadow-inset); }
.toast button { background: none; border: none; color: #FFD54F; font-weight: 700; font-size: 20px; font-family: inherit; }

/* ---- lists ---- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { background: var(--white); border: 1.5px solid var(--dark); border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.list li .title { font-weight: 700; font-size: 22px; }
.list li .meta { font-size: 18px; color: var(--muted); margin-top: .25rem; }
.list li.clickable { cursor: pointer; }
.list li.clickable:active { background: #F1F3EF; }
.list li.done { opacity: .75; }
.task-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.task-actions .btn { flex: 1; padding: .7rem .2rem; font-size: 17px; font-weight: 400; white-space: nowrap; }
.link.edit { font-size: 16px; font-weight: 400; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; padding-top: .6rem; }
.group-title { font-weight: 700; margin: 1.4rem 0 .6rem; font-size: 22px; }
.group-title.expired { color: var(--pink); }
.group-title.today { color: var(--text); }
.group-title.soon { color: var(--green); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.status-grid .btn { padding: .8rem .4rem; font-size: 18px; font-weight: 400; }
.status-grid .btn.active { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 700; }
.pill { display: inline-block; font-size: 16px; padding: .05rem .6rem; border-radius: 999px; background: var(--green-light); color: var(--green-text); margin-inline-start: .4rem; vertical-align: middle; font-weight: 400; }

/* ---- login ---- */
.login-page { padding: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login { width: min(92vw, 400px); text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.4rem; padding-left: 1rem; text-align: left; }
.pw-toggle { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--green); font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer; padding: .3rem; }
.login-card { background: var(--white); border: 1.5px solid var(--dark); border-radius: var(--r); padding: 1.6rem 1.3rem; }
.login-title { font-size: 34px; margin: 0; }
.login form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.3rem; }
.login form .btn.big { margin-bottom: 0; }
.login-brand { margin: 0 0 1.6rem; padding-top: 0; }
.install-card { margin-bottom: .6rem; }
.install-card .muted { margin: 0 0 .8rem; font-size: 18px; }
.install-btn { background: var(--white); font-weight: 400; margin-bottom: 0; }
