/* ============================================================
   paragraf.tools — Main Stylesheet
   Palette: Purple / Orange / Neutral
   Typography: Literata (serif, headings) + Inter (sans, UI)
   ============================================================ */

/* Literata — self-hosted, GDPR compliant */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/literata-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/literata-latin-400.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;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/literata-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/literata-latin-600.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;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/literata-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/literata-latin-700.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;
}

/* Inter — self-hosted, GDPR compliant */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-300.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-latin-300.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-regular.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-regular.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600.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;
}

/* ── Design tokens ── */
:root {
  /* Purple — Primary (70%) */
  --purple-900: #2D1B4E;
  --purple-800: #3D2566;
  --purple-700: #4E2F7F;
  --purple-600: #5F3A97;
  --purple-500: #7047B0;
  --purple-400: #8B6BC4;
  --purple-300: #A78FD8;
  --purple-200: #C4B3EB;
  --purple-100: #E0D7F5;
  --purple-50:  #F3EFFA;

  /* Orange — Accent (10%) */
  --orange-900: #7C2D12;
  --orange-800: #9A3412;
  --orange-700: #C2410C;
  --orange-600: #EA580C;
  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-300: #FDBA74;
  --orange-200: #FED7AA;
  --orange-100: #FFEDD5;
  --orange-50:  #FFF7ED;

  /* Neutral — UI (20%) */
  --neutral-900: #1A1625;
  --neutral-800: #2E2A36;
  --neutral-700: #45404D;
  --neutral-600: #5E5868;
  --neutral-500: #7A7484;
  --neutral-400: #9892A0;
  --neutral-300: #B5B0BC;
  --neutral-200: #D1CED6;
  --neutral-100: #ECEAF0;
  --neutral-50:  #F8F7FA;

  /* Semantic */
  --surface:        #FFFFFF;
  --surface-alt:    var(--neutral-50);
  --text-light:     #FFFFFF;
  --text-light-dim: rgba(243, 239, 250, 0.65);
  --text-dark:      var(--neutral-900);
  --text-dark-dim:  var(--neutral-600);

  /* Compat aliases for tools.css */
  --ink:        var(--purple-900);
  --ink-soft:   var(--purple-800);
  --ink-mid:    var(--purple-700);
  --ink-border: rgba(255, 255, 255, 0.12);
  --ivory:      var(--neutral-50);
  --ivory-soft: var(--neutral-100);
  --ivory-mid:  var(--neutral-200);
  --gold:       var(--orange-500);
  --gold-light: var(--orange-400);
  --gold-dim:   rgba(249, 115, 22, 0.1);
  --gold-rgb:   249, 115, 22;

  /* Semantic state colors */
  --success:    #16a34a;
  --danger:     #E65100;

  --font-sans:  'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-serif: 'Literata', Georgia, 'Times New Roman', serif;
  --section-pad: clamp(60px, 8vw, 120px);
  --content-max: 1080px;
  --content-narrow: 720px;
  --success: #4ade80;
  --error: #ef4444;
  --error-light: #f87171;
  --duration-fast: 0.15s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  background: var(--neutral-50);
  overflow-x: hidden;
}

body.nav-mobile-open {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--purple-500);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(112, 71, 176, 0.18);
}
:focus:not(:focus-visible) { outline: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container--narrow { max-width: var(--content-narrow); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.anim { opacity: 0; animation: fadeUp .5s ease-out forwards; }
.anim-d1 { animation-delay: .1s; } .anim-d2 { animation-delay: .2s; }
.anim-d3 { animation-delay: .3s; } .anim-d4 { animation-delay: .35s; }
.anim-d5 { animation-delay: .4s; } .anim-d6 { animation-delay: .45s; }

/* ── Typography ── */
.heading-xl {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.heading-sm {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.body-lg {
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  line-height: 1.7;
}
.section__label {
  margin-bottom: 12px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--purple-900);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { top: 16px; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--purple-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.nav--scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  height: 56px;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-mark {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple-200);
  line-height: 1;
}
.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #F3EFFA;
  letter-spacing: -0.02em;
}
.nav__logo-dot { color: var(--orange-400); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 6px;
  margin-left: auto;
}
.nav__link {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(243, 239, 250, 0.6);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav__link:hover {
  color: #F3EFFA;
  background: rgba(255, 255, 255, 0.06);
}
.nav__link--cta {
  background: var(--orange-500);
  color: #fff;
  font-weight: 600;
}
.nav__link--cta:hover {
  background: var(--orange-600);
  color: #fff;
}
.nav__link--pro {
  color: var(--orange-300);
  border: 1px solid rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.08);
}
.nav__link--pro:hover {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.16);
}

/* ── Nav auth badge (logged-in state, injected by main.js) ── */
.nav__user-badge { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: rgba(243,239,250,.7); }
.nav__user-badge__avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--purple-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 600; }
.nav__user-badge__pro { padding: 1px 5px; border-radius: 3px; background: var(--orange-500); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .06em; }

.nav__lang {
  display: flex;
  gap: 2px;
  margin-left: 16px;
}
.nav__lang-btn {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  transition: color var(--duration-fast), background var(--duration-fast);
  letter-spacing: 0.04em;
}
.nav__lang-btn:hover { color: var(--text-light); }
.nav__lang-btn--active {
  color: var(--orange-400);
  background: rgba(249, 115, 22, 0.1);
}

/* ── Mobile nav ── */
.nav-toggle {
  display: none;
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform var(--duration-base);
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--purple-900);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: max(96px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom));
  overflow-y: auto;
  text-align: center;
}
.nav-mobile--open { display: flex; }
.nav-mobile__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile a {
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: 300;
}
.nav-mobile__langs {
  display: flex;
  gap: 4px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .nav__links, .nav__lang { display: none; }
  .nav-toggle { display: block; }
}

