:root {
  --ink: #17131d;
  --muted: #6c6570;
  --paper: #fffdfa;
  --white: #ffffff;
  --line: #e8e2e7;
  --soft: #f7f3f6;
  --warm: #fff0df;
  --peach: #ffd4bb;
  --lavender: #e8e0ff;
  --lavender-deep: #c7b8ff;
  --sage: #dcecdc;
  --blue: #dcecff;
  --purple: #6d4cff;
  --purple-dark: #5132d7;
  --night: #18141d;
  --success: #177a55;
  --danger: #a02c36;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow: 0 28px 70px rgba(56, 37, 42, 0.12);
  --frame: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
p, h1, h2, h3 { margin-top: 0; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(109, 76, 255, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 9px;
  background: var(--night);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus { transform: none; }

.frame {
  width: min(calc(100% - 48px), var(--frame));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  border-bottom: 1px solid rgba(45, 37, 48, 0.08);
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--night);
  color: var(--white);
}

.brand-mark svg { width: 17px; height: 17px; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.desktop-nav > a:not(.button) {
  color: #554f5a;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav > a:not(.button):hover { color: var(--ink); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 29;
  overflow-y: auto;
  background: var(--paper);
  padding: 28px 24px 40px;
}

.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a:not(.button) {
  display: flex;
  min-height: 54px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  font-size: 20px;
  font-weight: 650;
}
.mobile-menu .button { margin-top: 22px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--night);
  border-radius: 999px;
  background: var(--night);
  color: var(--white);
  padding: 12px 21px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #302935;
  box-shadow: 0 12px 24px rgba(23, 19, 29, 0.15);
}

.button--outline {
  border-color: rgba(23, 19, 29, 0.17);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.button--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button--small { min-height: 44px; padding: 10px 17px; font-size: 14px; }
.text-link { color: var(--purple-dark); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.subhero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 1% 44%, rgba(255, 210, 183, 0.74), transparent 54%),
    radial-gradient(ellipse at 97% 8%, rgba(223, 213, 255, 0.92), transparent 58%),
    #fff;
}

.subhero::before {
  position: absolute;
  right: -180px;
  bottom: -350px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(193, 176, 255, 0.25);
  content: "";
  pointer-events: none;
}

.subhero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 640px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 68px;
  align-items: center;
  padding-block: 72px;
}

.subhero--compact .subhero-inner {
  min-height: 510px;
  grid-template-columns: minmax(0, 760px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #726a75;
  font-size: 13px;
  font-weight: 650;
}

.breadcrumb span[aria-current="page"] { color: var(--ink); }
.breadcrumb i { font-style: normal; opacity: 0.55; }

.kicker, .eyebrow {
  margin-bottom: 14px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 21px;
  border: 1px solid rgba(23, 19, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hero-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a46b;
  content: "";
  box-shadow: 0 0 0 4px rgba(40, 164, 107, 0.12);
}

h1 {
  max-width: 770px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.7vw, 72px);
  font-weight: 650;
  letter-spacing: -0.057em;
  line-height: 0.99;
}

.subhero-copy > p:not(.kicker):not(.eyebrow):not(.hero-pill) {
  max-width: 650px;
  margin-bottom: 29px;
  color: #5d5661;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.microproof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 19px;
  margin: 27px 0 0;
  padding: 0;
  color: #554f59;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.microproof li { display: inline-flex; align-items: center; gap: 7px; }
.microproof li::before { color: var(--success); content: "✓"; font-weight: 900; }

.hero-panel, .surface {
  border: 1px solid rgba(23, 19, 29, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel { padding: 26px; }
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill, .tag {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  border-radius: 999px;
  background: #eee9ff;
  color: var(--purple-dark);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.section { padding: 104px 0; }
.section--compact { padding: 76px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--night); color: var(--white); }

.section-heading { max-width: 790px; margin-bottom: 50px; }
.section-heading h2, .split-copy h2, .cta-band h2 {
  margin-bottom: 18px;
  font-size: clamp(37px, 4.2vw, 58px);
  font-weight: 650;
  letter-spacing: -0.048em;
  line-height: 1.04;
}

.section-heading p, .split-copy > p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section--dark .section-heading p, .section--dark .split-copy > p { color: rgba(255, 255, 255, 0.7); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 72px;
  align-items: start;
}

.split--reverse { grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr); }
.split-copy { position: sticky; top: 116px; }

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

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

.info-card, .template-card, .step-card, .related-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 27px;
}

.info-card h3, .template-card h2, .template-card h3, .step-card h3, .related-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.info-card p, .template-card p, .step-card p, .related-card p {
  color: var(--muted);
  font-size: 15px;
}

.icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 13px;
  background: var(--lavender);
  color: var(--purple-dark);
  font-size: 16px;
  font-weight: 850;
}

.info-card:nth-child(2n) .icon-box { background: var(--warm); color: #9d4d15; }
.info-card:nth-child(3n) .icon-box { background: var(--sage); color: #2d6c4d; }

.numbered-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 22px;
}

.numbered-list .number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--night);
  color: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.numbered-list strong { display: block; margin: 1px 0 4px; font-size: 17px; }
.numbered-list p { margin: 0; color: var(--muted); font-size: 14px; }

.chat-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 25px;
  background: #211b25;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.chat-top {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.chat-body { display: grid; gap: 12px; min-height: 390px; padding: 25px; }
.message {
  width: fit-content;
  max-width: 84%;
  align-self: start;
  border-radius: 17px 17px 17px 5px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.message--customer {
  justify-self: end;
  border-radius: 17px 17px 5px 17px;
  background: var(--purple);
  color: var(--white);
}

.message small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.message--customer small { color: rgba(255, 255, 255, 0.7); }

.check-list, .plain-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 10px; }
.check-list li::before {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #e4f3e9;
  color: var(--success);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.plain-list li { border-bottom: 1px solid var(--line); padding-bottom: 13px; }

.notice {
  border: 1px solid #e7dcad;
  border-radius: 18px;
  background: #fffae8;
  padding: 21px 23px;
  color: #5b512a;
  font-size: 14px;
}

.notice strong { display: block; margin-bottom: 4px; color: #312b15; }

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

.metric {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  padding: 20px;
}

.metric small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric strong { display: block; font-size: 27px; letter-spacing: -0.04em; }

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.78fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 22px;
}

.calculator-form { padding: 12px; }
.form-fields { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 800; }
.field small { color: var(--muted); font-size: 12px; }
.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dcd5dc;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 17px;
}

.field input:focus { border-color: var(--purple); outline: 3px solid rgba(109, 76, 255, 0.1); }
.calculator-errors { min-height: 24px; margin-top: 10px; color: var(--danger); font-size: 13px; }
.calculator-errors ul { margin: 0; padding-left: 19px; }

.calculator-result {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: center;
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 213, 190, 0.9), transparent 42%),
    linear-gradient(145deg, #eee9ff, #e2d8ff);
  padding: 34px;
}

.calculator-result small { color: #655b70; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.calculator-result output { display: block; margin: 9px 0 14px; font-size: clamp(50px, 6vw, 76px); font-weight: 700; letter-spacing: -0.065em; line-height: 1; }
.calculator-result p { color: #564e5e; font-size: 13px; }
.calculator-result .button { margin-top: 18px; align-self: flex-start; }

.template-grid { display: grid; gap: 20px; }
.template-card { padding: 0; overflow: hidden; }
.template-meta { display: grid; gap: 8px; padding: 25px 27px 0; }
.template-copy {
  margin: 22px 27px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f6f8;
  padding: 19px;
  color: #312b34;
  font-size: 15px;
  white-space: pre-line;
}

.template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 17px 27px;
}

.template-actions small { color: var(--muted); }
.copy-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

.comparison > article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 29px;
}

.comparison > article.good { border-color: #c8baff; background: #f4f0ff; }
.comparison h3 { margin-bottom: 16px; font-size: 22px; letter-spacing: -0.03em; }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--white);
  padding: 62px;
}

