:root {
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: rgba(148, 163, 184, 0.24);
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-pale: #eff6ff;
  --green: #10b981;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 26px 70px -36px rgba(15, 23, 42, 0.34), inset 0 1px 0 rgba(255,255,255,.95);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 7%, rgba(96, 165, 250, .17), transparent 31rem),
    radial-gradient(circle at 91% 32%, rgba(147, 197, 253, .2), transparent 27rem),
    linear-gradient(145deg, #f8fbff 0%, #f4f7fb 48%, #eef5ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(59,130,246,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.commerce-shell { position: relative; width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.commerce-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid white;
  border-radius: 16px;
  color: var(--blue-deep);
  background: linear-gradient(#fff, #f8fafc);
  box-shadow: 0 7px 20px rgba(15,23,42,.09), inset 0 1px 0 white;
  font: 600 14px "JetBrains Mono", monospace;
}
.brand-copy strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.nav-link { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.nav-link:hover { color: var(--blue-deep); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.surface {
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  gap: 22px;
  align-items: start;
  padding: 14px 0 60px;
}

.checkout-main { padding: clamp(26px, 4vw, 48px); }
.checkout-main h1, .page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 450;
}
.lede { max-width: 670px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.secure-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 30px; }
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  background: rgba(248,250,252,.72);
  color: var(--muted);
  font-size: 11px;
}
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.1); }

.form-section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.section-head span { color: var(--muted-light); font-size: 11px; }

.wallet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: linear-gradient(#fff, #f8fafc);
  color: var(--ink-soft);
  box-shadow: 0 3px 10px rgba(15,23,42,.04), inset 0 1px 0 white;
  font-size: 13px;
  font-weight: 550;
}
.wallet-button:focus-visible, .primary-button:focus-visible, .soft-button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(59,130,246,.2); outline-offset: 2px; }
.wallet-note { margin: 10px 0 0; color: var(--muted-light); font-size: 10px; line-height: 1.5; }

.or-rule { display: flex; align-items: center; gap: 12px; margin: 23px 0; color: var(--muted-light); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 550; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid #dbe3ed;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.025);
}
.field textarea { min-height: 150px; padding-block: 13px; resize: vertical; line-height: 1.55; }
.field input::placeholder { color: #b0bccb; }
.field textarea::placeholder { color: #b0bccb; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #93b9f5; }
.field-hint { margin: 0; color: var(--muted-light); font-size: 10px; line-height: 1.45; }

.square-handoff {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(147,197,253,.34);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(239,246,255,.82), rgba(255,255,255,.8));
}
.handoff-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(59,130,246,.26);
  border-radius: 11px;
  color: var(--blue-deep);
  background: white;
  box-shadow: 0 5px 14px rgba(59,130,246,.1);
  font-weight: 700;
}
.square-handoff strong { display: block; margin-top: 1px; font-size: 13px; }
.square-handoff p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.handoff-list { display: grid; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.handoff-list span { display: flex; align-items: center; gap: 10px; }
.handoff-list b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--blue-deep); background: var(--blue-pale); font: 600 9px "JetBrains Mono", monospace; }

.card-field { position: relative; }
.card-field input { padding-right: 64px; }
.card-badge { position: absolute; right: 12px; bottom: 13px; color: var(--muted-light); font: 600 10px "JetBrains Mono", monospace; }

.summary-card { position: sticky; top: 22px; padding: 28px; overflow: hidden; }
.summary-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.23), transparent 68%);
  pointer-events: none;
}
.summary-card h2 { position: relative; margin: 0; font-size: 20px; font-weight: 550; letter-spacing: -.035em; }
.summary-copy { position: relative; margin: 8px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.plan-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(241,245,249,.72); }
.plan-option { min-height: 38px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.plan-option.is-active { color: var(--blue-deep); background: white; box-shadow: 0 3px 11px rgba(15,23,42,.08); font-weight: 600; }

.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 11px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(241,245,249,.72); }
.segment button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.segment button.is-active { color: var(--ink); background: white; box-shadow: 0 3px 11px rgba(15,23,42,.08); font-weight: 600; }