/* ── Hero ── */
.hero {
  background: var(--purple-900);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(112, 71, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero--compact {
  padding: clamp(32px, 5vw, 56px) 0 clamp(36px, 6vw, 64px);
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--orange-400);
  margin-bottom: 16px;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-400);
  animation: pulse 2s infinite;
}
.hero__title {
  color: #F3EFFA;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero__title span { color: var(--orange-400); }
.hero__subtitle {
  color: var(--text-light-dim);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero__search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.hero__search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #F3EFFA;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border var(--duration-fast);
}
.hero__search input::placeholder { color: rgba(243, 239, 250, 0.45); }
.hero__search input:focus {
  outline: none;
  border-color: var(--purple-400);
  background: rgba(255, 255, 255, 0.08);
}
.hero__search button {
  padding: 12px 20px;
  background: var(--orange-500);
  border: 1px solid var(--orange-500);
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast);
  white-space: nowrap;
}
.hero__search button:hover { background: var(--orange-600); }
.hero__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__section-mark {
  font-family: var(--font-serif);
  font-size: clamp(10rem, 20vw, 16rem);
  font-weight: 700;
  color: rgba(112, 71, 176, 0.04);
  line-height: 1;
  user-select: none;
}

/* ── Stats bar ── */
.stats {
  background: var(--purple-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stats__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 40px);
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange-400);
}
.stat__num--mono {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 0.78rem;
  color: rgba(243, 239, 250, 0.55);
}

/* ── Sections ── */
.section--light {
  background: var(--surface);
  padding: var(--section-pad) 0;
}
.section--alt {
  background: var(--surface-alt);
  padding: var(--section-pad) 0;
}

/* ── Category sections (homepage) ── */
.cat {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.cat__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-900);
}
.cat__count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--neutral-400);
  padding: 3px 10px;
  background: var(--neutral-100);
  border-radius: 100px;
}
.cat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Tools grid (legacy/simple) ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Tool card ── */
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}
.tool-card:hover {
  border-color: var(--purple-300);
  box-shadow: 0 8px 32px rgba(45, 27, 78, 0.08);
  transform: translateY(-2px);
}
.tool-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tool-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.tool-card__icon--tarif   { background: var(--purple-100); color: var(--purple-700); }
.tool-card__icon--calc    { background: var(--orange-50);  color: var(--orange-700); }
.tool-card__icon--gen     { background: #DBEAFE;           color: #1D4ED8; }
.tool-card__icon--check   { background: #D1FAE5;           color: #065F46; }
.tool-card__icon--soon    { background: var(--neutral-100); color: var(--neutral-400); }
.tool-card__icon--default { background: var(--purple-100); color: var(--purple-700); }
.tool-card__svg {
  width: 28px;
  height: 28px;
}
.tool-card__badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tool-card__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--neutral-900);
}
.tool-card__desc {
  font-size: 0.82rem;
  color: var(--neutral-600);
  line-height: 1.5;
}
.tool-card__law {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--neutral-400);
  margin-top: 8px;
}
.tool-card--soon {
  opacity: 0.6;
  cursor: default;
}
.tool-card--soon:hover {
  transform: none;
  box-shadow: none;
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge--free {
  background: var(--purple-50);
  color: var(--purple-700);
}
.badge--pro {
  background: var(--orange-100);
  color: var(--orange-800);
}
.badge--new {
  background: #D1FAE5;
  color: #065F46;
}
.badge--soon {
  background: var(--neutral-100);
  color: var(--neutral-500);
}

/* ── Tools cross-links ── */
.tools-cross {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-200);
}
.tools-cross__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.tools-cross__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tools-cross__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
  font-size: 0.85rem;
  color: var(--neutral-700);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.tools-cross__card:hover {
  border-color: var(--purple-300);
  background: var(--purple-50);
}
.tools-cross__icon {
  color: var(--purple-500);
  flex-shrink: 0;
}

