/* ── HEADER ─────────────────────────────────── */
.app-header {
  background: var(--navy);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1.2;
}

.brand-sep { color: rgba(255,255,255,.2); font-size: 14px; }

.brand-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.back-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  padding: 7px 16px;
  border-radius: 20px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  display: none;
  letter-spacing: .03em;
}
.back-btn.visible { display: block; }
.back-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── EURIBOR WIDGET (desktop, inside header) ─── */
.euribor-widget {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}

.euribor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  min-width: 62px;
}

.euribor-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}

.euribor-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.euribor-value.loading { color: rgba(255,255,255,.3); font-size: 12px; }
.euribor-value.error   { color: rgba(255,150,150,.7); font-size: 12px; }

.euribor-date {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-left: 2px;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ── EURIBOR STRIP (mobile, below header) ───── */
.euribor-strip {
  display: none;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 16px;
  position: sticky;
  top: 60px;
  z-index: 190;
}

.euribor-strip-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.euribor-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  min-width: 62px;
}

.euribor-strip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}

.euribor-strip-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.euribor-strip-value.loading { color: rgba(255,255,255,.3); font-size: 12px; }
.euribor-strip-value.error   { color: rgba(255,150,150,.7); font-size: 12px; }

.euribor-strip-date {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-left: 4px;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ── TYPE SELECTOR ───────────────────────────── */
#typeScreen {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.screen-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.screen-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 10px;
}

.screen-desc {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 36px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.type-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.type-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  opacity: 0;
  transition: opacity .22s;
}

.type-card:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(12,26,46,.12);
  border-color: rgba(12,26,46,.2);
}
.type-card:hover:not(.disabled)::before { opacity: 1; }

.type-card.disabled { opacity: .45; cursor: not-allowed; }

.type-card-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.type-card-name { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.type-card-desc { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.45; }

.wip-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold-lt);
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── PHASE APP ───────────────────────────────── */
#phaseApp { display: none; }
#phaseApp.active { display: block; }

/* Desktop phase bar */
.phase-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 150;
  overflow-x: auto;
  scrollbar-width: none;
}
.phase-bar::-webkit-scrollbar { display: none; }

.phase-bar-inner {
  display: flex;
  padding: 0 16px;
  min-width: max-content;
}

.phase-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  font-family: 'Jost', sans-serif;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.phase-tab:hover { color: var(--navy); }
.phase-tab.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }

.phase-tab-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .18s;
}
.phase-tab.active .phase-tab-num { background: var(--navy); color: #fff; }

/* Mobile phase dropdown */
.phase-dropdown-bar {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 150;
  padding: 10px 16px;
}

.phase-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B7F8E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* ── CONTENT ─────────────────────────────────── */
.content-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Phase heading */
.phase-heading { margin-bottom: 28px; }

.phase-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-lt);
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.phase-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 6px;
}

.phase-subtext { color: var(--muted); font-size: 14px; font-weight: 300; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px) {
  .phase-bar { display: none; }
  .phase-dropdown-bar { display: block; top: 96px; }

  .euribor-widget { display: none; }
  .euribor-strip  { display: block; }

  #typeScreen { padding: 28px 16px 60px; }
  .screen-title { font-size: 28px; }
  .type-grid { grid-template-columns: 1fr; gap: 10px; }

  .type-card {
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .type-card-icon {
    width: 36px; height: 36px;
    font-size: 16px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .type-card-body { flex: 1; min-width: 0; }
  .type-card-name { margin-bottom: 2px; }

  .content-wrap { padding: 24px 16px 60px; }
  .phase-h1 { font-size: 26px; }

  .outcomes-grid { grid-template-columns: 1fr; }

  .app-header { padding: 0 16px; }
  .brand-name { font-size: 16px; }
}
