/* Dudi's website. Colours: the app's "pearl" look (ios/LifeOS/Design/Theme.swift); text and link colours are a
   little darker than the app's so they pass WCAG AA on every background here. System fonts only: no web fonts. */
:root {
  --fg: #1C1B3A;
  --muted: #55577A;
  --link: #5A3BE0;
  --accent: #7C5CFA;
  --accent2: #A98BFF;
  --line: rgba(28, 27, 58, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  color: var(--fg);
  background: #EFEFFB;
}
body::before {   /* the app's background: lavender to peach, a peach light top right, a blue one bottom left */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 560px at 92% -4%, rgba(255, 217, 204, .75), transparent 70%),
    radial-gradient(520px 520px at 0% 102%, rgba(188, 214, 255, .8), transparent 70%),
    linear-gradient(#E4E4FA, #EEF3FF 50%, #F8EFEA);
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
a:focus-visible, .skip:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: #fff; padding: 8px 14px; z-index: 2; }
.skip:focus { top: 12px; }

/* Header and footer */
.top, .foot, main { width: 100%; max-width: 980px; margin: 0 auto; padding-inline: 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px rgba(124, 92, 250, .18); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
main { flex: 1; padding-block: 8px 40px; }
.foot { padding-block: 24px 36px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }

/* Glass card, as in the app */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .8));
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 6px 16px rgba(124, 92, 250, .08);
}
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(32px, 7vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
h2 { font-size: 21px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.kicker {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--link); background: rgba(255, 255, 255, .7);
}

/* Home */
.hero { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding-block: 12px 28px; }
.robot { width: min(200px, 52vw); height: auto; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px;
  background: var(--fg); color: #fff; font-weight: 700; text-decoration: none;
}
.store:hover { color: #fff; background: #000; }
.store.soon { background: rgba(28, 27, 58, .1); color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li {
  padding: 9px 16px; border-radius: 20px 20px 6px 20px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #5A3BE0, #7556EE);
  box-shadow: 0 4px 12px rgba(124, 92, 250, .25);
}
[dir="rtl"] .chips li { border-radius: 20px 20px 20px 6px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.cards p, .contact p { margin: 0; }
.contact { text-align: center; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 240px 1fr; justify-items: start; text-align: start; gap: 36px; align-items: center; padding-block: 36px 40px; }
  .robot { width: 230px; }
  .chips { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Text pages: support and the legal pages */
.text { max-width: 780px; margin: 0 auto; overflow-wrap: break-word; }
.text h1 { font-size: clamp(28px, 6vw, 40px); }
.text .card h1 { font-size: clamp(24px, 5vw, 32px); }
.text .card h2 { margin-top: 28px; }
.text .card h2:first-child { margin-top: 0; }
.text .card > :last-child { margin-bottom: 0; }
.text li { margin-bottom: 6px; }
.path { font-weight: 700; white-space: normal; }
.note { background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; color: var(--muted); }
.table { overflow-x: auto; margin: 12px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { font-weight: 700; }
code { overflow-wrap: anywhere; font-size: .9em; background: rgba(124, 92, 250, .08); padding: 1px 5px; border-radius: 5px; }

/* Draft builds only (scripts/build_site.py --draft) */
.draft { background: #FFE08A; color: #3A2A00; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 15px; }
mark.todo { background: #FFE08A; color: #3A2A00; padding: 0 3px; border-radius: 4px; }

/* The robot floats and blinks, as in the app; still when the person asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .robot-bob { animation: bob 3.9s ease-in-out infinite; }
  .robot-shadow { animation: shadow 3.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .robot-eye { animation: blink 4.2s infinite; transform-box: fill-box; transform-origin: center; }
  .robot-light { animation: glow 2.1s ease-in-out infinite; }
}
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes shadow { 50% { transform: scale(.94); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.12); } }
@keyframes glow { 50% { opacity: .55; } }