/* ── Trust strip ── */
.trust {
  background: var(--neutral-50);
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust__item-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.trust__item-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--purple-900);
  margin-bottom: 4px;
}
.trust__item-desc {
  font-size: 0.78rem;
  color: var(--neutral-600);
}

.founder {
  padding: clamp(44px, 6vw, 80px) 0;
  background:
    radial-gradient(circle at top left, rgba(112, 71, 176, 0.08), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, #FBFAFD 100%);
}
.founder__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}
.founder__copy,
.founder__panel {
  border-radius: 24px;
  border: 1px solid rgba(78, 47, 127, 0.1);
  box-shadow: 0 20px 44px rgba(45, 27, 78, 0.08);
}
.founder__copy {
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(26px, 4vw, 38px);
}
.founder__title {
  margin-bottom: 14px;
  color: var(--purple-900);
}
.founder__lead {
  margin-bottom: 16px;
  color: var(--purple-800);
  max-width: 58ch;
}
.founder__text {
  color: var(--neutral-700);
  font-size: 0.96rem;
  line-height: 1.72;
}
.founder__text + .founder__text {
  margin-top: 14px;
}
.founder__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.founder__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(78, 47, 127, 0.14);
  background: rgba(112, 71, 176, 0.04);
  color: var(--purple-800);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.founder__link:hover {
  background: rgba(112, 71, 176, 0.08);
  border-color: rgba(78, 47, 127, 0.22);
  transform: translateY(-1px);
}
.founder__panel {
  background: linear-gradient(180deg, #2D1B4E 0%, #3D2566 100%);
  color: #F3EFFA;
  padding: 24px;
}
.founder__avatar {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(253, 186, 116, 0.42));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}
.founder__panel-label {
  color: var(--orange-300);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.founder__panel-role {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
}
.founder__facts {
  list-style: none;
  display: grid;
  gap: 12px;
}
.founder__facts li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.founder__facts strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}
.founder__facts span {
  color: rgba(243, 239, 250, 0.74);
  font-size: 0.84rem;
  line-height: 1.5;
}
.founder__meta {
  margin-top: 14px;
  color: rgba(243, 239, 250, 0.58);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* ── CTA section ── */
.cta-section {
  background: var(--purple-900);
  padding: var(--section-pad) 0;
  text-align: center;
  color: var(--text-light);
}
.cta-section .heading-sm { color: var(--orange-400); margin-bottom: 16px; }
.cta-section .heading-lg { color: #F3EFFA; margin-bottom: 16px; }
.cta-section .body-lg { color: var(--text-light-dim); margin-bottom: 32px; }

/* ── Buttons ── */
.btn--primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange-500);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.btn--primary:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
}

/* ── Hero teaser ── */
.hero__teaser { margin-top: 24px; text-align: center; }
.hero__teaser .btn--primary { display: inline-flex; align-items: center; gap: 8px; }
.hero__teaser-desc { margin: 10px auto 0; max-width: 600px; font-size: .86rem; color: var(--text-light-dim); line-height: 1.5; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.hero__chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: rgba(243,239,250,.9); font-size: .84rem; font-weight: 500; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.hero__chip:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }

