/* Customer website, in the look of the approved mockup. */
:root {
  --ground: #f5f4ef;
  --panel: #ffffff;
  --ink: #17191c;
  --ink-2: #4a4e55;
  --ink-3: #5b5f66;
  --line: #e2e0d8;
  --edge: #d9d7ce;
  --field: #c9c6bb;
  --accent: #2446c4;
  --accent-ink: #1a3496;
  --tint: #eef2fd;
  --off: #f1f0eb;
  --chip: #ecEAE2;
  --warn-ink: #8a4b00;
  --warn-tint: #fcefdc;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; }
h1 { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 0.8rem; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 5; }

/* Header */
.top { height: 72px; padding: 0 clamp(16px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { width: 24px; height: 24px; border: 2px solid var(--accent); border-radius: 6px; box-shadow: inset 0 -9px 0 -6px var(--accent); }
.top-nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.top-nav form { margin: 0; }
.page { padding: 48px clamp(16px, 5vw, 80px) 80px; max-width: 1440px; margin: 0 auto; }

/* Buttons and messages */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: none; border-radius: 10px; background: var(--accent); color: #ffffff; font-family: var(--display); font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-ink); color: #ffffff; }
.btn-big { width: 100%; min-height: 54px; font-size: 1.1rem; }
.linkish { background: none; border: none; padding: 0; min-height: 24px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.flash { background: var(--tint); color: var(--accent-ink); border-radius: 10px; padding: 12px 16px; margin-bottom: 24px; }
.alert { background: var(--warn-tint); color: var(--warn-ink); border-radius: 10px; padding: 12px 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; }
.narrow { max-width: 480px; margin: 40px auto; }
.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 64ch; }
.code { display: inline-block; font-family: var(--mono); font-size: 0.75rem; padding: 3px 7px; border-radius: 4px; background: var(--chip); color: #3d4148; }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.stack label, .field label { font-weight: 600; font-size: 0.9rem; }
.stack input, .field input { height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; background: #ffffff; font: inherit; color: var(--ink); width: 100%; }
.stack input { margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input[aria-invalid="true"] { border-color: var(--warn-ink); }
.hint { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.field-error { color: var(--warn-ink); font-weight: 600; font-size: 0.9rem; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Signup */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 48px; align-items: start; }
.signup-main { display: flex; flex-direction: column; gap: 40px; }
.intro { display: flex; flex-direction: column; gap: 10px; }
.step { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step legend { font-family: var(--display); font-size: 1.5rem; font-weight: 600; padding: 0; margin-bottom: 4px; }
.step-no { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-right: 10px; vertical-align: 0.15em; }
.step-help { color: var(--ink-2); margin: -8px 0 0; }
.grid-loc { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.grid-pkg { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.stack-addons { display: flex; flex-direction: column; gap: 12px; }

/* A selectable card is a real radio or checkbox inside a label */
.choice { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--edge); border-radius: 10px; background: var(--panel); cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.choice:has(input:checked)::after { content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) no-repeat center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice.is-off { background: var(--off); cursor: not-allowed; }
.choice.is-off .choice-title { color: var(--ink-2); }
.choice-title { font-weight: 600; font-size: 1.05rem; }
.choice-title.big { font-family: var(--display); font-size: 1.4rem; }
.choice-sub { font-size: 0.875rem; color: var(--ink-3); }
.choice-status { font-size: 0.85rem; font-weight: 500; color: var(--accent); }
.choice.is-off .choice-status { color: var(--ink-3); }
.choice .code { align-self: flex-start; }
.pkg { padding: 24px; gap: 12px; }
.price { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.features { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: #2c2f34; }
.features li { padding-left: 24px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%232446c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.not-here { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.not-here:empty { display: none; }
.addon { flex-direction: row; align-items: center; gap: 16px; min-height: 76px; }
.addon::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border: 2px solid #9a9da3; border-radius: 5px; background: #ffffff; }
.addon:has(input:checked)::before { border-color: var(--accent); background: var(--accent); }
.addon:has(input:checked)::after { display: none; }
.addon-text { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; }
.addon-price { flex-shrink: 0; font-size: 0.875rem; font-weight: 500; color: #3d4148; }

.summary { position: sticky; top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.assure { background: var(--ground); border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; color: #3d4148; margin: 0; }
.due { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.due strong { font-family: var(--display); font-size: 1.8rem; }
.summary p { margin: 0; }

/* Dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.callout { background: var(--tint); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.callout h2 { font-size: 1.2rem; margin-bottom: 6px; }
.callout p, .callout form { margin: 0 0 6px; }
.sites { display: flex; flex-direction: column; gap: 20px; }
.site-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.site-head p { margin: 6px 0 0; }
.pill { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; background: var(--tint); color: var(--accent-ink); }
.pill-active { background: var(--ink); color: #ffffff; }
.pill-needs_attention { background: var(--warn-tint); color: var(--warn-ink); }
.pill-rejected, .pill-suspended { background: var(--chip); color: #3d4148; }
progress { width: 100%; height: 8px; border: none; border-radius: 4px; background: var(--chip); -webkit-appearance: none; appearance: none; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--chip); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.progress-wrap { display: flex; flex-direction: column; gap: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 28px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.steps .dot { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--field); }
.steps .step-done { color: var(--ink); }
.steps .step-done .dot { border-color: var(--accent); background: var(--accent) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.steps .step-current { color: var(--ink); font-weight: 600; }
.steps .step-current .dot { border-color: var(--accent); box-shadow: inset 0 0 0 4px #ffffff; background: var(--accent); }
.steps .step-problem { color: var(--warn-ink); font-weight: 600; }
.steps .step-problem .dot { border-color: var(--warn-ink); background: var(--warn-tint); }
.ready { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.ready-actions { display: flex; flex-direction: column; gap: 8px; }
.record { display: flex; flex-wrap: wrap; gap: 16px; background: var(--ground); border-radius: 8px; padding: 12px 16px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 1000px) {
  .signup { grid-template-columns: 1fr; }
  .summary { position: static; }
  .ready { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .top-nav .muted { display: none; }
}
