/* ============================================================
   Khatt Al-Adad — Design Tokens
   Palette source: UI-UX Pro Max (Transit blue + line colors)
   ============================================================ */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #DBEAFE;
  --secondary: #0891B2;
  --secondary-soft: #CFFAFE;
  --accent: #EA580C;
  --accent-soft: #FFEDD5;
  --destructive: #DC2626;

  --bg: #F8FAFC;
  --bg-alt: #F1F5FD;
  --surface: #FFFFFF;
  --surface-2: #F1F5FD;
  --fg: #0F172A;
  --fg-muted: #55637A;
  --border: #E4ECFC;
  --border-strong: #C7D7F5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --font-head: "Almarai", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Almarai", system-ui, sans-serif;

  --container: 1200px;
  --gap: clamp(20px, 3vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --primary: #60A5FA;
  --primary-dark: #3B82F6;
  --primary-soft: #1E293B;
  --secondary: #22D3EE;
  --secondary-soft: #164E63;
  --accent: #FB923C;
  --accent-soft: #431407;

  --bg: #0B1120;
  --bg-alt: #0E1626;
  --surface: #111A2E;
  --surface-2: #16223A;
  --fg: #E8EEF9;
  --fg-muted: #9FB0CB;
  --border: #22304A;
  --border-strong: #35476A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  transition: background-color .3s var(--ease), color .3s var(--ease);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; }
p { margin: 0 0 1em; color: var(--fg-muted); }
a { color: var(--primary); text-decoration: none; }
output { font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 700; }

/* ---------------- Layout & utilities ---------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.container.narrow { max-width: 860px; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.06rem; margin: 0; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.eyebrow, .pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  color: var(--primary); background: var(--primary-soft);
  border-radius: var(--radius-pill); padding: 7px 15px; margin-bottom: 18px;
}
.eyebrow svg, .pill svg { width: 16px; height: 16px; }
.eyebrow { display: inline-flex; margin-inline: auto; }
.grad {
  background: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 62ch; }
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  padding: 11px 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 14px 30px rgba(37, 99, 235, .34); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(234, 88, 12, .3); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--border-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }
.badge {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  background: var(--primary-soft); color: var(--primary);
  padding: 4px 11px; border-radius: var(--radius-pill);
}

/* ---------------- Navbar ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--fg); }
.brand-mark { display: grid; place-items: center; line-height: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--fg-muted); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a {
  position: relative; color: var(--fg-muted); font-weight: 600; font-size: .95rem;
  padding-block: 6px; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: right;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px clamp(16px, 4vw, 28px) 20px; background: var(--surface);
  border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 11px 4px; color: var(--fg); font-weight: 600; border-bottom: 1px solid var(--border); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(closest-side at 18% 30%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 72%),
    radial-gradient(closest-side at 78% 12%, color-mix(in srgb, var(--secondary) 30%, transparent), transparent 70%),
    radial-gradient(closest-side at 55% 72%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%);
  filter: blur(24px); opacity: .55;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 20ch; margin-bottom: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 26px 0 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 52px); list-style: none; padding: 0; margin: 0 0 44px; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.hero-stats span { font-size: .84rem; color: var(--fg-muted); }
.hero-preview {
  width: 100%; max-width: 940px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
  padding: 14px; box-shadow: var(--shadow-lg);
}
.hero-preview svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* ---------------- Presets ---------------- */
.presets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 30px;
}
.presets-label { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; color: var(--fg); }
.presets-label svg { width: 17px; height: 17px; color: var(--primary); }
.chip {
  font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-muted);
  cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- Tool layout ---------------- */
.tool-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.45fr); gap: var(--gap); align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow-sm);
}
.tool-preview { position: sticky; top: 92px; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); padding: 6px; border-radius: var(--radius); margin-bottom: 22px; }
.tab {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-head); font-size: .88rem; font-weight: 700;
  padding: 9px 12px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; color: var(--fg-muted); transition: all .2s var(--ease);
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--primary); }
.tab.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; animation: fadeUp .35s var(--ease) both; }
.tab-panel.is-active { display: block; }

/* ---------------- Fields ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--fg);
}
.field input[type="number"], .field input[type="text"], .field select {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 13px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .3s var(--ease);
}
.field select { cursor: pointer; appearance: none; background-image: none; padding-inline-end: 30px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.field input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--border-strong); cursor: pointer; }
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .15s var(--ease);
}
.field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.field input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); cursor: pointer; }
.field-color input[type="color"] {
  width: 100%; height: 42px; padding: 3px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg);
}

/* ---------------- Switch ---------------- */
.switch {
  display: flex; align-items: center; gap: 12px; padding: 11px 2px;
  cursor: pointer; border-bottom: 1px dashed var(--border);
}
.switch:last-of-type { border-bottom: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative; flex: 0 0 auto; width: 46px; height: 26px; border-radius: 999px;
  background: var(--border-strong); transition: background-color .25s var(--ease);
}
.switch-thumb {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .3);
  transition: transform .25s var(--ease);
}
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(-20px); }
[dir="ltr"] .switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.switch-label { font-size: .9rem; font-weight: 600; color: var(--fg); }

