/*
 * ENAHUB public site. One stylesheet for the marketing pages, sign-up and sign-in.
 * The client zone and the back office have their own look (app.css) on purpose.
 *
 * Rules taken from the logo: Indigo fills whole sections, Sky is a fill and never
 * text on white, circles sit inside circles, and headings set a heavy weight
 * against a light one the way the logo sets "ena" against "HUB".
 */

/* ---------- 1. Tokens ---------- */
:root {
  --indigo: #2E3192;
  --indigo-deep: #24277A;
  --midnight: #15173D;
  --sky: #7FD3F1;
  --sky-tint: #E7F6FC;
  --mist: #F6F7FC;
  --line: #DCDFEE;
  --slate: #555A7D;
  --haze: #C9CDEA;
  --white: #FFFFFF;
  --problem-bg: #FDEBDD;
  --problem-text: #7A2E06;
  --problem-bar: #C2530F;
  --field-border: #7C81A8;

  --font-display: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(48px, 8vw, 96px);
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-pill: 999px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--midnight);
  background: var(--white);
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw + 1rem, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }

/* One heavy statement, one light follow-on, in the same line. */
.pair strong { font-weight: 900; }
.pair span { font-weight: 300; }
h1:not(.pair), h2:not(.pair) { font-weight: 900; }

a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--white); }
.on-dark .surface :focus-visible { outline-color: var(--indigo); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

.lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); line-height: 1.5; max-width: 40rem; }
.muted { color: var(--slate); }
.small { font-size: 15px; }
.on-dark .muted { color: var(--haze); }
.on-dark .surface .muted { color: var(--slate); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--midnight); color: var(--white); padding: 12px 20px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 12px; }

/* Things the business still has to decide. Kept visible on purpose. */
.todo {
  font-family: var(--font-text); font-weight: 500; font-size: 0.92em;
  background: var(--mist); color: var(--midnight);
  border: 1px dashed var(--field-border); border-radius: 6px; padding: 1px 6px;
}
.on-dark .todo { background: transparent; color: var(--white); border-color: var(--haze); }

/* ---------- 3. Buttons and tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.28em;
  min-height: 48px; padding: 10px 26px;
  font: 700 17px/1.2 var(--font-text); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--sky-tint); }
.btn-sky { background: var(--sky); color: var(--midnight); }
.btn-sky:hover { background: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--indigo); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.btn-block { width: 100%; }

.link-button {
  background: none; border: 0; padding: 0; min-height: 44px;
  font: inherit; color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; line-height: 1.5;
  background: var(--sky-tint); color: var(--midnight);
}
.tag-solid { background: var(--indigo); color: var(--white); }
.tag-outline { background: var(--white); color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.tag-problem { background: var(--problem-bg); color: var(--problem-text); }
.tag-problem::before {
  content: '!'; display: inline-grid; place-items: center; width: 16px; height: 16px;
  border-radius: 50%; background: var(--problem-text); color: var(--problem-bg); font-size: 12px; line-height: 1;
}
.tag-quiet { background: var(--mist); color: var(--slate); }

/* ---------- 4. Incident banner, header, footer ---------- */
.incident-banner { background: var(--problem-bg); color: var(--problem-text); font-size: 15px; font-weight: 500; }
.incident-banner .wrap { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; padding-block: 8px; }
.incident-banner a { color: var(--problem-text); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 56px; width: auto; }

/* The menu never hides behind an icon. On a phone it wraps onto more lines. */
.site-header nav { margin-left: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 500; color: var(--midnight); text-decoration: none;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--sky-tint); font-weight: 700; }
.nav a.nav-search { border-color: var(--indigo); color: var(--indigo); font-weight: 700; }
.nav a.nav-search:hover { background: var(--sky-tint); }
.nav a.nav-start { background: var(--indigo); color: var(--white); font-weight: 700; padding: 0 22px; }
.nav a.nav-start:hover { background: var(--indigo-deep); }
.nav a.nav-start[aria-current="page"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--indigo); }
.nav svg { flex: none; }

