/*
 * EduCraft public site.
 *
 *  1. Fonts            5. Components (buttons, cards, tabs, forms…)
 *  2. Tokens (themes)  6. Sections (hero, features, docs, contact…)
 *  3. Base             7. Illustrations (the platform, drawn in CSS)
 *  4. Layout           8. Motion
 *
 * Dark is the default theme; [data-theme="light"] on <html> switches (theme.js). Sizes use logical
 * properties (inline/block), so the same rules work right to left (Hebrew) and left to right.
 */

/* ---------- 1. Fonts: Rubik (variable weight), only the scripts the page needs ---------- */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/site/fonts/rubik-hebrew-wght-normal-bda074a677ba3677e48b3403660e2d9c.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/site/fonts/rubik-latin-wght-normal-b65daadded7406d746e61b25ebbe0ca9.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------- */

:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0a1120;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #0f1729;
  --surface-raised: #141e33;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #eef2fb;
  --text-soft: #b5c0d4;
  --text-faint: #7f8ca5;
  --primary: #78adff;
  --primary-strong: #5b97ff;
  --on-primary: #0a1222;
  --violet: #c7afff;
  --mint: #63d6b0;
  --amber: #f4c373;
  --rose: #ff9ca7;
  --gradient: linear-gradient(120deg, #78adff 0%, #a99bff 45%, #c7afff 70%, #63d6b0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(120, 173, 255, 0.16), rgba(199, 175, 255, 0.12));
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75), 0 10px 30px -20px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 12px 40px -24px rgba(0, 0, 0, 0.7);
  --glow: rgba(120, 173, 255, 0.35);
  --aurora-1: rgba(91, 151, 255, 0.45);
  --aurora-2: rgba(169, 155, 255, 0.35);
  --aurora-3: rgba(99, 214, 176, 0.22);
  --grid-line: rgba(148, 163, 184, 0.07);
  --header-bg: rgba(7, 11, 20, 0.72);

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-height: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --slow: 700ms;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-raised: #f3f6fc;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-soft: #475569;
  --text-faint: #64748b;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --on-primary: #ffffff;
  --violet: #7c3aed;
  --mint: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --gradient: linear-gradient(120deg, #2563eb 0%, #6d4aff 55%, #0891b2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.07));
  --shadow: 0 30px 70px -35px rgba(15, 23, 42, 0.35), 0 10px 30px -22px rgba(15, 23, 42, 0.25);
  --shadow-soft: 0 12px 36px -24px rgba(15, 23, 42, 0.3);
  --glow: rgba(37, 99, 235, 0.25);
  --aurora-1: rgba(96, 165, 250, 0.35);
  --aurora-2: rgba(167, 139, 250, 0.28);
  --aurora-3: rgba(45, 212, 191, 0.2);
  --grid-line: rgba(15, 23, 42, 0.05);
  --header-bg: rgba(246, 248, 252, 0.78);
}

/* ---------- 3. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

:lang(he) h1,
:lang(he) h2,
:lang(he) h3 {
  letter-spacing: 0;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* An arrow points forward: right in English, left in Hebrew. */
