/* Get Key (/key) and Key Status (/status) — unified smoked-glass obsidian & brass system. */
.access-folio .key-main,
.status-folio .status-main {
  max-width: 1080px;
  padding-top: clamp(22px, 3vw, 42px);
  padding-bottom: clamp(44px, 5vw, 72px);
}
.status-folio .status-main {
  max-width: 740px;
}

.access-title {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--glass-edge);
  padding-bottom: clamp(22px, 3.2vw, 38px);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.access-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, #dfca9a, #7f7156);
}
.access-title h1 {
  font: 400 clamp(44px, 6.2vw, 82px)/1.01 var(--display);
  letter-spacing: -.054em;
  margin: 0;
  text-align: left;
  color: var(--text);
}
.access-title em {
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 400;
}
.access-title p:not(.folio-eyebrow) {
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 54ch;
  line-height: 1.65;
  font-size: 1rem;
}
.access-crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.access-crosslink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
  color: var(--text);
  font: 550 13.5px/1.3 var(--font);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.access-crosslink span { color: var(--accent); transition: transform .16s ease; }
.access-crosslink:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}
.access-crosslink:hover span { transform: translate(2px, -2px); }

/* Frosted panels */
.access-folio .selection-panel,
.access-folio .permanent-card,
.access-folio .card,
.status-folio .card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  transform: none;
}
.access-folio .selection-panel {
  padding: clamp(22px, 3vw, 36px);
  border-top: 2px solid var(--accent);
}
.access-folio .studio-step-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border-color: var(--glass-edge);
}
.access-folio .studio-step-heading h2 {
  font: 400 clamp(22px, 2.7vw, 30px)/1.18 var(--display);
  margin: 0;
  color: var(--text);
}
.access-folio .step-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(213 190 144 / 45%);
  background: rgb(213 190 144 / 10%);
  color: var(--accent-soft);
  font: 600 12px/1 var(--mono);
}
.access-folio .duration-head {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--glass-edge);
}

/* Provider & Duration cards */
.access-folio .provider-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.access-folio .provider-option,
.access-folio .option {
  color: var(--text);
  background: linear-gradient(145deg, #232428, #16171a 88%);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 6px 16px rgb(0 0 0 / 20%);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.access-folio .provider-option {
  min-height: 82px;
  padding: 16px 18px;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
}
.access-folio .provider-logo {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 10px;
  background: #111214;
  border: 1px solid var(--glass-edge);
  object-fit: contain;
}
.access-folio .provider-copy {
  min-width: 0;
}
.access-folio .provider-copy strong {
  display: block;
  font: 600 16px/1.25 var(--font);
  color: var(--text);
  overflow-wrap: break-word;
}
.access-folio .provider-meta {
  display: block;
  margin-top: 3px;
  font: 500 11.5px/1.35 var(--mono);
  color: var(--muted);
}
.access-folio .provider-option.selected .provider-meta {
  color: var(--accent-soft);
}
.access-folio .option-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.access-folio .popular-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font: 600 10px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgb(213 190 144 / 14%);
  border: 1px solid rgb(213 190 144 / 42%);
}
.access-folio .inapp-banner,
.access-folio .extend-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.access-folio .inapp-banner[hidden],
.access-folio .extend-banner[hidden] {
  display: none;
}
.access-folio .inapp-copy,
.access-folio .extend-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 240px;
}
.access-folio .inapp-copy strong,
.access-folio .extend-banner-copy strong {
  color: var(--text);
  font: 600 13.5px/1.3 var(--font);
}
.access-folio .inapp-copy span,
.access-folio .extend-banner-copy span {
  color: var(--muted);
  font: 400 12.5px/1.45 var(--font);
}
.access-folio .extend-banner {
  margin-bottom: 14px;
}
.access-folio .provider-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-edge-strong);
  font-size: 12px;
  color: transparent;
}
.access-folio .provider-option.selected .provider-check {
  background: var(--accent-soft);
  border-color: var(--accent-bright);
  color: #141517;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .access-folio .provider-option:hover:not(:disabled),
  .access-folio .option:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: rgb(213 190 144 / 58%);
    background: linear-gradient(145deg, #292a2f, #1a1b1f 88%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 12px 24px rgb(0 0 0 / 32%);
  }
}