.site-footer { background: var(--midnight); color: var(--white); padding-block: clamp(40px, 6vw, 72px) 28px; }
.site-footer a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 40px; }
.footer-brand p { color: var(--haze); max-width: 22rem; }
.footer-heading { font: 700 1rem/1.3 var(--font-display); color: var(--white); margin-bottom: 6px; }
.footer-contact li { color: var(--haze); padding-block: 5px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(201, 205, 234, 0.3);
  color: var(--haze); font-size: 15px;
}
.footer-bottom p { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* The logo redrawn in type for dark backgrounds, until an SVG exists. */
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--white); margin-bottom: 14px; }
.wordmark b { font-weight: 900; }
.wordmark i { font-style: normal; font-weight: 300; }
.hub-mark {
  flex: none; width: 34px; height: 34px; margin: 9px; border-radius: 50%;
  background: var(--sky); border: 6px solid var(--white);
  box-shadow: 0 0 0 8px var(--indigo), 0 0 0 9px var(--haze);
}

.status-line {
  gap: 10px; padding: 0 16px 0 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 205, 234, 0.45); font-weight: 500;
}
.status-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); flex: none; }
.site-footer .status-line.is-problem { background: var(--problem-bg); color: var(--problem-text); border-color: var(--problem-bg); font-weight: 700; }
.status-line.is-problem .dot { background: var(--problem-bar); }

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-indigo { background: var(--indigo); color: var(--white); }
.section-midnight { background: var(--midnight); color: var(--white); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 48rem; }
.section-head p { margin-top: 14px; }

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.page-head .lead { margin-top: 20px; }

.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-top { align-items: start; }
}

/* ---------- 6. Home hero and closing band ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero > .wrap, .closing > .wrap { position: relative; }
.hero h1 { max-width: 14em; }
.hero .lead { margin-top: 20px; color: var(--white); }
.hero .domain-search { margin-top: 28px; }

/* Concentric circles from the logo, as a quiet background shape. */
.rings {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  border: 90px solid var(--indigo-deep); right: -220px; top: -180px; pointer-events: none;
}
.rings::after {
  content: ''; position: absolute; inset: 70px; border-radius: 50%; background: var(--indigo-deep);
}
.closing { position: relative; overflow: hidden; }
.closing .rings { right: auto; left: -260px; top: auto; bottom: -320px; }
.closing-inner { max-width: 44rem; margin-inline: auto; }
.closing h2 { margin-bottom: 24px; }
.closing-after { margin-top: 20px; }
.closing-after a { color: var(--white); font-weight: 700; }

/* Example of the client console, shown beside the hero. */
.console-card { background: var(--white); color: var(--midnight); border-radius: var(--radius-card); padding: 22px; }
.console-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; padding-bottom: 12px; }
.console-card-head b { font: 900 1.25rem/1.2 var(--font-display); }
.console-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.console-rows .what { flex: 0 0 6.5em; font-weight: 700; }
.console-rows .detail { flex: 1 1 10em; color: var(--slate); min-width: 0; }
.console-next { margin-top: 4px; padding: 12px 16px; background: var(--sky-tint); border-radius: 12px; }
.figure-note { margin-top: 12px; font-size: 15px; }

/* ---------- 7. What you get: a list of real things, not a card grid ---------- */
.offer-list { border-top: 2px solid var(--midnight); }
.offer-list a {
  display: grid; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line);
  color: var(--midnight); text-decoration: none;
}
.offer-list a:hover .offer-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.offer-name { font: 700 1.3rem/1.25 var(--font-display); }
.offer-thing { font: 300 clamp(1.3rem, 1.4vw + 1rem, 1.9rem)/1.2 var(--font-display); color: var(--indigo); }
.offer-text { color: var(--slate); }
@media (min-width: 900px) {
  .offer-list a { grid-template-columns: 13rem minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; }
}

/* ---------- 8. Steps, chat, invoice, quotes, questions ---------- */
.steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 18px; }
.steps > li + li { margin-top: 28px; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo); color: var(--white); font: 900 1.25rem/1 var(--font-display);
}
.on-dark .step-number { background: var(--sky); color: var(--midnight); }
.steps h3 { margin-top: 10px; }
.steps p { grid-column: 2; margin-top: 6px; }

.chat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; display: grid; gap: 10px; }
.chat p { max-width: 85%; padding: 10px 16px; border-radius: 18px; font-size: 16px; }
.chat .them { background: var(--mist); justify-self: start; border-bottom-left-radius: 4px; }
.chat .us { background: var(--indigo); color: var(--white); justify-self: end; border-bottom-right-radius: 4px; }

