/* Public site styles. Tokens come from brand.css. */
body { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1 0 auto; }
img { max-width: 100%; }
h1, h2, p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; padding-top: 24px; padding-bottom: 40px; }
.narrow--up { margin-top: -28px; position: relative; padding-top: 0; }
.center { text-align: center; margin-top: 20px; }
.muted { color: var(--ink-3); }
.link { color: var(--v3m-blue-600); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 12px 0; }
.link:hover { color: var(--v3m-navy); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--v3m-navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); z-index: 50; transition: top .15s; }
.skip:focus { top: 8px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.topbar__label { font-size: 14px; font-weight: 500; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.pill { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 14px; border-radius: 999px; background: var(--v3m-blue-50); color: var(--v3m-blue-600); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .15s; }
.pill:hover { background: var(--v3m-blue-100); }
.pill__txt { display: none; }
@media (min-width: 400px) { .pill__txt { display: inline; } }
@media (max-width: 359px) { .topbar__label { display: none; } }

/* Hero */
.hero { background: var(--v3m-hero); color: #fff; position: relative; overflow: hidden; padding: 24px 0 64px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid var(--v3m-b300); opacity: .3; pointer-events: none; }
.hero::before { width: 150px; height: 150px; right: -62px; top: -62px; }
.hero::after { width: 92px; height: 92px; right: -33px; top: -33px; }
.hero--sm { padding-bottom: 56px; }
.hero__in { position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; font-size: 28px; line-height: 1.25; max-width: 22em; padding-right: 64px; }
.hero__lead { margin-top: 12px; color: var(--v3m-on-dark-muted); font-size: 15px; max-width: 40em; }
.hero--sm h1 { font-size: 28px; }

/* Layout */
.layout { padding-top: 0; padding-bottom: 40px; display: block; margin-top: -40px; position: relative; z-index: 2; }
.side { margin-bottom: 12px; }
.side { display: none; }
.side__p, .about { color: var(--ink-2); }
.side__h { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.side__p--desk { display: none; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--ok); margin-top: 2px; }

/* Mobile: only the details block of the aside is shown, above the form */
.side { display: block; margin-bottom: 12px; }
.side > :not(.about) { display: none; }
.about { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.about summary { cursor: pointer; list-style: none; min-height: 48px; padding: 12px 44px 12px 16px; font-weight: 600; color: var(--ink); position: relative; display: flex; align-items: center; }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.about[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.about__body { padding: 0 16px 16px; }
.about__body .side__h { display: none; }

/* Card + form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -12px rgba(6, 24, 138, .22); padding: 20px 16px; }
.card__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.25; font-size: 24px; font-weight: 600; }
.legend { margin: 6px 0 18px; font-size: 14px; color: var(--ink-3); }
.req { color: var(--v3m-red-700); font-weight: 700; }
.field { margin-bottom: 20px; }
.label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; color: var(--ink); padding: 0; }
.label--sm { font-size: 15px; font-weight: 500; }
.hint { font-size: 14px; color: var(--ink-3); margin: -2px 0 8px; }
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset .label { float: left; width: 100%; }
.fset .tiles { clear: both; }
.input { display: block; width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-3); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--v3m-blue); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--v3m-red-700); background: var(--v3m-red-50); }
.input--mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.input--mono::placeholder { text-transform: none; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.count { text-align: right; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.err { color: var(--v3m-red-700); font-size: 14px; font-weight: 500; margin-top: 6px; }
.err[hidden], .alert[hidden] { display: none; }
.sub { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--v3m-blue-100); }
.sub[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Combobox */
.combo { position: relative; }
.combo__in { padding-right: 44px; }
.combo__chev { position: absolute; right: 12px; top: 14px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; transition: transform .15s; }
.combo__in[aria-expanded="true"] ~ .combo__chev { transform: rotate(180deg); }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.combo__list[hidden] { display: none; }
.combo__opt { min-height: 48px; padding: 12px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--v3m-blue-50); }
.combo__opt[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--v3m-blue); }
.combo__opt--other { color: var(--v3m-blue-600); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.combo__empty { padding: 12px; color: var(--ink-2); font-size: 15px; cursor: default; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.tile__face { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 84px; height: 100%; padding: 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.tile__face .icon { width: 24px; height: 24px; color: var(--v3m-blue); }
.tile:hover .tile__face { border-color: var(--ink-3); }
.tile input:checked + .tile__face { border-color: var(--v3m-blue); background: var(--v3m-blue-50); box-shadow: inset 0 0 0 1px var(--v3m-blue); font-weight: 600; }
.tile input:focus-visible + .tile__face { box-shadow: var(--focus); }
.tiles[data-invalid] .tile__face { border-color: var(--v3m-red-700); }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 20px; font: inherit; font-size: 17px; font-weight: 600; color: #fff; background: var(--v3m-blue); border: 1.5px solid var(--v3m-blue); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--v3m-blue-600); border-color: var(--v3m-blue-600); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: progress; opacity: .8; }
.btn--ghost { background: #fff; color: var(--v3m-blue-600); border-color: var(--v3m-blue); }
.btn--ghost:hover { background: var(--v3m-blue-50); border-color: var(--v3m-blue-600); }
.btn--sm { width: auto; min-height: 48px; font-size: 15px; padding: 8px 16px; }
.spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* Alert */
.alert { display: flex; gap: 8px; align-items: flex-start; background: var(--v3m-red-50); border: 1px solid #f1b9b9; border-left: 4px solid var(--v3m-red-700); border-radius: var(--radius-sm); padding: 12px 8px 12px 14px; margin-bottom: 18px; }
.alert__txt { flex: 1; color: var(--v3m-red-700); font-weight: 500; font-size: 15px; }
.alert__txt a { color: inherit; font-weight: 700; }
.alert__x { flex: none; width: 48px; height: 48px; margin: -10px -2px -10px 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--v3m-red-700); cursor: pointer; border-radius: var(--radius-sm); }
.alert__x .icon { width: 20px; height: 20px; }

/* Thanks */
.thanks { text-align: left; }
.thanks > p { margin-top: 14px; color: var(--ink-2); }
.okmark { width: 72px; height: 72px; border-radius: 50%; background: var(--v3m-blue); color: #fff; display: flex; align-items: center; justify-content: center; margin: 4px 0 16px; animation: pop .45s ease-out both; }
.okmark__ic { width: 38px; height: 38px; stroke-width: 2.25; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks__h { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; font-size: 32px; line-height: 1.25; font-weight: 600; }
.thanks__lead { font-size: 18px; color: var(--ink) !important; font-weight: 500; }
.thanks__sub { margin-top: 24px; font-size: 14px; letter-spacing: .02em; font-weight: 700; color: var(--ink); }
.codebox { margin-top: 18px; padding: 14px 16px; background: var(--v3m-blue-50); border: 1px solid var(--v3m-blue-100); border-radius: var(--radius); }
.codebox[hidden] { display: none; }
.codebox__l { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.codebox__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.codebox__v { font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: .03em; color: var(--v3m-navy); word-break: break-all; }
.codebox__n { font-size: 14px; color: var(--ink-2); }
.channels { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.chan { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
a.chan:hover { border-color: var(--v3m-blue); background: var(--v3m-blue-50); }
.chan__ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--v3m-blue-50); color: var(--v3m-blue); display: inline-flex; align-items: center; justify-content: center; }
.chan__t { display: flex; flex-direction: column; min-width: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.chan__t strong { font-size: 16px; color: var(--ink); }
.actions { display: grid; gap: 10px; margin-top: 24px; }

/* Lookup */
.result { margin-top: 16px; }
.result[hidden] { display: none; }
.result__code { font-family: var(--mono); font-weight: 500; font-size: 18px; word-break: break-all; }
.result__st { margin-top: 4px; color: var(--ink-2); }
.steps { list-style: none; margin: 18px 0; padding: 0; }
.step { position: relative; display: flex; gap: 12px; align-items: center; padding: 0 0 18px; color: var(--ink-3); font-weight: 500; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; position: relative; z-index: 1; }
.step__dot .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.step.is-done { color: var(--ink); }
.step.is-done::before { background: var(--v3m-blue); }
.step.is-done .step__dot { background: var(--v3m-blue); border-color: var(--v3m-blue); }
.step.is-current { color: var(--v3m-navy); font-weight: 700; }
.step.is-current .step__dot { border-color: var(--v3m-blue); box-shadow: 0 0 0 4px var(--v3m-blue-100); background: var(--v3m-blue); }
.step.is-final .step__dot { background: var(--ok); border-color: var(--ok); }
.times { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.times div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.times dt { color: var(--ink-3); }
.times dd { margin: 0; font-weight: 600; }

/* Footer */
.foot { background: var(--v3m-blue-50); border-top: 1px solid var(--line-2); color: var(--ink-2); margin-top: 8px; padding: 32px 0 24px; }
.foot img { display: block; height: 34px; width: auto; }
.foot__msg { margin: 14px 0 12px; color: var(--ink); font-weight: 600; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--v3m-blue-600); text-decoration: none; overflow-wrap: anywhere; font-weight: 500; }
.foot__list a:hover { color: var(--v3m-navy); text-decoration: underline; }
.foot__copy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-3); }

/* Tablet */
@media (min-width: 640px) {
  .hero h1 { font-size: 36px; }
  .card { padding: 28px; }
  .tiles { gap: 12px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .btn--sm { min-width: 140px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 56px 0 120px; }
  .hero::before { width: 260px; height: 260px; right: -100px; top: -110px; }
  .hero::after { width: 160px; height: 160px; right: -50px; top: -60px; }
  .hero h1 { font-size: 44px; padding-right: 0; max-width: 18em; }
  .hero__lead { font-size: 17px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: start; margin-top: 0; }
  .formcard { margin-top: -88px; }
  .side { display: block; margin: 0; padding-top: 32px; }
  .side > :not(.about) { display: block; }
  .side > * + * { margin-top: 24px; }
  .side__p--desk { display: block; }
  .about { background: transparent; border: 0; box-shadow: none; }
  .about summary { display: none; }
  .about__body { padding: 0; display: block !important; }
  .about__body .side__h { display: block; }
  .side__p { font-size: 16px; }
  .card { padding: 32px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn { font-size: 17px; }
  .channels--compact { grid-template-columns: 1fr 1fr; }
  .channels--compact .chan { min-height: 56px; }
  .narrow--up { margin-top: -48px; }
  .hero--sm { padding-bottom: 90px; }
}
