/* Rega website. Colours and type follow the app (src/theme.rs). */

@font-face { font-family: Ubuntu; font-weight: 400; font-display: swap; src: url(/fonts/ubuntu-regular.woff2) format("woff2"); }
@font-face { font-family: Ubuntu; font-weight: 500; font-display: swap; src: url(/fonts/ubuntu-medium.woff2) format("woff2"); }
@font-face { font-family: Ubuntu; font-weight: 700; font-display: swap; src: url(/fonts/ubuntu-bold.woff2) format("woff2"); }

:root {
  --bg: #0b0d11;
  --bg-2: #0e1014;
  --surface: #15181e;
  --surface-2: #1c2028;
  --surface-3: #242934;
  --border: #282d38;
  --border-strong: #353b49;
  --text: #eceef3;
  --muted: #a3aabd;
  --faint: #6e7588;
  --accent: #7c5cff;
  --coral: #ff5e7a;
  --green: #3ecf8e;
  --gradient: linear-gradient(90deg, #ff5e7a, #7c5cff);
  --radius: 16px;
  --wrap: 1160px;
  --font: Ubuntu, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
code, kbd {
  font: 500 0.88em var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* "rega" the Hebrew word (not the app's name): links to its explanation. */
a.rega {
  color: inherit;
  text-decoration: underline dotted;
  text-decoration-color: rgba(163, 170, 189, 0.7);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.14em;
}
a.rega:hover { text-decoration-style: solid; text-decoration-color: var(--accent); }
section[id] { scroll-margin-top: 64px; }

.eyebrow {
  display: inline-block;
  font: 500 13px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(40, 45, 56, 0.6);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px var(--font); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.brand + .nav-actions { margin-left: auto; }
.nav-gh svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 420px) { .nav-gh span { display: none; } .nav-gh { padding: 0 10px; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 500 16px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--surface-3); border-color: #444b5c; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: var(--gradient);
  border: 0;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.55);
}
.btn-primary:hover { background: var(--gradient); filter: brightness(1.08); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-large { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 88px 0 40px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 35% 40%, rgba(255, 94, 122, 0.22), transparent 70%),
    radial-gradient(40% 50% at 65% 45%, rgba(124, 92, 255, 0.26), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 { font-size: clamp(40px, 7vw, 76px); max-width: 15ch; margin: 0 auto 22px; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin-top: 18px; color: var(--faint); font-size: 14px; }
.hero-meta a { color: var(--muted); }
.hero-shot { margin: 64px auto 0; max-width: 1100px; }

/* The demo video, and the four steps under it that follow along. */
.demo-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1014;
  box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.demo-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 16, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.demo-toggle[hidden] { display: none; }
.demo-frame:hover .demo-toggle, .demo-toggle:focus-visible, .demo.is-paused .demo-toggle { opacity: 1; }
.demo-toggle svg { width: 20px; height: 20px; }
.demo .i-play, .demo.is-paused .i-pause { display: none; }
.demo.is-paused .i-play { display: block; }
.demo-steps {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: left;
}
@media (max-width: 860px) { .demo-steps { grid-template-columns: repeat(2, 1fr); } }
.demo-steps li {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.demo-steps li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--p, 0%);
  background: var(--gradient);
}
.demo-steps b {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.demo-steps li.is-current { color: var(--text); border-color: rgba(124, 92, 255, 0.7); }
.demo-steps li.is-current b { background: var(--gradient); color: #fff; }
.demo-steps kbd { font-size: 13px; }
.hero-shot img { filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6)); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(21, 24, 30, 0.7);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.pill b { background: var(--gradient); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; }
.pill:hover { color: var(--text); }

/* ---------- sections ---------- */

section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* capture modes, like the app's home screen tiles */
.modes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
@media (max-width: 1140px) { .modes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mode:hover { border-color: var(--accent); transform: translateY(-2px); }
.mode .badge {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--gradient);
  display: grid;
  place-items: center;
}
.mode .badge svg { width: 26px; height: 26px; color: #fff; }
.mode h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.mode p { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.mode kbd { font-size: 12px; color: var(--muted); }

/* feature rows: text beside a screenshot */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 18px; }
.feature-text > p { color: var(--muted); font-size: 18px; }
.feature img { border-radius: 12px; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 88px; }
}
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat exclude, linear-gradient(#000 0 0);
}
.ticks li span { color: var(--muted); }

/* tool grid */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
@media (max-width: 520px) { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.tool kbd { font-size: 12px; color: var(--muted); }

/* examples gallery */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } }
.example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* The whole picture, on the examples' own light grey so the edges don't show. */
.example img { background: #eceef4; aspect-ratio: 3 / 2; object-fit: contain; width: 100%; }
.example div { padding: 20px 22px 24px; }
.example h3 { font-size: 19px; margin-bottom: 8px; }
.example p { color: var(--muted); font-size: 15px; margin: 0; }

/* cards (privacy, extras) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 22px; height: 22px; color: var(--coral); flex: none; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.free a, .section-head a, .card a, .download-alt a { color: var(--text); text-underline-offset: 0.14em; }
.download-alt { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 900px; font-size: 15px; }

/* the name */
.name { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .name { grid-template-columns: 1fr; gap: 24px; text-align: center; } }
.name-word { text-align: center; }
.name-word .he { font: 700 clamp(84px, 14vw, 140px)/1 "Noto Sans Hebrew", "Arial Hebrew", "David", sans-serif; }
.name-word .say { margin-top: 12px; color: var(--muted); font-size: 15px; letter-spacing: 0.04em; }
.name h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 18px; }
.name p { color: var(--muted); font-size: 18px; }
.name p strong { color: var(--text); font-weight: 500; }

/* free (and the fine print) */
.free { text-align: center; max-width: 760px; margin: 0 auto; }
.free h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.free > p { color: var(--muted); font-size: 19px; }
.fine-print {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
}
.fine-print b { color: var(--text); font-weight: 500; }

/* shortcuts */
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .keys { grid-template-columns: 1fr; } }
.keys div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.keys span { color: var(--muted); }
.keys-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 24px; }

/* ---------- download ---------- */

.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }
.download {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.download.is-you { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -20px rgba(124, 92, 255, 0.45); }
.download header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.download header svg { width: 34px; height: 34px; flex: none; }
.download h3 { font-size: 24px; }
.download .os-note { color: var(--faint); font-size: 14px; }
.download .btn { width: 100%; margin: 6px 0 16px; }
.download dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; font-size: 14px; }
.download dt { color: var(--faint); }
.download dd { margin: 0; color: var(--muted); }
.download details { border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; font-size: 15px; color: var(--muted); }
.download summary { cursor: pointer; color: var(--text); font-weight: 500; }
.download ol { padding-left: 20px; margin: 12px 0 0; }
.download li + li { margin-top: 6px; }
.you-tag { margin-left: auto; font-size: 12px; font-weight: 500; color: #fff; background: var(--gradient); padding: 3px 10px; border-radius: 999px; display: none; }
.download.is-you .you-tag { display: inline-block; }

/* ---------- plain pages ---------- */

.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.page .lede { color: var(--muted); font-size: 19px; max-width: 680px; margin-bottom: 48px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

.cta-band { text-align: center; padding: 96px 0; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 19px; margin-bottom: 30px; }

/* ---------- cookie consent (consent.js) ---------- */

.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(21, 24, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  font-size: 15px;
  color: var(--muted);
}
.consent p { margin: 0 0 14px; line-height: 1.5; }
.consent b { color: var(--text); font-weight: 500; }
.consent a { color: var(--text); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }
@media (max-width: 640px) { .consent { left: 16px; bottom: 16px; } }

/* The demo guide (guide-demo.html, a real exported guide) in a frame. */
.guide-demo { margin-top: 120px; }
.guide-demo .section-head { margin-bottom: 36px; }
.guide-demo .section-head a { color: var(--text); text-underline-offset: 0.14em; white-space: nowrap; }
.guide-try {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1014;
  box-shadow: 0 30px 70px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.guide-try iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; }
@media (max-width: 640px) { .guide-try iframe { aspect-ratio: 3 / 4; } .guide-demo { margin-top: 88px; } }
.guide-facts { grid-template-columns: repeat(3, auto); justify-content: center; gap: 12px 36px; margin-top: 28px; }
@media (max-width: 900px) { .guide-facts { grid-template-columns: 1fr; justify-content: start; max-width: 520px; margin-left: auto; margin-right: auto; } }