.invoice { background: var(--white); color: var(--midnight); border-radius: var(--radius-card); padding: 24px; border: 1px solid var(--line); }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-bottom: 14px; }
.invoice-head b { font-family: var(--font-display); font-weight: 900; }
.invoice li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.invoice li span:last-child { white-space: nowrap; font-weight: 500; }
.invoice .invoice-total { border-top: 2px solid var(--midnight); font-weight: 700; font-size: 1.1rem; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quotes blockquote { font: 300 clamp(1.25rem, 1vw + 1rem, 1.6rem)/1.35 var(--font-display); }
.quotes figcaption { margin-top: 14px; }

.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 32px 48px; }
.questions h3 { font-size: 1.15rem; }
.questions p { margin-top: 8px; color: var(--slate); }

.checks li { position: relative; padding-left: 30px; }
.checks li + li { margin-top: 12px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%;
  border: 4px solid var(--indigo); background: var(--white);
}
.on-dark .checks li::before { border-color: var(--sky); background: transparent; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h3 + p { margin-top: 8px; color: var(--slate); }

/* ---------- 9. Web address search ---------- */
.domain-search { background: var(--white); color: var(--midnight); border-radius: var(--radius-card); padding: clamp(16px, 3vw, 24px); max-width: 40rem; }
.domain-search-bordered { border: 2px solid var(--indigo); }
.search-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.search-modes button {
  flex: 1 1 auto; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 2px solid var(--indigo); background: var(--white); color: var(--indigo);
  font: 700 16px/1.2 var(--font-text); cursor: pointer;
}
.search-modes button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.domain-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-field { display: flex; flex-wrap: wrap; gap: 8px; }
.search-field input {
  flex: 1 1 12rem; min-width: 0; min-height: 52px; padding: 0 22px;
  border: 2px solid var(--field-border); border-radius: var(--radius-pill);
  font: 500 18px/1.2 var(--font-text); color: var(--midnight); background: var(--white);
}
.search-field input:focus { border-color: var(--indigo); }
.search-hint, .search-note { margin-top: 12px; font-size: 15px; color: var(--slate); }
.search-results:empty { display: none; }
.search-results { margin-top: 14px; }
.result-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 8px 8px 8px 16px; margin-top: 8px; min-height: 60px;
  background: var(--mist); border: 2px solid transparent; border-radius: 16px;
}
.result-list li.is-chosen { background: var(--sky-tint); border-color: var(--indigo); }
.result-name { flex: 1 1 11rem; min-width: 0; font: 300 1.2rem/1.25 var(--font-display); overflow-wrap: anywhere; }
.result-name b { font-weight: 900; }
.result-price { font-size: 15px; color: var(--slate); }
.result-list li.is-taken .result-name { color: var(--slate); text-decoration: line-through; text-decoration-thickness: 1px; }
.result-state { margin-left: auto; }
.result-label { margin-top: 18px; font-weight: 700; }
.search-chosen { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--midnight); color: var(--white); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.search-chosen div { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.search-chosen b { display: block; font: 900 1.25rem/1.25 var(--font-display); }
.search-chosen span { color: var(--haze); font-size: 15px; }
.search-chosen :focus-visible { outline-color: var(--white); }

/* ---------- 10. Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.table-scroll:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--mist); font-size: 15px; color: var(--slate); font-weight: 700; }
tbody th { font-family: var(--font-display); font-weight: 900; white-space: nowrap; }
td.price { white-space: nowrap; font-weight: 500; }
.table-note { margin-top: 14px; }

/* ---------- 11. Services page ---------- */
.service h2 span { color: var(--indigo); }
.service .lead { margin-top: 16px; }
.service .btn { margin-top: 24px; }

/* ---------- 12. Pricing ---------- */
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.bundle { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 24px 24px; }
.bundle h2 { font-size: 1.6rem; font-weight: 900; }
.bundle-for { margin-top: 8px; color: var(--slate); min-height: 3.1em; }
.bundle-price { margin-top: 18px; font: 900 2.8rem/1 var(--font-display); }
.bundle-price small { font: 400 1rem/1.3 var(--font-text); color: var(--slate); }
.bundle-setup { margin-top: 8px; font-weight: 500; }
.bundle .checks { margin-block: 22px 26px; }
.bundle .btn { margin-top: auto; }
.bundle-featured { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.bundle-featured .bundle-for, .bundle-featured .bundle-price small { color: var(--haze); }
.bundle-featured .checks li::before { border-color: var(--sky); background: transparent; }
.bundle-featured :focus-visible { outline-color: var(--white); }
.price-note { margin-top: 20px; }

/* ---------- 13. Forms ---------- */
.field + .field, p + .field, .field + .field-row, .field-row + .field, .field-row + .field-row, .card-placeholder + .field { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field-row .field + .field { margin-top: 0; }
.field label, .field legend, .group-label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--slate); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"], .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid var(--field-border); border-radius: var(--radius-field);
  font: 400 17px/1.4 var(--font-text); color: var(--midnight); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--indigo); }