.plan-detail { margin: 22px 0 0; padding: 18px; border: 1px solid rgba(147,197,253,.28); border-radius: 18px; background: linear-gradient(145deg, rgba(239,246,255,.8), rgba(255,255,255,.78)); }
.plan-line, .total-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-line strong { display: block; font-size: 14px; }
.plan-line small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.plan-price { white-space: nowrap; font-size: 15px; font-weight: 600; }
.plan-benefits { display: grid; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(148,163,184,.19); color: var(--muted); font-size: 10px; }
.plan-benefits span::before { content: "✓"; margin-right: 8px; color: var(--blue); font-weight: 700; }

.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; }
.code-row input { min-width: 0; min-height: 43px; padding: 0 12px; border: 1px solid #dbe3ed; border-radius: 12px; background: rgba(255,255,255,.86); }
.soft-button { padding: 0 14px; border: 1px solid #dbe3ed; border-radius: 12px; color: var(--ink-soft); background: white; cursor: pointer; font-size: 11px; font-weight: 550; }
.code-status { min-height: 16px; margin: 7px 0 0; color: var(--blue-deep); font-size: 10px; }

.total-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.total-line span { color: var(--muted); font-size: 12px; }
.total-line strong { font-size: 18px; letter-spacing: -.03em; }
.charge-note { margin: 8px 0 0; color: var(--muted-light); font-size: 10px; line-height: 1.5; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid #1d4ed8;
  border-radius: 14px;
  color: white;
  background: linear-gradient(#4f94f8, #2563eb);
  box-shadow: 0 10px 24px rgba(37,99,235,.24), inset 0 1px 0 rgba(255,255,255,.35);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, filter .2s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.activation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.activation-actions .primary-button { margin-top: 0; }
.activation-actions .soft-button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding-inline: 20px; }
.fine-print { margin: 12px 4px 0; color: var(--muted-light); font-size: 9px; line-height: 1.55; text-align: center; }
.prototype-note { margin: 14px 0 0; padding: 11px 12px; border: 1px dashed rgba(59,130,246,.3); border-radius: 11px; color: #537098; background: rgba(239,246,255,.55); font-size: 9px; line-height: 1.5; }

.commerce-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 34px; color: var(--muted-light); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 16px; }
.footer-links a:hover { color: var(--blue-deep); }

.page-main { padding: 26px 0 68px; }
.page-hero { padding: clamp(30px, 6vw, 72px); text-align: center; }
.page-hero h1 { margin-inline: auto; }
.page-hero .lede { margin-inline: auto; }
.page-card { padding: clamp(26px, 4vw, 46px); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; max-width: 1040px; margin: 22px auto 0; }
.legal-content { padding: clamp(28px, 5vw, 58px); }
.legal-content h1 { margin: 0; font-size: clamp(39px, 6vw, 66px); line-height: 1.02; letter-spacing: -.055em; font-weight: 450; }
.legal-content > .lede { max-width: 760px; }
.draft-notice { margin: 28px 0 10px; padding: 16px 18px; border: 1px solid rgba(245,158,11,.24); border-radius: 16px; color: #75531b; background: rgba(255,251,235,.78); font-size: 11px; line-height: 1.6; }
.draft-notice strong { display: block; margin-bottom: 3px; color: #92400e; font-size: 12px; }
.legal-section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.035em; font-weight: 600; }
.legal-section h3 { margin: 20px 0 8px; font-size: 14px; font-weight: 600; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.legal-section p { margin: 10px 0 0; }
.legal-section ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 20px; }
.placeholder { padding: 1px 5px; border-radius: 5px; color: #92400e; background: #fff7df; font-weight: 600; }
.side-nav { position: sticky; top: 22px; padding: 24px; }
.side-nav p { margin: 0 0 14px; color: var(--muted-light); font: 600 9px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.side-nav a { display: block; padding: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.side-nav a:hover { color: var(--blue-deep); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .65fr); gap: 22px; margin-top: 22px; align-items: start; }
.contact-form-card, .contact-aside { padding: clamp(25px, 4vw, 44px); }
.contact-form-card h2, .contact-aside h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; font-weight: 550; }
.contact-form { margin-top: 24px; }
.contact-form .primary-button { width: auto; min-width: 170px; }
.form-status { min-height: 20px; margin: 12px 0 0; color: var(--blue-deep); font-size: 11px; line-height: 1.5; }
.help-list { display: grid; gap: 12px; margin-top: 22px; }
.help-item { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(248,250,252,.62); }
.help-item strong { display: block; font-size: 12px; }
.help-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.refund-note { margin: 18px 2px 0; color: var(--muted-light); font-size: 10px; line-height: 1.55; }

.executive-page { display: grid; gap: 22px; }
.executive-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr); gap: clamp(30px, 6vw, 74px); align-items: center; padding: clamp(34px, 6vw, 74px); }
.executive-hero h1 { margin: 0; max-width: 720px; font-size: clamp(42px, 6.3vw, 78px); line-height: .98; letter-spacing: -.06em; font-weight: 450; }
.executive-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.executive-hero-actions .primary-button, .executive-hero-actions .soft-button { width: auto; min-width: 150px; min-height: 49px; margin: 0; }
.executive-hero-actions .soft-button { display: inline-flex; align-items: center; justify-content: center; }
.function-map { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; min-height: 350px; padding: 40px 24px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.96) 0 26%, rgba(219,234,254,.72) 27% 48%, rgba(239,246,255,.65) 49% 100%); box-shadow: 0 28px 70px -42px rgba(37,99,235,.5), inset 0 1px 0 white; }
.function-map > span { align-self: center; justify-self: center; min-width: 90px; padding: 9px 12px; border: 1px solid rgba(147,197,253,.45); border-radius: 999px; color: #49709f; background: rgba(255,255,255,.75); text-align: center; font-size: 10px; }
.function-map-center { position: absolute; inset: 50% auto auto 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 126px; height: 126px; transform: translate(-50%,-50%); border-radius: 50%; color: white; background: linear-gradient(#5598f8,#2563eb); box-shadow: 0 15px 35px rgba(37,99,235,.27), inset 0 1px 0 rgba(255,255,255,.4); }
.function-map-center strong { font-size: 14px; font-weight: 550; }
.function-map-center small { color: #dbeafe; font-size: 10px; }
.executive-section { padding: clamp(42px, 7vw, 82px) clamp(4px, 2vw, 20px); }
.executive-section-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.executive-section-heading.compact { margin-bottom: 26px; }
.executive-section-heading h2, .education-cta h2 { margin: 0; font-size: clamp(32px, 4.8vw, 58px); line-height: 1.03; letter-spacing: -.052em; font-weight: 450; }
.executive-section-heading > p:last-child { max-width: 670px; margin: 16px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.executive-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.executive-card { min-height: 190px; padding: 25px; }
.executive-card-index { color: var(--blue-deep); font: 600 9px "JetBrains Mono", monospace; letter-spacing: .08em; }
.executive-card h3, .evaluation-card h3, .overlap-column h3 { margin: 22px 0 0; font-size: 18px; letter-spacing: -.03em; font-weight: 550; }
.executive-card p, .evaluation-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.overlap-section { padding: clamp(34px, 6vw, 68px); overflow: hidden; }
.overlap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.overlap-column { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(248,250,252,.72); }
.overlap-column.overlap-center { color: white; border-color: #2563eb; background: linear-gradient(145deg,#3b82f6,#1d4ed8); box-shadow: 0 20px 46px -27px rgba(37,99,235,.65), inset 0 1px 0 rgba(255,255,255,.3); }
.overlap-label { color: var(--blue-deep); font: 600 9px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.overlap-center .overlap-label { color: #dbeafe; }
.overlap-column h3 { margin-top: 12px; }
.overlap-column ul { display: grid; gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 10px; line-height: 1.5; }
.overlap-column li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #60a5fa; }
.overlap-center ul { color: #dbeafe; }
.overlap-center li::before { background: #a7f3d0; }
.overlap-note { max-width: 800px; margin: 22px auto 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: center; }
.evaluation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.evaluation-card { padding: 27px; }
.evaluation-card > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; color: var(--blue-deep); background: var(--blue-pale); font: 600 10px "JetBrains Mono", monospace; }
.evaluation-card h3 { margin-top: 18px; }
.education-cta { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 34px; align-items: center; padding: clamp(34px, 6vw, 64px); border-radius: 30px; color: white; background: linear-gradient(145deg,#172033,#0f172a); box-shadow: 0 28px 70px -38px rgba(15,23,42,.62), inset 0 1px 0 rgba(255,255,255,.1); }
.education-cta .eyebrow { color: #60a5fa; }
.education-cta h2 { max-width: 820px; font-size: clamp(30px, 4.2vw, 52px); }
.education-cta p:not(.eyebrow) { max-width: 760px; margin: 16px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.7; }
.education-cta-actions { display: grid; justify-items: stretch; gap: 12px; min-width: 210px; }
.education-cta-actions .primary-button { margin: 0; }
.education-source-link { color: #93c5fd; font-size: 10px; text-align: center; }
.education-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 8px 12px 28px; color: var(--muted-light); font-size: 9px; }
.education-sources p { margin: 0; }
.education-sources a { color: var(--blue-deep); }

.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 190px); padding: 16px 0 54px; }
.auth-card { width: min(100%, 470px); padding: clamp(28px, 5vw, 48px); text-align: center; }
.auth-card h1 { margin: 0; font-size: clamp(38px, 7vw, 54px); line-height: 1.02; letter-spacing: -.055em; font-weight: 450; }
.auth-card .lede { margin-inline: auto; font-size: 13px; }
.auth-preview { margin: 20px 0; padding: 10px 12px; border: 1px dashed rgba(59,130,246,.3); border-radius: 11px; color: #537098; background: rgba(239,246,255,.55); font-size: 10px; line-height: 1.5; }
.auth-form { margin-top: 22px; text-align: left; }
.auth-form .primary-button { margin-top: 12px; }
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth-button { min-height: 48px; border: 1px solid #dbe3ed; border-radius: 13px; color: var(--ink-soft); background: rgba(255,255,255,.86); cursor: pointer; font-size: 11px; }
.oauth-button:hover { border-color: #bfd4f5; }
.auth-foot { margin: 20px 0 0; color: var(--muted-light); font-size: 10px; line-height: 1.55; }
.auth-foot a { color: var(--blue-deep); }

.activation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; max-width: 990px; margin: 14px auto 0; align-items: start; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 18px; color: var(--blue-deep); background: var(--blue-pale); box-shadow: inset 0 1px 0 white; font-size: 25px; }
.activation-card h1 { margin: 0; max-width: 600px; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.05em; font-weight: 450; }
.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 510px; margin-top: 24px; }
.code-inputs input { width: 100%; min-width: 0; aspect-ratio: 1; border: 1px solid #dbe3ed; border-radius: 13px; background: white; text-align: center; font-size: 22px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline-action { border: 0; padding: 0; background: none; color: var(--blue-deep); cursor: pointer; font-size: 11px; }
.status-panel { padding: 25px; }
.status-list { display: grid; gap: 16px; margin-top: 22px; }
.status-item { display: flex; gap: 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.status-number { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 9px; color: var(--blue-deep); background: var(--blue-pale); font: 600 10px "JetBrains Mono", monospace; }
.status-item.is-done .status-number { color: #047857; background: #ecfdf5; }

.referral-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; margin-top: 22px; }
.generator-card, .estimator-card { padding: clamp(26px, 4vw, 42px); }
.generator-card h2, .estimator-card h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; font-weight: 550; }
.referral-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 20px; }
.referral-link-output { min-width: 0; overflow: hidden; padding: 14px; border: 1px solid #dbe3ed; border-radius: 13px; color: var(--ink-soft); background: white; font: 500 11px "JetBrains Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.draft-box { margin-top: 22px; padding: 18px; border-radius: 17px; color: #cbd5e1; background: #142033; box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
.draft-label { color: #60a5fa; font: 600 9px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.draft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 16px; }
.draft-grid strong { display: block; color: white; font-size: 16px; font-weight: 500; }
.draft-grid span { display: block; margin-top: 3px; color: #94a3b8; font-size: 9px; }

.commission-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 24px; }
.rate-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(248,250,252,.76);
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rate-tier span { font-size: 9px; white-space: nowrap; }
.rate-tier strong { color: var(--ink-soft); font-size: 11px; }
.rate-tier.is-active { border-color: rgba(59,130,246,.42); color: var(--blue-deep); background: var(--blue-pale); box-shadow: inset 0 1px 0 white; }
.rate-tier.is-active strong { color: var(--blue-deep); }
.tier-caption { display: flex; justify-content: space-between; gap: 20px; margin: 8px 2px 0; color: var(--muted-light); font-size: 8px; }

.slider-field { margin-top: 22px; }
.slider-label { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.slider-label label { color: var(--ink-soft); font-size: 11px; }
.slider-label output { color: var(--blue-deep); font-size: 13px; font-weight: 650; }
input[type="range"] { width: 100%; margin: 12px 0 0; accent-color: var(--blue); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 26px; }
.result-card { padding: 16px; border: 1px solid rgba(148,163,184,.2); border-radius: 16px; background: rgba(248,250,252,.78); }
.result-card span { display: block; min-height: 28px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.result-card strong { display: block; margin-top: 9px; font-size: 21px; letter-spacing: -.04em; }
.disclaimer { margin: 16px 0 0; color: var(--muted-light); font-size: 9px; line-height: 1.55; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; color: white; background: #172033; box-shadow: 0 12px 30px rgba(15,23,42,.25); opacity: 0; pointer-events: none; font-size: 11px; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .checkout-layout, .activation-layout, .referral-grid, .content-layout, .contact-layout, .executive-hero, .education-cta { grid-template-columns: 1fr; }
  .summary-card { position: relative; top: auto; }
  .side-nav { position: relative; top: auto; }
  .activation-layout { max-width: 740px; }
  .function-map { width: min(100%, 430px); margin-inline: auto; }
  .executive-card-grid { grid-template-columns: repeat(2, 1fr); }
  .education-cta-actions { justify-self: start; }
}

@media (max-width: 640px) {
  .commerce-shell { width: min(100% - 28px, 1240px); }
  .commerce-nav { min-height: 74px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 14px; }
  .brand-copy span { display: none; }
  .nav-link { font-size: 11px; }
  .nav-actions { gap: 10px; }
  .checkout-layout { padding-top: 8px; gap: 14px; }
  .surface { border-radius: 23px; }
  .checkout-main, .summary-card, .page-card, .generator-card, .estimator-card, .legal-content, .contact-form-card, .contact-aside, .auth-card { padding: 23px 19px; }
  .checkout-main h1, .page-hero h1 { font-size: 38px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .plan-select { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .plan-option { padding: 0 3px; font-size: 10px; }
  .code-inputs { gap: 5px; }
  .code-inputs input { border-radius: 10px; font-size: 18px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card span { min-height: 0; }
  .draft-grid { grid-template-columns: 1fr 1fr; }
  .commission-ladder { grid-template-columns: repeat(2, 1fr); }
  .commerce-footer { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .contact-form .primary-button { width: 100%; }
  .oauth-grid { grid-template-columns: 1fr; }
  .executive-hero { padding: 30px 22px; }
  .executive-hero h1 { font-size: 43px; }
  .executive-hero-actions { align-items: stretch; }
  .executive-hero-actions .primary-button, .executive-hero-actions .soft-button { width: 100%; }
  .function-map { width: 100%; min-height: 0; aspect-ratio: 1; padding: 44px 8px; }
  .function-map > span { min-width: 76px; padding-inline: 8px; font-size: 9px; }
  .function-map > span:nth-child(odd) { justify-self: start; }
  .function-map > span:nth-child(even) { justify-self: end; }
  .function-map-center { width: 108px; height: 108px; }
  .executive-card-grid, .overlap-grid, .evaluation-grid { grid-template-columns: 1fr; }
  .executive-card { min-height: 0; }
  .overlap-section, .education-cta { padding: 30px 20px; }
  .education-cta-actions { width: 100%; }
}

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