:root {
  --night: #0A1A2E;
  --deep: #0F2440;
  --panel: #13294A;
  --blue: #1F5FA6;
  --blue-dark: #154A85;
  --orange: #F0932F;
  --ivory: #EEF2F7;
  --muted: #A3B2C7;
  --line: rgba(238, 242, 247, 0.14);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); }
h3 {
  font-family: var(--text);
  font-size: 1.125rem; font-weight: 600; line-height: 1.35;
}

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--ivory); text-decoration-color: var(--orange); text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--night); padding: 10px 16px;
}
.skip:focus { left: 0; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}
.site-header.scrolled, .no-js .site-header {
  background: rgba(10, 26, 46, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 32px; padding-block: 18px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ivory); text-decoration: none; margin-right: auto;
}
.brand img { width: 38px; height: 44px; display: block; }
.brand span {
  font-family: var(--display); font-weight: 600;
  font-size: 1.125rem; line-height: 1.1; letter-spacing: 0.01em;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-size: 0.9375rem; color: var(--muted); text-decoration: none;
  padding-block: 6px; display: inline-block;
}
.site-nav a { position: relative; transition: color 200ms ease; }
.nav-contact { display: none; }
@media (max-width: 1100px) {
  .site-nav ~ .btn { display: none; }
  .nav-contact { display: list-item; }
  .site-nav ul { gap: 4px 22px; }
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms ease;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a.active { color: var(--ivory); }
.site-nav a.active::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 15px 26px; border: 1px solid var(--orange); border-radius: 2px;
  background: var(--orange); color: var(--night); text-decoration: none;
}
.btn { transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.btn:hover { background: #F7AA55; border-color: #F7AA55; color: var(--night); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(240, 147, 47, 0.7); }
.btn-plain { background: transparent; color: var(--ivory); border-color: rgba(238, 242, 247, 0.4); }
.btn-plain:hover { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.btn-small { padding: 10px 18px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 78% 55%, rgba(31, 95, 166, 0.28), transparent 70%),
    var(--night);
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px; align-items: center;
  padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 120px);
}
.kicker { color: var(--orange); font-size: 0.9375rem; font-weight: 500; margin-bottom: 20px; }
.hero-lede { color: var(--muted); font-size: 1.1875rem; line-height: 1.6; margin-top: 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { justify-self: center; width: 100%; max-width: 480px; perspective: 900px; }
.stack {
  --mx: 0; --my: 0;
  display: block; width: 100%; height: auto; overflow: visible;
  transform: rotateY(calc(var(--mx) * 10deg)) rotateX(calc(var(--my) * -8deg));
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}
.stack .cube {
  translate: calc(var(--mx) * var(--k) * 9px) calc(var(--my) * var(--k) * 6px);
  transition: translate 500ms cubic-bezier(.2, .7, .2, 1);
}
.stack .t { fill: var(--orange); }
.stack .l { fill: var(--blue); }
.stack .r { fill: var(--blue-dark); }
.stack .cube polygon { stroke: var(--night); stroke-width: 3; stroke-linejoin: round; }
.stack .ghost polygon {
  fill: transparent; stroke: rgba(163, 178, 199, 0.32); stroke-width: 1.25; stroke-dasharray: 4 5;
  transition: fill 500ms ease, stroke 500ms ease;
}
.stack .ghost.filled polygon { stroke: var(--night); stroke-width: 3; stroke-dasharray: none; }
.stack .ghost.filled .t { fill: var(--orange); }
.stack .ghost.filled .l { fill: var(--blue); }
.stack .ghost.filled .r { fill: var(--blue-dark); }

@media (prefers-reduced-motion: no-preference) {
  .stack .cube:not(.ghost) {
    opacity: 0;
    animation: drop 640ms cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: var(--d);
  }
  .stack .ghost.filled { animation: drop 520ms cubic-bezier(.2, .7, .2, 1); }
  @keyframes drop {
    from { opacity: 0; transform: translateY(-28px); }
    to { opacity: 1; transform: none; }
  }
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 50ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Account reference band */
.creds { background: var(--deep); border-block: 1px solid var(--line); }
.creds .wrap {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px 64px; padding-block: 48px;
}
.creds h2 { font-size: 1.75rem; }
.creds-head p { color: var(--muted); font-size: 0.9375rem; margin-top: 10px; }
.creds-grid {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
.creds-grid > div { border-top: 1px solid var(--orange); padding-top: 12px; }
.creds-grid .wide { grid-column: span 2; }
.creds-grid dt { color: var(--muted); font-size: 0.875rem; margin-bottom: 2px; }
.creds-grid dd { margin: 0; font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--deep); }
.section .wrap {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 64px; padding-block: clamp(56px, 7vw, 104px);
}
.section-body { color: var(--muted); }
.section-body strong, .section-body dt, .section-body h3, .section-body summary { color: var(--ivory); }

.kinds { margin: 0 0 32px; }
.kinds .kind { padding-block: 22px; border-top: 1px solid var(--line); }
.kinds .kind:first-child { border-top: 0; padding-top: 0; }
.kinds dt { font-weight: 600; font-size: 1.125rem; margin-bottom: 4px; }
.kinds dd { margin: 0; max-width: var(--measure); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; position: relative; --p: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 7px; top: 36px; bottom: 40px; width: 2px;
}
.steps::before { background: var(--line); }
.steps::after {
  background: var(--orange); transform-origin: top; transform: scaleY(var(--p));
  box-shadow: 0 0 12px rgba(240, 147, 47, 0.6);
}
.no-js .steps::after { transform: none; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0 16px;
  padding-block: 24px;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 500; font-size: 3rem; line-height: 0.9;
  color: rgba(163, 178, 199, 0.45); padding-left: 36px;
  transition: color 400ms ease;
}
.steps li::after {
  content: ""; position: absolute; left: 0; top: 29px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--night); border: 2px solid rgba(163, 178, 199, 0.5); z-index: 1;
  transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}
.steps li.reached::before, .no-js .steps li::before { color: var(--orange); }
.steps li.reached::after, .no-js .steps li::after {
  background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(240, 147, 47, 0.18);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .steps::after { transform: none; }
  .steps li::before { color: var(--orange); }
  .steps li::after { background: var(--orange); border-color: var(--orange); }
}

/* Price policy */
.section.band { background: var(--panel); }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.band li {
  transition: transform 300ms ease, border-color 300ms ease, opacity 700ms ease;
  background: var(--night); border: 1px solid var(--line); border-top: 2px solid var(--orange);
  padding: 22px 24px; border-radius: 2px;
}
.band li:hover { border-color: rgba(240, 147, 47, 0.6); }
.band li strong { font-family: var(--display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; display: block; margin-bottom: 10px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); max-width: var(--measure); }
.faq details:first-child { border-top: 0; }
.faq summary {
  cursor: pointer; padding-block: 18px; list-style: none;
  font-weight: 600; font-size: 1.125rem; line-height: 1.35;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details:first-child summary { padding-top: 0; }
.faq details p { padding-bottom: 22px; margin: 0; }
.faq summary::after { transition: transform 300ms ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: open 350ms ease; }
  @keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* Contact form */
.contact-intro p { color: var(--muted); margin-top: 16px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ivory); margin-bottom: 6px; }
.form label small { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ivory);
  background: var(--night); border: 1px solid rgba(238, 242, 247, 0.28); border-radius: 2px; padding: 12px 14px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--orange); }