/* ---------------- Palettes & hints ---------------- */
.palette-row { display: flex; gap: 10px; margin-bottom: 20px; }
.palette {
  width: 50px; height: 36px; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid var(--border); padding: 0; overflow: hidden; position: relative;
  background: linear-gradient(105deg, var(--sw1) 0 34%, var(--sw2) 34% 67%, var(--sw3) 67% 100%);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.palette:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow); }
.palette.is-active { border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.hint {
  display: flex; align-items: flex-start; gap: 9px; font-size: .86rem;
  background: var(--secondary-soft); color: var(--fg);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px;
}
.hint svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--secondary); }
.hint.small { font-size: .8rem; background: transparent; padding: 10px 0 0; color: var(--fg-muted); margin: 0; }

/* ---------------- Mark list ---------------- */
.mark-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.mark-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  font-size: .86rem; animation: fadeUp .3s var(--ease) both;
}
.mark-dot { width: 13px; height: 13px; border-radius: 4px; flex: 0 0 auto; }
.mark-text { flex: 1; color: var(--fg); font-weight: 600; }
.mark-item button {
  border: none; background: transparent; cursor: pointer; color: var(--fg-muted);
  padding: 4px; border-radius: 6px; transition: all .2s var(--ease);
}
.mark-item button:hover { background: color-mix(in srgb, var(--destructive) 14%, transparent); color: var(--destructive); }
.mark-item button svg { width: 16px; height: 16px; }
.empty-note { font-size: .84rem; color: var(--fg-muted); text-align: center; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }

/* ---------------- Preview ---------------- */
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.preview-head h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.05rem; }
.preview-head h3 svg { width: 19px; height: 19px; color: var(--primary); }
.preview-stage {
  position: relative; min-height: 240px; display: grid; place-items: center;
  background:
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25% 75%, var(--surface-2) 75%) 0 0/22px 22px,
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25% 75%, var(--surface-2) 75%) 11px 11px/22px 22px,
    var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow: hidden;
}
.preview-stage svg { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.preview-stage svg * { transition: fill .2s var(--ease), stroke .2s var(--ease); }
.skeleton {
  width: 100%; height: 180px; border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--surface-2) 20%, var(--border) 40%, var(--surface-2) 60%);
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.toolbar .btn { flex: 1 1 auto; }

/* ---------------- Cards / uses / steps ---------------- */
.card, .use-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover, .use-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card h3, .use-card h3 { margin-bottom: .35em; }
.card p, .use-card p { margin: 0; font-size: .95rem; }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: var(--radius); background: var(--primary-soft); color: var(--primary);
}
.card-icon svg { width: 24px; height: 24px; }
.use-card > svg {
  width: 26px; height: 26px; color: var(--accent); box-sizing: content-box;
  margin-bottom: 14px; padding: 12px; border-radius: var(--radius); background: var(--accent-soft);
}
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.steps li {
  display: flex; gap: 20px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--radius); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; font-size: .94rem; }
.cta-inline { text-align: center; margin-top: 36px; }

/* ---------------- FAQ ---------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 15px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; font-size: .94rem; animation: fadeUp .3s var(--ease) both; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(115deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; padding-block: clamp(44px, 6vw, 72px);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-inner h2 { color: #fff; margin-bottom: .25em; }
.cta-inner p { color: rgba(255, 255, 255, .88); margin: 0; }
.cta-band .btn-accent { background: #fff; color: var(--primary); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }

/* ---------------- Footer ---------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: clamp(44px, 6vw, 68px) 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--gap); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; margin: 0; max-width: 40ch; }
.footer-col h4 { font-size: .95rem; margin-bottom: .8em; }
.footer-col a { display: block; color: var(--fg-muted); font-size: .9rem; padding: 4px 0; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-col a:hover { color: var(--primary); transform: translateX(-3px); }
.footer-note { font-size: .88rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-mail svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--fg-muted);
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; inset-block-end: 26px; inset-inline-start: 50%; transform: translate(50%, 140%);
  z-index: 300; display: flex; align-items: center; gap: 10px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: .9rem;
  padding: 13px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.is-visible { transform: translate(50%, 0); opacity: 1; }
.toast.is-error { background: var(--destructive); color: #fff; }

/* ---------------- Animations ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeUp .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-preview { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-menu:not([hidden]) { display: flex; }
  .nav-actions .btn-primary { display: none; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .hero-stats { justify-content: center; gap: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps li { flex-direction: column; gap: 12px; }
  .steps li:hover { transform: none; }
  .toolbar .btn { flex: 1 1 100%; }
  .tabs .tab { flex: 1 1 46%; }
  .palette-row { flex-wrap: wrap; }
}
@media print {
  .nav, .hero-bg, .toolbar, .presets, .cta-band, .footer, .toast { display: none !important; }
  .preview-stage { border: none; }
}
