/* ==========================================================================
   Finpalix design system
   Shared by finpalix.com, /finpalixbooks/ and /finpalixsms/.
   Brand colours are sampled from the Finpalix wordmark: navy #0F1C30,
   green #0AAE7C. Each product site varies only its supporting accent.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --ink: #0f1c30;
  --ink-700: #1c2c46;
  --ink-500: #3d4f6b;
  --ink-300: #64748b;
  --ink-200: #94a3b8;

  /* --brand is the wordmark green and is reserved for graphics: rules, dots,
     gradients and borders. Anything carrying text uses --brand-dark, which is
     the darkest tint that still reads as Finpalix green and clears WCAG AA
     both as text on our light surfaces and as a fill behind white text. */
  --brand: #0aae7c;
  --brand-dark: #077a56;
  --brand-deep: #055c40;
  --brand-soft: #e8f8f2;
  --brand-line: #b6e8d6;

  --accent: #0aae7c;
  --accent-soft: #e8f8f2;

  --paper: #ffffff;
  --paper-2: #f7f9fb;
  --paper-3: #eef2f7;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 28, 48, .06), 0 1px 3px rgba(15, 28, 48, .04);
  --shadow: 0 4px 14px rgba(15, 28, 48, .07), 0 1px 3px rgba(15, 28, 48, .05);
  --shadow-lg: 0 22px 50px -18px rgba(15, 28, 48, .28);

  --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --shell: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

[data-theme='books'] {
  --accent: #f0a020;
  --accent-soft: #fdf3e2;
}

[data-theme='sms'] {
  --accent: #3b74f0;
  --accent-soft: #eaf1fe;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-500);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* --- Layout --------------------------------------------------------------- */

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

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }

.section--muted { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: #fff; }

.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--brand);
}
.section--ink .eyebrow { color: var(--brand); }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-500); }
.section--ink .lead { color: rgba(255, 255, 255, .82); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--reverse > :first-child { order: 2; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .97rem;
  line-height: 1;
  padding: 15px 26px;
  min-height: 50px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }

.btn--onink { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--onink:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn--sm { padding: 11px 18px; min-height: 42px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-dark);
  /* Padding lifts the hit area to 40px; the matching negative margin keeps the
     link sitting exactly where it did in the layout. */
  padding-block: 8px;
  margin-block: -8px;
}
.link-arrow::after {
  content: '\2192';
  transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }
.section--ink .link-arrow { color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(15, 28, 48, .05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

/* min-height gives the wordmark a finger-sized hit area; the header and footer
   are both taller than this, so nothing shifts. */
.brand { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; }
.brand:hover { color: inherit; }
.brand img { height: 19px; width: auto; }
.brand__suffix {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--brand-dark);
  padding-left: 8px;
  border-left: 1.5px solid var(--line-strong);
}

.site-nav { margin-left: auto; }
.site-nav__cta { display: none; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-500);
}
.site-nav__link:hover { color: var(--ink); background: var(--paper-2); }
.site-nav__link[aria-current='page'] { color: var(--ink); font-weight: 600; }
.site-nav__link[aria-current='page']::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(900px 420px at 88% -8%, var(--brand-soft), transparent 62%),
    radial-gradient(700px 380px at 4% 4%, var(--accent-soft), transparent 60%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem); max-width: 34em; }