.field [aria-invalid="true"] { border-color: var(--problem-bar); background: #FFFAF6; }
.field-help { margin-top: 6px; font-size: 15px; color: var(--slate); }
.field-error { margin-top: 6px; padding: 6px 12px; border-radius: 8px; background: var(--problem-bg); color: var(--problem-text); font-size: 15px; font-weight: 500; }

.choice, .field label.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; padding: 9px 0; font-weight: 400; cursor: pointer; }
.choice input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--indigo); }
.choice-row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }

.affix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.affix input { flex: 1 1 8rem; width: auto !important; }
.affix span { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(20px, 4vw, 32px); }
.confirmation { background: var(--sky-tint); border-radius: var(--radius-card); padding: clamp(20px, 4vw, 32px); }
.confirmation h2 { font-size: 1.6rem; }
.confirmation p { margin-top: 10px; }

.facts div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { flex: 0 0 7em; font-weight: 700; }
.facts dd { flex: 1 1 12em; }

/* ---------- 14. Sign-up ---------- */
.signup-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) {
  .signup-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .order { position: sticky; top: 16px; }
}
.part { padding-block: 28px; border-top: 1px solid var(--line); }
.part:first-of-type { border-top: 2px solid var(--midnight); }
.part h2 { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; }
.part h2 .step-number { width: 40px; height: 40px; font-size: 1.1rem; flex: none; }
.chosen-address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 18px; }
.chosen-address .address { font: 300 clamp(1.5rem, 3vw + 0.8rem, 2.2rem)/1.15 var(--font-display); color: var(--indigo); overflow-wrap: anywhere; min-width: 0; }
.chosen-address .address b { font-weight: 900; color: var(--midnight); }
.chosen-address a { display: inline-flex; align-items: center; min-height: 44px; }
.prompt { padding: 18px 20px; border-radius: 16px; background: var(--sky-tint); }
.prompt .btn { margin-top: 12px; }

.bundle-options { display: grid; gap: 12px; }
.bundle-option { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 14px; align-items: start; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--white); }
.bundle-option input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--indigo); grid-row: span 2; }
.bundle-option b { font: 700 1.15rem/1.3 var(--font-display); }
.bundle-option .cost { text-align: right; font-weight: 700; white-space: nowrap; }
.bundle-option .about, .bundle-option .setup { color: var(--slate); font-size: 15px; }
.bundle-option .setup { text-align: right; }
.bundle-option.is-selected { border-color: var(--indigo); background: var(--sky-tint); }
.bundle-option:focus-within { outline: 2px solid var(--indigo); outline-offset: 2px; }
@media (max-width: 480px) {
  .bundle-option { grid-template-columns: 24px minmax(0, 1fr); }
  .bundle-option input { grid-row: span 4; }
  .bundle-option > :not(input) { grid-column: 2; }
  .bundle-option .cost, .bundle-option .setup { text-align: left; }
}

.card-placeholder { padding: 22px 20px; border: 2px dashed var(--field-border); border-radius: 16px; background: var(--mist); }
.card-placeholder b { display: block; margin-bottom: 4px; }

.order { background: var(--mist); border-radius: var(--radius-card); padding: 24px; }
.order h2 { font-size: 1.1rem; font-weight: 700; color: var(--slate); }
.order-bundle { font: 900 1.6rem/1.2 var(--font-display); margin-top: 4px; }
.order-address { color: var(--indigo); font-weight: 500; overflow-wrap: anywhere; }
.order .checks { margin-block: 18px; font-size: 16px; }
.order .checks li::before { background: var(--mist); }
.order-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.order-lines li span:last-child { white-space: nowrap; }
.order-lines .order-total { border-top: 2px solid var(--midnight); font-weight: 700; font-size: 1.2rem; padding-top: 12px; }
.order .btn { margin-top: 16px; }
.order .small { margin-top: 12px; }
.form-problem { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--problem-bg); color: var(--problem-text); font-weight: 500; }

