/* =========================================
   A.I.R.O.N.™ — CI Trainer (Netlify-ready)
   Clean, readable, low-friction demo styling
   ========================================= */

:root{
  --bg: #070A0F;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.55);
  --accent: #58A6FF;
  --accent2: #00D4FF;
  --good: rgba(74, 222, 128, 0.95);
  --warn: rgba(251, 191, 36, 0.95);
  --bad: rgba(248, 113, 113, 0.95);
  --shadow: 0 18px 55px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius2: 24px;
  --wrap: 1120px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(88,166,255,0.22), transparent 55%),
    radial-gradient(1100px 700px at 90% 0%, rgba(0,212,255,0.14), transparent 55%),
    radial-gradient(900px 650px at 50% 110%, rgba(88,166,255,0.10), transparent 55%),
    var(--bg);
  color: var(--text);
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width:auto;
  height:auto;
  padding: 10px 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(7,10,15,0.85), rgba(7,10,15,0.55));
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 0;
  gap: 12px;
}

.brand{ display:flex; align-items:center; gap: 12px; }
.brand__mark{
  width: 34px; height:34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(88,166,255,0.25), rgba(0,0,0,0));
  position: relative;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}
.brand__dot{
  position:absolute;
  width: 10px; height:10px;
  border-radius: 50%;
  left: 11px; top: 11px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0.2) 60%, transparent 70%),
              radial-gradient(circle at 30% 30%, rgba(88,166,255,0.9), rgba(88,166,255,0.15) 70%);
  box-shadow: 0 0 24px rgba(88,166,255,0.55);
}
.brand__bar{
  position:absolute;
  width: 18px; height: 2px;
  left: 8px; bottom: 9px;
  background: linear-gradient(90deg, rgba(0,212,255,0.2), rgba(88,166,255,0.9));
  border-radius: 99px;
  box-shadow: 0 0 18px rgba(0,212,255,0.35);
}
.brand__title{ font-weight: 700; letter-spacing:0.02em; }
.brand__sub{ font-size: 12px; color: var(--muted2); margin-top:2px; }