.hero__note {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.hero .btn-row { margin-top: 30px; }

.hero--inner {
  padding: clamp(48px, 6vw, 78px) 0 clamp(40px, 5vw, 62px);
  background:
    radial-gradient(800px 340px at 92% -20%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero--inner .hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero--inner h1 { max-width: 16em; }
.hero--inner .lead { max-width: 42em; }

/* --- Ecosystem diagram (corporate hero visual) ---------------------------- */

.ecosystem {
  position: relative;
  padding: 28px;
  background: linear-gradient(160deg, #fff, var(--paper-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ecosystem__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--ink);
  border-radius: var(--radius);
  color: #fff;
}
.ecosystem__parent strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.ecosystem__parent span { font-size: .82rem; color: rgba(255, 255, 255, .68); }

.ecosystem__stem {
  width: 2px;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(var(--brand), var(--line));
}
.ecosystem__children { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ecosystem__node {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.ecosystem__node strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: .98rem;
}
.ecosystem__node span { font-size: .82rem; color: var(--ink-300); }
.ecosystem__node--future {
  grid-column: 1 / -1;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.ecosystem__pulse {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(10, 174, 124, .5);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(10, 174, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 174, 124, 0); }
}

/* --- Product mock (product hero visual) ----------------------------------- */

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock__title {
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-300);
}
.mock__body { padding: 18px; display: grid; gap: 14px; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.mock__stat span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-300); }
.mock__stat strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mock__chart i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-line));
}
.mock__rows { display: grid; gap: 8px; }
.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .84rem;
}
.mock__row b { font-family: var(--font-display); color: var(--ink); font-weight: 700; }
.mock__pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 700;
}

/* --- Value strip ---------------------------------------------------------- */

.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip__inner { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 22px 0; align-items: center; }
.strip__label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-right: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-500);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* --- Cards ---------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-500); font-size: .97rem; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.card--muted { background: var(--paper-2); }
.card--dashed { border-style: dashed; background: transparent; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.card__icon svg { width: 22px; height: 22px; }
.card__foot { margin-top: auto; padding-top: 18px; }

.card--product { padding: 0; overflow: hidden; }
.card--product .card__visual {
  padding: 26px 26px 0;
  background: linear-gradient(160deg, var(--brand-soft), transparent 70%);
}
.card--product .card__content { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card__kicker {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick-list li {
  position: relative;
  padding-left: 28px;
  font-size: .95rem;
  color: var(--ink-500);
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23077a56' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.section--ink .tick-list li { color: rgba(255, 255, 255, .8); }

.cross-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cross-list li { position: relative; padding-left: 28px; font-size: .95rem; }
.cross-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* --- Numbered process ----------------------------------------------------- */

.steps { display: grid; gap: 22px; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step__no {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand-dark);
}
.step h3 { font-size: 1.08rem; margin: 8px 0 .4em; }
.step p { font-size: .94rem; }
.step::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 42px; height: 2px;
  background: var(--brand);
}

/* --- Stats ---------------------------------------------------------------- */

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  color: var(--ink);
  line-height: 1.1;
}
.section--ink .stat strong { color: #fff; }
.stat span { font-size: .92rem; color: var(--ink-300); }
.section--ink .stat span { color: rgba(255, 255, 255, .74); }

/* --- Pricing -------------------------------------------------------------- */

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--paper-3);
  border-radius: var(--radius-pill);
}
.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink-500);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.billing-toggle button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.billing-toggle small { display: block; font-size: .68rem; font-weight: 600; color: var(--brand-dark); }

