:root {
  --bg: #faf5ef;
  --bg-tint: #f6eef2;
  --surface: #fffdfa;
  --ink: #362b34;
  --ink-2: #514350;
  --muted: #7d6a76;
  --muted-2: #ab97a2;
  --line: rgba(54, 43, 52, 0.1);
  --line-strong: rgba(54, 43, 52, 0.18);
  --accent: #ad76b8;
  --accent-deep: #8d55a0;
  --hue-math: #6a52a8;
  --hue-data: #8d55a0;
  --hue-ml: #a8507e;
  --accent-soft: rgba(173, 118, 184, 0.14);
  --gold: #d9a326;
  --gold-soft: rgba(217, 163, 38, 0.16);
  --gold-light: #f0c766;
  --plum: #362b34;
  --cream-on-dark: rgba(250, 245, 239, 0.78);
  --sans: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(54, 43, 52, 0.05);
  --shadow: 0 1px 2px rgba(54, 43, 52, 0.04), 0 18px 40px -22px rgba(54, 43, 52, 0.28);
  --shadow-lg: 0 2px 6px rgba(54, 43, 52, 0.05), 0 32px 64px -30px rgba(54, 43, 52, 0.42);
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--accent-deep);
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

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

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(141, 85, 160, 0.8);
}

.btn-primary:hover {
  background: #7a4690;
  box-shadow: 0 14px 26px -12px rgba(141, 85, 160, 0.85);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  border-color: rgba(250, 245, 239, 0.32);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(250, 245, 239, 0.08);
}

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

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow .icon {
  transition: transform 0.2s ease;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 239, 0.84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header[data-open="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px -24px rgba(54, 43, 52, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-tag {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.93rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.nav-links a.is-active {
  color: var(--accent-deep);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
}

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

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-btn span:first-child {
  top: 16px;
}

.menu-btn span:last-child {
  top: 24px;
}

.site-header[data-open="true"] .menu-btn span:first-child,
.site-header[data-open="true"] .menu-btn span:last-child {
  top: 20px;
}

.site-header[data-open="true"] .menu-btn span:first-child {
  transform: rotate(45deg);
}

.site-header[data-open="true"] .menu-btn span:last-child {
  transform: rotate(-45deg);
}

.mobile-panel {
  display: none;
}

/* Shared section pieces */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-tint {
  background: var(--bg-tint);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: 56px;
}

.section-lead {
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.section-lead a,
.about-copy a,
.footer-text a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section-lead a:hover,
.about-copy a:hover,
.footer-text a:hover {
  color: var(--ink);
}

.mini-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

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

.icon-tile-sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.icon-tile-sm .icon {
  width: 20px;
  height: 20px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 112px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54, 43, 52, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 43, 52, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 72% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 75% at 72% 40%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(173, 118, 184, 0.24), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.75);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
}

.pill .spark {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero h1 .hue-math {
  color: var(--hue-math);
}

.hero h1 .hue-data {
  color: var(--hue-data);
}

.hero h1 .hue-ml {
  color: var(--hue-ml);
}

.hero-sub {
  max-width: 50ch;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-ctas .link-arrow {
  margin-left: 6px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
  color: var(--accent-deep);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(173, 118, 184, 0.28), rgba(217, 163, 38, 0.22));
}

.photo-frame {
  overflow: hidden;
  aspect-ratio: 720 / 768;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  box-shadow: var(--shadow-lg);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.float-call {
  top: 32px;
  left: -44px;
}

.float-plot {
  right: -36px;
  bottom: -34px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 256px;
  padding: 14px 16px 12px;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.float-icon .icon {
  width: 20px;
  height: 20px;
}

.float-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.float-text {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.float-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.float-kicker {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.float-eq {
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
}

.float-eq sub {
  font-size: 0.65em;
}

.plot {
  width: 100%;
  height: auto;
}

.plot-axis {
  fill: none;
  stroke: rgba(54, 43, 52, 0.28);
  stroke-width: 1.2;
}

.plot-grid {
  fill: none;
  stroke: rgba(54, 43, 52, 0.08);
  stroke-width: 1;
}

.plot-resid {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 2 2;
}

.plot-line {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.plot-pts circle {
  fill: var(--accent);
  fill-opacity: 0.85;
  stroke: var(--surface);
  stroke-width: 1;
}

/* Facts strip */

.about-facts {
  margin-top: clamp(48px, 6vw, 72px);
  border-block: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact-num {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.fact-num .plus {
  color: var(--gold);
}

.fact-label {
  max-width: 26ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.about-copy .title {
  margin-bottom: 28px;
}

.about-copy > p:not(.eyebrow) {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.about-copy > p + p {
  margin-top: 18px;
}

.teach-note {
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: var(--surface);
}

.teach-note .mini-label {
  margin-bottom: 8px;
}

.teach-note p:last-child {
  line-height: 1.6;
}

.exp-card {
  padding: 26px 30px 10px;
}

.exp-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.exp-card .mini-label {
  margin-bottom: 6px;
}

.exp-list .exp-item:first-child {
  border-top: 0;
}

.exp-when {
  padding-top: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-deep);
}

.exp-role {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.3;
  color: var(--ink);
}

.exp-org {
  margin-top: 3px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.exp-org a {
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.exp-org a:hover {
  color: var(--accent-deep);
}

.exp-desc {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Subjects */

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

.subject {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.subject:hover {
  border-color: rgba(141, 85, 160, 0.28);
  box-shadow: var(--shadow);
}

.subject h3 {
  font-size: 1.38rem;
  line-height: 1.2;
}

.subject-flag {
  margin-top: -8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink-2);
}

/* Rates */

.rates-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: start;
}

.rates-intro .title {
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.info-icon .icon {
  width: 18px;
  height: 18px;
}

.rate-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.rate-table thead th {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 238, 242, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}

.rate-table thead th.num {
  text-align: right;
}

.th-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.th-icon .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-deep);
}

.rate-table tbody th,
.rate-table td {
  padding: 19px 28px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
  border-bottom: 0;
}

.rate-table tbody tr {
  transition: background 0.2s ease;
}

.rate-table tbody tr:hover {
  background: rgba(173, 118, 184, 0.06);
}

.rate-table tbody th {
  font-weight: 400;
  text-align: left;
}

.subj {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink);
}

.rate-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--muted);
}

.rate-sub a {
  color: var(--accent-deep);
}

.rate-table td {
  text-align: right;
  white-space: nowrap;
}

.price {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Packages and classes */

.group + .group {
  margin-top: 80px;
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.group-head + .group-lead {
  max-width: 62ch;
  margin: -8px 0 28px;
  line-height: 1.65;
  color: var(--muted);
}

.group-head h3 {
  font-size: 1.55rem;
}

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
}

.plan-flag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

.plan-flag .icon {
  width: 14px;
  height: 14px;
}

.plan h4 {
  margin-top: 20px;
  font-size: 1.6rem;
  line-height: 1.15;
}

.plan-price {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.plan-price.is-text {
  font-size: 2rem;
}

.plan-price .per {
  margin-left: 2px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.checks {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 12px;
  margin: 24px 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d55a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.plan .btn {
  width: 100%;
}

.plan.is-featured {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
}

.plan.is-featured h4,
.plan.is-featured .plan-price {
  color: #fff;
}

.plan.is-featured .plan-flag {
  background: rgba(217, 163, 38, 0.18);
  color: var(--gold-light);
}

.plan.is-featured .plan-note,
.plan.is-featured .plan-price .per {
  color: rgba(250, 245, 239, 0.7);
}

.plan.is-featured .checks {
  border-top-color: rgba(250, 245, 239, 0.14);
}

.plan.is-featured .checks li {
  color: rgba(250, 245, 239, 0.9);
}

.plan.is-featured .checks li::before {
  background-color: rgba(217, 163, 38, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c766' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.7);
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.note .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent-deep);
}

/* How it works */

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

.step {
  padding: 28px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
}

.step h3 {
  margin-top: 20px;
  font-size: 1.35rem;
}

.step p {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.policies-head {
  margin-top: 64px;
}

.policies {
  padding: 6px 32px;
}

.policy {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 32px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.policy:first-child {
  border-top: 0;
}

.policy dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
}

.policy dt .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-deep);
}

.policy dd {
  line-height: 1.6;
  color: var(--ink-2);
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq-aside .title {
  margin-bottom: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(141, 85, 160, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}

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

.faq-item summary:hover {
  color: var(--accent-deep);
}

.faq-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--accent-deep);
  transition: transform 0.25s ease;
}

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

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

.faq-item p {
  max-width: 62ch;
  padding: 0 24px 22px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Contact */

.contact {
  padding: 0 0 clamp(72px, 9vw, 112px);
}

.contact-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 32px;
  background: var(--plum);
  color: var(--bg);
}

.contact-band::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(173, 118, 184, 0.38), transparent 65%);
  pointer-events: none;
}

.contact-band::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217, 163, 38, 0.16), transparent 65%);
  pointer-events: none;
}

.contact-band > * {
  position: relative;
  z-index: 1;
}

.contact-band .eyebrow {
  color: #e3c9ea;
}

.contact-band .title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  color: #fff;
}

.contact-band .title em {
  color: #dcb6e5;
}

.contact-note {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cream-on-dark);
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.include-card {
  padding: 28px;
  border: 1px solid rgba(250, 245, 239, 0.14);
  border-radius: 20px;
  background: rgba(250, 245, 239, 0.06);
}

.include-card .mini-label {
  color: var(--gold-light);
}

.include-card ol {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.include-card li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(250, 245, 239, 0.92);
}

.include-card .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: rgba(250, 245, 239, 0.1);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-brand .brand {
  margin-right: 0;
}

.footer-text {
  max-width: 52ch;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.93rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

.footer-links .icon {
  width: 14px;
  height: 14px;
}

.footer-meta {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Scroll reveal (only when JS is running) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal-d1 {
  transition-delay: 0.08s;
}

.js .reveal-d2 {
  transition-delay: 0.16s;
}

.js .reveal-d3 {
  transition-delay: 0.24s;
}

/* Responsive */

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .site-header[data-open="true"] .mobile-panel {
    display: block;
  }

  .mobile-panel {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }

  .mobile-panel nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.3rem;
    text-decoration: none;
  }

  .mobile-panel nav a .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-deep);
  }

  .mobile-panel .btn {
    margin-top: 20px;
  }

  html:not(.js) .menu-btn {
    display: none;
  }

  html:not(.js) .mobile-panel {
    display: block;
  }

  html:not(.js) .site-header {
    position: relative;
  }

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

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .rates-layout,
  .faq-layout,
  .contact-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 56px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 420px;
  }

  .about-grid,
  .rates-layout,
  .faq-layout {
    gap: 44px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 40px;
  }

  .plan-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 580px;
  }

  .faq-aside,
  .about-copy {
    position: static;
  }

  .contact-band {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    padding: 24px 0 24px 20px;
  }

  .fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .header-actions .btn {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .hero-ctas .link-arrow {
    margin-left: 0;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-visual {
    max-width: 340px;
  }

  .hero-visual::before {
    inset: 18px -14px -18px 14px;
  }

  .float-call {
    top: 16px;
    left: -12px;
    padding: 10px 14px 10px 10px;
  }

  .float-call .float-text {
    display: none;
  }

  .float-plot {
    right: -10px;
    bottom: -26px;
    width: 200px;
  }

  .float-eq {
    display: none;
  }

  .subject-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rate-table,
  .rate-table tbody {
    display: block;
  }

  .rate-table thead {
    display: none;
  }

  .rate-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 18px;
    border-bottom: 1px solid var(--line);
  }

  .rate-table tbody tr:last-child {
    border-bottom: 0;
  }

  .rate-table tbody th,
  .rate-table tbody tr:last-child th {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
  }

  .rate-table td,
  .rate-table tbody tr:last-child td {
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg);
    text-align: left;
  }

  .rate-table td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--muted);
  }

  .price {
    font-size: 1.3rem;
  }

  .plan {
    padding: 26px 22px 22px;
  }

  .policies {
    padding: 4px 22px;
  }

  .policy {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .faq-item summary {
    padding: 18px 18px;
    font-size: 1.05rem;
  }

  .faq-item p {
    padding: 0 18px 20px;
  }

  .contact-band {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .contact-ctas .btn {
    flex: 1 1 100%;
    padding: 0 18px;
  }

  .include-card {
    padding: 22px;
  }

  .exp-card {
    padding: 22px 22px 6px;
  }

  .exp-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero::before,
  .hero::after,
  .hero-visual,
  .contact-band::before,
  .contact-band::after {
    display: none;
  }

  .section-tint,
  .contact-band,
  .plan.is-featured {
    background: none;
    color: #000;
  }

  .plan.is-featured h4,
  .plan.is-featured .plan-price,
  .plan.is-featured .checks li,
  .contact-band .title,
  .contact-note,
  .include-card li {
    color: #000;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
