/* =============================================================
   Save Eyes — Design System
   "Modern Tradition" — paper + ink, editorial typography
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;700;900&family=Assistant:wght@200;300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* === Paper & Ink palette === */
  --paper:        #F5F2EC;
  --paper-soft:   #EFEAE0;
  --paper-edge:   #E2DCCD;
  --ink:          #1A1816;
  --ink-soft:     #4A4642;
  --ink-mute:     #8A857F;
  --ink-faint:    #B5B0A6;

  --rule:         rgba(26, 24, 22, 0.08);
  --rule-strong:  rgba(26, 24, 22, 0.16);
  --rule-bold:    rgba(26, 24, 22, 0.32);

  /* === Accents === */
  --wine:         #7A1F2E;
  --wine-deep:    #5B1622;
  --wine-soft:    rgba(122, 31, 46, 0.07);
  --wine-edge:    rgba(122, 31, 46, 0.22);

  --olive:        #4D5D3B;
  --olive-soft:   rgba(77, 93, 59, 0.10);
  --brass:        #9C7B3E;
  --brass-soft:   rgba(156, 123, 62, 0.10);

  /* === Semantic === */
  --positive:     #4D5D3B;
  --negative:     #7A1F2E;
  --neutral:      #8A857F;

  /* === Typography === */
  --font-display: 'Frank Ruhl Libre', 'David Libre', Georgia, 'Bodoni Moda', serif;
  --font-body:    'Assistant', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  /* === Type scale === */
  --t-mini:    0.6875rem;
  --t-xs:      0.75rem;
  --t-sm:      0.8125rem;
  --t-base:    0.9375rem;
  --t-md:      1.0625rem;
  --t-lg:      1.25rem;
  --t-xl:      1.625rem;
  --t-2xl:     2.125rem;
  --t-3xl:     2.75rem;
  --t-4xl:     clamp(2.75rem, 5vw + 1rem, 4.5rem);
  --t-display: clamp(3.5rem, 8vw + 1rem, 7.5rem);

  /* === Spacing === */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;
  --s-4: 1rem;     --s-5: 1.5rem;   --s-6: 2rem;
  --s-7: 3rem;     --s-8: 4rem;     --s-9: 6rem;
  --s-10: 8rem;    --s-11: 12rem;

  /* === Layout === */
  --max-content:   72rem;
  --max-narrow:    42rem;
  --max-reading:   38rem;
  --gutter:        clamp(1.25rem, 4vw, 4rem);

  /* === Motion === */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:        140ms;
  --t-base-time:   240ms;
  --t-slow:        420ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--ink); color: var(--paper); }

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  direction: rtl;
  /* Subtle warm vignette */
  background-image:
    radial-gradient(ellipse 80% 50% at top, rgba(122, 31, 46, 0.018) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at bottom left, rgba(156, 123, 62, 0.020) 0%, transparent 70%);
  background-attachment: fixed;
}

/* === Subtle paper grain (optional, very faint) === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}

/* =============================================================
   Typography utilities
   ============================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.display-light  { font-weight: 300; }
.display-bold   { font-weight: 700; }
.display-black  { font-weight: 900; }

.serif-numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-feature-settings: "lnum" 1, "onum" 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: var(--max-reading);
}

/* =============================================================
   Links
   ============================================================= */
a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-strong);
  transition: color var(--t-fast) var(--ease-out), text-decoration-color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--wine); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; border-radius: 2px; }

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

/* =============================================================
   Containers
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--max-narrow); }
.container--reading { max-width: var(--max-reading); }

/* =============================================================
   Header / Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  vertical-align: -8px;
  margin-inline-start: 8px;
}
.nav__brand-mark::after {
  content: '';
  position: absolute;
  inset: 35%;
  background: var(--ink);
  border-radius: 50%;
}
.nav__links {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.nav__link {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav__link:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links--mobile { display: flex; gap: var(--s-3); }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-base);
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  min-height: 48px;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-bold);
}
.btn--secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--secondary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  padding: 10px 16px;
  min-height: 40px;
  font-size: var(--t-sm);
}
.btn--ghost:hover { color: var(--ink); background: var(--paper-soft); }

.btn--danger {
  background: var(--wine);
  color: var(--paper);
  border-color: var(--wine);
}
.btn--danger:hover { background: var(--wine-deep); border-color: var(--wine-deep); }

.btn--block { width: 100%; }
.btn--small { padding: 8px 14px; min-height: 36px; font-size: var(--t-sm); }
.btn--large { padding: 18px 36px; min-height: 56px; font-size: var(--t-md); }

/* Loading state */
.btn[data-loading="true"] {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn[data-loading="true"]::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  animation: spin 0.7s linear infinite;
  color: var(--paper);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   Forms
   ============================================================= */
.field {
  display: block;
  margin-bottom: var(--s-4);
}
.field__label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--t-base);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  min-height: 48px;
}
.input::placeholder { color: var(--ink-faint); }
.input:hover { border-color: var(--rule-bold); }
.input:focus {
  border-color: var(--ink);
  background: var(--paper-soft);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.input--ltr { direction: ltr; text-align: left; }
.input--mono { font-family: var(--font-mono); font-size: var(--t-sm); }

/* =============================================================
   Cards / Panels
   ============================================================= */
.panel {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  padding: var(--s-6);
  border-radius: 0;
  transition: border-color var(--t-base-time), background var(--t-base-time);
}
.panel:hover { border-color: var(--rule-strong); }

.panel--bordered { background: transparent; }
.panel--accent {
  background: var(--wine-soft);
  border-color: var(--wine-edge);
}

.panel__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 1.2;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

/* =============================================================
   Decorative rules
   ============================================================= */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--s-7) 0;
}
.rule--strong { border-top-color: var(--rule-strong); }
.rule--accent {
  border-top: 1px solid var(--wine);
  width: 60px;
  margin: var(--s-4) 0;
}