.plan-grid { display: grid; gap: 20px; align-items: start; }
.plan-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plan-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -12px; left: 22px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.plan__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.plan__positioning { font-size: .86rem; color: var(--ink-300); min-height: 2.6em; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
}
.plan__period { font-size: .86rem; font-weight: 600; color: var(--ink-300); letter-spacing: 0; }
.plan__note { font-size: .82rem; color: var(--ink-300); margin-bottom: 18px; }
.plan__inherits {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.plan .tick-list li { font-size: .89rem; padding-left: 25px; }
.plan__cta { margin-top: auto; padding-top: 22px; }

/* --- Comparison table ----------------------------------------------------- */

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .92rem;
  background: #fff;
}
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  position: sticky;
  top: 0;
  background: var(--paper-2);
  font-family: var(--font-display);
  color: var(--ink);
  font-size: .88rem;
  white-space: nowrap;
}
.compare tbody th { font-weight: 500; color: var(--ink-500); }
.compare td { text-align: center; }
.compare .compare__group td {
  background: var(--paper-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.mark-yes { color: var(--brand-dark); font-weight: 700; }
.mark-no { color: var(--ink-300); }

/* --- Accordion ------------------------------------------------------------ */

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.accordion__trigger:hover { color: var(--brand-dark); }
.accordion__icon {
  flex: none;
  position: relative;
  width: 20px; height: 20px;
}
.accordion__icon::before, .accordion__icon::after {
  content: '';
  position: absolute;
  top: 9px; left: 2px;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded='true'] .accordion__icon::after { transform: rotate(0); }
.accordion__panel { padding: 0 0 22px; max-width: 62ch; }
.accordion__panel[hidden] { display: none; }

/* --- Forms ---------------------------------------------------------------- */

.form-card {
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-family: var(--font-display);
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink);
}
.field__req { color: var(--brand-dark); }
.field__input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea.field__input { resize: vertical; min-height: 130px; }
select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4f6b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
}
.field__help { font-size: .82rem; color: var(--ink-300); }
.field__error { font-size: .84rem; color: #c0392b; font-weight: 600; }
.field--invalid .field__input { border-color: #c0392b; background: #fdf3f2; }

.form-note { font-size: .85rem; color: var(--ink-300); }

.download-card { margin-top: 24px; }
.download-card > p { margin-bottom: 18px; }
.download-list { display: grid; gap: 14px; }
.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.download-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
}
.download-item span:not(.visually-hidden) {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: var(--ink-300);
}
.download-item .btn { flex: none; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.alert {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--ink);
}
.alert--error { border-color: #f3c6c0; background: #fdf3f2; }
.alert strong { font-family: var(--font-display); }

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding: clamp(48px, 6vw, 82px) 0;
  background:
    radial-gradient(680px 320px at 82% 12%, rgba(10, 174, 124, .22), transparent 62%),
    var(--ink);
  color: rgba(255, 255, 255, .78);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 17em; margin-inline: auto; }
.cta-band p, .cta-band .lead { color: rgba(255, 255, 255, .82); max-width: 46em; margin-inline: auto; }
.cta-band .btn-row { margin-top: 30px; }

/* --- Article -------------------------------------------------------------- */

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card h3 { font-size: 1.1rem; }
.article-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .8rem;
  color: var(--ink-300);
  margin-bottom: 12px;
}
.tag {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .74rem;
  font-weight: 700;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; }
.filter-row a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-500);
}
.filter-row a:hover { border-color: var(--ink-200); color: var(--ink); }
.filter-row a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.prose { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }

.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-300);
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  padding: clamp(48px, 5vw, 72px) 0 28px;
  font-size: .94rem;
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: #fff; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .brand img { height: 21px; }
.site-footer .brand__suffix { color: var(--brand); border-left-color: rgba(255, 255, 255, .22); }
.site-footer__blurb { margin-top: 14px; max-width: 26em; font-size: .92rem; }
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .87rem;
}
.site-footer ul.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.site-footer__social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.site-footer__social svg { width: 17px; height: 17px; }
.site-footer__parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  font-size: .86rem;
}

/* --- Error pages ---------------------------------------------------------- */

.page-error main { display: grid; place-items: center; min-height: 62vh; text-align: center; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.05em;
}

/* --- Motion --------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .plan-grid--5, .plan-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    padding: 18px var(--gutter) 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link { padding: 13px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  .site-nav__link[aria-current='page']::after { display: none; }
  .site-nav__link[aria-current='page'] { background: var(--brand-soft); color: var(--brand-dark); }
  .site-nav__cta { display: block; margin-top: 14px; }
  .site-nav__cta .btn { width: 100%; }

  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn { display: none; }

  .hero__grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps--4, .steps--3 { grid-template-columns: minmax(0, 1fr); }
  .plan-grid--5, .plan-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .ecosystem__children { grid-template-columns: minmax(0, 1fr); }
  .mock__stats { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .btn-row .btn, .form-grid .btn { width: 100%; }
  .download-item { align-items: stretch; flex-direction: column; }
  .download-item .btn { width: 100%; }
}
