/* Torimly.
   Design idea: the appointment book. One signal color for a slot that opened up (amber),
   one for a slot that got filled (green). Everything else stays quiet. */

/* Fonts are hosted with the site (SIL Open Font License): Secular One for display, Heebo for text. */
@font-face {
  font-family: "Secular One"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/secular-one-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Secular One"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/secular-one-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/heebo-hebrew-wght-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/heebo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #EAF4FF;
  --ink: #0B2545;
  --ink-soft: #34506E;
  --ink-mute: #445C7A;
  --card: #FFFFFF;
  --line: #B5CCE3;
  --tint: #DCEBFA;
  --filled: #1D6FE0;
  --filled-hover: #1555B8;
  --mint: #BFE6FF;
  --open: #FFB41F;
  --open-bg: #FFF1CC;
  --open-line: #E09600;
  --error: #B3261E;
  --display: "Secular One", "Heebo", "Segoe UI", Arial, sans-serif;
  --body: "Heebo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #D6ECFF 0%, var(--ground) 380px) no-repeat, var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #0B2545;
  box-shadow: 0 0 0 5px #fff;
  outline-offset: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-left, 0px));
}

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.logo-mark i { width: 18px; height: 10px; border-radius: 3px; background: var(--open); display: block; }
.logo-word { font-family: var(--display); font-size: 28px; line-height: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 14px; border: 0;
  font: 700 18px var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .08s, box-shadow .08s;
}
.btn-primary { background: linear-gradient(135deg, #2A8CF0, var(--filled)); color: #fff; box-shadow: 0 3px 0 var(--filled-hover); }
.btn-primary:hover { background: var(--filled-hover); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--filled-hover); }
.btn-ghost { background: transparent; color: var(--ink); font-weight: 500; padding: 0 22px; }
.btn-ghost:hover { background: var(--tint); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 16px; background: var(--ink); color: #fff; }
.btn-small:hover { background: #1B3F6B; }

/* ---------- landing: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; padding-block: 40px 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02; }
.lead { font-size: 21px; color: var(--ink-soft); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.audience { font-size: 15px; color: var(--ink-mute); }

/* The day board: a cancelled slot gets filled, once, on load. */
.demo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.board { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 20px 22px 22px; box-shadow: -9px 9px 0 var(--ink); display: flex; flex-direction: column; gap: 14px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.board-head strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.replay { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); font: 500 14px var(--body); cursor: pointer; }
.replay:hover { background: var(--tint); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 9px; border-top: 1.5px dashed #CFE0F2; }
.row:first-child { border-top: 0; }
.row time { font-family: var(--display); font-size: 20px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.row-target time { color: var(--ink); }
.appt { display: grid; align-items: center; min-height: 56px; padding: 0 16px; border: 2px solid transparent; border-radius: 12px; background: var(--tint); font-size: 17px; color: var(--ink-soft); }
.appt > * { grid-area: 1 / 1; }
.appt-target { background: var(--mint); border-color: var(--filled); color: var(--ink); font-weight: 700; }
.who-old, .who-open { opacity: 0; }
.who-new { display: flex; align-items: center; gap: 10px; }
.who-new svg { flex: none; }
.who-open { font-weight: 700; color: var(--ink); }

.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; padding: 12px 16px; font-size: 16px; line-height: 1.5; }
.msg-out { align-self: flex-start; background: var(--ink); color: var(--ground); border-radius: 18px 18px 18px 4px; }
.msg-in { align-self: flex-end; background: var(--filled); color: #fff; border-radius: 18px 18px 4px 18px; font-weight: 700; }
.demo-note { font-size: 14px; color: var(--ink-mute); }

@keyframes apptState {
  0%, 18%  { background: var(--tint); border-color: transparent; border-style: solid; }
  24%, 54% { background: var(--open-bg); border-color: var(--open-line); border-style: dashed; }
  62%, 100% { background: var(--mint); border-color: var(--filled); border-style: solid; }
}
@keyframes whoOld  { 0%, 18% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes whoOpen { 0%, 20% { opacity: 0; } 26%, 54% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes whoNew  { 0%, 58% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes msgOut  { 0%, 28% { opacity: 0; transform: translateY(10px); } 36%, 100% { opacity: 1; transform: none; } }
@keyframes msgIn   { 0%, 48% { opacity: 0; transform: translateY(10px); } 56%, 100% { opacity: 1; transform: none; } }

.board.run .appt-target { animation: apptState 9s ease both; }
.board.run .who-old  { animation: whoOld 9s linear both; }
.board.run .who-open { animation: whoOpen 9s linear both; }
.board.run .who-new  { animation: whoNew 9s linear both; }
.board.run .msg-out  { animation: msgOut 9s ease-out both; }
.board.run .msg-in   { animation: msgIn 9s ease-out both; }

/* ---------- landing: cost of a gap ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 24px 96px; }
.calc h2, .rules h2, .faq h2, .how h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; }
.calc-copy { display: flex; flex-direction: column; gap: 18px; }
.calc-copy p { color: var(--ink-soft); }
.calc-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.calc-form .field label { display: flex; justify-content: space-between; gap: 12px; }
.calc-form output { font-family: var(--display); color: var(--filled); }
.calc-out { background: var(--ink); color: var(--ground); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.calc-out p { color: #BCD3EC; font-size: 17px; }
.calc-out strong { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 68px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-out .good { color: var(--open); }
.calc-out hr { width: 100%; border: 0; border-top: 1.5px dashed #3F6491; margin: 18px 0 12px; }

/* ---------- landing: how it works ---------- */
.how { background: var(--card); border-block: 2px solid var(--ink); }
.section { padding-block: 88px; display: flex; flex-direction: column; gap: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 26px; line-height: 1.2; }
.step p { color: var(--ink-soft); font-size: 17px; }
.mini { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid transparent; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mini time { font-family: var(--display); font-weight: 400; font-size: 18px; }
.mini-kept { background: var(--tint); color: var(--ink-soft); }
.mini-open { background: var(--open-bg); border: 2px dashed var(--open-line); }
.mini-filled { background: var(--mint); border-color: var(--filled); }

/* ---------- landing: the rules ---------- */
.rules { padding-block: 96px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.rules h2 { position: sticky; top: 24px; }
.rule-list { margin: 0; display: flex; flex-direction: column; }
.rule { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 32px; padding-block: 24px; border-top: 2px solid var(--ink); }
.rule:last-child { border-bottom: 2px solid var(--ink); }
.rule dt { font-family: var(--display); font-size: 24px; line-height: 1.25; }
.rule dd { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* ---------- landing: start ---------- */
.pilot-inner.solo { grid-template-columns: minmax(0, 1fr); }
.pilot { background: var(--ink); color: var(--ground); }
.pilot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px; }
.pilot-copy { display: flex; flex-direction: column; gap: 20px; }
.pilot-copy h2 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; }
.pilot-copy p { font-size: 19px; color: #C2D6EE; }
.form { min-width: 0; background: var(--card); color: var(--ink); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field input:not([type=checkbox]):not([type=range]), .field select { min-height: 48px; width: 100%; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 17px var(--body); color: var(--ink); background: #fff; }
.field input[type=range] { width: 100%; accent-color: var(--filled); }
.field input.ltr { direction: ltr; text-align: right; }
.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--filled); }
.error { color: var(--error); font-size: 14px; font-weight: 500; }
.sent { background: #DDF1FF; color: #0B3F73; border-radius: 12px; padding: 14px 16px; font-weight: 700; }

/* ---------- landing: questions ---------- */
.faq { padding-block: 96px 72px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq details { border-top: 2px solid var(--ink); padding-block: 4px; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding-block: 18px; font-family: var(--display); font-size: 22px; line-height: 1.3; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 400 22px/1 var(--body); transition: transform .2s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--open); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 40em; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 28px 36px; font-size: 14px; color: var(--ink-mute); }
.foot strong { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--ink); }

/* ---------- admin ---------- */
.admin { padding-block: 40px 64px; }
.admin h1 { font-size: 34px; margin-bottom: 8px; }
.admin .muted { color: var(--ink-mute); font-size: 16px; margin-bottom: 24px; }
.table-scroll { overflow-x: auto; background: var(--card); border-radius: 16px; border: 1.5px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: right; padding: 12px 16px; border-bottom: 1px solid #DDE8F4; }
th { background: var(--tint); font-weight: 700; white-space: nowrap; }
td { white-space: normal; vertical-align: top; }
tbody tr:hover { background: #F2F8FF; }
tbody tr:last-child td { border-bottom: 0; }
td.num { direction: ltr; text-align: right; white-space: nowrap; }
td.nowrap { white-space: nowrap; }

/* ---------- product screens: owner calendar, waitlist, customer pages ---------- */
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-link { min-height: 44px; font-size: 16px; padding: 0 16px; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.narrow { max-width: 480px; margin: 0 auto; }
.auth { padding-block: 40px 72px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 46px); line-height: 1.1; }
.lead-sm { font-size: 18px; color: var(--ink-soft); }
.when { font-family: var(--display); font-size: 26px; line-height: 1.25; }
.hint { color: var(--ink-mute); font-size: 16px; }
.form-note { flex: 1 1 100%; background: var(--tint); border-radius: 12px; padding: 10px 14px; color: var(--ink-soft); }
.more { flex: 1 1 100%; border: 1.5px dashed var(--line); border-radius: 14px; padding: 4px 14px; }
.more > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--filled); }
.more[open] > summary { margin-bottom: 8px; }
.field label { font-size: 17px; }
.hint a { color: var(--filled); font-weight: 700; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 10px; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--tint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(28px, 4.4vw, 40px); margin-top: 12px; line-height: 1.1; }
.card { background: var(--card); box-shadow: 0 10px 28px -18px rgba(29,111,224,.45); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; border: 1.5px solid #CADDF0; }
.card h2 { font-size: 24px; line-height: 1.2; }
.row-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.row-form .field { flex: 1 1 220px; min-width: 0; }
.copy { display: flex; gap: 10px; flex-wrap: wrap; }
.copy input { flex: 1 1 280px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 16px var(--body); direction: ltr; text-align: left; background: var(--tint); color: var(--ink); }
.actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 120px; }
.actions form { margin: 0; }
.actions .btn { text-align: center; }
.banner { border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.banner-ok { background: #DDF1FF; color: #0B3F73; border: 1.5px solid #9CCBEF; }
.banner-warn { background: var(--open-bg); color: #5C3F00; border: 1.5px solid #F2D58A; }
.banner p + p { margin-top: 6px; }
.banner .pay { font-weight: 700; }
.pill { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 16px; font-weight: 700; }
.pill-booked, .pill-closed, .pill-expired { background: #E3EAF2; color: var(--ink-soft); }
.pill-open, .pill-pending, .pill-available { background: var(--open-bg); color: var(--ink); border: 1.5px dashed var(--open-line); }
.pill-filled, .pill-accepted, .pill-placed { background: var(--filled); color: #fff; }
td .hint { display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: var(--card); border-radius: 18px; padding: 18px 20px; border: 1.5px solid #CADDF0; display: flex; flex-direction: column; gap: 2px; }
.stat b { font: 400 44px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-mute); font-size: 15px; }
.stat-good { background: var(--filled); border-color: var(--filled); }
.stat-good b, .stat-good span { color: #fff; }

/* Dashboard two-column layout */
.app-body { display: grid; grid-template-columns: 1fr 272px; gap: 28px; align-items: start; }
.app-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.app-sidebar { position: sticky; top: 20px; }
.reminder-widget { background: var(--card); border-radius: 20px; padding: 20px; border: 1.5px solid #CADDF0; display: flex; flex-direction: column; gap: 18px; }
.reminder-widget h3 { font-size: 20px; font-family: var(--display); margin: 0; }
.reminder-day { display: flex; flex-direction: column; gap: 6px; }
.reminder-day-label { font-size: 13px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }
.reminder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.reminder-slot { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; padding: 8px 10px; background: var(--tint); border-radius: 12px; }
.reminder-time { font-family: var(--display); font-size: 18px; grid-row: 1 / 3; align-self: center; }
.reminder-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.reminder-name { font-size: 13px; color: var(--ink-mute); }
.reminder-empty { font-size: 14px; color: var(--ink-mute); margin: 0; padding: 6px 0; }

/* Times a customer can book */
.slot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.slot-item { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 14px 16px; border: 1.5px solid #CADDF0; }
.slot-when { font-family: var(--display); font-size: 20px; }

/* pop-up messages */

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 24px 64px; }
  .board { box-shadow: -6px 6px 0 var(--ink); }
  .calc, .rules, .faq, .pilot-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rules h2 { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section, .rules, .pilot-inner { padding-block: 64px; }
  .faq { padding-block: 64px 48px; }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { position: static; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .lead { font-size: 19px; }
  .btn { padding: 0 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form, .calc-out { padding: 22px; }
}

/* ---------- reduced motion: show the finished state, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board.run .appt-target, .board.run .who-old, .board.run .who-open,
  .board.run .who-new, .board.run .msg-out, .board.run .msg-in { animation: none; }
  .replay { display: none; }
  .btn, .faq summary::after { transition: none; }
}

.back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 700; color: var(--filled); text-decoration: none; }
.back:hover { text-decoration: underline; }
.field select { min-height: 48px; width: 100%; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 17px var(--body); color: var(--ink); background: #fff; }
.label-like { font-weight: 700; font-size: 17px; }
.day-row { display: flex; flex-wrap: wrap; gap: 8px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.day span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.day input:checked + span { background: var(--filled); border-color: var(--filled); color: #fff; }
.day input:focus-visible + span { outline: 3px solid #0B2545; outline-offset: 2px; }
.repeat { flex: 1 1 100%; }
.days { flex: 1 1 100%; }

/* ---------- adding times: three clear choices ---------- */
.add-box { background: var(--tint); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.add-box h3 { font-size: 22px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: right; padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 16px var(--body); cursor: pointer; }
.tab small { color: var(--ink-mute); font-size: 14px; }
.tab.is-active { border-color: var(--filled); background: #fff; box-shadow: 0 0 0 3px rgba(29,111,224,.18); }
.tab.is-active b { color: var(--filled); }
.panel { display: none; background: #fff; border-radius: 14px; padding: 16px; }
.panel.is-active { display: block; }
.panel .form-note { margin-bottom: 12px; }
@media (max-width: 640px) { .tabs { grid-template-columns: 1fr; } }

/* ---------- calendar grouped by day ---------- */
.cal-title { margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 700 16px var(--body); color: var(--ink); cursor: pointer; }
.chip.is-active { background: var(--filled); border-color: var(--filled); color: #fff; }
.day-block { background: #fff; border: 1.5px solid #CADDF0; border-radius: 16px; overflow: hidden; }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 12px 16px; background: var(--tint); }
.day-head h4 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0; }
.appt-list { list-style: none; margin: 0; padding: 0; }
.appt-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px 16px; border-top: 1px solid #DDE8F4; }
.appt-row[hidden], .day-block[hidden] { display: none; }
.appt-time { font-family: var(--display); font-size: 22px; }
.appt-main { display: flex; flex-direction: column; min-width: 0; }
.appt-row .actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
.appt-row .actions:empty { display: none; }

/* ---------- customer page: pick a day, then a time ---------- */
.step-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-top: 6px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--filled); color: #fff; font: 700 16px var(--body); }
.day-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.day-chip { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; min-width: 110px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.day-chip small { color: var(--ink-mute); font-size: 14px; }
.day-chip.is-selected { background: var(--filled); border-color: var(--filled); color: #fff; }
.day-chip.is-selected small { color: #DCEEFF; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.time-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; padding: 8px; border-radius: 14px; border: 2px solid var(--filled); background: #fff; color: var(--filled); text-decoration: none; }
.time-btn b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.time-btn small { color: var(--ink-mute); font-size: 13px; }
.time-btn:hover { background: var(--filled); color: #fff; }
.time-btn:hover small { color: #DCEEFF; }

/* ---------- pop-up messages for the owner ---------- */
.toasts { position: fixed; inset-inline: 16px; inset-block-end: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; pointer-events: none; z-index: 50; }
.toast { --accent: var(--filled); pointer-events: auto; display: flex; gap: 14px; align-items: flex-start; background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; width: min(440px, 100%); border: 1.5px solid #CADDF0; border-inline-start: 8px solid var(--accent); box-shadow: 0 20px 44px -18px rgba(11,37,69,.55); animation: toast-in .35s ease-out; }
.toast-ok { --accent: #1B9E6B; }
.toast-info { --accent: var(--filled); }
.toast-warn { --accent: var(--open-line); }
.toast-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--accent) 16%, #fff); }
.toast-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.toast-title { font-family: var(--display); font-size: 20px; color: var(--accent); line-height: 1.2; }
.toast-text { font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.toast-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.toast button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font: 700 16px var(--body); cursor: pointer; }
.toast button.toast-refresh { background: linear-gradient(135deg, #2A8CF0, var(--filled)); color: #fff; }
.toast button.toast-close { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- close-all bar for pop-ups ---------- */
.toasts-bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(440px, 100%); padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 12px 28px -14px rgba(11,37,69,.7); }
.toasts-bar[hidden] { display: none; }
.toasts-bar button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); font: 700 16px var(--body); cursor: pointer; }

/* ---------- share box and the settings drawer ---------- */
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-actions .btn { flex: 1 1 180px; }
details.settings > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
details.settings > summary::-webkit-details-marker { display: none; }
details.settings > summary::after { content: "▾"; font-size: 22px; color: var(--filled); transition: transform .15s; }
details.settings[open] > summary::after { transform: rotate(180deg); }
details.settings[open] > summary { margin-bottom: 16px; }
.fab { display: none; }

/* ---------- phone: the owner's day-to-day screen ---------- */
@media (max-width: 900px) {
  .wrap { padding-inline: 16px; }
  .app { padding-block: 16px 96px; gap: 18px; }
  .app-sidebar { order: -1; }
  .reminder-widget { padding: 16px; gap: 12px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px; border-radius: 14px; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 13px; }
  .card { padding: 18px; border-radius: 18px; }
  .add-box { padding: 12px; }
  .panel { padding: 12px; }
  .row-form .field { flex: 1 1 100%; }
  .btn { min-height: 52px; }
  .btn-sm { min-height: 48px; }
  .appt-row { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 12px; }
  .appt-time { font-size: 20px; }
  .appt-row .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .appt-row .actions:empty { display: none; }
  .actions .btn { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { flex: none; }
  .fab { display: inline-flex; align-items: center; justify-content: center; position: fixed; inset-inline-start: 16px; inset-block-end: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; min-height: 56px; padding: 0 22px; border-radius: 999px; background: linear-gradient(135deg, #2A8CF0, var(--filled)); color: #fff; font: 700 18px var(--body); text-decoration: none; box-shadow: 0 14px 28px -10px rgba(29,111,224,.7); }
  /* Pop-ups go to the top so they do not cover the add button. */
  .toasts { inset-block-end: auto; inset-block-start: 12px; max-height: calc(100vh - 24px); overflow-y: auto; align-items: stretch; }
  .toast, .toasts-bar { width: 100%; }
  .toast { padding: 12px 14px; }
  .toast-icon { width: 40px; height: 40px; font-size: 20px; }
}

/* ---------- accessibility pass ---------- */
/* Small text is never smaller than 15px, and every button and field is at least 48px tall. */
.audience, .demo-note, .foot, .stat span, .reminder-name, .reminder-empty, .reminder-label, .day-chip small, .tab small, .time-btn small, .error { font-size: 15px; }
.reminder-day-label { font-size: 14px; letter-spacing: 0; text-transform: none; }
.btn-small, .btn-sm, .replay, .chip, .nav-link, .toast button, .toasts-bar button, .back { min-height: 48px; }
.replay { padding: 0 18px; font-size: 15px; }
.field label, .field .check { font-size: 17px; }
.field input:not([type=checkbox]):not([type=range]), .field select, .copy input { font-size: 16px; }
input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--filled); flex: none; }
/* Links inside text are underlined, so they do not rely on colour alone. */
.hint a, .muted a, .legend a { text-decoration: underline; text-underline-offset: 3px; }
/* Errors and notices are read out by screen readers and are not red text alone. */
.error::before { content: "שגיאה: "; font-weight: 700; }
.sent, .flash, .notice { font-size: 17px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Shown while a PDF is being made, so nothing flickers behind it. */
.pdf-cover { position: fixed; inset: 0; z-index: 2147483000; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 22px; font-weight: 800; color: var(--ink); text-align: center; padding: 24px; }
.pdf-cover .spin { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--filled); animation: pdfspin 1s linear infinite; }
@keyframes pdfspin { to { transform: rotate(360deg); } }
