:root {
  --ink-950: #152238;
  --ink-800: #263653;
  --ink-650: #4e5f7b;
  --ink-500: #6d7d96;
  --line: #dbe3ee;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --surface-blue: #eef4ff;
  --brand-700: #2353ca;
  --brand-600: #3266df;
  --brand-100: #dce8ff;
  --success: #2f6b4d;
  --danger: #b23a3a;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgb(26 49 88 / 8%);
  --container: 1180px;
}

/* Secure signup reuses shared tokens; no viewport-fixed controls behind keyboards. */
.signup-page { max-width: 760px; padding-block: 32px 48px; }
.signup-page [hidden] { display: none !important; }
.signup-brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--brand-700); margin-bottom: 28px; }
.signup-steps { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 8px; margin-block: 24px; }
.signup-steps li { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--ink-650); }
.signup-steps [aria-current="step"] { color: var(--brand-700); background: var(--brand-100); font-weight: 700; }
.signup-status { padding: 14px 16px; background: var(--surface-blue); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.signup-status.signup-error { color: var(--danger); border: 1px solid currentColor; }
.signup-help, .signup-form small { color: var(--ink-650); font-size: .9rem; }
.signup-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.signup-form { display: grid; gap: 10px; }
.signup-page .signup-form { padding: 0; border: 0; box-shadow: none; background: transparent; min-width: 0; }
.signup-form h2 { margin-bottom: 14px; }
.signup-form label { font-weight: 600; }
.signup-page .signup-form input:not([type="checkbox"]), .signup-page .signup-form select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink-500); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-950); }
.signup-form small { margin-bottom: 8px; }
.signup-form .btn { margin-top: 14px; }
.signup-page .btn { min-height: 48px; white-space: normal; text-align: center; }
.signup-page button:disabled { opacity: .65; cursor: wait; transform: none; }
.signup-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.signup-check { display: flex; align-items: flex-start; gap: 12px; padding-block: 8px; min-height: 48px; cursor: pointer; }
.signup-check input { width: 24px; height: 24px; flex-shrink: 0; margin: 0; }
.signup-modules { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.signup-modules legend { font-weight: 700; }
.signup-module-options { display: grid; gap: 10px; }
.signup-module-choice { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); align-items: center; }
.signup-module-choice:has(input:checked) { border-color: var(--brand-700); background: var(--surface-blue); }
.signup-module-choice:has(input:focus-visible) { outline: 2px solid var(--brand-700); outline-offset: 2px; }
.signup-legal { display: grid; gap: 8px; margin-bottom: 20px; }
.signup-legal a { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--brand-700); text-decoration: underline; overflow-wrap: anywhere; }
.signup-page input, .signup-page select, .signup-page button, .signup-page h2 { scroll-margin-block: 24px; }
.signup-page :focus-visible { outline-color: var(--brand-700); }
#signup-code-form { margin-block: 20px; }
#signup-review-refresh { margin-top: 14px; }
@media (max-width: 600px) {
  .signup-page { width: calc(100% - 32px); padding-top: 20px; }
  .signup-card { padding: 20px 16px; }
  .signup-actions, .signup-steps { gap: 8px; }
  .signup-actions .btn { width: 100%; }
  .signup-form input, .signup-form select { font-size: 16px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink-950);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

:focus-visible {
  outline: 3px solid #89a9ff;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.header-inner { min-height: 72px; display: flex; align-items: center; gap: 26px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 17px; }

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-600);
  color: #fff;
}