.access-folio .provider-option.selected,
.access-folio .option.selected {
  background: linear-gradient(145deg, #322e26, #201e1a 88%);
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  box-shadow: inset 3px 0 0 var(--accent-bright), 0 10px 24px rgb(0 0 0 / 30%);
  transform: none;
}

.access-folio .options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.access-folio .option {
  padding: 20px 18px;
  text-align: left;
}
.access-folio .option .hours {
  color: var(--text);
  font: 400 clamp(30px, 3.8vw, 44px)/1.08 var(--display);
  letter-spacing: -.03em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.access-folio .option.selected .hours { color: var(--accent-bright); }
.access-folio .option .hours span,
.access-folio .option.selected .hours span {
  color: var(--muted);
  font: 500 13px/1.2 var(--font);
  letter-spacing: 0;
}
.access-folio .option .badge-line { margin-top: 12px; }
.access-folio .option .pill {
  display: inline-block;
  max-width: 100%;
  color: var(--muted);
  background: rgb(255 255 255 / 5%);
  border: 1px solid var(--glass-edge);
  border-radius: 8px;
  font: 600 11px/1.35 var(--mono);
  padding: 5px 10px;
  text-transform: none;
  white-space: normal;
  text-align: left;
}
.access-folio .option.selected .pill {
  color: var(--accent-bright);
  background: rgb(223 208 176 / 14%);
  border-color: rgb(223 208 176 / 45%);
}
.access-folio .provider-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}
.access-folio .unlock-action { margin-top: 28px; }
.access-folio #btn-start {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}
.access-folio .consent-note,
.status-folio .consent-note {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
}
.access-folio .consent-note a,
.status-folio .consent-note a {
  color: var(--accent-soft);
  text-underline-offset: 3px;
}

/* Checkpoint progress & steps */
.access-folio .progress-track {
  height: 8px;
  border-radius: 999px;
  background: #121316;
  border: 1px solid var(--glass-edge);
  overflow: hidden;
  margin-top: 18px;
}
.access-folio .progress-fill {
  background: linear-gradient(90deg, #b89e6d, #f0dcad);
  border-radius: 999px;
}
.access-folio .step {
  background: #151619;
  border: 1px solid var(--glass-edge);
  border-radius: 12px;
}
.access-folio .step .sub { color: var(--muted); }
.access-folio .step.available { border-color: rgb(213 190 144 / 45%); }
.access-folio .step.available .dot {
  color: #141517;
  background: var(--accent-soft);
  animation: none;
}
.access-folio .step.completed {
  border-color: rgb(181 218 176 / 34%);
  background: linear-gradient(132deg, rgb(181 218 176 / 7%), transparent 60%), #161917;
}
.access-folio .step.completed .dot,
.access-folio .verified-imprint {
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgb(213 190 144 / 12%);
  color: var(--accent-bright);
  font: 600 18px/1 var(--display);
  box-shadow: none;
}
.access-folio .verified-imprint {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  font-size: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  #view-claim:not([hidden]) .verified-imprint { animation: folio-imprint .28s ease-out both; }
  @keyframes folio-imprint {
    from { opacity: .35; transform: scale(1.12) rotate(-8deg); }
    to { opacity: 1; transform: none; }
  }
}

/* Premium upsell card inside Get Key */
.access-folio .permanent-card {
  margin-top: 20px;
  padding: clamp(22px, 2.8vw, 30px);
  border-color: rgb(213 190 144 / 32%);
  background: linear-gradient(136deg, rgb(213 190 144 / 9%), transparent 56%), #1b1c1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.access-folio .permanent-card h3 {
  margin: 0 0 6px;
  font: 400 clamp(22px, 2.4vw, 28px)/1.15 var(--display);
  color: var(--accent-bright);
}
.access-folio .permanent-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================================================================
   KEY STATUS (/status)
   ========================================================================= */
.status-folio .status-card {
  padding: clamp(24px, 3.2vw, 36px);
  border-top: 2px solid var(--accent);
}
.status-folio .field { margin-bottom: 16px; }
.status-folio .field label {
  display: block;
  margin-bottom: 8px;
  font: 600 13.5px/1.3 var(--font);
  color: var(--text);
}
.status-folio #key-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  font: 500 15px/1.4 var(--mono);
  letter-spacing: .04em;
}
.status-folio .field-hint {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.5;
}
.status-folio #btn-check {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}
.status-folio #result {
  animation: none;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-edge);
}
.status-folio .status-timecard {
  padding: 22px 18px;
  border-radius: 14px;
  background: #121316;
  border: 1px solid var(--glass-edge);
  text-align: center;
}
.status-folio .countdown {
  animation: none;
  margin: 12px 0 6px;
  font: 500 clamp(30px, 5vw, 48px)/1.12 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  letter-spacing: -.04em;
}
.status-folio .stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.status-folio .stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: #16171a;
  border: 1px solid var(--glass-edge);
  box-shadow: none;
}
.status-folio .stat .k {
  color: var(--dim);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.status-folio .stat .v {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.status-folio .status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 720px) {
  .access-folio .permanent-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .access-folio .provider-options { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .access-folio .provider-option { padding: 14px 16px; gap: 12px; grid-template-columns: 38px minmax(0, 1fr) 22px; min-height: 70px; }
  .access-folio .provider-logo { width: 38px; height: 38px; padding: 4px; }
  .access-folio .provider-copy strong { font-size: 15px; }
  .access-folio .provider-check { width: 22px; height: 22px; font-size: 12px; }
}
@media (max-width: 560px) {
  .access-folio .options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .access-folio .option { padding: 15px 12px; }
  .status-folio .stat { padding: 12px; }
}
