/* Dripzy website. Colors and type match the app (src/tokens.ts). Light only, like the app. */
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(fonts/Rubik_400Regular.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(fonts/Rubik_500Medium.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 700; font-display: swap; src: url(fonts/Rubik_700Bold.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(fonts/Rubik_800ExtraBold.ttf) format('truetype'); }
@font-face { font-family: Rubik; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/Rubik_800ExtraBold_Italic.ttf) format('truetype'); }

:root {
  color-scheme: light;
  --ink: #0B2A5B; --muted: #4E6283; --action: #0066DD; --action-dark: #0052B5; --primary: #00B4FF; --secondary: #6CEBFF;
  --accent: #FFE08A; --accent-deep: #FFC21A; --success: #16A765; --bg: #EEF8FF; --bg-top: #F8FCFF; --bg-bottom: #DCF0FF;
  --surface: #FFFFFF; --pale: #E6F4FF; --border: #D3E8FA;
  --radius: 28px; --shadow: 0 24px 60px -24px rgba(0, 92, 200, .35); --shadow-sm: 0 10px 30px -14px rgba(0, 92, 200, .3);
  --wrap: 1160px; --gutter: 20px;
  --font: Rubik, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg-top); line-height: 1.55; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text are underlined, not told apart by color alone (WCAG 1.4.1). */
p a:not(.btn), li a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* Wordmark: always English, always LTR. */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; font-weight: 800; font-style: italic; color: var(--ink); letter-spacing: -.01em; direction: ltr; line-height: 1; }
.wordmark svg { display: block; width: 2.9em; height: .3em; margin-top: -.02em; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); background: rgba(248, 252, 255, .78); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--border); }
.header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .wordmark { font-size: 26px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 500; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 7px 12px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--primary); }
.lang-btn svg { width: 17px; height: 17px; flex: none; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; margin: 0; padding: 6px; list-style: none; min-width: 210px; max-height: min(80vh, 600px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: start; text-decoration: none; box-sizing: border-box; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--pale); }
.lang-menu a:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.lang-menu a[aria-checked="true"] { font-weight: 700; color: var(--action); }
.lang-menu a[aria-checked="true"]::after { content: "✓"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; font-size: 17px; border-radius: 99px; padding: 15px 26px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 119, 255, .7); }
.btn-primary:hover { background: var(--action-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark[aria-disabled="true"] { cursor: default; opacity: .92; }
.btn-dark[aria-disabled="true"]:hover { transform: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.store-btn { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; padding: 11px 26px 12px; }
.store-btn small { font-weight: 500; font-size: 12px; opacity: .8; }
.store-btn span { font-size: 18px; }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; background: radial-gradient(900px 500px at 85% 10%, rgba(108, 235, 255, .35), transparent 60%), radial-gradient(700px 500px at 0% 0%, rgba(0, 180, 255, .14), transparent 60%), linear-gradient(var(--bg-top), var(--bg)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
[dir="rtl"] .badge { padding: 6px 8px 6px 14px; }
.badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 12px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 .hl { background: linear-gradient(90deg, var(--action), #0080C0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--success); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 30px; }
.hero-visual::before { content: ""; position: absolute; width: 440px; height: 440px; max-width: 95%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 180, 255, .35), rgba(108, 235, 255, .12) 55%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone { position: relative; width: 300px; max-width: 72vw; aspect-ratio: 603 / 1311; padding: 10px; border-radius: 54px; background: linear-gradient(150deg, #22345a, #0a1428 60%); box-shadow: 0 50px 90px -30px rgba(0, 70, 180, .55), inset 0 0 0 2px rgba(255, 255, 255, .1); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; background: var(--bg); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 20px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.float-icon { top: 4%; inset-inline-start: 2%; padding: 0; background: none; box-shadow: none; animation-delay: -2s; }
.float-icon img { width: 112px; height: 112px; border-radius: 26px; transform: rotate(-9deg); box-shadow: 0 24px 40px -16px rgba(0, 90, 200, .6); }
.float-streak { top: 42%; inset-inline-end: 0; animation-delay: -1s; }
.float-streak .ic { background: #FFF1E6; }
.float-goal { bottom: 12%; inset-inline-start: 0; animation-delay: -3.5s; }
.float-goal .ic { background: #E3F9EE; color: var(--success); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Language strip */
.langs { padding: 26px 0; background: var(--bg); border-block: 1px solid var(--border); overflow: hidden; }
.langs p { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.marquee { display: flex; width: max-content; gap: 14px; animation: marquee 40s linear infinite; direction: ltr; }
.marquee span { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 8px 18px; font-weight: 500; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 96px 0; }
section[id] { scroll-margin-top: 56px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--action); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }

.features { background: linear-gradient(var(--bg), var(--bg-top)); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 21px; font-weight: 700; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--pale); color: var(--action); }
.tile svg { width: 26px; height: 26px; }
.tile.warm { background: #FFF4D6; color: #E09A00; }
.tile.green { background: #E3F9EE; color: var(--success); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(160deg, #fff, var(--pale)); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 18px; box-shadow: 0 10px 20px -8px rgba(0, 119, 255, .7); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Screens */
.screens { background: radial-gradient(800px 400px at 50% 0%, rgba(108, 235, 255, .25), transparent 70%), var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 250px; margin: 0 auto; padding: 8px; border-radius: 42px; }
.shot .phone img { border-radius: 34px; }
.shot:nth-child(even) { margin-top: 48px; }
.shot h3 { font-size: 18px; margin-top: 22px; }
.shot p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Privacy band */
.privacy-band { padding: 0; }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--ink), #123d80 70%, #0a5bc4); color: #fff; border-radius: 36px; padding: 56px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 235, 255, .35), transparent 65%); inset-inline-end: -120px; top: -140px; }
.band h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.band p { margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.checks li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 14px 18px; font-weight: 500; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--secondary); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 36px; box-shadow: var(--shadow-sm); }
.plan.plus { background: linear-gradient(160deg, #FFF8E1, #FFEFC2); border-color: #F6D985; position: relative; }
.plan .tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: var(--pale); color: var(--action); }
.plan.plus .tag { background: var(--accent-deep); color: var(--ink); }
.plan h3 { font-size: 32px; font-weight: 800; margin: 16px 0 6px; }
.plan h3 i { font-style: italic; }
.plan .price { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 22px; height: 22px; flex: none; color: var(--success); margin-top: 1px; }
.plan li.muted { color: var(--muted); }
.plan li.muted svg { color: var(--muted); }

/* FAQ */
.faq { background: linear-gradient(var(--bg-top), var(--bg)); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--pale); color: var(--action); display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* Final CTA */
.final { padding: 40px 0 96px; }
.final-card { text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(108, 235, 255, .45), transparent 70%), linear-gradient(180deg, #fff, var(--pale)); border: 1px solid var(--border); border-radius: 40px; padding: 64px 24px; box-shadow: var(--shadow); }
.final-card img { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 24px; box-shadow: 0 24px 40px -16px rgba(0, 90, 200, .6); }
.final-card h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.final-card p { color: var(--muted); font-size: 19px; margin: 14px auto 0; max-width: 32em; }
.final-card .hero-ctas { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; background: var(--bg); font-size: 15px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--ink); font-weight: 500; }

/* Document pages (privacy, support) */
.doc { padding: 64px 0 96px; background: linear-gradient(var(--bg-top), var(--bg)); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.doc .meta { color: var(--muted); margin-top: 10px; }
.doc .body { margin-top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #2b4166; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 6px; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .marquee { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-ctas, .hero-note { justify-content: center; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
  .shot:nth-child(even) { margin-top: 0; }
  .band { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .header .wrap { height: 60px; }
  .header-actions .btn { display: none; }
  .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .float-icon img { width: 84px; height: 84px; border-radius: 20px; }
  .float { font-size: 13px; padding: 10px 12px; }
  .float .ic { width: 32px; height: 32px; font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .store-btn { align-items: center; }
  .card, .plan { padding: 26px; }
  .final-card { padding: 48px 20px; }
}

/* ── Accessibility panel (assets/a11y.js) ─────────────────────────────────── */
.a11y-fab { position: fixed; inset-inline-start: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: var(--action); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.a11y-fab:hover { background: var(--action-dark); }
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-panel { position: fixed; inset-inline-start: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px); z-index: 91; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; font-size: 15px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.a11y-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 700; }
.a11y-head h2 svg { width: 24px; height: 24px; color: var(--action); }
.a11y-panel button { font: inherit; color: var(--ink); cursor: pointer; }
.a11y-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 16px; }
.a11y-size { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.a11y-size span { flex: 1; font-weight: 500; }
.a11y-size button { width: 42px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--pale); font-weight: 700; }
.a11y-size button:disabled { opacity: .4; cursor: default; }
.a11y-size output { min-width: 3.2em; text-align: center; font-weight: 700; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { min-height: 52px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: start; font-weight: 500; line-height: 1.25; }
.a11y-grid button:hover { border-color: var(--primary); }
.a11y-grid button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.a11y-statement { display: block; margin-top: 10px; text-align: center; font-weight: 500; text-decoration: underline; }
.a11y-reset { width: 100%; margin-top: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--pale); font-weight: 500; }
@media print { .a11y { display: none; } }

/* Text size is applied by a11y.js; long words may wrap instead of overflowing. */
html.a11y-bigtext main, html.a11y-bigtext footer { overflow-wrap: anywhere; }
html.a11y-bigtext main *, html.a11y-bigtext footer * { min-width: 0; }

/* High contrast */
html.a11y-contrast { --ink: #000; --muted: #000; --action: #0039A6; --action-dark: #002B80; --primary: #0039A6; --border: #000; --bg: #fff; --bg-top: #fff; --bg-bottom: #fff; --pale: #fff; --surface: #fff; }
html.a11y-contrast body, html.a11y-contrast .header, html.a11y-contrast .hero, html.a11y-contrast .final-card, html.a11y-contrast .langs { background: #fff !important; }
html.a11y-contrast .hero h1 .hl { background: none; color: var(--action); -webkit-text-fill-color: currentColor; }
html.a11y-contrast .card, html.a11y-contrast .plan, html.a11y-contrast .step, html.a11y-contrast details { border: 2px solid #000 !important; box-shadow: none !important; }

/* Grayscale (not on the panel, so its state stays visible) */
html.a11y-gray body > :not(.a11y) { filter: grayscale(1); }

/* Highlight links and buttons */
html.a11y-links a:not(.btn):not(.brand) { text-decoration: underline !important; text-underline-offset: 3px; background: #FFE08A; color: #000 !important; }
html.a11y-links .btn, html.a11y-links .lang-btn, html.a11y-links summary { outline: 3px solid #FFC21A; outline-offset: 2px; }

/* Readable font */
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Helvetica Neue", system-ui, sans-serif !important; font-style: normal !important; }

/* Text spacing (WCAG 1.4.12 values; no letter-spacing for Arabic, which would break its joined letters) */
html.a11y-spacing body * { line-height: 1.8 !important; word-spacing: .16em !important; }
html.a11y-spacing:not(:lang(ar)) body * { letter-spacing: .08em !important; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: .8em; }

/* Stop animations */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .js .reveal, html.a11y-motion.js .reveal { opacity: 1; transform: none; }

/* Big cursor */
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11.5-6.6.9 3.9 7.2-2.6 1.4-3.9-7.3L5 20z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important; }

/* Pause control for the moving language strip and floating cards (WCAG 2.2.2). Shares state with the panel's "Stop animations". */
.langs { position: relative; }
.motion-btn { display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.motion-btn svg { width: 14px; height: 14px; }
.motion-btn .play { display: none; }
.motion-btn[aria-pressed="true"] .pause { display: none; }
.motion-btn[aria-pressed="true"] .play { display: inline; }
.langs .motion-row { display: flex; justify-content: center; }
.gallery:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; border-radius: 12px; }

/* Contact form (posts to /api/contact) */
.contact { background: var(--bg); padding-top: 24px; }
.contact-form { position: relative; max-width: 640px; margin: 0 auto; display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.contact-form .field { display: grid; gap: 6px; min-width: 0; }
.contact-form label { font-weight: 700; font-size: 15px; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid var(--muted); border-radius: 14px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-color: var(--action); }
.contact-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-note { margin: 0; font-size: 14px; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .7; cursor: default; transform: none; }
.contact-status { margin: 0; font-weight: 600; }
.contact-status:empty { display: none; }
.contact-status.ok { color: #0B6B35; }
.contact-status.err { color: #B42318; }

/* Footer credit: "Website by maorharel.co.il" */
.footer .credit { flex-basis: 100%; margin: 0; font-size: 14px; }
.footer .credit a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.footer .credit a:hover { color: var(--ink); }
.footer .credit img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
