/* The payment page and its terms (payment.py). The bookcase room's look (about.html): warm wallpaper, paper cards with
   ink outlines; plainer than the app, because grown-ups read it. Hebrew, right to left. */
:root {
  --ink: #1d1917; --paper: #fff8e6; --wall: #c96f4a; --wall2: #e08a5f; --red: #c2271d; --green: #1f7a45;
  --gold: #ffd23f; --butter: #ffe58a; --blue: #1f5fbf; --muted: #5d5049; --line: rgba(29, 25, 23, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--wall);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 34px, transparent 34px 68px), radial-gradient(ellipse at 50% 0%, var(--wall2) 0, var(--wall) 70%);
  font-family: "Varela Round", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.6;
}
a { color: var(--blue); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2 { font-family: "Luckiest Guy", system-ui, sans-serif; font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 6vw, 42px); color: var(--red); }
h2 { font-size: clamp(22px, 4.4vw, 28px); color: var(--red); margin-top: 22px; }
h2:first-child { margin-top: 0; }

/* the top bar: the name, and the way back to the shop */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; max-width: 820px; margin: 0 auto; padding: 14px 16px 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: "Luckiest Guy", system-ui, sans-serif; font-size: 28px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.brand img { width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--ink); background: var(--paper); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 17px; }
.top nav a { color: #fff; }

.wrap { max-width: 820px; margin: 0 auto; padding: 10px 16px 30px; display: flex; flex-direction: column; gap: 22px; }
.card { background: var(--paper); border: 4px solid var(--ink); border-radius: 16px; padding: 24px 24px 22px; box-shadow: 0 7px 0 rgba(0,0,0,.22); min-width: 0; }
.card p { margin: 0 0 12px; max-width: 68ch; }
.card p:last-child { margin-bottom: 0; }
.lead { font-size: 20px; }
.small { font-size: 16px; color: var(--muted); }
.card ul, .card ol { margin: 0 0 12px; padding-inline-start: 22px; max-width: 68ch; }
.card li { margin-bottom: 6px; }

/* what a family buys */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 16px 18px; margin: 16px 0 14px; }
.offer .what { font-family: "Luckiest Guy", system-ui, sans-serif; font-size: clamp(24px, 5vw, 32px); line-height: 1.1; }
.offer .what small { display: block; font-family: "Varela Round", system-ui, sans-serif; font-size: 17px; color: var(--muted); margin-top: 4px; }
.offer .price { font-family: "Luckiest Guy", system-ui, sans-serif; font-size: clamp(34px, 8vw, 48px); color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.points { list-style: none; padding: 0 !important; }
.points li { position: relative; padding-inline-start: 30px; }
.points li::before { content: "✓"; position: absolute; inset-inline-start: 2px; top: 0; color: var(--green); font-weight: 700; }

/* the form */
.form { display: grid; gap: 14px; margin: 14px 0 6px; max-width: 520px; }
.form label { display: grid; gap: 4px; font-size: 17px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form textarea {
  font: inherit; font-size: 18px; padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.form textarea { min-height: 90px; resize: vertical; }
.form [dir="ltr"] { text-align: end; }
.agree { display: flex !important; gap: 12px; align-items: flex-start; background: var(--butter); border: 2.5px solid var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 18px !important; cursor: pointer; }
.agree input { flex: 0 0 auto; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-family: "Luckiest Guy", system-ui, sans-serif; font-size: 24px; letter-spacing: .3px;
  color: #fff; background: var(--green); border: 3px solid var(--ink); border-radius: 999px; padding: 12px 30px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn[disabled] { background: #9c948c; cursor: not-allowed; box-shadow: 0 5px 0 rgba(29,25,23,.5); }
.btn.quiet { background: #fff; color: var(--ink); font-size: 20px; }
.hint-tick { font-size: 16px; color: var(--muted); }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--muted); max-width: 68ch; }
.secure svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; }
.error { background: #ffe1dc; border: 2.5px solid var(--red); border-radius: 12px; padding: 10px 14px; font-size: 17px; }
.note { background: var(--butter); border: 2.5px solid var(--ink); border-radius: 12px; padding: 12px 16px; }
/* the shop's checkout (store_pages/checkout.js): paid, or something went wrong */
.note.ok { background: #d9f2df; }
.note.bad { background: #ffe1dc; }
.form label.phone input { font-size: 20px; max-width: 260px; }
.code { background: #fff; border: 3px dashed var(--ink); border-radius: 14px; padding: 12px 16px; font-size: 18px; }
.code b { font-size: 24px; white-space: nowrap; }
.friendly { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.friendly .dot { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); font-size: 22px; line-height: 1; }
.c-red { background: #e8463a; } .c-blue { background: #2f6fd6; } .c-green { background: #3fae6a; } .c-yellow { background: #ffd23f; }
.c-pink { background: #ff8fc8; } .c-purple { background: #9b6fd6; } .c-orange { background: #ff9a3c; } .c-white { background: #ffffff; }
.c-black { background: #1d1917; } .c-brown { background: #8b5a2b; } .c-grey { background: #9a9a9a; } .c-lightblue { background: #8fd3ff; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[aria-disabled] { opacity: .6; pointer-events: none; }

/* the terms and the other long pages: numbered, easy to point at ("section 5.2") */
.legal h2 { font-size: clamp(20px, 4vw, 24px); }
.legal ol.num { counter-reset: n; list-style: none; padding: 0; }
.legal ol.num > li { counter-increment: n; position: relative; padding-inline-start: 42px; }
.legal ol.num > li::before { content: attr(data-n); position: absolute; inset-inline-start: 0; top: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.updated { font-size: 15px; color: var(--muted); }
dl.biz { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 8px 0 12px; }
dl.biz dt { color: var(--muted); }
dl.biz dd { margin: 0; overflow-wrap: anywhere; }
mark.todo { background: #fff0a8; border: 1.5px dashed var(--red); border-radius: 4px; padding: 0 4px; color: var(--red); }

footer { max-width: 820px; margin: 0 auto; padding: 4px 16px 36px; color: #fff; font-size: 16px; text-shadow: 0 1px 0 rgba(0,0,0,.3); text-align: center; }
footer a { color: #fff; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 8px; }
footer mark.todo { text-shadow: none; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .card { padding: 20px 16px 18px; border-width: 3px; }
  .offer { grid-template-columns: 1fr; }
  .brand { font-size: 24px; }
  .btn { width: 100%; }
}

/* a phone number or an e-mail inside Hebrew lines: one piece, never broken at its dash */
bdi[dir="ltr"], a[dir="ltr"] { white-space: nowrap; }
.nowrap { white-space: nowrap; }
/* (an e-mail address is one long word: it may break anywhere rather than run off a narrow card) */
a[href^="mailto:"], .mail { white-space: normal !important; overflow-wrap: anywhere; }