.cta-band::after {
  position: absolute;
  top: -170px;
  right: -120px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: rgba(137, 106, 255, 0.42);
  content: "";
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 750px; }
.cta-band p { max-width: 650px; margin-bottom: 27px; color: rgba(255, 255, 255, 0.72); font-size: 18px; }

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

.related-card { display: flex; min-height: 210px; flex-direction: column; transition: transform 180ms ease, box-shadow 180ms ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 18px 35px rgba(35, 25, 38, 0.08); }
.related-card .text-link { margin-top: auto; padding-top: 18px; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 750px);
  gap: 76px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding-left: 19px;
}

.legal-nav a { color: var(--muted); font-size: 14px; font-weight: 700; }
.legal-nav a:hover { color: var(--ink); }
.legal-content { overflow-wrap: anywhere; }
.legal-content section { margin-bottom: 48px; scroll-margin-top: 100px; }
.legal-content h2 { margin-bottom: 15px; font-size: 30px; letter-spacing: -0.035em; line-height: 1.15; }
.legal-content h3 { margin: 27px 0 9px; font-size: 19px; }
.legal-content p, .legal-content li { color: #514a54; }
.legal-content ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: 13px; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #120f15;
  color: var(--white);
  padding: 70px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 55px;
}

.footer-brand p { max-width: 270px; margin: 17px 0 0; color: rgba(255, 255, 255, 0.58); font-size: 14px; }
.site-footer .brand-mark { background: var(--white); color: var(--night); }
.footer-column { display: grid; align-content: start; gap: 9px; }
.footer-column h2, .footer-column h3 { margin-bottom: 7px; color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-column a { color: rgba(255, 255, 255, 0.76); font-size: 13px; }
.footer-column a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 23px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 980px) {
  .subhero-inner { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr); gap: 40px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 48px; }
  .footer-grid { grid-template-columns: 1.35fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 820px) {
  .frame { width: min(calc(100% - 34px), var(--frame)); }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .subhero-inner, .subhero--compact .subhero-inner {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    padding-block: 48px 60px;
  }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .subhero-copy > p:not(.kicker):not(.eyebrow):not(.hero-pill) { font-size: 17px; }
  .section { padding: 76px 0; }
  .section--compact { padding: 60px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .split-copy h2, .cta-band h2 { font-size: clamp(34px, 9.5vw, 49px); }
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); gap: 37px; }
  .split-copy { position: static; }
  .card-grid, .card-grid--two, .related-grid, .comparison { grid-template-columns: minmax(0, 1fr); }
  .metric-row { grid-template-columns: minmax(0, 1fr); }
  .calculator-shell { grid-template-columns: minmax(0, 1fr); padding: 13px; }
  .calculator-form { padding: 9px; }
  .calculator-result { min-height: 330px; padding: 28px; }
  .template-actions { align-items: flex-start; flex-direction: column; }
  .cta-band { border-radius: 25px; padding: 40px 28px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .legal-nav { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; white-space: nowrap; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-panel { border-radius: 23px; padding: 18px; }
  .chat-body { min-height: 360px; padding: 18px; }
  .message { max-width: 92%; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .info-card, .step-card, .related-card { padding: 23px; }
  .template-meta { padding: 22px 22px 0; }
  .template-copy { margin: 18px 22px; }
  .template-actions { padding: 16px 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
