:root {
  color-scheme: light;
  --navy-950: #04111f;
  --navy-900: #071b2f;
  --navy-800: #0c2c45;
  --blue-600: #126586;
  --aqua-500: #2ca9a0;
  --paper: #f3f7f6;
  --white: #ffffff;
  --ink: #102435;
  --muted: #60727e;
  --line: #d8e3e4;
  --signal: #f4b942;
  --signal-dark: #bc7412;
  --danger: #c84b45;
  --success: #158063;
  --shadow: 0 18px 60px rgba(7, 27, 47, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
  line-height: 1.55;
}
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--signal);
  color: var(--navy-950);
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.topbar {
  height: 76px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background: repeating-linear-gradient(100deg, transparent 0 70px, rgba(255,255,255,.12) 71px, transparent 72px 140px);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .7rem; z-index: 1; }
.brand-mark { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; border-radius: 50%; color: var(--signal); }
.brand strong, .brand small, .exam-date strong, .exam-date small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: .12em; }
.brand small { color: #a9c3cf; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.exam-date { display: flex; align-items: center; gap: .65rem; z-index: 1; }
.exam-date strong { font-size: .9rem; }
.exam-date-prefix { color: #a9c3cf; font-weight: 600; }
.exam-date small { color: #a9c3cf; font-size: .75rem; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 6px rgba(244,185,66,.15); }
.date-picker { width: 38px; height: 38px; position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; color: var(--signal); transition: background .15s ease, border-color .15s ease; }
.date-picker:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.date-picker button { position: absolute; inset: 0; z-index: 2; width: 100%; min-height: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: inherit; background: transparent; color: inherit; cursor: pointer; }
.date-picker input { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.date-picker:has(button:focus-visible) { outline: 3px solid rgba(244,185,66,.35); outline-offset: 2px; }
.calendar-icon { pointer-events: none; font-size: 1.2rem; line-height: 1; transform: translateY(-1px); }

main { min-height: calc(100vh - 76px); }
.setup-shell, .quiz-shell, .results-shell, .sources-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.setup-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 7rem) 0 6rem;
  position: relative;
}
.setup-shell::before {
  content: "";
  position: absolute;
  left: -9vw;
  top: 8%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border: 1px solid rgba(18,101,134,.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 70px rgba(44,169,160,.03), inset 0 0 0 140px rgba(18,101,134,.03);
  pointer-events: none;
}
.setup-copy, .setup-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .8rem; color: var(--blue-600); font-size: .78rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; }
h1, h2, p { text-wrap: pretty; }
.setup-copy h1 { margin: 0; font-size: clamp(2.6rem, 5.5vw, 5.2rem); line-height: .99; letter-spacing: -.055em; max-width: 760px; }
.setup-copy h1 span { color: var(--blue-600); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 640px; color: #3d5565; margin: 1.8rem 0; }
.source-note { display: flex; gap: .9rem; align-items: flex-start; max-width: 650px; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.source-note > span { flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid var(--blue-600); color: var(--blue-600); border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: Georgia, serif; }
.source-note p { margin: 0; color: var(--muted); font-size: .9rem; }

.setup-card { background: var(--white); border: 1px solid rgba(7,27,47,.08); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.setup-card-head { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.step-number { color: var(--signal-dark); font: 800 2rem/1 ui-monospace, monospace; }
.setup-card h2 { margin: 0; font-size: 1.4rem; }
.setup-card-head p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
fieldset { border: 0; padding: 0; margin: 1.45rem 0; }
legend { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.category-picks { display: grid; gap: .55rem; }
.category-picks label { position: relative; display: block; }
.category-picks input { position: absolute; opacity: 0; }
.category-picks label > span { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: #38505e; transition: .18s ease; cursor: pointer; }
.category-picks label > span::after { content: ""; width: 17px; height: 17px; border: 1px solid #99adb5; border-radius: 5px; flex: 0 0 auto; }
.category-picks small { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.category-picks input:checked + span { border-color: var(--blue-600); background: #edf8f8; color: var(--navy-900); font-weight: 700; }
.category-picks input:checked + span::after { border-color: var(--aqua-500); background: var(--aqua-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px; }
.category-picks input:checked + span small { color: var(--blue-600); }
.category-picks input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid rgba(18,101,134,.25); outline-offset: 2px; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px; background: var(--paper); border-radius: 11px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { min-height: 40px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 700; }
.segmented input:checked + span { background: var(--navy-900); color: white; box-shadow: 0 4px 12px rgba(7,27,47,.2); }
.segmented b { font-size: .7rem; background: rgba(255,255,255,.14); padding: .1rem .35rem; border-radius: 99px; margin-left: .25rem; }
.switch-row { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: 1.1rem 0; cursor: pointer; }
.switch-row > span:first-child { flex: 1; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--muted); font-size: .8rem; }
.switch-row input { position: absolute; opacity: 0; }
.switch { width: 46px; height: 26px; background: #b6c4c9; border-radius: 99px; position: relative; transition: .2s; }
.switch::after { content: ""; width: 20px; height: 20px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.switch-row input:checked + .switch { background: var(--aqua-500); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }

.primary-button, .finish-button, .secondary-button, .resume-button, .text-button { border: 0; border-radius: 10px; min-height: 48px; padding: .75rem 1rem; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.primary-button, .finish-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--navy-950); background: var(--signal); box-shadow: 0 8px 22px rgba(188,116,18,.2); }
.primary-button:hover, .finish-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(188,116,18,.28); }
.primary-button span:last-child, .finish-button span:last-child { font-size: 1.25rem; }
.secondary-button, .resume-button { background: transparent; border: 1px solid #9eb0b8; color: var(--navy-900); }
.resume-button { width: 100%; margin-top: .65rem; }
.text-button { background: transparent; color: var(--blue-600); padding-inline: .3rem; }
button:focus-visible { outline: 3px solid rgba(18,101,134,.3); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; transform: none; }
.archive-strip { grid-column: 1 / -1; margin-top: 1rem; display: grid; grid-template-columns: auto auto 1fr auto; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.2rem; color: var(--muted); font-size: .85rem; }
.archive-strip strong { font-size: 1.05rem; color: var(--navy-900); white-space: nowrap; }
.archive-strip span:nth-of-type(2) { text-align: right; }

.quiz-shell { padding: 3rem 0 6rem; }
.quiz-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.quiz-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.progress-dock { position: sticky; top: .75rem; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 15px; padding: 1rem; box-shadow: 0 10px 30px rgba(7,27,47,.1); margin-bottom: 1.5rem; }
.progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; margin-bottom: .6rem; }
.progress-copy span { color: var(--muted); }
.progress-stats { display: flex; align-items: center; gap: .85rem; }
.elapsed-time, .limit-time { display: flex; align-items: baseline; gap: .4rem; padding-right: .85rem; border-right: 1px solid var(--line); white-space: nowrap; }
.elapsed-time strong, .limit-time strong { color: var(--navy-900); font: 800 .84rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.limit-time strong { color: var(--signal-dark); }
.progress-track { height: 7px; background: #dfe9ea; border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--aqua-500), var(--blue-600)); border-radius: inherit; transition: width .25s ease; }
.category-progress { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.category-progress span { border: 1px solid var(--line); border-radius: 99px; padding: .25rem .55rem; font-size: .72rem; color: var(--muted); background: white; }
.category-progress span.done { border-color: rgba(21,128,99,.35); color: var(--success); background: #ecf8f4; }

.question-list { display: grid; gap: 1rem; }
.question-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.1rem, 2.5vw, 1.7rem); position: relative; overflow: hidden; scroll-margin-top: 150px; }
.question-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue-600); }
.question-card.correct { border-color: rgba(21,128,99,.45); }
.question-card.correct::before { background: var(--success); }
.question-card.incorrect { border-color: rgba(200,75,69,.45); }
.question-card.incorrect::before { background: var(--danger); }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .76rem; margin-bottom: .8rem; }
.question-meta span:first-child { font: 800 .8rem/1 ui-monospace, monospace; color: var(--signal-dark); }
.question-card h2 { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.42; margin: 0 0 1rem; }
.options { display: grid; gap: .55rem; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option-body { display: grid; grid-template-columns: 30px 1fr auto; gap: .75rem; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; transition: .15s ease; }
.option-letter { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; background: var(--paper); color: var(--muted); font-weight: 800; font-size: .82rem; }
.option:hover .option-body { border-color: #92aeb8; background: #f8fbfb; }
.option input:checked + .option-body { border-color: var(--blue-600); background: #eef8fa; }
.option input:checked + .option-body .option-letter { background: var(--blue-600); color: white; }
.option input:focus-visible + .option-body { outline: 3px solid rgba(18,101,134,.22); outline-offset: 2px; }
.question-card.reviewed .option { cursor: default; }
.question-card.reviewed .option-body { opacity: .76; }
.question-card.reviewed .option.correct-option .option-body { border-color: var(--success); background: #edf9f5; opacity: 1; }
.question-card.reviewed .option.correct-option .option-letter { background: var(--success); color: white; }
.question-card.reviewed .option.wrong-option .option-body { border-color: var(--danger); background: #fff2f1; opacity: 1; }
.question-card.reviewed .option.wrong-option .option-letter { background: var(--danger); color: white; }
.option-icon { font-weight: 900; }
.correct-option .option-icon { color: var(--success); }
.wrong-option .option-icon { color: var(--danger); }
.explanation { margin-top: 1rem; border-radius: 11px; background: var(--navy-900); color: #eaf2f4; padding: 1rem 1.1rem; }
.explanation strong { color: var(--signal); display: block; margin-bottom: .35rem; }
.explanation p { margin: 0; }
.explanation small { display: block; color: #9db9c5; margin-top: .55rem; }
.finish-panel { margin-top: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--navy-900); color: white; border-radius: 18px; display: grid; grid-template-columns: 1fr minmax(210px, 300px); gap: 1rem 2rem; align-items: center; }
.finish-panel .eyebrow { color: var(--signal); }
.finish-panel h2 { margin: 0; }
.finish-panel p:last-child { margin: .3rem 0 0; color: #abc2cb; }
.finish-panel .secondary-button { grid-column: 2; color: white; border-color: #6f8a96; }

.results-shell { padding: 4rem 0 2rem; }
.results-hero { background: var(--navy-900); color: white; border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); overflow: hidden; position: relative; }
.results-hero::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -90px; top: -150px; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.02); }
.score-ring { --score: 0; flex: 0 0 auto; width: clamp(130px, 18vw, 180px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--signal) calc(var(--score) * 1%), rgba(255,255,255,.12) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--navy-900); }
.score-ring div { position: relative; display: flex; align-items: baseline; }
.score-ring strong { font-size: clamp(2.7rem, 6vw, 4.5rem); line-height: 1; }
.score-ring span { color: var(--signal); font-weight: 800; }
.results-hero .eyebrow { color: var(--signal); }
.results-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.results-hero p:last-child { color: #b6ccd4; max-width: 620px; }
.result-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-top: 1rem; }
.result-card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 1rem; }
.result-card span, .result-card strong, .result-card small { display: block; }
.result-card span { color: var(--muted); font-size: .75rem; min-height: 2.4em; }
.result-card strong { font-size: 1.7rem; margin: .35rem 0; }
.result-card small { color: var(--success); }
.result-actions { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: center; gap: .75rem; margin-top: 1rem; }
.result-actions .text-button { justify-self: end; }

.sources-shell { padding: 5rem 0 4rem; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); border-top: 1px solid var(--line); }
.sources-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 1rem; }
.sources-heading > p:last-child { color: var(--muted); }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.source-grid a { min-height: 102px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-decoration: none; color: var(--ink); display: grid; grid-template-columns: 1fr auto; align-content: space-between; transition: .15s ease; }
.source-grid a:hover { transform: translateY(-2px); border-color: var(--blue-600); box-shadow: 0 8px 20px rgba(7,27,47,.08); }
.source-grid span { grid-column: 1; color: var(--signal-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.source-grid strong { grid-column: 1; font-size: .9rem; }
.source-grid em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--blue-600); align-self: center; font-size: 1.2rem; }
footer { background: var(--navy-950); color: #9fb4be; padding: 1.4rem max(1rem, calc((100vw - 1180px) / 2)); font-size: .82rem; }
footer p { margin: 0; max-width: 900px; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 130%); z-index: 100; background: var(--navy-950); color: white; padding: .75rem 1rem; border-radius: 9px; box-shadow: var(--shadow); transition: transform .25s ease; text-align: center; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .setup-shell { grid-template-columns: 1fr; padding-top: 3.5rem; gap: 2.5rem; }
  .setup-copy h1 { max-width: 700px; }
  .archive-strip { grid-template-columns: 1fr auto; }
  .archive-strip span:nth-of-type(2) { text-align: left; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card:last-child { grid-column: 1 / -1; }
  .sources-shell { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { height: 68px; padding-inline: 1rem; }
  .exam-date strong { font-size: .82rem; }
  .exam-date small { font-size: .68rem; }
  .pulse-dot { display: none; }
  .date-picker { width: 36px; height: 36px; }
  .setup-shell, .quiz-shell, .results-shell, .sources-shell { width: min(100% - 1rem, 1180px); }
  .setup-shell { padding-top: 2.5rem; }
  .setup-copy h1 { font-size: 2.55rem; }
  .lead { margin-top: 1.3rem; }
  .setup-card { border-radius: 16px; }
  .archive-strip { font-size: .75rem; gap: .7rem; }
  .quiz-shell { padding-top: 1.5rem; }
  .quiz-header { align-items: flex-start; }
  .quiz-header .text-button { white-space: nowrap; }
  .progress-dock { top: .35rem; border-radius: 12px; }
  .progress-copy { align-items: flex-start; }
  .progress-stats { align-items: flex-end; flex-direction: column-reverse; gap: .15rem; }
  .elapsed-time, .limit-time { border-right: 0; padding-right: 0; gap: .3rem; }
  .elapsed-time > span, .limit-time > span { font-size: .68rem; }
  .category-progress { display: none; }
  .question-card { border-radius: 12px; padding: 1rem .85rem 1rem 1rem; }
  .question-meta { align-items: flex-start; }
  .option-body { grid-template-columns: 28px 1fr auto; padding: .6rem; gap: .55rem; }
  .finish-panel { grid-template-columns: 1fr; }
  .finish-panel .secondary-button { grid-column: 1; }
  .results-hero { flex-direction: column; text-align: center; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-card:last-child { grid-column: 1 / -1; }
  .result-actions { grid-template-columns: 1fr; }
  .result-actions .text-button { justify-self: stretch; }
  .source-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Deniz Talimi premium landing page */
.topbar {
  height: 98px;
  padding-inline: max(1rem, calc((100vw - 1220px) / 2));
  background:
    linear-gradient(90deg, rgba(3,18,30,.95), rgba(3,42,59,.68)),
    #031a2b url("maritime-premium-texture.png") center top / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.13);
  overflow: visible;
  z-index: 40;
}
.topbar::after { display: none; }
.brand { gap: .9rem; }
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 5px;
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 18px rgba(0,0,0,.24);
}
.brand strong { font: 800 1.28rem/1.1 Georgia, serif; letter-spacing: .03em; }
.brand small { color: #a7d0d5; font-size: .65rem; letter-spacing: .16em; margin-top: .35rem; }
.topnav { display: flex; align-items: center; gap: 1.8rem; position: relative; z-index: 1; }
.topnav a { color: #c4dadd; text-decoration: none; font-size: .8rem; font-weight: 750; transition: color .15s ease; }
.topnav a:hover, .topnav a:focus-visible { color: white; }
.exam-date { padding: .58rem .7rem .58rem .9rem; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.date-picker { border-color: rgba(244,185,66,.45); background: rgba(244,185,66,.08); }

main { min-height: calc(100vh - 98px); }
.setup-shell {
  width: 100%;
  max-width: none;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0 0 6rem;
  background: #f5faf9;
  overflow: hidden;
}
.setup-shell::before { display: none; }
.landing-hero {
  min-height: 640px;
  color: white;
  position: relative;
  overflow: hidden;
  background: #031a2b url("maritime-premium-texture.png") center 22% / cover no-repeat;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,18,30,.93) 0%, rgba(3,26,43,.74) 43%, rgba(3,37,54,.34) 100%),
    radial-gradient(circle at 76% 34%, rgba(28,196,190,.14), transparent 28rem),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(1,16,28,.18));
}
.landing-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -82px;
  height: 155px;
  background: #f5faf9;
  border-radius: 50% 50% 0 0 / 48% 48% 0 0;
  box-shadow: 0 -18px 0 rgba(18,174,176,.16), 0 -36px 0 rgba(255,255,255,.055);
}
.hero-inner {
  width: min(1220px, calc(100% - 2rem));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: 44px 0 135px;
  position: relative;
  z-index: 2;
}
.hero-copy { position: relative; z-index: 3; }
.status-pill { display: inline-flex; align-items: center; gap: .7rem; padding: .5rem .8rem .5rem .5rem; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); border-radius: 99px; color: #c9dcdf; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status-pill b { color: var(--navy-950); background: #f2cc62; padding: .3rem .55rem; border-radius: 99px; letter-spacing: .1em; }
.hero-copy h1 { margin: 1.5rem 0 1.15rem; font-size: clamp(3.15rem, 5.4vw, 5.5rem); line-height: .96; letter-spacing: -.065em; max-width: 720px; }
.hero-copy h1 span { display: block; color: #f2cc62; font-family: Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: -.045em; }
.hero-copy .lead { max-width: 620px; color: #c7dade; font-size: 1.08rem; line-height: 1.7; margin: 0; }
.hero-actions { display: flex; gap: .75rem; margin: 1.8rem 0; }
.hero-primary, .hero-ghost { min-height: 50px; padding: 0 1.2rem; border-radius: 12px; display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.hero-primary { background: linear-gradient(135deg, #f8dc83, #d3a92f); color: #031a2b; box-shadow: 0 12px 28px rgba(211,169,47,.22); }
.hero-ghost { color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); }
.hero-primary:hover, .hero-ghost:hover { transform: translateY(-2px); }
.metrics { display: flex; gap: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); max-width: 610px; }
.metrics strong, .metrics small { display: block; }
.metrics strong { font-size: 1.35rem; color: white; }
.metrics small { color: #93b9c0; font-size: .67rem; margin-top: .2rem; }
.hero-visual { min-height: 480px; position: relative; }
.hero-visual::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: 2%; top: 3%; background: radial-gradient(circle, rgba(39,210,201,.2), rgba(9,93,118,.04) 58%, transparent 70%); filter: blur(4px); }
.ship-art { position: absolute; z-index: 2; width: min(790px, 62vw); right: -105px; bottom: -18px; object-fit: contain; filter: drop-shadow(0 28px 35px rgba(0,0,0,.28)); }

.route-cards { width: min(1120px, calc(100% - 2rem)); margin: -92px auto 0; position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.route-card { min-height: 155px; padding: 1.1rem; display: grid; grid-template-columns: 48px 1fr; gap: .85rem; align-content: start; border: 1px solid rgba(5,43,67,.09); border-radius: 19px; background: rgba(255,255,255,.96); box-shadow: 0 18px 45px rgba(5,43,67,.13); backdrop-filter: blur(12px); }
.route-card.active { color: white; border-color: rgba(255,255,255,.16); background: linear-gradient(140deg, #052b43, #08778d); }
.route-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #086784; background: #e9f7f6; font-size: 1.1rem; }
.route-card.active .route-icon { color: #f2cc62; background: rgba(255,255,255,.12); }
.route-card h2 { margin: .1rem 0 .35rem; font-size: .92rem; }
.route-card p { margin: 0; color: #72878f; font-size: .66rem; line-height: 1.5; }
.route-card.active p { color: #afd0d4; }
.route-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: .75rem; margin-top: auto; border-top: 1px solid #e1ebeb; font-size: .62rem; font-weight: 850; }
.route-card.active .route-meta { border-color: rgba(255,255,255,.15); }
.route-meta a, .route-meta span:last-child { color: #086784; text-decoration: none; }
.route-card.active .route-meta a, .route-card.active .route-meta span:last-child { color: #f2cc62; }

.builder-section { width: min(1220px, calc(100% - 2rem)); margin: 0 auto; padding: 76px 0 20px; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.builder-section::before { content: ""; position: absolute; left: -20vw; right: -20vw; top: 0; bottom: -6rem; z-index: 0; opacity: .42; background: radial-gradient(circle at 20% 35%, rgba(18,174,176,.12), transparent 25rem), repeating-linear-gradient(120deg, transparent 0 120px, rgba(5,43,67,.025) 121px, transparent 122px 240px); }
.builder-copy, .builder-section .setup-card { position: relative; z-index: 1; }
.builder-copy h2 { margin: .65rem 0 1rem; font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.055em; }
.builder-copy > p:not(.eyebrow) { color: #627983; line-height: 1.7; }
.feature-list { display: grid; gap: .65rem; margin-top: 1.35rem; }
.feature { display: flex; align-items: center; gap: .7rem; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.72); }
.feature b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: white; background: #12aeb0; font-size: .72rem; }
.feature span { font-size: .76rem; font-weight: 760; }
.builder-copy .source-note { margin-top: 1.35rem; }
.builder-copy .source-note p { font-size: .78rem; }
.builder-section .setup-card { border-radius: 27px; padding: 1.55rem; background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(5,43,67,.16); }
.builder-section .setup-card::before { content: ""; position: absolute; top: -1px; left: 26px; right: 26px; height: 4px; border-radius: 0 0 9px 9px; background: linear-gradient(90deg, #d3a92f, #12aeb0, #086784); }
.builder-section .setup-card-head { justify-content: space-between; }
.builder-section .setup-card-head .eyebrow { margin: 0 0 .35rem; }
.panel-seal { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #d3a92f; background: linear-gradient(145deg, #052b43, #084b64); box-shadow: 0 8px 18px rgba(5,43,67,.22); }
.module-row { display: flex; align-items: center; gap: .75rem; padding: .7rem; margin-top: 1rem; background: linear-gradient(90deg, #eaf8f7, #f5fbfa); border: 1px solid rgba(18,174,176,.3); border-radius: 13px; }
.module-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: #052b43; color: #f2cc62; font-size: 1.05rem; }
.module-row strong, .module-row small { display: block; }
.module-row strong { font-size: .85rem; }
.module-row small { color: #6c8089; font-size: .66rem; margin-top: .15rem; }
.module-row em { margin-left: auto; padding: .32rem .48rem; border-radius: 99px; background: white; color: #086784; font-style: normal; font-size: .62rem; font-weight: 800; border: 1px solid #d6e8e8; }
.builder-section .category-picks { grid-template-columns: 1fr 1fr; gap: .45rem; }
.builder-section .category-picks label > span { min-height: 47px; padding: .55rem .65rem; font-size: .69rem; }
.builder-section .category-picks small { font-size: .62rem; }
.builder-section fieldset { margin: 1rem 0; }
.builder-section legend { font-size: .65rem; margin-bottom: .55rem; }
.builder-section .switch-row { padding: .8rem 0; }
.builder-section .primary-button { min-height: 51px; border-radius: 12px; background: linear-gradient(135deg, #f8da78, #d3a92f); }

footer { background: #031a2b; }

@media (max-width: 1000px) {
  .topnav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 55px; }
  .landing-hero, .hero-inner { min-height: 980px; }
  .hero-visual { min-height: 410px; }
  .ship-art { width: 760px; max-width: 110vw; right: -8vw; }
  .route-cards, .builder-section { grid-template-columns: 1fr; }
  .route-cards { margin-top: -65px; }
  .builder-section { max-width: 760px; }
}

@media (max-width: 640px) {
  .topbar { height: 78px; }
  .brand-logo { width: 48px; height: 48px; border-radius: 13px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { display: none; }
  .exam-date { padding: .35rem; }
  .exam-date .pulse-dot, .exam-date > span { display: none; }
  main { min-height: calc(100vh - 78px); }
  .landing-hero, .hero-inner { min-height: 810px; }
  .hero-inner { width: min(100% - 1.25rem, 1220px); padding-top: 42px; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 3.65rem); }
  .hero-copy .lead { font-size: .95rem; }
  .hero-actions { flex-wrap: wrap; }
  .metrics { gap: 1rem; }
  .metrics strong { font-size: 1.12rem; }
  .hero-visual { min-height: 300px; }
  .ship-art { width: 610px; max-width: 135vw; right: -28vw; }
  .route-cards { width: min(100% - 1rem, 1120px); }
  .builder-section { width: min(100% - 1rem, 760px); padding-top: 54px; }
  .builder-copy h2 { font-size: 2.65rem; }
  .builder-section .setup-card { padding: 1rem; border-radius: 18px; }
  .builder-section .category-picks { grid-template-columns: 1fr; }
  .builder-section .segmented span { font-size: .76rem; }
  .module-row em { display: none; }
}