.done { max-width: 44rem; }
.done .steps { margin-block: 32px; }
.done .steps p { grid-column: 2; margin-top: 10px; }

/* ---------- 15. Sign-in ---------- */
.login { display: grid; }
.login-side { background: var(--indigo); color: var(--white); padding: clamp(32px, 6vw, 80px) var(--gutter); position: relative; overflow: hidden; }
.login-side h1 { position: relative; max-width: 10em; font-size: clamp(2rem, 3vw + 1rem, 3.2rem); }
.login-side .rings { right: -300px; top: auto; bottom: -340px; }
.login-main { padding: clamp(32px, 6vw, 80px) var(--gutter); }
.login-box { max-width: 26rem; margin-inline: auto; }
.login-box h2 { font-size: 1.8rem; font-weight: 900; }
.login-box form { margin-top: 20px; }
.login-box .btn { margin-top: 22px; }
.login-links { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-links p + p { margin-top: 8px; }
.demo-note { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--sky-tint); font-size: 15px; font-weight: 500; }
.code-input { letter-spacing: 0.35em; font-size: 22px !important; font-weight: 700 !important; }
@media (min-width: 900px) {
  .login { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 70vh; }
  .login-side { display: flex; align-items: center; justify-content: flex-end; }
  .login-side h1 { margin-right: clamp(0px, 4vw, 64px); }
}

/* ---------- 16. Status page ---------- */
.incident { background: var(--problem-bg); color: var(--problem-text); border-radius: var(--radius-card); padding: clamp(20px, 4vw, 32px); margin-top: 28px; max-width: 48rem; }
.incident h2 { font-size: 1.5rem; font-weight: 900; }
.incident > p { margin-top: 8px; }
.incident-updates { margin-top: 16px; }
.incident-updates li { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid rgba(122, 46, 6, 0.3); }
.incident-updates time { flex: 0 0 auto; min-width: 4.5em; font-weight: 700; }
.incident-updates span { flex: 1 1 14em; }
.status-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.components > li { display: grid; gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.components { border-top: 2px solid var(--midnight); }
.component-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.component-head h3 { font-size: 1.2rem; }
.component-what { color: var(--slate); margin-top: 4px; }
.history { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.history i { flex: 1 1 0; max-width: 10px; height: 14px; border-radius: 3px; background: var(--indigo); }
.history i.bad { height: 32px; background: var(--problem-bar); }
.history-words { font-size: 15px; color: var(--slate); margin-top: 6px; }
@media (min-width: 800px) {
  .components > li { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; }
}
.past li { padding: 18px 0; border-top: 1px solid var(--line); }
.past li p { margin-top: 6px; color: var(--slate); }
.past h3 { font-size: 1.1rem; }

/* ---------- 17. Spacing between neighbours ---------- */
.page-head .domain-search { margin-top: 28px; }
.section-tight { padding-top: clamp(24px, 3vw, 40px); }
h2 + .steps, h2 + .past, h2 + .checks { margin-top: 24px; }
.footer-brand p + p { margin-top: 8px; }
.part > p + p { margin-top: 4px; }
.part .field-help { margin-top: 12px; }
.card-placeholder { margin-top: 16px; }
.card-placeholder p + p { margin-top: 6px; }
.login-box form > p { margin-top: 10px; }
.done .steps { margin-block: 0 32px; }
.done-note { margin-top: 16px; }
.past + p { margin-top: 12px; }
.price-note + p { margin-top: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- 18. Small screens and motion ---------- */
@media (max-width: 720px) {
  .site-header .wrap { gap: 0; padding-block: 6px 10px; }
  .brand img { height: 48px; }
  .site-header nav { margin-left: 0; width: 100%; }
  .nav { gap: 6px 2px; }
  .nav a { padding: 0 10px; font-size: 15px; }
  .nav a.nav-start { padding: 0 16px; }
  .rings { width: 420px; height: 420px; border-width: 60px; right: -240px; top: -200px; }
  .rings::after { inset: 46px; }
  .btn { padding-inline: 20px; }
  .search-field .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
