/* IMNETS website. Colors, cards and tiles match web/public/panel.css in the control panel. */
:root {
  --font-ui: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.125rem; --text-xl: 1.5rem;
  --radius-sm: 0.5rem; --radius-md: 0.75rem; --radius-lg: 1rem; --radius-pill: 999px;
  --grid-gap: 16px; --target-size: 44px; --page-width: 1180px; --gutter: 24px;

  --color-bg: #F6F8FC; --color-surface: #FFFFFF; --color-surface-muted: #EDF1F8;
  --color-text: #18243A; --color-text-secondary: #53627A; --color-border: #E1E7F0;
  --color-primary: #4059DB; --color-primary-hover: #3048C5; --color-primary-text: #FFFFFF; --color-link: #3048C5; --color-focus: #4059DB;
  --status-success: #087654; --status-success-bg: #E5F7EE;
  --panel-bg: #FFFFFF; --panel-border: #DFE5F2; --kpi-bg: #FFFFFF;
  --page-glow-1: rgb(64 89 219 / 8%); --page-glow-2: rgb(11 132 198 / 6%);
  --nav-active-bg: linear-gradient(90deg, #4059DB, #6B7BF0);
  --cyan: #09709F; --violet: #6B46D9; --green: #087654; --amber: #8F5500; --rose: #C2355F; --blue: #3048C5;
  --tile-blue: #E8EEFF; --tile-violet: #EFEAFF; --tile-cyan: #E2F5FB; --tile-green: #E2F7EE; --tile-amber: #FFF2DC; --tile-rose: #FDE8EE;
  --shadow-card: 0 2px 12px rgb(20 35 65 / 5%);
  --header-bg: rgb(246 248 252 / 86%);
  --cta-bg: linear-gradient(120deg, #4059DB, #6B46D9);
}
[data-theme="dark"] {
  --color-bg: #060B1E; --color-surface: #111A3C; --color-surface-muted: #1B2750;
  --color-text: #F1F5FF; --color-text-secondary: #C0CCE2; --color-border: #2A3768;
  --color-primary: #8295FF; --color-primary-hover: #A1B0FF; --color-primary-text: #081225; --color-link: #ABB9FF; --color-focus: #B5C2FF;
  --status-success: #81EDBE; --status-success-bg: #173F35;
  --panel-bg: linear-gradient(180deg, #131D45, #0E1636); --panel-border: #2C3A72; --kpi-bg: linear-gradient(135deg, #16214D, #0E1636);
  --page-glow-1: rgb(109 91 255 / 22%); --page-glow-2: rgb(55 170 255 / 12%);
  --nav-active-bg: linear-gradient(90deg, #4C57E8, #2F3AB8);
  --cyan: #5FD6FF; --violet: #B79BFF; --green: #6EE7B7; --amber: #FFC069; --rose: #FF9EB9; --blue: #8FA8FF;
  --tile-blue: #1D2C6B; --tile-violet: #2C2268; --tile-cyan: #113E5C; --tile-green: #123F39; --tile-amber: #48340F; --tile-rose: #4A1E3D;
  --shadow-card: 0 10px 30px rgb(0 0 0 / 28%);
  --header-bg: rgb(6 11 30 / 84%);
  --cta-bg: linear-gradient(120deg, #4C57E8, #6B46D9);
}

* { box-sizing: border-box; }
html { background: var(--color-bg); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; color: var(--color-text); font: 1rem/1.6 var(--font-ui); background: radial-gradient(900px 500px at 78% -8%, var(--page-glow-1), transparent 70%), radial-gradient(700px 500px at 18% 110%, var(--page-glow-2), transparent 70%), var(--color-bg); background-attachment: fixed; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 8px; font-size: 2rem; line-height: 1.2; font-weight: 700; }
h3 { margin-bottom: 6px; font-size: var(--text-lg); line-height: 1.3; font-weight: 600; }
p { margin-bottom: 12px; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; }
.wrap { width: 100%; max-width: calc(var(--page-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--color-text-secondary); }
.eyebrow { margin-bottom: 8px; color: var(--cyan); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 5; padding: 8px 12px; background: var(--color-surface); border-radius: var(--radius-sm); }
svg.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { position: sticky; top: 0; z-index: 3; background: var(--header-bg); border-bottom: 1px solid var(--panel-border); backdrop-filter: blur(12px); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); }
.brand:hover { text-decoration: none; }
.brand > span { font-size: var(--text-md); font-weight: 700; letter-spacing: .12em; line-height: 1.25; }
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--color-text-secondary); }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { display: flex; align-items: center; min-height: var(--target-size); padding: 0 12px; color: var(--color-text-secondary); font-size: var(--text-sm); font-weight: 500; border-radius: var(--radius-sm); }
.top nav a:hover { color: var(--color-text); background: var(--color-surface-muted); text-decoration: none; }

/* Controls */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--target-size); padding: 0 18px; font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary-text); background: var(--color-primary); border: 0; border-radius: var(--radius-sm); cursor: pointer; }
button:hover, .button:hover { background: var(--color-primary-hover); text-decoration: none; }
.button-large { min-height: 52px; padding: 0 24px; font-size: var(--text-md); }
.button-ghost { color: var(--color-text); background: var(--color-surface-muted); border: 1px solid var(--panel-border); }
.button-ghost:hover { color: var(--color-primary-text); }
.icon-button { flex: none; width: var(--target-size); height: var(--target-size); padding: 0; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--panel-border); border-radius: var(--radius-md); }
.icon-button:hover { background: var(--color-surface-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 auto; width: min(1560px, 100%); background: no-repeat right center / auto 100%; }
[data-theme="dark"] .hero::before { background-image: url("/hero-dark.webp"); }
[data-theme="light"] .hero::before { background-image: url("/hero-light.webp"); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 36%, transparent 66%); }
.hero-row { position: relative; z-index: 1; display: flex; align-items: center; min-height: 540px; padding-block: 56px; }
.hero-copy { max-width: 560px; }
.hero h1 { margin-bottom: 14px; font-size: 3.5rem; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.lead { margin-bottom: 24px; font-size: 1.2rem; color: var(--color-text-secondary); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-status { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--text-sm); font-weight: 600; }
.hero-status li { display: flex; align-items: center; gap: 8px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Cards, matching the panel */
.kpis { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--kpi-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.kpi b { display: block; font-size: var(--text-md); font-weight: 700; line-height: 1.3; }
.kpi em { display: block; font-size: var(--text-sm); font-style: normal; color: var(--color-text-secondary); }
.tile { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; }
.tile .icon { width: 26px; height: 26px; }
.tile-blue { color: var(--blue); background: var(--tile-blue); }
.tile-violet { color: var(--violet); background: var(--tile-violet); }
.tile-cyan { color: var(--cyan); background: var(--tile-cyan); }
.tile-green { color: var(--green); background: var(--tile-green); }
.tile-amber { color: var(--amber); background: var(--tile-amber); }
.tile-rose { color: var(--rose); background: var(--tile-rose); }
.panel { padding: 24px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; font-size: var(--text-xs); font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; }
.pill-healthy { color: var(--status-success); background: var(--status-success-bg); }

/* Sections */
.band { padding-block: 72px 0; }
.band-head { max-width: 640px; margin-bottom: 28px; }
.band-head p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: var(--grid-gap); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.service .tile { margin-bottom: 16px; }
.service p, .steps p { margin: 0; color: var(--color-text-secondary); font-size: var(--text-sm); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); }
.ticks .icon { color: var(--green); }

/* Example panel */
.preview { margin: 0; }
.preview figcaption { margin-top: 8px; font-size: var(--text-xs); text-align: right; }
.preview-window { display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.preview-side { display: grid; align-content: start; gap: 4px; padding: 16px 10px; background: var(--color-surface); border-right: 1px solid var(--panel-border); font-size: var(--text-sm); color: var(--color-text-secondary); }
.preview-side > span { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--radius-sm); }
.preview-side .icon { width: 17px; height: 17px; }
.preview-side .active { color: #FFFFFF; background: var(--nav-active-bg); }
.preview-side .preview-brand { padding: 0 4px; margin-bottom: 8px; font-weight: 700; letter-spacing: .12em; color: var(--color-text); }
.preview-main { padding: 20px; }
.preview-title { margin-bottom: 10px; font-size: var(--text-lg); font-weight: 600; }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--panel-border); font-size: var(--text-sm); }
.preview-row > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.preview-row .icon { width: 17px; height: 17px; color: var(--color-text-secondary); }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan > .muted { font-size: var(--text-sm); }
.plan .ticks { margin-bottom: 24px; }
.plan .button { margin-top: auto; }
.plan-main { border-color: var(--color-primary); }
.price { margin: 4px 0 18px; font-size: var(--text-xl); font-weight: 700; line-height: 1.25; }

/* Steps and questions */
.step { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; font-weight: 700; color: var(--color-primary-text); background: var(--color-primary); border-radius: 50%; }
.narrow { max-width: 820px; }
details.panel { padding: 0 20px; margin-bottom: 10px; }
summary { display: flex; align-items: center; min-height: 56px; font-weight: 600; cursor: pointer; }
details p { color: var(--color-text-secondary); font-size: var(--text-sm); }

/* Call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px; color: #FFFFFF; background: var(--cta-bg); border-radius: var(--radius-lg); }
.cta h2 { margin-bottom: 4px; }
.cta p { margin: 0; }
.cta .button { color: #18243A; background: #FFFFFF; }
.cta .button:hover { background: #E8EEFF; }

/* Order form */
.order { max-width: 680px; padding-block: 48px 0; }
.order h1 { margin-bottom: 8px; font-size: 2.25rem; line-height: 1.2; }
.order-form { display: grid; gap: 16px; margin-top: 8px; }
.order-form label { display: block; color: var(--color-text-secondary); font-size: var(--text-sm); }
.order-form input:not([type="radio"]) { display: block; width: 100%; min-height: var(--target-size); margin-top: 4px; padding: 8px 12px; font: inherit; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); }
.order-form fieldset { margin: 0; padding: 0; border: 0; }
.order-form legend { padding: 0; margin-bottom: 6px; color: var(--color-text-secondary); font-size: var(--text-sm); }
.order-form .choice { display: flex; align-items: center; gap: 10px; min-height: var(--target-size); color: var(--color-text); font-size: var(--text-md); }
.order-form input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary); }
.hidden-field { position: absolute; left: -9999px; }
.form-error { padding: 12px 16px; color: #FFFFFF; background: #B4233A; border-radius: var(--radius-sm); }

/* One box */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.onebox { display: flex; gap: 8px; margin-bottom: 20px; padding: 8px; background: var(--color-surface); border: 1px solid var(--panel-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.onebox:focus-within { border-color: var(--color-primary); }
.onebox input { flex: 1; min-width: 0; min-height: 52px; padding: 0 12px; font: inherit; font-size: var(--text-lg); color: var(--color-text); background: transparent; border: 0; outline: 0; }
.onebox input::placeholder { color: var(--color-text-secondary); }
.onebox button { flex: none; }
.order .onebox { margin-top: 16px; }
.small { font-size: var(--text-sm); }
.choices { display: grid; gap: 8px; margin-bottom: 12px; }
.choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; color: var(--color-text); font-weight: 600; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.choice-row:hover { border-color: var(--color-primary); text-decoration: none; }
.pill-muted { color: var(--color-text-secondary); background: var(--color-surface-muted); }
.answer { margin: 16px 0 12px; }
.answer p { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.order-form .small { margin: 0; }

/* Live tracker */
.order h1 { overflow-wrap: anywhere; }
.tracker { display: grid; gap: 4px; margin: 20px 0 16px; }
.tracker li { display: flex; align-items: center; gap: 14px; min-height: 48px; color: var(--color-text-secondary); }
.mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; font-size: var(--text-sm); font-weight: 700; background: var(--color-surface-muted); border-radius: 50%; }
.tracker .done { color: var(--color-text); }
.tracker .done .mark { color: var(--status-success); background: var(--status-success-bg); }
.tracker .now { color: var(--color-text); font-weight: 700; }
.tracker .now .mark { color: var(--color-primary-text); background: var(--color-primary); box-shadow: 0 0 0 4px var(--tile-blue); }
.steps-for-you h2 { font-size: var(--text-xl); margin-bottom: 12px; }
.steps-for-you ol { list-style: decimal; margin: 0 0 16px 20px; color: var(--color-text-secondary); font-size: var(--text-sm); }
.steps-for-you li { padding-block: 4px; }
.ns-list { display: grid; gap: 8px; margin-bottom: 16px; }
.ns-list code { padding: 12px 14px; font-size: var(--text-md); font-weight: 600; user-select: all; background: var(--color-surface-muted); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.watching { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.watching .dot { margin-top: 7px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Footer */
.foot { margin-top: 72px; padding-block: 24px; border-top: 1px solid var(--panel-border); font-size: var(--text-sm); color: var(--color-text-secondary); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--target-size); color: var(--color-text-secondary); }
.foot p { margin: 0; }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .top nav { display: none; }
  .top-row .icon-button { margin-left: auto; }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-row { min-height: 460px; }
  .hero-copy { max-width: 50%; min-width: 320px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 76px; }
  .top-row { min-height: 64px; gap: 10px; }
  .hero::before { inset: 0 0 auto 0; width: 100%; height: 190px; background-position: right top; background-size: auto 100%; }
  .hero::after { display: none; }
  .hero-row { display: block; min-height: 0; padding-block: 200px 28px; }
  .hero-copy { max-width: none; min-width: 0; }
  .hero h1 { font-size: 2.25rem; }
  .lead { font-size: var(--text-md); }
  .kpis, .three, .two { grid-template-columns: minmax(0, 1fr); }
  h2 { font-size: 1.6rem; }
  .band { padding-block-start: 52px; }
  .cta { padding: 24px; }
  .cta .button { width: 100%; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 479px) {
  .preview-window { grid-template-columns: minmax(0, 1fr); }
  .preview-side { display: none; }
  .actions .button { width: 100%; }
}
@media (max-width: 479px) {
  .onebox { flex-direction: column; }
  .onebox input { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .watching .dot { animation: none; }
}