.site-nav { display: flex; align-items: center; justify-content: center; gap: 26px; flex: 1; }
.site-nav a { color: var(--ink-650); font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--brand-700); }
.nav-primary, .menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 14px rgb(50 102 223 / 20%); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary { border-color: #bfcbdd; background: #fff; color: var(--ink-800); }
.btn-secondary:hover { border-color: var(--brand-600); color: var(--brand-700); }

.hero-section { padding: clamp(76px, 10vw, 132px) 0 88px; background: linear-gradient(135deg, #fff 0%, #f8faff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .78fr); gap: clamp(48px, 8vw, 112px); align-items: center; }
.eyebrow { margin-bottom: 14px; color: var(--brand-700); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink-950); letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
.hero-lead { max-width: 690px; margin-bottom: 30px; color: var(--ink-650); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-context { border-left: 1px solid var(--brand-100); padding: 6px 0 6px 32px; }
.context-label { margin-bottom: 18px; color: var(--ink-500); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.hero-context ul { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.hero-context li { display: grid; gap: 3px; }
.hero-context strong { color: var(--ink-800); font-size: 15px; }
.hero-context span { color: var(--ink-650); font-size: 14px; }

.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-muted { background: var(--surface-muted); }
.section-dark { background: var(--ink-950); }
.section-border { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 750px; margin-bottom: 46px; }
.section-heading h2 { margin-bottom: 15px; font-size: clamp(29px, 3.5vw, 46px); line-height: 1.12; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--ink-650); font-size: 17px; line-height: 1.65; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; max-width: none; }
.split-heading > div { max-width: 650px; }
.split-heading > p { max-width: 380px; }
.centered-heading { margin-inline: auto; text-align: center; }
.section-heading-light h2 { color: #fff; }
.section-heading-light .eyebrow { color: #b7caff; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid article { padding: 28px 32px 30px 0; border-right: 1px solid var(--line); }
.problem-grid article + article { padding-left: 32px; }
.problem-grid article:last-child { border-right: 0; }
.problem-grid h3 { margin-bottom: 9px; font-size: 18px; }
.problem-grid p { margin-bottom: 0; color: var(--ink-650); font-size: 15px; line-height: 1.65; }

.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { min-height: 246px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.module-index { display: inline-block; margin-bottom: 48px; color: var(--brand-700); font-size: 13px; font-weight: 800; }
.module-card h3 { margin-bottom: 10px; font-size: 23px; }
.module-card p { margin-bottom: 0; color: var(--ink-650); font-size: 15px; line-height: 1.65; }

.shared-capabilities { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--line); }
.shared-capabilities h2 { margin-bottom: 0; font-size: 25px; }
.shared-capabilities ul { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none; }
.shared-capabilities li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-800); font-size: 14px; font-weight: 600; }

.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 20%); }
.steps-list > li > span { color: #9fbaff; font-size: 14px; font-weight: 800; }
.steps-list h3 { margin-bottom: 9px; color: #fff; font-size: 18px; }
.steps-list p { margin-bottom: 0; color: #c4cfdf; font-size: 15px; line-height: 1.65; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan-card.featured { border-color: #9eb9ff; background: var(--surface-blue); }
.plan-card h3 { margin-bottom: 12px; font-size: 20px; }
.plan-card p { min-height: 48px; margin-bottom: 26px; color: var(--ink-650); font-size: 14px; line-height: 1.55; }
.plan-card strong { color: var(--ink-950); font-size: 31px; letter-spacing: -.04em; }
.plan-card strong span { margin-left: 4px; color: var(--ink-500); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.section-action { display: flex; justify-content: center; margin-top: 32px; }

.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 20px 30px 20px 0; color: var(--ink-800); font-size: 16px; font-weight: 700; cursor: pointer; }
details p { max-width: 620px; margin: -4px 0 20px; color: var(--ink-650); font-size: 15px; line-height: 1.65; }

.privacy-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 80px; align-items: start; }
.privacy-layout h2 { margin-bottom: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; }
.privacy-layout > p { margin: 31px 0 0; color: var(--ink-650); font-size: 17px; line-height: 1.7; }

.signup-section { padding: clamp(72px, 10vw, 120px) 0; background: var(--surface-blue); }
.signup-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 72px; align-items: start; }
.signup-copy { padding-top: 22px; }
.signup-copy h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.signup-copy > p:last-child { max-width: 430px; margin-bottom: 0; color: var(--ink-650); font-size: 17px; line-height: 1.7; }
.signup-copy .signup-privacy { margin-top: 16px; color: var(--ink-500); font-size: 14px; line-height: 1.6; }
.signup-form { padding: 30px; border: 1px solid #c9d8f5; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form-heading { display: grid; gap: 5px; margin-bottom: 24px; }
.form-heading strong { color: var(--ink-950); font-size: 19px; }
.form-heading span { color: var(--ink-650); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.form-grid label, .check-row { display: grid; gap: 7px; color: var(--ink-800); font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #bfcadd; border-radius: var(--radius-sm); background: #fff; color: var(--ink-950); font-size: 14px; }
input::placeholder { color: #8492a7; }
input:focus, select:focus { border-color: var(--brand-600); outline: 0; box-shadow: 0 0 0 3px rgb(50 102 223 / 14%); }
.check-row { grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 18px; color: var(--ink-650); font-size: 12.5px; font-weight: 500; line-height: 1.55; }
.check-row input { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--brand-600); }
.inline-link, .footer-link { display: inline; padding: 0; border: 0; background: none; color: var(--brand-700); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.form-submit { width: 100%; margin-top: 22px; }
.form-status { min-height: 22px; margin: 13px 0 0; color: var(--ink-650); font-size: 13px; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }
.noscript-message { margin: 0 0 18px; padding: 12px; border: 1px solid #e2c28f; border-radius: var(--radius-sm); background: #fff8e8; color: #6c4a06; font-size: 13px; line-height: 1.5; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer-inner p { margin: 0 auto 0 0; color: var(--ink-650); font-size: 14px; }
.footer-inner .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 13px; }

.terms-dialog { width: min(620px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 70px rgb(21 34 56 / 25%); padding: 0; }
.terms-dialog::backdrop { background: rgb(21 34 56 / 48%); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 19px; }
.dialog-header button { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink-800); cursor: pointer; }
.dialog-content { padding: 24px; color: var(--ink-650); font-size: 15px; line-height: 1.7; }
.dialog-content p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .header-inner { gap: 18px; }
  .site-nav { gap: 17px; }
  .hero-grid, .signup-layout, .faq-layout, .privacy-layout { grid-template-columns: 1fr; }
  .hero-context { max-width: 620px; }
  .signup-copy { padding-top: 0; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }
  .header-inner { min-height: 64px; justify-content: space-between; }
  .header-action { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink-800); font-size: 13px; font-weight: 700; cursor: pointer; }
  .menu-lines { display: grid; gap: 4px; width: 15px; }
  .menu-lines i { display: block; height: 1.5px; background: currentColor; }
  .site-nav { display: grid; position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
  .site-nav a { padding: 12px; border-radius: var(--radius-sm); }
  .site-nav a:hover { background: var(--surface-muted); }
  .site-nav .nav-primary { display: inline-flex; justify-content: center; margin-top: 6px; background: var(--brand-600); color: #fff; }
  .js-enabled .site-nav { display: none; }
  .js-enabled .site-nav[data-open="true"] { display: grid; }
  .hero-section { padding-top: 68px; }
  h1 { font-size: clamp(35px, 11vw, 47px); }
  .hero-lead { font-size: 17px; }
  .hero-context { padding-left: 20px; }
  .section-heading, .section-heading.split-heading { display: block; margin-bottom: 34px; }
  .split-heading > p { margin-bottom: 0; }
  .problem-grid, .modules-grid, .plan-grid, .steps-list { grid-template-columns: 1fr; }
  .problem-grid article, .problem-grid article + article { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .problem-grid article:last-child { border-bottom: 0; }
  .module-card { min-height: auto; }
  .module-index { margin-bottom: 32px; }
  .shared-capabilities { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
  .plan-card { min-height: 0; }
  .plan-card p { min-height: 0; }
  .faq-layout { gap: 0; }
  .privacy-layout { gap: 0; }
  .privacy-layout > p { margin-top: 0; }
  .signup-form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .footer-inner p { width: 100%; order: 3; }
}

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