:root {
  --red: #d71920;
  --red-dark: #ad1016;
  --ink: #111113;
  --muted: #5d5d64;
  --line: #dedee2;
  --paper: #f6f5f2;
  --white: #fff;
  --shell: 72rem;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 9.5rem;
  height: auto;
}

.nav-menu summary {
  display: none;
  cursor: pointer;
  font-weight: 700;
}

.nav-menu-mobile { display: none; }

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu a[aria-current="page"] { color: var(--red); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(105deg, transparent 64%, rgba(215, 25, 32, 0.08) 64%),
    radial-gradient(circle at 82% 30%, rgba(215, 25, 32, 0.13), transparent 25rem),
    var(--paper);
}

.hero-grid {
  min-height: 42rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
  padding-block: 5.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; }

.hero-copy {
  max-width: 43rem;
  margin: 0;
  color: #3f3f45;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { color: var(--white); background: var(--red-dark); }
.button-secondary { border-color: var(--ink); }
.button-secondary:hover { color: var(--white); background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { color: var(--red); }

.hero-panel {
  padding: 2rem;
  border-top: 0.3rem solid var(--red);
  background: var(--ink);
  color: var(--white);
  box-shadow: 1.5rem 1.5rem 0 rgba(215, 25, 32, 0.12);
}

.hero-panel p { margin: 2.75rem 0 1.75rem; font-size: 1.15rem; }
.hero-panel a { color: var(--white); font-weight: 750; }

.status { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.status span { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.4rem; border-radius: 50%; background: var(--red); }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.6fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3rem;
}

.section-heading h2 { max-width: 17ch; margin-bottom: 0; }
.section-heading > p { margin: 0 0 0.5rem; color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 16rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card h3 { margin: 2.5rem 0 0.8rem; }
.service-card p { margin: 0; color: var(--muted); }
.service-number { color: var(--red); font-size: 0.75rem; font-weight: 800; }

.section-dark { color: var(--white); background: var(--ink); }
.section-dark .section-heading > p { color: #b6b6bc; }

.notice {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid var(--red);
  background: #242427;
  font-size: 0.9rem;
}

.notice span { color: #c9c9ce; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.plan-card {
  display: flex;
  min-height: 25rem;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid #3c3c41;
  background: #19191c;
}

.plan-type { color: #aaaab0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-card > p:not(.plan-type) { color: #bdbdc2; }
.plan-card dl { margin: auto 0 1.75rem; }
.plan-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid #35353a; }
.plan-card dt { color: #aaaab0; }
.plan-card dd { margin: 0; text-align: right; font-weight: 700; }
.plan-card a { color: var(--white); font-weight: 750; }

.trust { background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 9vw, 8rem); }
.trust h2 { max-width: 12ch; }
.trust-lead { margin-top: 0; font-size: 1.25rem; }
.check-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.check-list li { padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--line); position: relative; }
.check-list li::before { content: "+"; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.cta-section { padding-block: 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: clamp(2rem, 5vw, 4rem); color: var(--white); background: var(--red); }
.cta-box .eyebrow { color: var(--white); opacity: 0.8; }
.cta-box h2 { max-width: 19ch; margin-bottom: 0; }

.site-footer { margin-top: 6rem; padding-top: 4rem; color: #c5c5ca; background: #0b0b0c; }
.footer-grid { display: flex; justify-content: space-between; gap: 3rem; }
.brand-footer { color: var(--white); }
.footer-grid p { max-width: 25rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.footer-grid nav a { color: var(--white); }
.copyright { margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid #2b2b2e; }

.page { min-height: 55vh; padding-block: clamp(4rem, 8vw, 7rem); }
.page-header { max-width: 50rem; margin-bottom: 3.5rem; }
.page-header h1 { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-header > p:last-child { color: var(--muted); font-size: 1.2rem; }
.prose { max-width: 47rem; }

.comparison-scroll { max-width: 100%; overflow-x: auto; margin-block: 2rem; border: 1px solid var(--line); }
.comparison-table { width: 100%; min-width: 60rem; border-collapse: collapse; font-size: 0.9rem; }
.comparison-table caption { padding: 1rem; text-align: left; font-weight: 700; background: var(--paper); }
.comparison-table th, .comparison-table td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison-table thead { background: var(--ink); color: var(--white); }
.comparison-table tbody th { white-space: nowrap; }
.prose h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: #414147; }
.prose a { color: var(--red-dark); font-weight: 650; }
.prose hr { margin-block: 3rem; border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin: 2rem 0; padding: 0.5rem 1.25rem; border-left: 0.25rem solid var(--red); background: var(--paper); }

:focus-visible { outline: 0.2rem solid var(--red); outline-offset: 0.2rem; }

/* Server-rendered order, authentication and customer account pages. */
.customer-page h1 { max-width: 20ch; font-size: clamp(2.6rem, 6vw, 4.8rem); overflow-wrap: anywhere; }
.customer-page h2 { margin-top: 3rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.customer-page > .muted:first-child {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.customer-page > p { max-width: 47rem; }
.customer-page .muted { color: var(--muted); }
.customer-page .bank-instructions { white-space: pre-line; }
.customer-page .service-step { margin-bottom: 1.5rem; border-top: 3px solid var(--red); }
.customer-page .service-step h2 { margin-top: 0; }
.customer-page .portal-history { margin: 1.5rem 0; }
.customer-page summary { cursor: pointer; font-weight: 600; }
.customer-page .payment-report-step { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.customer-page form:not([action="/auth/logout"]) {
  max-width: 47rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 0.25rem solid var(--red);
  background: var(--paper);
}
.customer-page label { display: block; margin-top: 1.25rem; font-weight: 650; }
.customer-page input:not([type="hidden"]), .customer-page select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 0.4rem;
  padding: 0.8rem;
  border: 1px solid #85858d;
  border-radius: 0.2rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.customer-page button, .customer-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.customer-page button:hover, .customer-page .button:hover { background: var(--red-dark); }
.customer-page form[action="/auth/logout"] button { background: var(--white); color: var(--ink); border-color: var(--ink); }
.customer-page form[action="/auth/logout"] button:hover { background: var(--ink); color: var(--white); }
.customer-page .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.customer-page .card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); background: var(--paper); overflow-wrap: anywhere; }
.customer-page .error { padding: 1rem 1.25rem; border-left: 0.25rem solid var(--red); background: #fff0f0; color: var(--red-dark); }
.customer-page .honeypot { position: absolute; left: -9999px; }

/* Customer workspace: compact typography and persistent internal navigation. */
.customer-page:has(.account-layout) { padding-block: 2.5rem 4rem; max-width: 84rem; }
.account-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.account-sidebar { min-width: 0; position: sticky; top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fafaf9; }
.account-identity { display: flex; gap: .75rem; align-items: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.account-avatar { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--ink); color: white; font-weight: 750; }
.account-identity div { min-width: 0; }
.account-identity strong, .account-identity div > span { display: block; overflow-wrap: anywhere; }
.account-identity div > span { font-size: .8rem; color: var(--muted); }
.account-nav { display: grid; gap: .35rem; padding-block: 1.25rem; }
.account-nav a { display: flex; align-items: center; gap: .65rem; padding: .7rem .75rem; border-radius: .5rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.account-nav a > span { width: 1.1rem; text-align: center; color: var(--muted); }
.account-nav a:hover { background: #efeeeb; }
.account-nav a[aria-current="page"] { background: #fcebed; color: var(--red-dark); }
.account-nav a[aria-current="page"] > span { color: var(--red-dark); }
.account-nav small { margin-left: auto; min-width: 1.3rem; padding: .05rem .35rem; border-radius: .3rem; background: white; text-align: center; font-size: .7rem; }
.account-sidebar-bottom { border-top: 1px solid var(--line); padding-top: 1rem; }
.account-add { display: block; padding: .6rem .75rem; font-size: .85rem; font-weight: 650; text-decoration: none; }
.customer-page .account-sidebar form[action="/auth/logout"] button { width: 100%; margin-top: .65rem; padding: .55rem .75rem; border-color: var(--line); background: transparent; border-radius: .5rem; color: var(--muted); font-size: .8rem; }
.customer-page .account-sidebar form[action="/auth/logout"] button:hover { background: var(--ink); color: white; }
.account-content { min-width: 0; }
.customer-page .account-content h1 { max-width: none; margin: .35rem 0 .65rem; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.04em; }
.customer-page .account-content h2 { margin: 0 0 .75rem; font-size: 1.2rem; line-height: 1.4; letter-spacing: -.025em; }
.customer-page .account-content h3 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.account-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.customer-page .account-eyebrow { margin: 0 0 .4rem; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.account-text-link, .account-back { font-size: .8rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.25rem; }
.account-stats a { padding: 1.25rem; border: 1px solid var(--line); border-radius: .8rem; text-decoration: none; background: #fff; }
.account-stats a:hover { border-color: var(--red); }
.account-stats span, .account-stats small, .account-stats strong { display: block; }
.account-stats span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.account-stats strong { margin: .35rem 0; font-size: 2rem; line-height: 1.2; color: var(--ink); }
.account-stats small { font-size: .7rem; color: var(--muted); }
.account-section-heading { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; margin: 1.5rem 0 .75rem; }
.account-section-heading a { font-size: .8rem; white-space: nowrap; }
.account-service { margin-bottom: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .85rem; background: white; overflow-wrap: anywhere; }
.account-service-header { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.account-badge { display: inline-block; flex-shrink: 0; padding: .25rem .6rem; border-radius: 2rem; color: #4b515a; background: #f0f1f3; font-size: .7rem; font-weight: 650; white-space: nowrap; }
.account-badge--payment { color: #885517; background: #fff4dd; }
.account-badge--review, .account-badge--activation { color: #285889; background: #eaf2fb; }
.account-badge--active { color: #27654b; background: #e9f5ee; }
.account-next { padding: 1.1rem 1.25rem; border-left: 3px solid var(--red); border-radius: .25rem .5rem .5rem .25rem; background: #f8f7f5; }
.account-next > strong { font-size: .95rem; }
.account-next p { margin: .45rem 0 1rem; font-size: .85rem; color: var(--muted); max-width: 65ch; }
.customer-page .account-content .button, .customer-page .account-content button { padding: .65rem 1rem; border-radius: .45rem; font-size: .85rem; }
.account-service-details { margin-top: 1rem; font-size: .8rem; }
.account-service-details summary { color: var(--muted); }
.account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.account-facts dt { font-size: .7rem; color: var(--muted); }
.account-facts dd { margin: .2rem 0 0; font-weight: 600; }
.account-empty { padding: 1.75rem; margin-bottom: 1rem; border: 1px dashed var(--line); border-radius: .85rem; background: #fafaf9; font-size: .9rem; }
.account-empty p { color: var(--muted); }
.account-empty .account-badge { margin-bottom: 1rem; }
.account-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; }
.account-table { border-collapse: collapse; width: 100%; text-align: left; font-size: .8rem; }
.account-table th { padding: .85rem 1rem; background: #f7f7f5; color: var(--muted); font-size: .7rem; font-weight: 650; }
.account-table td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 7rem; }
.account-table td > span:not(.account-badge) { display: block; margin-top: .3rem; color: var(--muted); }
.account-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-support-grid p { font-size: .85rem; color: var(--muted); }
.account-support-grid a { font-size: .9rem; font-weight: 600; }
.customer-page .account-content > .card { border-radius: .85rem; background: white; }
.customer-page .account-content form:not([action="/auth/logout"]) { max-width: none; padding: 1.25rem; border: 1px solid var(--line); border-radius: .6rem; background: #fafaf9; }
.account-layout :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .account-sidebar { position: static; padding: .75rem; }
  .account-identity { display: none; }
  .account-nav { display: flex; overflow-x: auto; padding: 0 0 .5rem; gap: .25rem; }
  .account-nav a { white-space: nowrap; flex-shrink: 0; }
  .account-sidebar-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; gap: 1rem; }
  .customer-page .account-sidebar form[action="/auth/logout"] button { margin: 0; }
}
@media (max-width: 560px) {
  .customer-page:has(.account-layout) { padding-top: 1rem; }
  .account-heading { display: block; }
  .account-text-link { display: inline-block; margin-top: .75rem; }
  .account-stats { gap: .5rem; }
  .account-stats a { padding: .75rem; }
  .account-stats span { font-size: .7rem; }
  .account-stats small { display: none; }
  .account-service { padding: 1rem; }
  .account-service-header { flex-direction: column; gap: .5rem; }
  .account-section-heading { align-items: start; }
  .account-support-grid { grid-template-columns: 1fr; }
}

@media (min-width: 48.01rem) and (max-width: 64rem) {
  .header-inner { gap: 1rem; }
  .nav-menu ul { gap: 0.85rem; }
  .brand img { width: 8rem; }
}

@media (max-width: 48rem) {
  .header-inner { min-height: 4.25rem; }
  .nav-menu-desktop { display: none; }
  .nav-menu-mobile { position: relative; display: block; }
  .nav-menu summary { display: block; }
  .nav-menu[open] nav { position: absolute; top: 2.5rem; right: 0; width: min(18rem, calc(100vw - 2.5rem)); padding: 1rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12); }
  .nav-menu ul { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-menu a { display: block; padding: 0.7rem; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 3.5rem; padding-block: 4rem; }
  .hero-panel { box-shadow: 0.8rem 0.8rem 0 rgba(215, 25, 32, 0.12); }
  .section-heading, .trust-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .service-grid, .plan-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .notice { grid-template-columns: 1fr; gap: 0.25rem; }
  .cta-box, .footer-grid { align-items: flex-start; flex-direction: column; }
}

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