:root {
  --ink: #151515;
  --ink-soft: #4d4d4d;
  --muted: #777777;
  --line: #e2e2e2;
  --line-strong: #c5c5c5;
  --paper: #ffffff;
  --white: #ffffff;
  --teal: #d7193f;
  --teal-dark: #a70f2b;
  --teal-soft: #fbe7ec;
  --lime: #f2c14b;
  --lime-soft: #fff4d9;
  --amber: #b87211;
  --amber-soft: #fff2d8;
  --red: #b7423e;
  --red-soft: #fde9e6;
  --shadow: 0 18px 55px rgba(32, 64, 61, 0.09);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #f1f6f3; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fafafa 0%, #f2f2f2 52%, #fffaf5 100%);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one { top: -210px; right: 7%; background: rgba(215, 25, 63, .11); }
.ambient-two { bottom: -260px; left: -130px; background: rgba(242, 193, 75, .12); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 48px 14px;
  border-bottom: 3px solid var(--teal);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.brand-logo-wrap { display: grid; place-items: center; width: 82px; height: 72px; overflow: hidden; background: #fff; }
.brand-logo { display: block; width: 82px; height: 72px; object-fit: contain; }
.brand-context { display: grid; gap: 4px; }
.brand-context strong { color: var(--teal-dark); font-size: 15px; letter-spacing: .02em; }
.brand-context small { color: var(--ink-soft); font-size: 11px; letter-spacing: .02em; }

.policy-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .03em;
}

.policy-date strong { color: var(--ink); font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14, 106, 101, .10); }

.app-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 0;
  width: min(1280px, calc(100% - 64px));
  min-height: 740px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(203, 216, 212, .82);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.progress-panel {
  display: flex;
  flex-direction: column;
  padding: 46px 38px 38px;
  color: #edf7f1;
  background:
    radial-gradient(circle at 94% 3%, rgba(215, 25, 63, .22), transparent 25%),
    linear-gradient(155deg, #252525 0%, #111111 100%);
}

.eyebrow {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.progress-panel h2 {
  margin: 18px 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.progress-panel h2 em { color: var(--lime); font-style: normal; }
.side-copy { max-width: 238px; margin: 0; color: rgba(237, 247, 241, .70); font-size: 13px; line-height: 1.65; }
.progress-list { display: grid; gap: 14px; margin-top: 52px; }

.progress-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  color: rgba(237, 247, 241, .45);
  font-size: 12px;
}

.progress-item .progress-index {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(237, 247, 241, .22);
  border-radius: 50%;
  font-size: 11px;
}

.progress-item.active { color: #fff; font-weight: 700; }
.progress-item.active .progress-index { color: var(--teal-dark); border-color: var(--lime); background: var(--lime); }
.progress-item.done { color: rgba(237, 247, 241, .72); }
.progress-item.done .progress-index { border-color: rgba(216, 238, 114, .5); color: var(--lime); }

.side-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(237, 247, 241, .15);
}

.note-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(216, 238, 114, .7);
  border-radius: 50%;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
}

.side-note p { margin: 0; color: rgba(237, 247, 241, .56); font-size: 11px; line-height: 1.55; }

.workspace { min-width: 0; padding: 52px 68px 55px; background: rgba(255, 255, 255, .87); }

.screen { max-width: 760px; margin: 0 auto; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.screen-kicker { margin-bottom: 14px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.screen h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.03; letter-spacing: -.07em; }
.screen h1 span { color: var(--teal); }
.screen-intro { max-width: 620px; margin: 18px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.hero-strip {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin: 36px 0 28px;
}

.hero-card { min-height: 152px; padding: 24px; border-radius: 18px; }
.hero-card.primary { color: #eef9f3; background: var(--teal); }
.hero-card.secondary { background: var(--lime-soft); }
.hero-card-label { margin-bottom: 28px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .65; }
.hero-card strong { display: block; max-width: 240px; font-family: Arial, Helvetica, sans-serif; font-size: 22px; line-height: 1.1; letter-spacing: -.045em; }
.hero-card p { margin: 9px 0 0; font-size: 12px; line-height: 1.55; opacity: .75; }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice-card {
  position: relative;
  width: 100%;
  min-height: 152px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.choice-card:hover { border-color: #96bbb4; box-shadow: 0 8px 25px rgba(14, 106, 101, .09); transform: translateY(-2px); }
.choice-card.selected { border-color: var(--teal); background: #f4fbf9; box-shadow: 0 0 0 3px rgba(14, 106, 101, .10); }
.choice-card .choice-icon { display: grid; place-items: center; width: 33px; height: 33px; margin-bottom: 24px; border-radius: 10px; color: var(--teal); background: var(--teal-soft); font-size: 16px; font-weight: 700; }
.choice-card strong { display: block; margin-bottom: 7px; font-size: 14px; line-height: 1.25; }
.choice-card small { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.choice-card .check { position: absolute; top: 15px; right: 15px; display: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; text-align: center; background: var(--teal); font-size: 11px; line-height: 18px; }
.choice-card.selected .check { display: block; }

.form-section { margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-hint { margin: -2px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.field input, .field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 106, 101, .11); }

.inline-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: #fff; font-size: 12px; }
.pill-choice input { accent-color: var(--teal); }
.pill-choice:has(input:checked) { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); }

.callout { display: flex; gap: 12px; margin-top: 18px; padding: 15px 16px; border-radius: 12px; color: var(--ink-soft); background: #f5f8f5; font-size: 12px; line-height: 1.6; }
.callout.warning { color: #7a5419; background: var(--amber-soft); }
.callout.danger { color: #8b3632; background: var(--red-soft); }
.callout strong { color: var(--ink); }
.callout .callout-icon { flex: 0 0 auto; font-weight: 800; }

.button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 39px; }
.button-group { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; transition: .18s ease; }
.btn.primary { color: #fff; background: var(--teal); }
.btn.primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn.secondary { border-color: var(--line-strong); color: var(--ink-soft); background: #fff; }
.btn.secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn.text { min-height: auto; padding: 8px 0; color: var(--ink-soft); background: transparent; }
.btn.text:hover { color: var(--teal); }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.result-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.result-status.onshore { color: var(--teal-dark); background: var(--teal-soft); }
.result-status.offshore { color: #8b3632; background: var(--red-soft); }
.result-status.review { color: #7a5419; background: var(--amber-soft); }
.result-status .status-dot { width: 6px; height: 6px; box-shadow: none; background: currentColor; }

.decision-card { padding: 25px; border-radius: 17px; background: var(--teal); color: #eff8f3; }
.decision-card.offshore { background: #8f423d; }
.decision-card.review { background: #93631b; }
.decision-card .decision-label { margin-bottom: 12px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.decision-card h2 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 29px; line-height: 1.08; letter-spacing: -.05em; }
.decision-card p { max-width: 590px; margin: 12px 0 0; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.65; }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.result-panel { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.result-panel.wide { grid-column: 1 / -1; }
.result-panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 13px; }
.panel-tag { padding: 5px 7px; border-radius: 6px; color: var(--teal-dark); background: var(--teal-soft); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel-tag.warn { color: #8b3632; background: var(--red-soft); }
.panel-tag.review { color: #7a5419; background: var(--amber-soft); }
.result-panel p, .result-panel li { color: var(--ink-soft); font-size: 12px; line-height: 1.62; }
.result-panel p { margin: 0; }
.result-panel ul { margin: 10px 0 0; padding-left: 17px; }
.result-panel li + li { margin-top: 5px; }
.result-panel strong { color: var(--ink); }

.steps-list { display: grid; gap: 11px; margin-top: 15px; }
.step-item { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: start; }
.step-number { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--teal-dark); background: var(--lime); font-size: 10px; font-weight: 800; }
.step-item p { margin: 2px 0 0; }

.sources { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.sources a { margin-right: 14px; color: var(--teal); font-size: 11px; font-weight: 600; text-decoration: none; }
.sources a:hover { text-decoration: underline; }

.site-footer { display: flex; justify-content: space-between; gap: 16px; width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 19px 4px 26px; color: var(--muted); font-size: 10px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }

@media (max-width: 960px) {
  .topbar { padding-inline: 26px; }
  .app-shell { grid-template-columns: 250px minmax(0, 1fr); width: calc(100% - 36px); }
  .progress-panel { padding: 35px 25px 28px; }
  .progress-panel h2 { font-size: 27px; }
  .workspace { padding: 40px 35px 45px; }
}

@media (max-width: 720px) {
  .topbar { padding: 22px 20px 16px; }
  .policy-date { font-size: 10px; }
  .app-shell { display: block; width: calc(100% - 24px); min-height: auto; border-radius: 19px; }
  .progress-panel { display: block; padding: 25px 23px 21px; }
  .progress-panel h2 { margin: 11px 0 9px; font-size: 25px; }
  .side-copy, .side-note { display: none; }
  .progress-list { display: flex; gap: 5px; margin-top: 22px; }
  .progress-item { display: flex; flex: 1; gap: 0; justify-content: center; }
  .progress-item span:last-child { display: none; }
  .progress-item .progress-index { width: 25px; height: 25px; }
  .workspace { padding: 34px 22px 38px; }
  .screen h1 { font-size: 34px; }
  .hero-strip, .choice-grid, .choice-grid.two, .field-row, .result-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 128px; }
  .hero-card-label { margin-bottom: 19px; }
  .choice-card { min-height: 125px; }
  .choice-card .choice-icon { margin-bottom: 15px; }
  .result-header { display: block; }
  .result-status { margin-top: 17px; }
  .result-panel.wide { grid-column: auto; }
  .site-footer { display: block; width: calc(100% - 32px); padding-bottom: 20px; }
  .footer-links { margin-top: 10px; }
}