/* =============================================================
   Hero patterns
   ============================================================= */
.hero {
  padding: clamp(var(--s-8), 12vh, var(--s-11)) 0 var(--s-9);
  text-align: center;
}
.hero__eyebrow {
  margin-bottom: var(--s-5);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-display);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
}
.hero__lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto var(--s-7);
}
.hero__cta-row {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   Sections
   ============================================================= */
.section {
  padding: var(--s-9) 0;
}
.section--tight { padding: var(--s-7) 0; }
.section--bordered {
  border-top: 1px solid var(--rule);
}
.section__head {
  margin-bottom: var(--s-7);
  max-width: var(--max-reading);
}
.section__eyebrow { margin-bottom: var(--s-3); }
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.section__lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* =============================================================
   Editorial features grid
   ============================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.feature {
  padding: var(--s-7) var(--s-5) var(--s-7) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.feature:not(:last-child) { border-inline-end: 1px solid var(--rule); padding-inline-end: var(--s-5); }
.feature__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-md);
  color: var(--wine);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-4);
  display: block;
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 1.2;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
.feature__body {
  font-size: var(--t-base);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* =============================================================
   Stat numbers (editorial)
   ============================================================= */
.stat {
  text-align: start;
  padding: var(--s-5) 0;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "lnum" 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-2);
}
.stat__num--accent { color: var(--wine); }
.stat__label {
  font-size: var(--t-sm);
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* =============================================================
   Tables
   ============================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
th {
  text-align: start;
  padding: var(--s-3) var(--s-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule-strong);
}
td {
  padding: var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
tbody tr {
  transition: background var(--t-fast);
}
tbody tr:hover { background: var(--paper-soft); }

/* =============================================================
   Tags / Chips
   ============================================================= */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--t-xs);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  border-radius: 0;
  margin-inline-end: 4px;
}
.tag--wine {
  background: var(--wine-soft);
  border-color: var(--wine-edge);
  color: var(--wine-deep);
}
.tag--olive {
  background: var(--olive-soft);
  border-color: var(--olive);
  color: var(--olive);
}
.tag--brass {
  background: var(--brass-soft);
  border-color: var(--brass);
  color: var(--brass);
}

/* =============================================================
   Status pills
   ============================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status--live { color: var(--olive); }
.status--stale { color: var(--brass); }
.status--dead { color: var(--wine); }

/* =============================================================
   Footer
   ============================================================= */
.footer {
  margin-top: var(--s-10);
  border-top: 1px solid var(--rule-strong);
  padding: var(--s-7) 0 var(--s-6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-7);
  max-width: var(--max-content);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-5); }
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-md);
  margin-bottom: var(--s-3);
}
.footer__tagline {
  font-size: var(--t-sm);
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 22rem;
}
.footer__col-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}
.footer__list {
  list-style: none;
}
.footer__list li {
  margin-bottom: var(--s-2);
}
.footer__list a {
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.footer__list a:hover { color: var(--wine); }

.footer__bottom {
  max-width: var(--max-content);
  margin: var(--s-7) auto 0;
  padding-inline: var(--gutter);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* =============================================================
   Forms / cards for auth pages
   ============================================================= */
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--s-6) var(--gutter);
}
.auth-card {
  width: 100%;
  max-width: 28rem;
  padding: var(--s-8) var(--s-7);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}
.auth-card__brand {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}
.auth-card__sub {
  text-align: center;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-7);
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--s-2);
}
.auth-card__lede {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
  line-height: 1.6;
}

/* Tabs (signin/signup) */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: var(--s-6);
}
.tabs__item {
  flex: 1;
  background: none;
  border: none;
  padding: var(--s-3) 0;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
  letter-spacing: 0.04em;
}
.tabs__item:hover { color: var(--ink-soft); }
.tabs__item--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* =============================================================
   Status messages
   ============================================================= */
