:root {
  --ink: #03110f;
  --ink-soft: #09231f;
  --mint: #24d6bd;
  --mint-bright: #65ead7;
  --ice: #dff8f3;
  --muted: #8aa9a3;
  --copper: #c99168;
  --line: rgba(197, 234, 227, 0.18);
}

* { box-sizing: border-box; }

html { background: #020908; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #f3fbf9;
  background:
    radial-gradient(circle at 73% 18%, rgba(30, 199, 172, 0.16), transparent 28%),
    linear-gradient(145deg, #020706, #071a17 58%, #020807);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.review-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(360px, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding: 36px;
  overflow: hidden;
}

.phone-shell {
  position: relative;
  width: 100%;
  height: min(880px, calc(100svh - 72px));
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(219, 255, 248, 0.16);
  border-radius: 40px;
  background: #03100e;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.56), 0 0 0 9px rgba(255, 255, 255, 0.025);
}

.experience-screen {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 95% 10%, rgba(0, 168, 142, 0.25), transparent 31%),
    linear-gradient(160deg, rgba(8, 34, 30, 0.94), #020b0a 62%);
}

.experience-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(67, 220, 197, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 220, 197, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 34%, transparent 92%);
}

/* One-touch NFC reveal */

.signal-sequence {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: max(30px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  color: #effbf8;
  background:
    radial-gradient(circle at 20% 69%, rgba(201, 145, 104, 0.18), transparent 20%),
    radial-gradient(circle at 72% 31%, rgba(36, 214, 189, 0.13), transparent 30%),
    linear-gradient(160deg, #010706, #041411 60%, #010706);
  animation: signal-enter 0.32s ease-out both;
  isolation: isolate;
}

.signal-sequence::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(71, 226, 203, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 226, 203, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.signal-sequence::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 14%;
  z-index: 4;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(106, 242, 222, 0.95), transparent);
  box-shadow: 0 0 22px rgba(60, 229, 204, 0.72);
}

.signal-sequence.phase-1::after,
.signal-sequence.phase-2::after,
.signal-sequence.phase-3::after {
  opacity: 1;
  animation: signal-sweep 2.1s cubic-bezier(0.55, 0.04, 0.42, 0.98) infinite;
}

.signal-visual {
  position: relative;
  flex: 1;
  min-height: 390px;
  margin: 12px -8px 0;
}

.signal-blueprint {
  position: absolute;
  inset: 5% -8% 4%;
  opacity: 0.04;
  border-radius: 28px;
  background: #061310 url("./kics-access-card.jpg") center 52% / cover no-repeat;
  filter: grayscale(0.8) contrast(1.2) brightness(0.55);
  mix-blend-mode: screen;
  transform: scale(1.08);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}

.phase-1 .signal-blueprint { opacity: 0.28; transform: scale(1.04); }
.phase-2 .signal-blueprint { opacity: 0.48; filter: grayscale(0.5) contrast(1.22) brightness(0.7); }
.phase-3 .signal-blueprint { opacity: 0.62; filter: grayscale(0.25) contrast(1.18) brightness(0.82); transform: scale(1); }
.phase-4 .signal-blueprint { opacity: 0.86; filter: grayscale(0) contrast(1.1) brightness(0.92); transform: scale(1); }

.magnetic-origin {
  position: absolute;
  left: 13%;
  bottom: 18%;
  z-index: 6;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 145, 104, 0.62);
  border-radius: 50%;
  color: var(--copper);
  background: rgba(4, 14, 12, 0.72);
  box-shadow: inset 0 0 24px rgba(201, 145, 104, 0.11), 0 0 26px rgba(201, 145, 104, 0.14);
  transition: border-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.magnetic-origin span { position: relative; z-index: 2; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.magnetic-origin i {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(201, 145, 104, 0.52);
  border-radius: 50%;
  animation: magnetic-pulse 1.7s ease-out infinite;
}
.magnetic-origin i:nth-child(2) { animation-delay: 0.48s; }
.magnetic-origin i:nth-child(3) { animation-delay: 0.96s; }
.phase-1 .magnetic-origin,
.phase-2 .magnetic-origin,
.phase-3 .magnetic-origin,
.phase-4 .magnetic-origin {
  color: var(--mint-bright);
  border-color: rgba(101, 234, 215, 0.68);
  box-shadow: inset 0 0 24px rgba(36, 214, 189, 0.13), 0 0 30px rgba(36, 214, 189, 0.2);
}

.signal-topology { position: absolute; inset: 15% 4% 12% 8%; z-index: 5; }
.signal-trace {
  position: absolute;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(70, 227, 203, 0.08), rgba(85, 237, 215, 0.88), rgba(70, 227, 203, 0.18));
  box-shadow: 0 0 9px rgba(36, 214, 189, 0.38);
  transform-origin: left center;
  transition: opacity 0.35s ease, transform 0.75s cubic-bezier(0.2, 0.78, 0.28, 1);
}
.trace-a { left: 13%; top: 67%; width: 73%; transform: rotate(-22deg) scaleX(0); }
.trace-b { left: 29%; top: 25%; width: 57%; transform: rotate(17deg) scaleX(0); }
.trace-c { left: 41%; top: 61%; width: 43%; transform: rotate(-58deg) scaleX(0); }
.phase-1 .trace-a, .phase-2 .trace-a, .phase-3 .trace-a, .phase-4 .trace-a { opacity: 1; transform: rotate(-22deg) scaleX(1); }
.phase-1 .trace-b, .phase-2 .trace-b, .phase-3 .trace-b, .phase-4 .trace-b { opacity: 1; transform: rotate(17deg) scaleX(1); transition-delay: 0.12s; }
.phase-1 .trace-c, .phase-2 .trace-c, .phase-3 .trace-c, .phase-4 .trace-c { opacity: 1; transform: rotate(-58deg) scaleX(1); transition-delay: 0.24s; }

.signal-topology .node {
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0;
  border: 1px solid rgba(166, 255, 240, 0.78);
  border-radius: 50%;
  background: #03110f;
  box-shadow: 0 0 0 4px rgba(36, 214, 189, 0.07), 0 0 14px rgba(36, 214, 189, 0.68);
  transform: scale(0.25);
  transition: opacity 0.25s ease, transform 0.42s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.node-a { left: 14%; top: 65%; }
.node-b { left: 31%; top: 38%; }
.node-c { left: 47%; top: 58%; }
.node-d { left: 61%; top: 26%; }
.node-e { left: 77%; top: 43%; }
.node-f { left: 84%; top: 13%; }
.phase-1 .signal-topology .node,
.phase-2 .signal-topology .node,
.phase-3 .signal-topology .node,
.phase-4 .signal-topology .node { opacity: 1; transform: scale(1); }
.phase-1 .node-b, .phase-2 .node-b, .phase-3 .node-b, .phase-4 .node-b { transition-delay: 0.08s; }
.phase-1 .node-c, .phase-2 .node-c, .phase-3 .node-c, .phase-4 .node-c { transition-delay: 0.16s; }
.phase-1 .node-d, .phase-2 .node-d, .phase-3 .node-d, .phase-4 .node-d { transition-delay: 0.24s; }
.phase-1 .node-e, .phase-2 .node-e, .phase-3 .node-e, .phase-4 .node-e { transition-delay: 0.32s; }
.phase-1 .node-f, .phase-2 .node-f, .phase-3 .node-f, .phase-4 .node-f { transition-delay: 0.4s; }

.trusted-packet, .threat-packet {
  position: absolute;
  left: 16%;
  top: 65%;
  width: 8px;
  height: 8px;
  opacity: 0;
  border-radius: 50%;
}
.trusted-packet { background: var(--mint-bright); box-shadow: 0 0 16px var(--mint); }
.threat-packet { background: #ff6d5f; box-shadow: 0 0 17px rgba(255, 75, 61, 0.9); }
.phase-1 .trusted-packet { opacity: 1; animation: trusted-run 1.25s ease-in-out both; }
.phase-2 .threat-packet { opacity: 1; animation: threat-run 1.12s ease-in-out infinite; }
.phase-3 .threat-packet { left: 70%; top: 38%; opacity: 0.82; animation: threat-captured 0.72s ease-in-out infinite alternate; }
.phase-4 .threat-packet { left: 70%; top: 38%; opacity: 0; transform: scale(0); }

.security-boundary {
  position: absolute;
  right: 7%;
  top: 21%;
  z-index: 7;
  width: 128px;
  height: 146px;
  opacity: 0;
  border: 1px solid rgba(101, 234, 215, 0.86);
  border-radius: 38% 38% 51% 51% / 30% 30% 66% 66%;
  box-shadow: 0 0 40px rgba(36, 214, 189, 0.2), inset 0 0 34px rgba(36, 214, 189, 0.08);
  transform: scale(0.7) rotate(-8deg);
  transition: opacity 0.4s ease, transform 0.62s cubic-bezier(0.2, 1.18, 0.42, 1), box-shadow 0.4s ease;
}
.security-boundary i { position: absolute; inset: 19px; border: 1px solid rgba(101, 234, 215, 0.26); border-radius: inherit; }
.security-boundary b { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border: 1px solid var(--mint-bright); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 18px rgba(36, 214, 189, 0.64); }
.phase-3 .security-boundary, .phase-4 .security-boundary { opacity: 1; transform: scale(1) rotate(0deg); }
.phase-4 .security-boundary { box-shadow: 0 0 75px rgba(36, 214, 189, 0.35), inset 0 0 48px rgba(36, 214, 189, 0.15); }

.visibility-meter {
  position: absolute;
  right: 4%;
  top: 4%;
  z-index: 9;
  text-align: right;
}
.visibility-meter span { display: block; color: #5f7b75; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; }
.visibility-meter strong { display: block; margin-top: 7px; color: #9ac2bb; font: 500 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; transition: color 0.35s ease, text-shadow 0.35s ease; }
.phase-4 .visibility-meter strong { color: var(--mint-bright); text-shadow: 0 0 20px rgba(36, 214, 189, 0.55); }

.signal-copy { position: relative; z-index: 10; min-height: 150px; }
.signal-copy p { margin: 0 0 12px; color: #708c86; font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; }
.signal-copy > strong { display: block; color: var(--mint); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.signal-copy h2 { margin: 12px 0 0; font-size: clamp(32px, 5.1vh, 42px); line-height: 1.02; letter-spacing: -1.8px; font-weight: 600; }
.signal-copy > span { display: block; margin-top: 13px; color: #93aca7; font-size: 12px; line-height: 1.6; }
.phase-4 .signal-copy h2 { color: var(--mint-bright); text-shadow: 0 0 30px rgba(36, 214, 189, 0.2); }
.wechat-handoff {
  display: block;
  margin-top: 15px;
  opacity: 0;
  color: #86a39d;
  font: normal 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
  transform: translateY(5px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}
.phase-4 .wechat-handoff { opacity: 1; transform: translateY(0); }

.signal-progress { position: relative; z-index: 10; height: 2px; margin-top: 12px; overflow: hidden; border-radius: 6px; background: rgba(210, 244, 237, 0.1); }
.signal-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--mint)); box-shadow: 0 0 12px rgba(36, 214, 189, 0.55); transition: width 0.55s ease; }
.signal-skip { position: relative; z-index: 10; align-self: center; min-height: 38px; margin-top: 8px; padding: 8px 16px; border: 0; color: #69817c; background: transparent; font-size: 10px; cursor: pointer; }

.one-touch-note { margin: -1px 0 0; color: #647e78; font-size: 9px; line-height: 1.5; text-align: center; }

@keyframes signal-enter { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes magnetic-pulse { 0% { opacity: 0.8; transform: scale(0.8); } 82%, 100% { opacity: 0; transform: scale(2.35); } }
@keyframes trusted-run { 0% { transform: translate(0, 0) scale(0.7); } 46% { transform: translate(104px, -74px) scale(1); } 100% { transform: translate(224px, -135px) scale(0.5); opacity: 0; } }
@keyframes threat-run { 0% { transform: translate(90px, -55px); } 55% { transform: translate(180px, -94px); } 100% { transform: translate(230px, -118px); } }
@keyframes threat-captured { from { box-shadow: 0 0 11px rgba(255, 75, 61, 0.62); transform: scale(0.78); } to { box-shadow: 0 0 23px rgba(255, 75, 61, 0.95); transform: scale(1.08); } }
@keyframes signal-sweep { 0% { top: 14%; opacity: 0; } 18%, 82% { opacity: 0.82; } 100% { top: 74%; opacity: 0; } }

.topbar, .access-meta, .screen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wordmark { font-size: 20px; font-weight: 650; letter-spacing: -0.8px; }
.event-code { color: #91aaa5; font-size: 10px; letter-spacing: 0.14em; }

.intro-copy { margin-top: clamp(40px, 7vh, 66px); }
.eyebrow, .panel-kicker {
  margin: 0;
  color: var(--mint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.intro-copy h1 {
  margin: 13px 0 0;
  font-size: clamp(35px, 5.3vh, 44px);
  line-height: 1.03;
  letter-spacing: -2.2px;
  font-weight: 620;
}

.lead { margin: 15px 0 0; color: #afc5c0; font-size: 14px; line-height: 1.75; }

.access-meta { margin-top: 24px; color: #9eb5b0; font-size: 10px; }
.access-meta strong { color: var(--mint); font-size: 10px; letter-spacing: 0.1em; font-weight: 600; }

.access-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58;
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 244, 236, 0.3);
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  background: #071412 url("./kics-access-card.jpg") center 48% / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: perspective(900px) rotateX(2deg) rotateY(-3deg);
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.access-card:active { transform: perspective(900px) scale(0.992); }
.card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(3, 13, 12, 0.04), rgba(3, 17, 15, 0.56));
  transition: background 0.5s ease;
}

.stage-1 .card-glow { background: linear-gradient(140deg, rgba(3, 13, 12, 0), rgba(3, 17, 15, 0.4)); }
.stage-2, .stage-3 { border-color: rgba(55, 231, 205, 0.7); box-shadow: 0 24px 80px rgba(0, 185, 157, 0.2); }

.card-brand, .card-caption, .nfc-mark { position: absolute; z-index: 3; }
.card-brand { top: 15px; left: 18px; font-size: 13px; font-weight: 650; }
.card-caption { top: 15px; right: 18px; color: #9eb6b1; font: 8px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.nfc-mark {
  left: 18px;
  bottom: 16px;
  width: 66px;
  height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 145, 104, 0.65);
  border-radius: 50%;
  color: var(--copper);
  box-shadow: 0 0 0 7px rgba(201, 145, 104, 0.08), 0 0 0 13px rgba(201, 145, 104, 0.04);
}
.nfc-mark small { font: 500 6px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.05em; }
.nfc-mark strong { margin-top: 5px; color: #e7b18b; font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }

.industrial-grid {
  position: absolute;
  left: 20%;
  right: 8%;
  bottom: 15%;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(103, 237, 217, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.industrial-grid::before, .industrial-grid::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 48%;
  height: 68px;
  border: 1px solid rgba(67, 220, 197, 0.5);
  border-bottom: 0;
  background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(67, 220, 197, 0.25) 18px 19px);
  clip-path: polygon(0 100%, 0 55%, 16% 55%, 16% 20%, 28% 20%, 28% 68%, 42% 68%, 42% 0, 52% 0, 52% 46%, 70% 46%, 70% 25%, 80% 25%, 80% 68%, 100% 68%, 100% 100%);
}

.stage-1 .industrial-grid, .stage-2 .industrial-grid, .stage-3 .industrial-grid { opacity: 1; }

.network-layer { position: absolute; inset: 24% 17% 24% 26%; z-index: 3; opacity: 0; transition: opacity 0.5s ease; }
.network-layer::before, .network-layer::after {
  content: "";
  position: absolute;
  inset: 22% 5%;
  border-top: 1px solid rgba(62, 230, 205, 0.7);
  border-bottom: 1px solid rgba(62, 230, 205, 0.4);
  transform: skewY(-18deg);
}
.network-layer::after { inset: 42% 12% 5%; transform: skewY(17deg); }
.network-layer i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 12px var(--mint);
}
.network-layer i:nth-child(1) { left: 4%; top: 47%; }
.network-layer i:nth-child(2) { left: 27%; top: 20%; }
.network-layer i:nth-child(3) { left: 44%; top: 63%; }
.network-layer i:nth-child(4) { left: 62%; top: 35%; }
.network-layer i:nth-child(5) { right: 4%; top: 12%; }
.network-layer i:nth-child(6) { right: 14%; bottom: 4%; }
.stage-2 .network-layer, .stage-3 .network-layer { opacity: 1; }

.shield-layer {
  position: absolute;
  right: 12%;
  top: 31%;
  z-index: 4;
  width: 72px;
  height: 82px;
  opacity: 0;
  border: 1px solid rgba(82, 238, 215, 0.85);
  border-radius: 34% 34% 50% 50% / 28% 28% 66% 66%;
  box-shadow: 0 0 28px rgba(37, 216, 188, 0.22), inset 0 0 24px rgba(37, 216, 188, 0.1);
  transform: scale(0.75) rotate(-8deg);
  transition: 0.5s ease;
}
.shield-layer i { position: absolute; inset: 22px; border: 1px solid rgba(82, 238, 215, 0.6); border-radius: 50%; }
.stage-3 .shield-layer { opacity: 1; transform: scale(1) rotate(0deg); }

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  z-index: 5;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--mint-bright), transparent);
  box-shadow: 0 0 18px var(--mint);
}
.stage-1 .scan-line, .stage-2 .scan-line, .stage-3 .scan-line { opacity: 1; animation: scan 1.7s ease-in-out infinite; }

.progress-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.progress-bars span { height: 3px; overflow: hidden; border-radius: 8px; background: rgba(208, 244, 237, 0.13); }
.progress-bars span::after { content: ""; display: block; width: 0; height: 100%; background: var(--mint); transition: width 0.35s ease; }
.progress-bars span.active::after { width: 100%; }

.stage-copy { min-height: 70px; padding-top: 14px; }
.stage-copy strong { color: var(--mint); font-size: 12px; letter-spacing: 0.09em; font-weight: 600; }
.stage-copy p { margin: 7px 0 0; color: #d5e6e2; font-size: 15px; line-height: 1.45; }

.primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  color: #002b24;
  background: linear-gradient(90deg, var(--mint), #70e7d5);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(36, 214, 189, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.primary-action:active { transform: translateY(1px); }
.primary-action:disabled { opacity: 0.72; cursor: default; }

.screen-foot { margin-top: 18px; color: #667e79; font-size: 9px; }

.review-panel { max-width: 590px; display: flex; flex-direction: column; gap: 58px; }
.review-panel h2 { margin: 20px 0 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -3.2px; font-weight: 560; }
.panel-copy { max-width: 540px; margin: 26px 0 0; color: #9fb7b2; font-size: 15px; line-height: 1.85; }
.flow-preview { display: flex; flex-wrap: wrap; gap: 9px; }
.flow-preview span { padding: 9px 12px; border: 1px solid rgba(191, 226, 220, 0.14); border-radius: 999px; color: #748d88; font-size: 11px; }
.flow-preview .current { color: #002d25; border-color: var(--mint); background: var(--mint); }
.prototype-note { margin: 0; color: #5f7772; font-size: 11px; }
.layer-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.layer-story article { min-height: 104px; padding: 13px; border: 1px solid rgba(191, 226, 220, 0.13); border-radius: 14px; background: rgba(218, 248, 242, 0.024); }
.layer-story span { display: block; color: var(--mint); font-size: 8px; letter-spacing: 0.06em; }
.layer-story strong { display: block; margin-top: 11px; color: #dbece8; font-size: 15px; font-weight: 560; }
.layer-story small { display: block; margin-top: 8px; color: #6d8781; font-size: 8px; line-height: 1.45; }

@keyframes scan {
  0% { top: 8%; opacity: 0; }
  18%, 82% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

@media (max-width: 880px) {
  .review-shell { display: block; min-height: 100svh; padding: 0; }
  .phone-shell { width: 100%; height: 100svh; min-height: 680px; border: 0; border-radius: 0; box-shadow: none; }
  .review-panel { display: none; }
}

@media (max-height: 790px) and (min-width: 881px) {
  .intro-copy { margin-top: 30px; }
  .intro-copy h1 { font-size: 34px; }
  .access-card { max-height: 228px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Complete invitation journey */

.experience-screen { height: 100%; outline: 0; }

.screen-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.reveal-screen { padding-top: 0; }
.reveal-screen .bottom-actions { margin-top: auto; }

.scroll-stage {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-right: 3px;
  padding-bottom: 8px;
}
.scroll-stage::-webkit-scrollbar { display: none; }

.mobile-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 22px;
}
.mobile-flow span { height: 2px; border-radius: 8px; background: rgba(206, 238, 232, 0.12); }
.mobile-flow span.active { background: var(--mint); box-shadow: 0 0 8px rgba(36, 214, 189, 0.45); }

.bottom-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.bottom-actions .primary-action { margin-top: 0; }
.text-action, .back-action {
  border: 0;
  color: #839d98;
  background: transparent;
  cursor: pointer;
}
.text-action { min-height: 34px; padding: 8px 14px; font-size: 11px; }
.back-action { align-self: flex-start; min-height: 38px; margin: -4px 0 12px -8px; padding: 8px; font-size: 11px; }
.back-action:hover, .text-action:hover { color: #c4d8d4; }

.screen-title {
  margin: 15px 0 0;
  color: #f6fbfa;
  font-size: clamp(31px, 4.6vh, 40px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 610;
}
.screen-lead { margin: 14px 0 0; color: #9db5b0; font-size: 14px; line-height: 1.75; }

.security-mark {
  position: relative;
  width: 84px;
  height: 96px;
  margin: 28px auto 34px;
  border: 1px solid rgba(62, 226, 201, 0.62);
  border-radius: 35% 35% 50% 50% / 28% 28% 64% 64%;
  box-shadow: 0 0 60px rgba(36, 214, 189, 0.13), inset 0 0 28px rgba(36, 214, 189, 0.08);
}
.security-mark::before, .security-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.security-mark::before { width: 25px; height: 25px; border: 1px solid var(--mint); border-radius: 50%; }
.security-mark::after { width: 2px; height: 18px; margin-top: 13px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.security-mark i { position: absolute; inset: 13px; border: 1px solid rgba(62, 226, 201, 0.2); border-radius: inherit; }

.pin-form { display: flex; flex-direction: column; margin-top: 30px; }
.pin-form label, .field-label, .text-field > span { color: #98b0ab; font-size: 11px; letter-spacing: 0.06em; }
.pin-form input {
  width: 100%;
  height: 74px;
  margin-top: 9px;
  border: 1px solid rgba(204, 238, 232, 0.19);
  border-radius: 16px;
  outline: 0;
  color: #f7fffd;
  background: rgba(219, 250, 244, 0.055);
  font: 600 30px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.55em;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pin-form input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(36, 214, 189, 0.12); }
.pin-form input[aria-invalid="true"] { border-color: #ed8b7e; }
.pin-form .primary-action { margin-top: 20px; }
.demo-hint { margin: 10px 0 0; color: #69827d; font-size: 10px; }
.demo-hint strong { color: var(--mint); letter-spacing: 0.08em; }
.form-error { margin: 10px 0 0; color: #ff9b90; font-size: 11px; line-height: 1.5; }
.privacy-hint { margin: auto 0 0; padding-top: 24px; color: #657e79; font-size: 10px; line-height: 1.65; }

.access-granted { margin: 24px 0 0; color: var(--mint); font-size: 10px; letter-spacing: 0.14em; }
.theme-title { margin: 13px 0 0; font-size: clamp(54px, 8vh, 70px); line-height: 0.92; letter-spacing: -4px; font-weight: 610; }
.theme-title span { display: block; color: var(--mint); }
.personal-greeting { margin: 18px 0 0; color: #b0c6c1; font-size: 14px; line-height: 1.7; }

.invitation-ticket {
  position: relative;
  margin-top: 26px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(196, 237, 229, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(222, 253, 247, 0.08), rgba(101, 234, 215, 0.02));
  box-shadow: inset -2px -2px 0 rgba(36, 214, 189, 0.2), 0 20px 54px rgba(0, 0, 0, 0.22);
}
.invitation-ticket::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -94px;
  right: -82px;
  border: 1px solid rgba(36, 214, 189, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(36, 214, 189, 0.12);
}
.ticket-topline { display: flex; justify-content: space-between; gap: 12px; color: #718b85; font-size: 9px; letter-spacing: 0.09em; }
.ticket-topline strong { color: var(--copper); font-weight: 500; }
.invitation-ticket h2 { max-width: 290px; margin: 24px 0 0; font-size: 19px; line-height: 1.4; font-weight: 570; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.event-facts p { margin: 0; }
.event-facts span, .exclusive-modules span { display: block; color: #708983; font-size: 9px; }
.event-facts strong { display: block; margin-top: 6px; color: #d6e7e3; font-size: 12px; font-weight: 530; }
.exclusive-modules { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(206, 242, 235, 0.11); }
.exclusive-modules strong { display: block; margin-top: 7px; color: var(--mint-bright); font-size: 11px; line-height: 1.5; font-weight: 550; }
.invite-actions { margin-top: auto; padding-top: 24px; }
.data-note { margin: 0; color: #607974; font-size: 9px; }

.section-head { display: flex; align-items: center; justify-content: space-between; color: #6f8983; font-size: 10px; }
.section-head .back-action { margin-bottom: 0; }
.form-section { padding-top: 16px; }
.choice-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.choice-card {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(199, 235, 228, 0.15);
  border-radius: 16px;
  color: #dceae7;
  background: rgba(220, 248, 243, 0.035);
  text-align: left;
  cursor: pointer;
}
.choice-card.selected { border-color: var(--mint); background: rgba(36, 214, 189, 0.09); box-shadow: 0 0 0 2px rgba(36, 214, 189, 0.06); }
.radio-mark { width: 21px; height: 21px; flex: 0 0 auto; border: 1px solid #5b7771; border-radius: 50%; }
.choice-card.selected .radio-mark { border: 6px solid var(--mint); background: #002a23; }
.choice-card strong { display: block; font-size: 14px; font-weight: 560; }
.choice-card small { display: block; margin-top: 6px; color: #6f8983; font-size: 10px; }
.choice-card.selected small { color: #94b4ad; }

.field-label { display: block; margin: 28px 0 10px; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.select-chip {
  min-height: 48px;
  padding: 10px 9px;
  border: 1px solid rgba(203, 239, 232, 0.16);
  border-radius: 13px;
  color: #adc2bd;
  background: rgba(220, 248, 243, 0.03);
  font-size: 11px;
  cursor: pointer;
}
.select-chip.selected { color: #002a23; border-color: var(--mint); background: var(--mint); font-weight: 650; }
.module-label { margin-top: 26px; }
.module-list { display: flex; flex-direction: column; gap: 8px; }
.module-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 239, 232, 0.13);
  border-radius: 13px;
  color: #a8bcb7;
  background: rgba(220, 248, 243, 0.025);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.module-card i { color: #59726c; font-size: 9px; font-style: normal; }
.module-card.selected { color: #dff8f3; border-color: rgba(36, 214, 189, 0.58); background: rgba(36, 214, 189, 0.07); }
.module-card.selected i { color: var(--mint); }

.toggle-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.toggle-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(199, 235, 228, 0.13);
  border-radius: 14px;
  background: rgba(220, 248, 243, 0.025);
  cursor: pointer;
}
.toggle-row strong { display: block; color: #d9e9e5; font-size: 12px; font-weight: 550; }
.toggle-row small { display: block; margin-top: 6px; color: #657f79; font-size: 9px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row > i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #243d38; transition: background 0.2s ease; }
.toggle-row > i::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #8ca29d; transition: transform 0.2s ease, background 0.2s ease; }
.toggle-row input:checked + i { background: var(--mint); }
.toggle-row input:checked + i::after { background: #002c25; transform: translateX(18px); }

.text-field { display: block; margin-top: 22px; }
.text-field input {
  width: 100%;
  height: 50px;
  margin-top: 9px;
  padding: 0 13px;
  border: 1px solid rgba(199, 235, 228, 0.14);
  border-radius: 12px;
  outline: 0;
  color: #e5f1ef;
  background: rgba(220, 248, 243, 0.035);
  font-size: 12px;
}
.text-field input:focus { border-color: var(--mint); }
.text-field input::placeholder { color: #516a64; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: #708983; font-size: 9px; line-height: 1.6; cursor: pointer; }
.consent-row input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--mint); }
.form-footer { margin-top: auto; padding-top: 24px; }
.form-footer .form-error { margin: 0 0 10px; }
.form-footer .primary-action { margin-top: 0; }

.review-screen-mobile .eyebrow { margin-top: 6px; }
.summary-card { margin-top: 24px; border: 1px solid rgba(202, 237, 230, 0.16); border-radius: 16px; background: rgba(218, 248, 242, 0.04); }
.summary-card > div { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 14px; border-bottom: 1px solid rgba(202, 237, 230, 0.09); }
.summary-card > div:last-child { border-bottom: 0; }
.summary-card span { color: #6c857f; font-size: 10px; }
.summary-card strong { color: #dceae7; font-size: 11px; line-height: 1.55; font-weight: 520; }
.prototype-callout { margin-top: 18px; padding: 14px; border-left: 2px solid var(--copper); background: rgba(201, 145, 104, 0.07); }
.prototype-callout strong { color: var(--copper); font-size: 10px; }
.prototype-callout p { margin: 6px 0 0; color: #8da39e; font-size: 10px; line-height: 1.6; }
.review-submit { margin-top: auto; padding-top: 24px; }

.success-orbit {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 18px auto 10px;
  border: 1px solid rgba(36, 214, 189, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(36, 214, 189, 0.15), inset 0 0 26px rgba(36, 214, 189, 0.08);
}
.success-orbit::before, .success-orbit::after { content: ""; position: absolute; border: 1px solid rgba(36, 214, 189, 0.18); border-radius: 50%; }
.success-orbit::before { inset: 11px; }
.success-orbit::after { inset: 25px; background: var(--mint); box-shadow: 0 0 20px var(--mint); }
.success-orbit i { position: absolute; inset: -8px; border-top: 1px solid var(--copper); border-radius: 50%; animation: orbit 4s linear infinite; }
.journey-screen .access-granted { text-align: center; }
.journey-list { display: flex; flex-direction: column; margin-top: 24px; }
.journey-list article { min-height: 78px; display: grid; grid-template-columns: 52px 18px 1fr; gap: 10px; }
.journey-date strong { display: block; color: #daeae6; font-size: 12px; }
.journey-date span { display: block; margin-top: 5px; color: #657f79; font-size: 9px; }
.journey-dot { position: relative; display: flex; justify-content: center; }
.journey-dot i { position: relative; z-index: 2; width: 8px; height: 8px; margin-top: 4px; border: 2px solid var(--mint); border-radius: 50%; background: #04100e; box-shadow: 0 0 10px rgba(36, 214, 189, 0.55); }
.journey-dot span { position: absolute; top: 13px; bottom: -3px; width: 1px; background: linear-gradient(var(--mint), rgba(36, 214, 189, 0.06)); }
.journey-copy strong { display: block; color: #dcebe8; font-size: 12px; font-weight: 560; }
.journey-copy p { margin: 6px 0 0; color: #6f8882; font-size: 10px; line-height: 1.5; }
.schedule-disclaimer { margin: 8px 0 0; color: #566f69; font-size: 9px; text-align: center; }
.dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.dual-actions button {
  min-height: 46px;
  border: 1px solid rgba(36, 214, 189, 0.4);
  border-radius: 12px;
  color: #bfe0da;
  background: rgba(36, 214, 189, 0.06);
  font-size: 11px;
  cursor: pointer;
}
.journey-screen > .text-action { align-self: center; margin-top: 6px; }

.decline-screen { justify-content: center; }
.quiet-mark { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 34px; border: 1px solid rgba(36, 214, 189, 0.52); border-radius: 50%; color: var(--mint); font-size: 26px; box-shadow: 0 0 46px rgba(36, 214, 189, 0.12); }
.decline-card { margin-top: 28px; padding: 20px; border: 1px solid rgba(202, 237, 230, 0.15); border-radius: 16px; background: rgba(218, 248, 242, 0.035); }
.decline-card span { color: var(--mint); font-size: 9px; letter-spacing: 0.13em; }
.decline-card strong { display: block; margin-top: 12px; color: #dcebe8; font-size: 15px; font-weight: 530; }
.decline-card p { margin: 8px 0 0; color: #657d78; font-size: 10px; }
.decline-screen .bottom-actions { margin-top: 42px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 30;
  min-width: 190px;
  padding: 12px 16px;
  border: 1px solid rgba(36, 214, 189, 0.35);
  border-radius: 999px;
  color: #dff8f3;
  background: rgba(4, 24, 21, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  text-align: center;
  transform: translateX(-50%);
}

/* Desktop review console */

.review-panel { gap: 28px; }
.panel-heading h2 { margin-top: 17px; }
.panel-copy { margin-top: 20px; }
.flow-preview .done { color: #77aaa1; border-color: rgba(36, 214, 189, 0.28); }
.review-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-metrics > div { min-height: 98px; padding: 15px; border: 1px solid rgba(195, 232, 225, 0.12); border-radius: 14px; background: rgba(218, 248, 242, 0.025); }
.review-metrics span { display: block; color: #667f79; font-size: 9px; }
.review-metrics strong { display: block; margin-top: 8px; color: #d8ebe7; font-size: 19px; font-weight: 560; }
.review-metrics small { display: block; margin-top: 6px; color: #748c86; font-size: 9px; }
.prototype-controls { padding: 16px; border: 1px solid rgba(196, 233, 226, 0.12); border-radius: 16px; background: rgba(218, 248, 242, 0.025); }
.control-head { display: flex; justify-content: space-between; gap: 14px; color: #cbded9; font-size: 11px; }
.control-head span { color: #5e7771; font-size: 9px; }
.entry-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.entry-switch button, .control-actions button { min-height: 38px; border: 0; border-radius: 9px; color: #76908a; background: transparent; font-size: 10px; cursor: pointer; }
.entry-switch button.active { color: #002b24; background: var(--mint); font-weight: 650; }
.control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.control-actions button { border: 1px solid rgba(196, 233, 226, 0.12); color: #9eb5b0; background: rgba(218, 248, 242, 0.025); }
.scope-note { display: flex; align-items: flex-start; gap: 10px; color: #738c86; font-size: 10px; line-height: 1.65; }
.scope-note i { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 10px rgba(201, 145, 104, 0.55); }
.scope-note strong { color: #a8beb9; font-weight: 560; }

@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-height: 860px) and (min-width: 881px) {
  .review-panel { gap: 18px; }
  .panel-heading h2 { font-size: 42px; }
  .panel-copy { font-size: 13px; line-height: 1.7; }
  .review-metrics > div { min-height: 84px; padding: 12px; }
}

@media (max-width: 880px) {
  .experience-screen { min-height: 100svh; }
  .screen-stage { padding-top: 22px; }
  .reveal-screen { padding-top: 0; }
  .screen-foot { color: #78908b; font-size: 9px; }
}

@media (max-width: 370px) {
  .experience-screen { padding-left: 18px; padding-right: 18px; }
  .intro-copy { margin-top: 32px; }
  .intro-copy h1 { font-size: 34px; }
  .access-card { margin-top: 12px; }
  .progress-bars { margin-top: 16px; }
  .screen-title { font-size: 30px; }
  .chip-grid { grid-template-columns: 1fr; }
}