[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

/* ---------- 4. Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-soft {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 18%, var(--bg-soft) 82%, transparent);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.section-head .lead {
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }

  .split-reverse .split-text {
    order: 2;
  }
}

.split-text .lead + .lead {
  margin-top: 1rem;
}

.split-text .check-list {
  margin-top: 1.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.actions.center {
  justify-content: center;
}

.actions.more {
  margin-top: 3rem;
}

/* ---------- 5. Components ---------- */

/* Type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.display {
  font-size: clamp(2.4rem, 2rem + 3.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.title {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  font-weight: 750;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
}

.center .lead {
  margin-inline: auto;
  max-width: 680px;
}

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

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

/* Buttons */

.btn {
  --btn-bg: var(--surface);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
    background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn .icon-arrow {
  transition: translate var(--fast) var(--ease);
}

.btn:hover .icon-arrow {
  translate: 3px 0;
}

[dir="rtl"] .btn:hover .icon-arrow {
  translate: -3px 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: var(--primary-strong);
  box-shadow: 0 16px 40px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.btn-sm {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.icon-btn,
.pill-btn {
  display: inline-grid;
  place-items: center;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.icon-btn {
  width: 40px;
}

.pill-btn {
  padding: 0 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.icon-btn:hover,
.pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
  text-align: start;
}

.link-btn:hover {
  color: var(--text);
}

/* Theme toggle: the sun shows in dark mode (switch to light), the moon in light mode. */
.theme-toggle .icon {
  grid-area: 1 / 1;
  transition: transform var(--slow) var(--ease), opacity var(--fast);
}

.theme-toggle .icon:last-child,
[data-theme="light"] .theme-toggle .icon:first-child {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="light"] .theme-toggle .icon:last-child {
  opacity: 1;
  transform: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color var(--fast), border-color var(--fast), backdrop-filter var(--fast);
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--border);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 54px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.nav a:not(.btn) {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  transition: color var(--fast), background-color var(--fast);
}

.nav a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

.nav a.is-active {
  color: var(--text);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-signin,
.nav-toggle {
  display: none;
}

.nav-toggle .icon:last-child,
.is-open .nav-toggle .icon:first-child {
  display: none;
}

.is-open .nav-toggle .icon:last-child {
  display: block;
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--border);
    /* Solid: a blur inside the header's own blur is not drawn, so text would show through. */
    background: var(--bg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--fast), transform var(--fast) var(--ease), visibility var(--fast);
  }

  .is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a:not(.btn) {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .nav a.is-active::after {
    display: none;
  }

  .nav a.is-active {
    background: var(--surface);
  }

  .nav-signin {
    display: inline-flex;
    margin-top: 0.5rem;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .header-signin {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.feature-card,
.tile,
.audience-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

/* A soft light follows the pointer (site.js sets --x and --y). */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), var(--glow), transparent 45%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.feature-card:hover::before {
  opacity: 0.55;
}

.feature-card > * {
  position: relative;
}

.feature-card h3,
.tile h3,
.audience-card h3 {
  margin-top: 1.1rem;
  font-size: 1.2rem;
}

.feature-card p,
.tile p {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.feature-icon,
.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--primary);
}

.feature-icon .icon,
.tile-icon .icon {
  width: 24px;
  height: 24px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.audience-tab {
  margin-top: 1.1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.audience-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

/* Check lists */

.check-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.check-list.compact li {
  font-size: 0.98rem;
}

.check {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 18%, transparent);
  color: var(--mint);
}

.check .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

/* Tabs (who it is for) */

.tabs {
  max-width: 880px;
  margin-inline: auto;
}

.tab-list {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--fast), background-color var(--fast), box-shadow var(--fast);
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 24px -12px var(--glow);
}

.tab-panel-inner {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  background-image: var(--gradient-soft);
  animation: panel-in 450ms var(--ease);
}

.tab-panel-inner h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

.tab-panel-inner .check-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem 2rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-number,
.doc-step-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
}

.step-number {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  box-shadow: 0 10px 26px -10px var(--glow);
}

.step h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

/* Questions */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--fast);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-raised);
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 300ms var(--ease);
}

.faq-mark::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-mark::after {
  transform: rotate(0deg);
}

.faq-item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-soft);
  animation: panel-in 350ms var(--ease);
}

/* Closing invitation */

.cta-card {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.9rem);
}

.cta-card p {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.cta-glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--aurora-1), transparent),
    radial-gradient(closest-side at 70% 60%, var(--aurora-2), transparent);
  filter: blur(40px);
  opacity: 0.8;
  animation: drift 16s ease-in-out infinite alternate;
}

/* Forms */

.form {
  display: grid;
  gap: 1.25rem;
}

.form-title {
  font-size: 1.4rem;
}

.form-alert {
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--rose) 10%, transparent);
  color: var(--text);
  font-weight: 500;
}

.field-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.field label small {
  color: var(--text-faint);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color var(--fast), box-shadow var(--fast);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.has-error input,
.has-error textarea {
  border-color: var(--rose);
}

.field-error {
  color: var(--rose);
  font-size: 0.9rem;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.counter {
  margin-inline-start: auto;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.topics {
  margin: 0;
  padding: 0;
  border: 0;
}

.topics legend {
  margin-bottom: 0.6rem;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.6rem;
}

.topic-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--fast), background-color var(--fast), transform var(--fast) var(--ease);
}

.topic-card .icon {
  color: var(--primary);
}

.topic-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.topic-option input:checked + .topic-card {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--bg));
  box-shadow: 0 0 0 1px var(--primary);
}