/* —— PRO launch teaser —— */
.pro-launch {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 32%),
    linear-gradient(180deg, #251542 0%, #2D1B4E 100%);
  padding: clamp(42px, 6vw, 68px) 0;
}
.pro-launch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 28px;
  align-items: stretch;
}
.pro-launch__copy,
.pro-launch__card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pro-launch__copy {
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pro-launch__label {
  margin-bottom: 12px;
}
.pro-launch__title {
  color: #F3EFFA;
  margin-bottom: 14px;
}
.pro-launch__desc {
  color: rgba(243, 239, 250, 0.72);
  margin-bottom: 22px;
  max-width: 620px;
}
.pro-launch__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.pro-launch__pills li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(243, 239, 250, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
}
.pro-launch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.pro-launch__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F3EFFA;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.pro-launch__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}
.pro-launch__note {
  color: rgba(243, 239, 250, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 58ch;
}
.pro-launch__card {
  padding: 24px;
  color: #F3EFFA;
  position: relative;
  overflow: hidden;
}
.pro-launch__card::after {
  content: '';
  position: absolute;
  inset: auto -18% -26% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 72%);
  pointer-events: none;
}
.pro-launch__eyebrow {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange-300);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pro-launch__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.pro-launch__price {
  display: grid;
  gap: 6px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.pro-launch__price strong {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}
.pro-launch__price span {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(243, 239, 250, 0.64);
}
.pro-launch__price--alt {
  border-color: rgba(249, 115, 22, 0.26);
  background: rgba(249, 115, 22, 0.08);
}
.pro-launch__price--alt strong {
  color: var(--orange-300);
}
.pro-launch__save {
  color: rgba(243, 239, 250, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.pro-launch__list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.pro-launch__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(243, 239, 250, 0.9);
  font-size: 0.88rem;
  line-height: 1.45;
}
.pro-launch__list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange-400), #FDE68A);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

/* ── Partner bar ── */
.partner-bar {
  background: var(--purple-800);
  color: rgba(243, 239, 250, 0.7);
  padding: 8px 0;
  text-align: center;
  font-size: 0.8rem;
}
.partner-bar__text { margin-right: 8px; }
.partner-bar__link {
  font-weight: 600;
  text-decoration: underline;
  color: var(--orange-400);
}

/* ── Footer ── */
.footer {
  background: var(--purple-900);
  color: rgba(243, 239, 250, 0.55);
  padding: 48px 0 24px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-200);
}
.footer__logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #F3EFFA;
}
.footer__logo-dot { color: var(--orange-400); }
.footer__desc {
  font-size: 0.85rem;
  max-width: 360px;
  line-height: 1.6;
}
.footer__partner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.footer__powered {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(243, 239, 250, 0.3);
}
.footer__iustoria {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F3EFFA;
  transition: color var(--duration-fast);
}
.footer__iustoria:hover { color: var(--orange-400); }
.ft__trust { font-size: .78rem; color: rgba(243, 239, 250, .45); margin-bottom: 8px; }
.ft__trust a { color: rgba(243, 239, 250, .6); text-decoration: none; font-weight: 600; }
.ft__trust a:hover { color: var(--orange-400); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(243, 239, 250, 0.3);
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
}
.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--neutral-600);
  margin-bottom: 12px;
}
.blog-card__author {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-bottom: 8px;
}
.blog-card__tags { margin-bottom: 12px; }

.segment__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-500);
}
.segment__link svg { width: 16px; height: 16px; }

.post { padding: var(--section-pad) 0; }
.post__header { margin-bottom: 32px; }
.post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--neutral-500);
  margin-top: 12px;
}
.post-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--purple-50);
  color: var(--purple-700);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.post-tag--sm { font-size: 0.72rem; }
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.post-author__img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.post-langs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.post-lang {
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  color: var(--neutral-500);
}
.post-lang--active {
  background: var(--purple-50);
  color: var(--purple-700);
  font-weight: 500;
}

/* ── Prose (blog content) ── */
.prose h2 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; }
.prose h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--orange-500); text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--purple-500);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--purple-50);
  border-radius: 0 8px 8px 0;
}
.prose .tool-link {
  display: block;
  padding: 12px 16px;
  margin: 8px 0;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color var(--duration-fast);
}
.prose .tool-link:hover { border-color: var(--purple-300); }

/* ── Blog filter ── */
.blog-filter { margin-bottom: 32px; }
.blog-filter__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.blog-filter__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-500);
  margin-right: 8px;
}
.blog-filter__btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.blog-filter__btn:hover { border-color: var(--purple-300); }
.blog-filter__btn--active {
  background: var(--purple-50);
  border-color: var(--purple-500);
  color: var(--purple-700);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .tools-grid, .cat__grid { grid-template-columns: 1fr; }
  .tools-cross__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__partner { text-align: left; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .hero__subtitle { max-width: 100%; }
  .hero__section-mark { font-size: 8rem; }
  .stats__inner { justify-content: center; gap: 14px 20px; padding: 12px 16px; }
  .stat__num { font-size: 1rem; }
  .stat__label { font-size: .72rem; }
  .hero__teaser-desc { font-size: .8rem; }
  .founder__card { grid-template-columns: 1fr; }
  .founder__actions { flex-direction: column; align-items: stretch; }
  .founder__actions .btn--primary,
  .founder__link { justify-content: center; width: 100%; }
  .pro-launch__inner { grid-template-columns: 1fr; }
  .pro-launch__prices { grid-template-columns: 1fr; }
  .pro-launch__pills { gap: 8px; }
  .pro-launch__actions { flex-direction: column; align-items: stretch; }
  .pro-launch__actions .btn--primary,
  .pro-launch__link { justify-content: center; width: 100%; }
}
@media (max-width: 900px) {
  .founder__card,
  .pro-launch__inner {
    grid-template-columns: 1fr;
  }

  .pro-launch__prices {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .hero__search {
    flex-direction: column;
    gap: 10px;
  }

  .hero__search input,
  .hero__search button {
    width: 100%;
    border-radius: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
}
@media (max-width: 420px) {
  .tools-cross__grid,
  .trust__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .nav__links a span { display: none; }
  .nav__links { gap: 2px; }
}
