/* Skill Passport page (passport.html) styles. Shared nav, footer, colours and buttons live in global.css. */

:root {
  --forest: #07111f;
  --deep: #07111f;
  --green: #087a56;
  --mint: #e9f7f2;
  --lime: #55e6b5;
  --paper: #f4f7f8;
  --white: #fff;
  --ink: #07111f;
  --muted: #526174;
  --line: #e0e7ea;
  --amber: #8b5707;
  --amberbg: #fff2d9;
  --red: #aa3d37;
  --redbg: #fff0ed;
  --shadow: 0 18px 48px #07111f0c;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #21c98f;
}
a {
  color: var(--green);
}
button {
  border: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
small {
  font-size: 11px;
}
svg {
  vertical-align: middle;
}
.shell {
  max-width: 1456px;
  margin: 0 auto;
  padding: 0 42px;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brandmark {
  width: 37px;
  height: 37px;
  background: var(--forest);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.brand span.iq {
  color: var(--green);
}
.tag {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dot {
  height: 6px;
  width: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}
.muted {
  color: var(--muted);
}
.hero {
  background: var(--forest);
  border-radius: 24px;
  padding: 30px 34px 28px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  display: revert;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  gap: 0;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 750;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--lime);
  margin-bottom: 11px;
}
.hero h1 {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.13;
  letter-spacing: -1.8px;
  font-weight: 630;
}
.hero p {
  color: #aebccc;
  font-size: 13px;
  max-width: 640px;
  margin-top: 14px;
}
.hero-note {
  border: 1px solid #ffffff26;
  border-radius: 16px;
  padding: 18px 20px;
  min-width: 215px;
  max-width: 270px;
  background: #ffffff06;
}
.hero-note strong {
  display: block;
  color: var(--lime);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
}
.hero-note p {
  font-size: 11px;
  line-height: 1.65;
  margin-top: 4px;
}
/* Section tabs: three cards under the hero; the active one is navy with a mint glow */
.tabsbar {
  margin: -34px 0 28px;
  position: relative;
  z-index: 2;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.tab:hover {
  border-color: #21c98f;
  transform: translateY(-2px);
}
.tab-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font:
    600 12px/1 "SFMono-Regular",
    Consolas,
    monospace;
  background: var(--mint);
  color: var(--green);
}
.tab-text b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.tab-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.tab.active {
  background: linear-gradient(135deg, #0b1a2d, #102b3c);
  border-color: rgba(85, 230, 181, 0.5);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(85, 230, 181, 0.25),
    0 14px 34px rgba(7, 17, 31, 0.25);
}
.tab.active .tab-num {
  background: #55e6b5;
  color: #07111f;
}
.tab.active .tab-text small {
  color: #aebccc;
}
.tabs-note {
  display: block;
  margin-top: 10px;
  text-align: right;
}
.tiny {
  font-size: 10px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(205px, 1fr) 402px minmax(280px, 1.36fr);
  gap: 28px;
  align-items: start;
}
.rail {
  padding: 10px 0;
}
.rail h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 7px 0;
}
.rail > p {
  font-size: 12px;
  max-width: 240px;
}
.fieldlabel {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
.route-select {
  margin: 24px 0 20px;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  text-align: left;
  background: transparent;
  border-radius: 13px;
  color: var(--muted);
  width: 100%;
  border: 1px solid transparent;
}
.step.active {
  background: var(--mint);
  border-color: #bfe9d8;
  color: var(--forest);
}
.stepnum {
  width: 29px;
  height: 29px;
  border: 1px solid #ccd7dd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.step.active .stepnum {
  background: var(--forest);
  color: var(--lime);
  border-color: var(--forest);
}
.step.done .stepnum {
  background: #e9f7f2;
  border-color: #e9f7f2;
}
.step b {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.step small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.railnote {
  font-size: 11px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  max-width: 250px;
}
.railnote b {
  display: block;
  margin-bottom: 7px;
}
.phone-wrap {
  min-width: 0;
}
.phone-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 10px;
}
.lang {
  display: flex;
  background: #e8edf0;
  border-radius: 6px;
  padding: 2px;
}
.lang button {
  background: transparent;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.lang button.active {
  background: white;
  color: var(--forest);
  box-shadow: 0 1px 3px #0001;
}
.phone {
  border: 7px solid #07111f;
  border-radius: 37px;
  background: white;
  box-shadow: 0 24px 48px #07111f12;
  overflow: hidden;
  position: relative;
}
.statusbar {
  height: 28px;
  padding: 7px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  background: white;
}
.appbar {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #e8edf0;
  background: white;
  font-size: 12px;
}
.appbar b {
  font-weight: 650;
}
.appbar-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--forest);
}
.phonebody {
  height: 580px;
  overflow-y: auto;
  background: #f8fafb;
  scrollbar-width: thin;
  scrollbar-color: #c4cfd6 transparent;
}
.screen {
  padding: 22px 19px 24px;
}
.screen h2 {
  font-size: 26px;
  line-height: 1.13;
  letter-spacing: -0.8px;
  margin: 9px 0 12px;
  font-weight: 670;
}
.screen h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.screen p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.screen .intro {
  margin-bottom: 18px;
}
.screen .eyebrow {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--green);
}
.bottomnav {
  height: 58px;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 7px 9px 6px;
}
.bottomnav button {
  background: transparent;
  font-size: 9px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  width: 30%;
}
.bottomnav button.active {
  color: var(--green);
}
.bottomnav svg {
  width: 18px;
  height: 18px;
}
.phonefooter {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
}
.card + .card {
  margin-top: 12px;
}
.card-soft {
  background: var(--mint);
  border: 1px solid #cdeedf;
  border-radius: 14px;
  padding: 16px;
}
.phone .card {
  padding: 14px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.row-top {
  align-items: flex-start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gap {
  height: 15px;
}
.gap-small {
  height: 10px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 15px;
  font-weight: 650;
  background: var(--forest);
  color: white;
  min-height: 44px;
  font-size: 12px;
  line-height: 1.25;
  border: 1px solid transparent;
}
.btn.full {
  width: 100%;
}
.btn.green {
  background: var(--green);
}
.btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--forest);
}
.btn.subtle {
  background: var(--mint);
  color: var(--forest);
}
.btn.small {
  font-size: 11px;
  padding: 9px 12px;
  min-height: 36px;
}
.btn.danger {
  color: var(--red);
  background: var(--redbg);
  border-color: #f2cdc7;
}
.btntext {
  background: transparent;
  color: var(--green);
  font-size: 11px;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn svg {
  height: 17px;
  width: 17px;
}
.badge {
  font-size: 9px;
  font-weight: 650;
  padding: 4px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--mint);
  color: var(--green);
  line-height: 1.3;
}
.badge.amber {
  background: var(--amberbg);
  color: var(--amber);
}
.badge.red {
  background: var(--redbg);
  color: var(--red);
}
.badge.gray {
  background: #eef3f6;
  color: var(--muted);
}
.icon-tile {
  height: 58px;
  width: 58px;
  display: grid;
  place-items: center;
  background: var(--forest);
  border-radius: 17px;
  color: var(--lime);
  margin: 2px 0 21px;
}
.icon-tile svg {
  height: 30px;
  width: 30px;
}
.keyvalue {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  padding: 7px 0;
  border-bottom: 1px solid #e8edf0;
}
.keyvalue:last-child {
  border-bottom: 0;
}
.keyvalue span {
  color: var(--muted);
}
.keyvalue b {
  font-weight: 600;
  text-align: right;
  max-width: 65%;
}
.mini-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
}
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 17px 0;
}
.consent input {
  accent-color: var(--green);
  margin: 3px 0 0;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.notice {
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 11px;
  line-height: 1.6;
  background: var(--mint);
  color: var(--forest);
}
.notice.amber {
  background: var(--amberbg);
  color: var(--amber);
}
.notice.red {
  background: var(--redbg);
  color: var(--red);
}
.notice.neutral {
  background: #eef3f6;
  color: var(--muted);
}
.avatar {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--lime);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.value {
  font-size: 31px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  font-weight: 630;
}
.value small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.metricrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.metric {
  padding: 13px 9px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
}
.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.metric small {
  font-size: 9px;
  color: var(--muted);
}
.evidence-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.evidence-item:last-child {
  border: 0;
}
.evidence-item b {
  display: block;
  font-size: 11px;
}
.evidence-item p {
  font-size: 10px;
  margin-top: 2px;
}
.tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
}
.warning-tick {
  background: var(--amberbg);
  color: var(--amber);
}
.big-num {
  font-size: 37px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -1px;
}
.progress {
  height: 5px;
  border-radius: 10px;
  background: #dbe3e7;
  margin: 13px 0 8px;
}
.progress span {
  display: block;
  height: 5px;
  background: var(--green);
  border-radius: 10px;
}
.skcard {
  border-radius: 16px;
  background: var(--forest);
  color: white;
  padding: 19px;
}
.skcard .muted,
.skcard p {
  color: #c4cfd6;
}
.skcard .eyebrow {
  color: var(--lime);
}
.skcard h3 {
  font-size: 23px;
  margin: 8px 0 13px;
  line-height: 1.2;
}
.skcard .badge {
  background: #ffffff16;
  color: var(--lime);
}
.sample-label {
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 0;
}
.backend {
  padding-top: 25px;
}
.backend h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 8px 0 4px;
}
.backend-intro {
  font-size: 11px;
  color: var(--muted);
  max-width: 340px;
}
.panel {
  margin-top: 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-body {
  padding: 17px;
}
.panel-head h3 {
  font-size: 12px;
}
.feedrow {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  font-size: 11px;
}
.feedrow:last-child {
  padding: 0;
}
.feedrow .feed-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 5px;
  flex-shrink: 0;
}
.feedrow b {
  font-weight: 650;
  display: block;
}
.feedrow p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.rule-box {
  margin-top: 17px;
  padding: 16px;
  background: #eef3f6;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.7;
}
.rule-box b {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}
.sessioncode {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.verification-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 11px;
  border-bottom: 1px solid #e8edf0;
}
.verification-check:last-child {
  border: 0;
}
.sectiontitle {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 23px;
  gap: 24px;
}
.sectiontitle h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 8px 0;
}
.sectiontitle p {
  font-size: 13px;
  color: var(--muted);
  max-width: 800px;
}
.architecture {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.node {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px 14px;
  position: relative;
}
.node:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 42%;
  font-size: 14px;
  color: var(--green);
  z-index: 1;
}
.node h3 {
  font-size: 13px;
  margin: 12px 0 7px;
}
.node p {
  font-size: 10px;
  color: var(--muted);
}
.node .n {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.node.core {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.node.core p {
  color: #c4cfd6;
}
.node.core .n {
  color: var(--lime);
}
.twocol {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.module {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px;
}
.module h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 6px 0 10px;
}
.module p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.module .notice {
  margin-top: 15px;
}
.threat {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.threat:last-child {
  border: 0;
}
.threat b {
  font-size: 12px;
}
.threat p {
  font-size: 11px;
  margin-top: 4px;
}
.threecol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 23px;
}
.threecol .module {
  padding: 20px;
}
.threecol h3 {
  font-size: 16px;
}
.table-wrap {
  overflow-x: auto;
  margin: 17px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  background: #eef3f6;
  font-size: 10px;
  font-weight: 700;
  padding: 11px 12px;
}
td {
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
td code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
td:first-child {
  font-weight: 600;
}
.references {
  margin: 25px 0;
  font-size: 11px;
}
.references summary {
  cursor: pointer;
  font-weight: 650;
}
.references p {
  padding: 6px 0;
}
.foot {
  margin-top: 32px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.hidden {
  display: none !important;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #07111f88;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  backdrop-filter: blur(4px);
}
.modal {
  width: min(100%, 470px);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 20px;
  padding: 27px;
  box-shadow: 0 20px 80px #0003;
}
.modal h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 10px 0 15px;
}
.modal p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin: 10px 0;
}
.modal label {
  font-size: 11px;
}
.modal textarea {
  width: 100%;
  margin: 8px 0 14px;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}
.close {
  background: #f4f7f8;
  color: var(--forest);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--deep);
  color: white;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 12px;
  box-shadow: 0 10px 30px #0002;
  max-width: 90%;
  text-align: center;
}
.scrollhint {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  margin-top: 9px;
}
.source-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 15px 0;
}
@media (min-width: 1550px) {
  .shell {
    max-width: 1470px;
  }
}
@media (max-width: 1180px) {
  .shell {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: 210px 378px 1fr;
    gap: 19px;
  }
  .phonebody {
    height: 590px;
  }
  .hero-note {
    display: none;
  }
  .backend .panel-body {
    padding: 13px;
  }
  .architecture {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .node:nth-child(3):after {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
}
@media (max-width: 1020px) {
  .workspace {
    grid-template-columns: 210px minmax(320px, 402px);
    justify-content: center;
    gap: 25px;
  }
  .backend {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-top: 0;
  }
  .backend > div:first-child {
    grid-column: 1/-1;
  }
  .backend .panel,
  .backend .rule-box {
    margin: 0;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .threecol {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 25px;
  }
}
@media (max-width: 690px) {
  .shell {
    padding: 0 16px;
  }
  .topbar {
    height: 68px;
  }
  .topbar .tag {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  .hero {
    padding: 23px;
    border-radius: 20px;
  }
  .hero h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .rail {
    padding: 0;
  }
  .rail > p,
  .rail h2,
  .rail > .eyebrow,
  .railnote {
    display: none;
  }
  .route-select {
    margin: 0 0 12px;
  }
  .steps {
    flex-direction: row;
    gap: 5px;
  }
  .step {
    padding: 7px 2px;
    justify-content: center;
  }
  .step .stepcopy {
    display: none;
  }
  .stepnum {
    width: 28px;
    height: 28px;
  }
  .phone-wrap {
    max-width: 402px;
    width: 100%;
    margin: auto;
  }
  .phone {
    border-width: 5px;
    border-radius: 31px;
  }
  .phonebody {
    height: 590px;
  }
  .phone-caption {
    margin-bottom: 8px;
  }
  .backend {
    display: block;
    padding-top: 0;
  }
  .backend .panel,
  .backend .rule-box {
    margin-top: 16px;
  }
  .architecture {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .node:nth-child(3):after {
    display: block;
  }
  .node:nth-child(even):after {
    display: none;
  }
  .sectiontitle {
    display: block;
  }
  .sectiontitle h2 {
    font-size: 25px;
  }
  .module {
    padding: 18px;
  }
  .sectiontitle .tag {
    margin-top: 12px;
  }
  .foot {
    display: block;
  }
  .foot span {
    display: block;
    margin-bottom: 8px;
  }
  .screen {
    padding: 20px 17px;
  }
  .threecol {
    gap: 14px;
  }
  .sample-label {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .step,
  .tab {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
  .view.active {
    animation: appear 0.2s ease;
  }
  @keyframes appear {
    from {
      opacity: 0.7;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media print {
  .topbar,
  .tabsbar,
  .rail,
  .backend,
  .lang,
  .phone-caption,
  .foot {
    display: none;
  }
  .hero {
    color: var(--forest);
    background: white;
    padding: 10px 0;
  }
  .hero p {
    color: var(--muted);
  }
  .hero .eyebrow {
    color: var(--green);
  }
  .workspace {
    display: block;
  }
  .phone-wrap {
    margin: auto;
  }
  .phone {
    box-shadow: none;
  }
  .phonebody {
    height: auto;
    overflow: visible;
  }
  .view {
    page-break-before: always;
  }
  .shell {
    padding: 0;
  }
  .module {
    break-inside: avoid;
  }
}

/* ---- Site UI: shared nav bar overlaps a full-width navy hero, like the other pages ---- */
.shell a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero.navy {
  border-radius: 0;
  padding: 125px max(42px, calc((100% - 1372px) / 2)) 76px;
  background:
    radial-gradient(circle at 72% 18%, rgba(85, 230, 181, 0.14), transparent 32%),
    radial-gradient(circle at 18% 62%, rgba(117, 169, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #07111f, #081626 72%, #0a1a2c);
}
.hero.navy:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
}
.hero.navy > * {
  position: relative;
  z-index: 1;
}
.hero.navy h1 {
  color: #fff;
}
.hero-note {
  border-radius: 16px;
  border-color: rgba(85, 230, 181, 0.35);
  box-shadow: 0 0 30px rgba(85, 230, 181, 0.12);
}
.shell {
  padding-top: 6px;
}
.page-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 18px 0 34px;
  line-height: 1.7;
}
@media (max-width: 1180px) {
  .hero.navy {
    padding: 115px 24px 70px;
  }
}
@media (max-width: 690px) {
  .hero.navy {
    padding: 96px 16px 52px;
  }
  .page-note {
    flex-direction: column;
    gap: 8px;
  }
}

/* Keep this page's original heading weights/colours and the shared nav/footer link colours */
h1,
h2,
h3 {
  font-weight: revert;
  color: inherit;
}
.site-header a:not(.button),
.site-footer a {
  color: inherit;
}

@media (max-width: 1020px) {
  .tab-text small {
    display: none;
  }
}
@media (max-width: 690px) {
  .tabsbar {
    margin-top: -24px;
  }
  .tabs {
    gap: 8px;
  }
  .tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }
  .tab-num {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .tab-text b {
    font-size: 12px;
  }
  .tabs-note {
    text-align: left;
  }
}

/* Auto demo: controls, and the pulse shown on a button just before it is "pressed" */
.auto-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.auto-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 250px;
  min-height: 15px;
}
.auto-click {
  position: relative;
  animation: auto-press 0.9s ease;
  box-shadow:
    0 0 0 3px #55e6b5,
    0 0 18px rgba(85, 230, 181, 0.6) !important;
}
@keyframes auto-press {
  0% {
    box-shadow: 0 0 0 0 rgba(85, 230, 181, 0.9);
  }
  60% {
    box-shadow:
      0 0 0 6px rgba(85, 230, 181, 0.35),
      0 0 18px rgba(85, 230, 181, 0.6);
  }
  100% {
    box-shadow:
      0 0 0 3px #55e6b5,
      0 0 18px rgba(85, 230, 181, 0.6);
  }
}

/* ---- Build notes ---- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.journey-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.journey-card:hover {
  transform: translateY(-3px);
  border-color: #21c98f;
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.08);
}
.journey-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.journey-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, #0b1a2d, #102b3c);
  color: #55e6b5;
}
.journey-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 12px;
}
.journey-trail span {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.journey-trail span:not(:last-child)::after {
  content: "→";
  margin-left: 6px;
  color: #21c98f;
}
.journey-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.journey-chip {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 650;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  padding: 5px 10px;
}
.handoff-two {
  margin-top: 24px;
}
.envelope {
  position: relative;
  background: linear-gradient(180deg, #fff, #f6fbf9);
}
.envelope-seal {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #07111f;
  background: #55e6b5;
  border-radius: 999px;
  padding: 6px 11px 6px 8px;
  box-shadow: 0 0 18px rgba(85, 230, 181, 0.45);
}
.envelope-seal svg {
  width: 16px;
  height: 16px;
}
.field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.field-chips span {
  font:
    10px/1.4 "SFMono-Regular",
    Consolas,
    monospace;
  background: #fff;
  border: 1px dashed #b9cbd4;
  border-radius: 7px;
  padding: 4px 8px;
  color: var(--ink);
}
.envelope-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1a2d, #102b3c);
  color: #dbe4ee;
}
.callout-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 196, 87, 0.15);
  color: #ffc457;
}
.callout b {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.callout p {
  font-size: 12px;
  line-height: 1.7;
  color: #aebccc;
}
@media (max-width: 1020px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 690px) {
  .envelope-seal {
    position: static;
    width: fit-content;
    margin-bottom: 12px;
  }
}

/* Build notes: envelope card full width */
.handoff-two {
  grid-template-columns: 1fr;
}
.handoff-two .envelope .field-chips {
  max-width: 980px;
}

/* ConnectIQ logo on the phone's first screen */
.icon-tile.logo-tile {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(7, 17, 31, 0.08);
}
.icon-tile.logo-tile img {
  width: 40px;
  height: 40px;
  display: block;
}

/* ---- Secure connection ---- */
.node-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
  margin-bottom: 12px;
}
.node.core .node-icon {
  background: rgba(85, 230, 181, 0.15);
  color: #55e6b5;
}
.node.core {
  background: linear-gradient(160deg, #0b1a2d, #102b3c);
  box-shadow:
    0 0 0 1px rgba(85, 230, 181, 0.3),
    0 14px 30px rgba(7, 17, 31, 0.18);
}
.node {
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.node:hover {
  transform: translateY(-3px);
}
.sv-card .journey-icon {
  margin-bottom: 12px;
}
.sv-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.sv-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.sv-list li:first-child {
  border-top: 0;
}
.sv-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: #21c98f;
  font-weight: 700;
}
.references {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
}
@media (max-width: 1180px) {
  .architecture {
    grid-template-columns: repeat(3, 1fr);
  }
  .node:nth-child(3n):after {
    display: none;
  }
}
@media (max-width: 690px) {
  .architecture {
    grid-template-columns: 1fr 1fr;
  }
  .node:after {
    display: none;
  }
}