.notice {
  font-size: var(--t-sm);
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-3);
  border-inline-start: 2px solid var(--rule-strong);
  background: var(--paper-soft);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}
.notice--ok    { border-inline-start-color: var(--olive); color: var(--olive); background: var(--olive-soft); }
.notice--err   { border-inline-start-color: var(--wine);  color: var(--wine-deep); background: var(--wine-soft); }
.notice--info  { border-inline-start-color: var(--brass); color: var(--brass); background: var(--brass-soft); }
.notice:empty { display: none; }

/* =============================================================
   Skip link & accessibility
   ============================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-end: var(--s-4);
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-sm);
  z-index: 999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }

*:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

/* =============================================================
   Editorial article (legal pages)
   ============================================================= */
.article {
  max-width: var(--max-reading);
  margin: 0 auto;
  padding: var(--s-9) 0;
}
.article__meta {
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
.article__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-4xl);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
}
.article__updated {
  font-size: var(--t-xs);
  color: var(--ink-mute);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: var(--s-7);
}
.article h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-2xl);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.article h2::before {
  content: counter(h2-count, decimal-leading-zero) " · ";
  counter-increment: h2-count;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--wine);
  font-size: 0.7em;
  font-feature-settings: "lnum" 1;
  letter-spacing: 0.05em;
}
.article { counter-reset: h2-count; }
.article h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-lg);
  line-height: 1.3;
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
.article p {
  margin-bottom: var(--s-4);
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--ink-soft);
}
.article ul, .article ol {
  margin: var(--s-3) 0 var(--s-5);
  padding-inline-start: var(--s-5);
}
.article li {
  margin-bottom: var(--s-2);
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--ink-soft);
}
.article li::marker { color: var(--ink-mute); }
.article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  color: var(--ink);
  direction: ltr;
  display: inline-block;
}
.article strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   Wizard steps (guide pages)
   ============================================================= */
.steps {
  margin-top: var(--s-8);
}
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step-row:last-child { border-bottom: 1px solid var(--rule); }
.step-row__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--wine);
  font-feature-settings: "lnum" 1;
  letter-spacing: -0.04em;
}
.step-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 1.2;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
.step-row__body {
  font-size: var(--t-md);
  line-height: 1.7;
  color: var(--ink-soft);
}
.step-row__body p { margin-bottom: var(--s-3); }
.step-row__body ul, .step-row__body ol {
  padding-inline-start: var(--s-5);
  margin-bottom: var(--s-3);
}
@media (max-width: 560px) {
  .step-row { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-5) 0; }
  .step-row__num { font-size: var(--t-2xl); }
}

/* =============================================================
   Pricing
   ============================================================= */
.pricing {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: var(--s-9) var(--gutter);
  text-align: center;
  margin: 0 calc(var(--gutter) * -1);
}
.pricing__amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  font-feature-settings: "lnum" 1;
}
.pricing__amount::before {
  content: "₪";
  font-size: 0.5em;
  vertical-align: 50%;
  color: var(--wine);
  margin-inline-end: 0.1em;
}
.pricing__period {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-lg);
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

/* =============================================================
   Animations
   ============================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  animation: fade-up 0.7s var(--ease-out) both;
}
.reveal-delay-1 { animation-delay: 0.06s; }
.reveal-delay-2 { animation-delay: 0.14s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.36s; }
.reveal-delay-5 { animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { animation: none !important; opacity: 1; transform: none; }
}

/* =============================================================
   Utility classes
   ============================================================= */
.muted    { color: var(--ink-mute); }
.subtle   { color: var(--ink-soft); }
.center   { text-align: center; }
.start    { text-align: start; }
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2    { gap: var(--s-2); }
.gap-3    { gap: var(--s-3); }
.gap-4    { gap: var(--s-4); }
.mt-4     { margin-top: var(--s-4); }
.mt-5     { margin-top: var(--s-5); }
.mt-7     { margin-top: var(--s-7); }
.text-xs  { font-size: var(--t-xs); }
.text-sm  { font-size: var(--t-sm); }
.text-md  { font-size: var(--t-md); }

/* =============================================================
   Mobile refinement
   ============================================================= */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: var(--s-7) 0 var(--s-7); }
  .nav__inner { height: 56px; }
  .section { padding: var(--s-7) 0; }
  .pricing { padding: var(--s-7) var(--gutter); }
  .feature { padding: var(--s-5) 0; }
  .feature:not(:last-child) {
    border-inline-end: none;
    padding-inline-end: 0;
  }
  .features { grid-template-columns: 1fr; }
  .auth-card { padding: var(--s-6) var(--s-5); }
  .btn { padding: 14px 22px; }
}
