:root {
  --ink: #071522;
  --panel: #10283a;
  --panel-soft: #153247;
  --cyan: #33d1c6;
  --cyan-dark: #15998f;
  --white: #fff;
  --mist: #eef5f4;
  --muted: #9db2bc;
  --line: rgba(255,255,255,.12);
  --warning: #ffd166;
  --danger: #ff8585;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; color: var(--white); background: var(--ink); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.guide-header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 12px clamp(18px,4vw,54px); border-bottom: 1px solid var(--line); background: rgba(7,21,34,.94); }
.guide-brand img { display: block; width: 116px; height: auto; }
.guide-header-actions { display: flex; align-items: center; gap: 18px; color: #d3dee2; font-size: 13px; }
.guide-header-actions > a:hover { color: var(--cyan); }
.test-badge { padding: 7px 11px; color: #c8f7f3; border: 1px solid rgba(51,209,198,.35); border-radius: 999px; background: rgba(51,209,198,.08); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.guide-shell { width: min(1120px, calc(100% - 34px)); margin: 0 auto; padding: 66px 0 84px; }
.guide-intro { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.7fr); gap: 48px; align-items: end; }
.eyebrow, .stage-kicker { color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.guide-intro h1 { max-width: 760px; margin: 10px 0 16px; font-size: clamp(42px,6vw,74px); line-height: .98; letter-spacing: -.055em; }
.guide-intro > div > p { max-width: 720px; margin: 0; color: #b5c6cd; font-size: clamp(16px,2vw,19px); }
.guide-intro aside { padding: 22px; border: 1px solid rgba(51,209,198,.24); border-radius: 18px; background: var(--panel); }
.guide-intro aside strong, .guide-intro aside span { display: block; }
.guide-intro aside strong { color: var(--cyan); font-size: 13px; }
.guide-intro aside span { margin-top: 7px; color: var(--muted); font-size: 12px; }

.guide-card { min-height: 430px; margin-top: 46px; padding: clamp(24px,4vw,46px); color: var(--ink); border-radius: 26px; background: var(--mist); box-shadow: 0 28px 75px rgba(0,0,0,.24); }
.guide-progress { display: flex; align-items: center; gap: 15px; margin-bottom: 34px; color: #567079; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.guide-progress > div { flex: 1; height: 5px; overflow: hidden; border-radius: 999px; background: #d5e1e1; }
.guide-progress i { display: block; width: 14%; height: 100%; border-radius: inherit; background: var(--cyan-dark); transition: width .25s ease; }
.guide-loading { display: grid; place-items: center; gap: 16px; min-height: 270px; color: #557079; text-align: center; }
.loading-orbit { width: 42px; height: 42px; border: 4px solid #cadada; border-top-color: var(--cyan-dark); border-radius: 50%; animation: guideSpin .8s linear infinite; }
@keyframes guideSpin { to { transform: rotate(360deg); } }
.guide-back { margin: 0 0 20px; padding: 0; color: #527078; border: 0; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.guide-back:hover { color: #087e78; }
.guide-stage h2 { max-width: 820px; margin: 8px 0 10px; font-size: clamp(30px,4.5vw,48px); line-height: 1.04; letter-spacing: -.045em; }
.stage-description { max-width: 760px; margin: 0; color: #60757e; font-size: 15px; }
.guide-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 30px; }
.guide-option { display: grid; grid-template-columns: 42px minmax(0,1fr) 20px; gap: 13px; align-items: center; min-height: 88px; padding: 16px; color: var(--ink); border: 1px solid #ccdada; border-radius: 15px; background: #fff; text-align: left; cursor: pointer; transition: .17s ease; }
.guide-option:hover, .guide-option:focus-visible { border-color: var(--cyan-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(19,91,91,.1); outline: none; }
.guide-option-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e5f7f5; font-size: 20px; }
.guide-option strong, .guide-option small { display: block; }
.guide-option strong { font-size: 14px; }
.guide-option small { margin-top: 3px; color: #6d8088; font-size: 11px; }
.guide-option-arrow { color: #168e87; font-size: 20px; font-weight: 900; }

.guide-result { margin-top: 28px; }
.result-summary { padding: clamp(22px,4vw,34px); border: 1px solid #bfd5d5; border-radius: 18px; background: #fff; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-heading h3 { margin: 0; font-size: clamp(24px,3.5vw,36px); line-height: 1.08; letter-spacing: -.035em; }
.severity { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.severity-normal { color: #087068; background: #dff7f3; }
.severity-soon { color: #765800; background: #fff0b5; }
.severity-urgent { color: #a12f2f; background: #ffe0e0; }
.result-description { margin: 16px 0 0; color: #536a74; }
.result-tip, .result-safety { margin-top: 16px; padding: 16px 17px; border-radius: 13px; }
.result-tip { color: #214f53; background: #e9f7f5; }
.result-safety { color: #704e00; background: #fff4cd; }
.result-tip strong, .result-safety strong { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.result-tip p, .result-safety p { margin: 0; font-size: 13px; }
.result-choice { margin: 24px 0 0; color: #294b55; font-size: 13px; font-weight: 850; }
.result-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 850; text-align: center; cursor: pointer; }
.button.primary { color: var(--ink); border-color: var(--cyan); background: var(--cyan); }
.button.primary:hover { background: #70e1d9; }
.button.secondary { color: #2f525d; border-color: #bfd0d2; background: #f5f9f8; }
.button.secondary:hover { border-color: #75c9c4; }
.guide-action-status { min-height: 20px; margin: 10px 0 0; color: #527078; font-size: 11px; }
.guide-chat-panel { margin-top: 14px; padding: 17px; border: 1px solid #c3d5d6; border-radius: 14px; background: #f7faf9; }
.guide-chat-panel strong { color: #234951; font-size: 14px; }
.guide-chat-panel p { margin: 5px 0 12px; color: #60757d; font-size: 11px; }
.guide-chat-panel textarea { display: block; width: 100%; min-height: 118px; padding: 11px 12px; resize: vertical; color: #294d56; border: 1px solid #c1d2d3; border-radius: 10px; background: #fff; font: 12px/1.5 ui-monospace,Consolas,monospace; }
.guide-chat-panel .button { width: 100%; min-height: 42px; margin-top: 9px; }
.guide-email-panel { margin-top: 18px; padding: clamp(18px,3vw,26px); border: 1px solid #b9d4d4; border-radius: 16px; background: #f1f8f7; }
.guide-email-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.guide-email-heading strong, .guide-email-heading span { display: block; }
.guide-email-heading strong { font-size: 18px; }
.guide-email-heading span { max-width: 620px; margin-top: 4px; color: #5e737b; font-size: 12px; }
.guide-email-heading button { width: 32px; height: 32px; color: #42616a; border: 1px solid #bfd1d2; border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.guide-email-form { margin-top: 20px; }
.guide-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.guide-email-form label { color: #274852; font-size: 11px; font-weight: 800; }
.guide-email-form label small { color: #71858c; font-weight: 600; }
.guide-email-form input[type="text"], .guide-email-form input[type="tel"], .guide-email-form input[type="email"], .guide-email-form textarea { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; color: var(--ink); border: 1px solid #bfd0d2; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; }
.guide-email-form textarea { min-height: 104px; resize: vertical; }
.guide-email-form input:focus, .guide-email-form textarea:focus { border-color: var(--cyan-dark); outline: 2px solid rgba(21,153,143,.14); }
.guide-email-wide { grid-column: 1 / -1; }
.guide-security { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(0,1fr); gap: 18px; align-items: center; margin-top: 18px; }
.guide-privacy { display: flex; align-items: flex-start; gap: 9px; color: #536a73 !important; font-weight: 600 !important; }
.guide-privacy input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--cyan-dark); }
.guide-privacy a { color: #087e78; font-weight: 800; text-decoration: underline; }
.guide-email-submit { width: 100%; margin-top: 18px; }
.guide-email-submit:disabled { cursor: wait; opacity: .58; }
.guide-email-status { margin: 9px 0 0; color: #5d737b; font-size: 11px; text-align: center; }
.guide-email-status.is-success { color: #087068; font-weight: 800; }
.guide-restart { display: block; margin: 18px auto 0; padding: 8px 12px; color: #557079; border: 0; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }

.guide-error { display: grid; place-items: center; min-height: 260px; padding: 30px; text-align: center; }
.guide-error strong { font-size: 22px; }
.guide-error p { max-width: 540px; color: #60757e; }
.guide-error a { color: #087e78; font-weight: 850; }
.guide-error button { padding: 10px 15px; color: var(--ink); border: 0; border-radius: 9px; background: var(--cyan); font-weight: 850; cursor: pointer; }
.guide-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.guide-note h2 { margin: 6px 0 7px; font-size: 25px; letter-spacing: -.03em; }
.guide-note p { margin: 0; color: var(--muted); font-size: 13px; }
.guide-note-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.guide-note .button.secondary { color: #d8e4e7; border-color: rgba(255,255,255,.2); background: transparent; }
.guide-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px clamp(18px,4vw,54px); color: #839ba5; border-top: 1px solid var(--line); font-size: 11px; }
.guide-footer a:hover { color: var(--cyan); }

[hidden] { display: none !important; }
@media (max-width: 760px) {
  .guide-header { min-height: 68px; }
  .guide-brand img { width: 96px; }
  .test-badge { display: none; }
  .guide-shell { width: min(100% - 24px, 620px); padding: 44px 0 68px; }
  .guide-intro { grid-template-columns: 1fr; gap: 22px; }
  .guide-intro h1 { font-size: clamp(39px,12vw,58px); }
  .guide-card { margin-top: 30px; padding: 22px 16px; border-radius: 20px; }
  .guide-options { grid-template-columns: 1fr; }
  .result-heading { align-items: flex-start; flex-direction: column-reverse; }
  .result-actions { grid-template-columns: 1fr; }
  .guide-form-grid, .guide-security { grid-template-columns: 1fr; }
  .guide-email-wide { grid-column: auto; }
  .guide-email-panel { padding: 18px 13px; }
  .guide-note { align-items: stretch; flex-direction: column; padding: 24px 19px; }
  .guide-note-actions { flex-direction: column; }
}