.topnav{ display:flex; align-items:center; gap: 10px; flex-wrap:wrap; justify-content:flex-end; }
.topnav__link{
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.topnav__link:hover{
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
  text-decoration:none;
}

.tm{ font-size: 0.8em; vertical-align: top; opacity: 0.9; }

.hero{
  padding: 34px 0 10px 0;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px){
  .hero__inner{ grid-template-columns: 1fr; }
}

.h1{
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
}
.h2{
  margin:0;
  font-size: 22px;
}
.h3{
  margin: 0 0 8px 0;
  font-size: 16px;
}
.lead{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 68ch;
}
.accent{ color: rgba(88,166,255,0.95); }

.hero__cta{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 14px; }
.badges{ display:flex; gap: 8px; flex-wrap:wrap; margin-top: 16px; }

.badge{
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 999px;
}

.main{ padding: 10px 0 40px 0; }

.section{ padding: 26px 0; }
.section__head{ margin-bottom: 14px; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: 0 16px 45px rgba(0,0,0,0.34);
  padding: 14px 14px 12px;
}

.card__top{ display:flex; justify-content:space-between; align-items:flex-start; gap: 10px; }
.pill{
  font-size: 11px;
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}
.pill--done{ border-color: rgba(74,222,128,0.35); color: rgba(74,222,128,0.95); }
.pill--prog{ border-color: rgba(251,191,36,0.35); color: rgba(251,191,36,0.95); }

.card__desc{ color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 12px 0; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor:pointer;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  text-decoration:none;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  background: rgba(255,255,255,0.09);
  text-decoration:none;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  border-color: rgba(88,166,255,0.45);
  background: linear-gradient(180deg, rgba(88,166,255,0.25), rgba(88,166,255,0.09));
}
.btn--subtle{
  background: rgba(255,255,255,0.04);
}
.btn--ghost{
  background: transparent;
}
.filebtn{ position: relative; overflow:hidden; }
.filebtn input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.panel{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel__title{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}
.panel__body{ padding: 12px 14px; }
.panel__meta{ display:flex; justify-content:space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.panel__actions{ display:flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.panel--mini{ margin-top: 12px; }

.meter{
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  overflow:hidden;
}
.meter__bar{
  height:100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(88,166,255,0.65), rgba(0,212,255,0.65));
  box-shadow: 0 0 22px rgba(88,166,255,0.25);
  transition: width .18s ease;
}

.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .twoCol{ grid-template-columns: 1fr; }
}

.bullets{ margin: 10px 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.scorecard{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .scorecard{ grid-template-columns: 1fr; }
}

.form{ display:grid; gap: 10px; margin-top: 8px; }
.field{ display:grid; gap: 6px; }
.field__label{ font-size: 12px; color: var(--muted2); }
select{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}
select:focus{ border-color: rgba(88,166,255,0.55); }

.result{ margin-top: 6px; }
.result__big{
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.result__tags{ display:flex; gap: 8px; flex-wrap:wrap; margin-top: 10px; }

.steps{ margin: 10px 0 0 18px; color: var(--muted); line-height: 1.55; }
.code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,0.25); }

.details{
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
}
.details summary{ cursor:pointer; color: rgba(255,255,255,0.9); font-weight: 600; }
.codeblock{
  margin: 10px 0 0 0;
  overflow:auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  font-size: 12px;
  color: rgba(255,255,255,0.86);
}

.footer{
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.footer__title{ font-weight: 800; letter-spacing:0.01em; }
.footer__meta{ color: var(--muted); font-size: 13px; line-height:1.5; }

.modal{
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(10,14,22,0.88);
  color: var(--text);
  box-shadow: var(--shadow);
  width: min(860px, calc(100% - 26px));
}
.modal::backdrop{
  background: rgba(0,0,0,0.62);
}
.modal__inner{ padding: 14px; }
.modal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.modal__title{ font-weight: 800; }
.modal__body{ padding-top: 12px; }

.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px){
  .kv{ grid-template-columns: 1fr; }
}
.kv__box{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
}
.kv__k{ color: var(--muted2); font-size: 12px; }
.kv__v{ font-weight: 700; margin-top: 4px; }

.checklist{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
  border-radius: var(--radius);
}
.check input{ margin-top: 3px; }
.check label{ color: var(--muted); font-size: 13px; line-height: 1.45; cursor:pointer; }


/* =========================
   Launchpad + Tour Coach
   ========================= */

.launch{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items:start;
}
@media (max-width: 900px){
  .launch{ grid-template-columns: 1fr; }
}

.disciplineGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 700px){
  .disciplineGrid{ grid-template-columns: 1fr; }
}

.discCard{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.discCard:hover{ background: rgba(255,255,255,0.06); }
.discCard:active{ transform: translateY(1px); }
.discCard--active{
  border-color: rgba(88,166,255,0.55);
  background: rgba(88,166,255,0.10);
}
.discTitle{ font-weight: 800; margin-bottom: 4px; }
.discMeta{ color: var(--muted); font-size: 12px; line-height: 1.4; }

.modeBox{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
}
.modeRow{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 8px;
  border-radius: 14px;
  cursor:pointer;
}
.modeRow:hover{ background: rgba(255,255,255,0.04); }
.modeTitle{ font-weight: 800; }

.tourOverlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.tourSpotlight{
  position: fixed;
  z-index: 10000;
  border-radius: 16px;
  border: 1px solid rgba(88,166,255,0.55);
  box-shadow:
    0 0 0 9999px rgba(0,0,0,0.65),
    0 0 28px rgba(88,166,255,0.22);
  pointer-events: none;
}

.tourCoach{
  position: fixed;
  z-index: 10001;
  width: min(430px, calc(100% - 20px));
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(10,14,22,0.92);
  box-shadow: var(--shadow);
  padding: 12px 12px 10px;
  pointer-events: auto;
}

.tourCoach__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.tourCoach__title{
  font-weight: 900;
  letter-spacing: 0.01em;
}
.tourCoach__meta{
  color: var(--muted2);
  font-size: 12px;
  margin-top: 2px;
}
.tourCoach__body{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.tourCoach__actions{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.tourCoach__left, .tourCoach__right{
  display:flex; gap: 8px; flex-wrap:wrap;
}
.tourChip{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}

/* Dingfelder parent-site integration ribbon */
.site-ribbon{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(5,8,14,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.site-ribbon__inner{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.site-ribbon a{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  color:rgba(255,255,255,.88);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  font-size:13px;
  font-weight:700;
}
.site-ribbon a:hover{
  color:#fff;
  border-color:rgba(88,166,255,.36);
  background:rgba(88,166,255,.12);
}
@media(max-width:720px){
  .site-ribbon__inner{justify-content:flex-start;padding-block:6px}
  .site-ribbon a{font-size:12px}
}

/* Launch normalization: global/free-training accents */
.site-ribbon a[href="/training/"],
.site-ribbon .global-training-link {
  color:#7ff0b8!important;
  border-color:rgba(127,240,184,.30)!important;
  background:rgba(127,240,184,.085)!important;
  font-weight:900!important;
}
.site-ribbon a[href="/training/"]::after,
.site-ribbon .global-training-link::after {
  content:"↗";
  margin-left:.25rem;
  font-size:.78em;
}
.site-ribbon a[href="/find-it.html"] {
  border-color:rgba(88,166,255,.26);
  background:rgba(88,166,255,.09);
}

/* Launch polish: Home label replaces Back to Dingfelder */
.site-ribbon a[href="/"]:first-child,
.airon-parent-ribbon a[href="/"]:first-child,
.cat-parent-ribbon a[href="/"]:first-child {
  font-weight: 950;
}


/* Dingfelder common launch footer */
.de-common-footer {
  --de-footer-bg: #07101d;
  --de-footer-panel: rgba(255,255,255,.045);
  --de-footer-line: rgba(255,255,255,.12);
  --de-footer-text: #edf4ff;
  --de-footer-muted: #aebed1;
  --de-footer-gold: #ffc94f;
  --de-footer-green: #7ff0b8;
  margin-top: 0;
  padding: clamp(1.35rem, 3vw, 2.25rem) 0;
  color: var(--de-footer-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(88,166,255,.10), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255,201,79,.10), transparent 28%),
    linear-gradient(180deg, #091321 0%, var(--de-footer-bg) 100%);
  border-top: 1px solid var(--de-footer-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.de-common-footer * { box-sizing: border-box; }
.de-common-footer a { color: inherit; text-decoration: none; }
.de-common-footer__inner {
  width: min(calc(100% - 2rem), 1220px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.de-common-footer__brand {
  display: grid;
  gap: .25rem;
}
.de-common-footer__brand strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.de-common-footer__brand span {
  color: var(--de-footer-muted);
  line-height: 1.45;
  font-size: .92rem;
}
.de-common-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.de-common-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: #dce8f7;
  font-weight: 850;
  font-size: .88rem;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.de-common-footer__links a:hover,
.de-common-footer__links a:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(88,166,255,.34);
  background: rgba(88,166,255,.12);
}
.de-common-footer__links a[href="/training/"] {
  color: var(--de-footer-green);
  border-color: rgba(127,240,184,.25);
  background: rgba(127,240,184,.075);
}
.de-common-footer__links a[href="/training/"]::after {
  content: "↗";
  margin-left: .28rem;
  font-size: .78em;
}
.de-common-footer__links .de-legal-link {
  color: #07101d;
  border-color: rgba(255,217,112,.72);
  background: linear-gradient(135deg, #ffd978, var(--de-footer-gold));
  box-shadow: 0 10px 26px rgba(255,201,79,.18);
  font-weight: 950;
}
.de-common-footer__links .de-legal-link:hover,
.de-common-footer__links .de-legal-link:focus-visible {
  color: #050b14;
  border-color: rgba(255,241,175,.92);
  background: linear-gradient(135deg, #ffe89a, #ffc94f);
}
.de-common-footer__fine {
  color: rgba(220,232,247,.68);
  font-size: .82rem;
  line-height: 1.45;
}
@media (max-width: 700px) {
  .de-common-footer__links a {
    width: 100%;
    justify-content: flex-start;
  }
}


/* Footer long-label comfort */
.de-common-footer__links a[href="/portal/"] {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .de-common-footer__links a[href="/portal/"] {
    white-space: normal;
  }
}