.topic-option input:focus-visible + .topic-card {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* The bot trap: off screen, not display:none (some bots skip hidden fields). */
.trap {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  color: var(--text-faint);
  font-size: 0.88rem;
  text-align: center;
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* Analytics notice */

.consent {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 560px;
  margin-inline: auto;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  animation: rise 500ms var(--ease);
}

.consent[hidden] {
  display: none;
}

.consent-title {
  font-weight: 700;
}

.consent-text {
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 2.5rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand p {
  max-width: 340px;
  margin-top: 1rem;
  color: var(--text-soft);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-col h2 {
  margin-bottom: 0.35rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col a {
  color: var(--text-soft);
  transition: color var(--fast);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.9rem;
}

.footer-bottom a {
  display: inline;
  color: var(--text-soft);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- 6. Sections ---------- */

/* Background light, used by heroes */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.aurora span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  inset: -18vmax auto auto -10vmax;
  background: radial-gradient(closest-side, var(--aurora-1), transparent);
}

.aurora span:nth-child(2) {
  inset: -14vmax -12vmax auto auto;
  background: radial-gradient(closest-side, var(--aurora-2), transparent);
  animation-duration: 22s;
  animation-delay: -6s;
}

.aurora span:nth-child(3) {
  inset: 20vmax auto auto 30%;
  width: 34vmax;
  height: 34vmax;
  background: radial-gradient(closest-side, var(--aurora-3), transparent);
  animation-duration: 26s;
  animation-delay: -12s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}

/* Home hero */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-title {
  max-width: 980px;
  margin-inline: auto;
}

.hero-title,
.page-hero .display {
  background: linear-gradient(180deg, var(--text) 40%, color-mix(in srgb, var(--text) 62%, var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--text-faint);
  font-size: 0.92rem;
}

/* Page heroes */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.page-hero .lead {
  margin-top: 1.25rem;
}

/* Guide */

.docs-section {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.docs {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .docs {
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.docs-toc {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.docs-toc-title {
  display: none;
}

.docs-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--fast), background-color var(--fast), border-color var(--fast);
}

.docs-toc a:hover,
.docs-toc a.is-active {
  color: var(--text);
  border-color: var(--border-strong);
}

.docs-toc a.is-active {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

@media (min-width: 960px) {
  .docs-toc {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    flex-direction: column;
    gap: 0.2rem;
    overflow: visible;
  }

  .docs-toc-title {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-faint);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .docs-toc a {
    border-color: transparent;
    border-radius: 12px;
    background: transparent;
  }
}

.docs-content {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.doc-topic {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.doc-head {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.doc-head h2 {
  font-size: 1.45rem;
}

.doc-head p {
  margin-top: 0.4rem;
  color: var(--text-soft);
}

.doc-steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.doc-steps li,
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.doc-step-number {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.doc-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
}

.doc-help > div {
  flex: 1 1 240px;
}

.doc-help h2 {
  font-size: 1.25rem;
}

.doc-help p {
  margin-top: 0.25rem;
  color: var(--text-soft);
}

/* About */

.about-visual {
  display: grid;
  place-items: center;
  gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  background-image: var(--gradient-soft);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: min(320px, 80%);
  animation: float 7s ease-in-out infinite;
}

.about-visual p {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.maker-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.maker-card h2 {
  font-size: 1.35rem;
}

.maker-card p {
  margin: 0.5rem 0 0.75rem;
  color: var(--text-soft);
}

/* Contact */

.contact-section {
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contact-intro {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.contact-intro .lead {
  margin-top: 1.25rem;
}

.next-steps {
  margin-top: 2.5rem;
}

.next-steps h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.next-steps ol {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.sent {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 2rem 0.5rem;
  text-align: center;
}

.sent h2 {
  font-size: 1.6rem;
}

.sent p {
  color: var(--text-soft);
}

.sent-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 18%, transparent);
  color: var(--mint);
  animation: pop 600ms var(--ease);
}

.sent-mark .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.4;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 600ms 250ms var(--ease) forwards;
}

/* Privacy */

.prose {
  display: grid;
  gap: 1.25rem;
}

.prose-block {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.prose-block h2 {
  font-size: 1.3rem;
}

.prose-block p {
  margin-top: 0.6rem;
  color: var(--text-soft);
}

.prose-block .btn {
  margin-top: 1.25rem;
}

/* Errors */

.error-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.error-code {
  font-size: clamp(5rem, 4rem + 8vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page .lead {
  margin-top: 1rem;
}

/* ---------- 7. Illustrations ---------- */

.mock-stage {
  position: relative;
  max-width: 1020px;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  perspective: 1600px;
  text-align: start;
}

.mock-stage::before {
  content: "";
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  border-radius: 40px;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.35;
}

.mock-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.mock-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-bar .dot:nth-child(1) {
  background: #ff6b6b;
}

.mock-bar .dot:nth-child(2) {
  background: #ffcc4d;
}

.mock-bar .dot:nth-child(3) {
  background: #3ddc97;
}

.mock-url {
  margin-inline: auto;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-faint);
  font-size: 0.8rem;
}

.mock-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 360px;
}

.mock-side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-inline-end: 1px solid var(--border);
}

.mock-side img {
  width: 34px;
  margin-bottom: 0.5rem;
}

.mock-side i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-raised);
}

.mock-side i.is-active {
  background: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 0 0 1px var(--primary);
}

.mock-main {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.mock-greeting strong {
  display: block;
  font-size: 1.15rem;
}

.mock-greeting span,
.mock-label {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.mock-label {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mock-stats.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-stat {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.mock-stat span {
  display: block;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 0.78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-stat b {
  display: block;
  margin: 0.25rem 0 0.6rem;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.meter {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-raised);
  overflow: hidden;
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 1.4s 300ms var(--ease);
}

.meter-accent i {
  background: var(--violet);
}

.meter-success i {
  background: var(--mint);
}

.is-visible .meter i {
  width: var(--to);
}

.mock-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mock-panel,
.mock-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.mock-week {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 120px;
}

/* A flex column: the bar's percentage height needs a definite parent height. */
.mock-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 1;
  height: 100%;
}

.mock-day .bar {
  width: 100%;
  max-width: 30px;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 35%, transparent));
  transition: height 1.2s var(--ease);
}

.mock-day:nth-child(2) .bar {
  transition-delay: 80ms;
}

.mock-day:nth-child(3) .bar {
  transition-delay: 160ms;
}

.mock-day:nth-child(4) .bar {
  transition-delay: 240ms;
  background: linear-gradient(180deg, var(--violet), color-mix(in srgb, var(--violet) 35%, transparent));
}

.mock-day:nth-child(5) .bar {
  transition-delay: 320ms;
}

.is-visible .mock-day .bar {
  height: var(--h);
}

.mock-day small {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.mock-tasks,
.mock-checks {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.mock-tasks li,
.mock-checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-soft);
}

.mock-checks li em {
  margin-inline-start: auto;
  color: var(--mint);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.mock-checks li em.muted {
  color: var(--amber);
}

.box {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  transition: background-color 300ms, border-color 300ms;
}

.box::after {
  content: "";
  position: absolute;
  inset: 2px 5px 5px;
  border: solid var(--on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 300ms var(--ease);
}

.is-visible .is-done .box {
  border-color: var(--mint);
  background: var(--mint);
  transition-delay: 900ms;
}

.is-visible .is-done .box::after {
  transform: rotate(45deg) scale(1);
  transition-delay: 1s;
}

.is-visible .is-done.d2 .box,
.is-visible .is-done.d2 .box::after {
  transition-delay: 1.5s;
}

.is-visible .mock-tasks .is-done span:last-child {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--text-faint) 60%, transparent);
}

.mock-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.mock-chip .icon {
  color: var(--mint);
}

/* On the window's edges, clear of its content; logical sides, so Hebrew mirrors them. */
.chip-a {
  inset-block-end: -20px;
  inset-inline-start: 7%;
}

.chip-b {
  inset-block-start: -20px;
  inset-inline-end: 7%;
  animation-delay: -3s;
}

.chip-b .icon {
  color: var(--violet);
}

@media (max-width: 760px) {
  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }

  .mock-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-stats .mock-stat:nth-child(3) {
    display: none;
  }

  .mock-columns {
    grid-template-columns: 1fr;
  }

  .mock-chip {
    position: static;
    margin: 0.75rem auto 0;
    width: fit-content;
    display: flex;
  }
}

/* The chat */

.mock-chat {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.bubble {
  max-width: 88%;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  line-height: 1.5;
}

.bubble-user {
  justify-self: end;
  border-end-end-radius: 6px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
}

.bubble-typing,
.bubble-ai {
  justify-self: start;
  border: 1px solid var(--border);
  border-end-start-radius: 6px;
  background: var(--surface-raised);
}

.bubble-typing {
  display: inline-flex;
  gap: 5px;
  padding: 1rem 1.1rem;
}

.bubble-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typing 1.2s ease-in-out infinite;
}

.bubble-typing span:nth-child(2) {
  animation-delay: 150ms;
}

.bubble-typing span:nth-child(3) {
  animation-delay: 300ms;
}

.bubble-ai {
  display: flex;
  gap: 0.75rem;
  color: var(--text-soft);
}

.bubble-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
}

.bubble-avatar .icon {
  width: 16px;
  height: 16px;
}

/* Question, typing dots, then the answer, once the chat is on screen. */
.js .mock-chat .bubble {
  opacity: 0;
  transform: translateY(10px);
}

.js .mock-chat.is-visible .bubble-user {
  animation: bubble-in 500ms 200ms var(--ease) forwards;
}

.js .mock-chat.is-visible .bubble-typing {
  animation: bubble-in 400ms 800ms var(--ease) forwards, bubble-out 300ms 2.2s forwards;
}

.js .mock-chat.is-visible .bubble-ai {
  animation: bubble-in 600ms 2.4s var(--ease) forwards;
}

/* Feature pictures */

.mock-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-color: var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.mock-report .mock-checks {
  gap: 0.9rem;
  font-size: 0.95rem;
}

.mock-button {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.mock-timeline {
  display: grid;
  gap: 0.85rem;
}

.mock-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 0.75rem;
}

.mock-row small {
  color: var(--text-faint);
}

.seg {
  height: 26px;
  width: 0;
  border-radius: 8px;
  transition: width 1.2s var(--ease);
}

.seg-1 {
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 40%, transparent));
}

.seg-2 {
  background: linear-gradient(90deg, var(--violet), color-mix(in srgb, var(--violet) 40%, transparent));
  transition-delay: 150ms;
}

.seg-3 {
  background: linear-gradient(90deg, var(--mint), color-mix(in srgb, var(--mint) 40%, transparent));
  transition-delay: 300ms;
}

.seg-4 {
  background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--amber) 40%, transparent));
  transition-delay: 450ms;
}

[dir="rtl"] .seg {
  transform: scaleX(-1);
}

.is-visible .seg-1 {
  width: 92%;
}

.is-visible .seg-2 {
  width: 70%;
}

.is-visible .seg-3 {
  width: 84%;
}

.is-visible .seg-4 {
  width: 56%;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 180px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.mock-chart .col {
  flex: 1;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--violet) 30%, transparent));
  transition: height 1.2s var(--ease);
}

.mock-chart .col:nth-child(even) {
  transition-delay: 120ms;
}

.is-visible .mock-chart .col {
  height: var(--h);
}

/* ---------- 8. Motion ---------- */

/* Elements appear as they scroll into view (only with JavaScript: without it, all is shown). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.js [data-reveal="zoom"] {
  transform: translateY(24px) scale(0.97);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .d1[data-reveal] {
  transition-delay: 90ms;
}

.js .d2[data-reveal] {
  transition-delay: 180ms;
}

.js .d3[data-reveal] {
  transition-delay: 270ms;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble-out {
  to {
    opacity: 0;
    height: 0;
    padding-block: 0;
    margin-block: -0.85rem 0;
    border-width: 0;
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .aurora span,
  .cta-glow,
  .mock-chip,
  .about-visual img {
    animation: none !important;
  }
}