.form select option { background: var(--night); }
.form textarea { min-height: 9em; resize: vertical; }
.form [aria-invalid="true"] { border-color: #F2766B; }
.form-note { font-size: 0.9375rem; color: var(--muted); }
.form-status { font-weight: 600; font-size: 1rem; min-height: 1.5em; margin: 0; max-width: none; color: var(--ivory); }
.form-status.error { color: #F2766B; }
.hp { position: absolute; left: -9999px; }
.form-done {
  max-width: 760px; padding: 32px 32px 28px;
  background: var(--night); border: 1px solid var(--line); border-top: 2px solid var(--orange); border-radius: 2px;
}
.form-done:focus { outline: none; }
.form-done h3 { font-family: var(--display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; margin-bottom: 10px; }
.form-done p { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) { animation: open 450ms ease; }
}

/* Footer */
.site-footer { background: #071322; color: var(--muted); font-size: 0.9375rem; border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px;
  padding-block: 44px;
}
.site-footer p { margin: 0; }
.site-footer strong { font-family: var(--display); font-weight: 600; font-size: 1.125rem; color: var(--ivory); }
.site-footer a { color: var(--ivory); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* Legal pages */
.legal .wrap { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px); max-width: 820px; color: var(--muted); }
.legal h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin-bottom: 8px; color: var(--ivory); }
.legal h2 { font-size: 1.625rem; margin: 2em 0 0.5em; color: var(--ivory); }
.legal .dated { font-size: 0.9375rem; }
.legal ul { max-width: var(--measure); padding-left: 1.2em; }

@media (max-width: 960px) {
  .creds .wrap { grid-template-columns: minmax(0, 1fr); }
  .creds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap, .section .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 300px; order: -1; justify-self: start; }
  .section .wrap { gap: 20px; }
  .site-nav { order: 3; width: 100%; }
  .band ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 120px; }
}

/* Mobile menu */
.menu-toggle { display: none; }
@media (max-width: 720px) {
  html.js { scroll-padding-top: 88px; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--ivory); cursor: pointer;
    border: 1px solid rgba(238, 242, 247, 0.3); border-radius: 2px;
    padding: 10px 14px; font: inherit; font-size: 0.9375rem; font-weight: 600;
  }
  .bars { display: inline-grid; gap: 4px; width: 18px; }
  .bars span { display: block; height: 2px; background: var(--orange); border-radius: 1px; transition: transform 250ms ease, opacity 250ms ease; }
  .menu-open .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .bars span:nth-child(2) { opacity: 0; }
  .menu-open .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav { display: none; }
  .js .menu-open .site-nav { display: block; }
  .site-header.menu-open {
    background: rgba(10, 26, 46, 0.96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }
  .js .site-nav ul { flex-direction: column; gap: 0; padding-block: 4px 12px; }
  .js .site-nav li { border-top: 1px solid var(--line); }
  .js .site-nav a { display: block; padding-block: 14px; font-size: 1.0625rem; color: var(--ivory); }
  .js .site-nav a::after { display: none; }
  .js .site-nav a.active { color: var(--orange); }
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .steps li::before { font-size: 2.25rem; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .creds-grid { grid-template-columns: minmax(0, 1fr); }
  .creds-grid .wide { grid-column: auto; }
  .hero-art { max-width: 220px; }
  .brand span { font-size: 1rem; }
  .site-nav ~ .btn { display: none; }
}
