/* Intro: the first screens a new reader sees. Lab component, ported from the
   Assignment 1 mock-up. Follows the page tokens so it matches either theme.
   The phone itself is always dark, because it is a phone. */
.intro { position: fixed; inset: 0; z-index: 10000; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.intro[hidden] { display: none; }
.intro-inner { position: relative; width: 100%; max-width: 480px; flex: 1; display: flex; flex-direction: column;
  padding: 20px 18px 28px; box-sizing: border-box; }
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.intro-brand { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); }
.intro-skip { background: none; border: 1px solid var(--line); color: var(--ink-3); font: 500 0.8rem var(--sans);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.intro-skip:hover { color: var(--ink); border-color: var(--ink-3); }

/* the title page: nothing moves until the reader asks */
.intro-title { position: absolute; left: 18px; right: 18px; top: 20px; bottom: 28px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; }
.intro-title[hidden] { display: none; }
.intro-sub { margin: 0 0 10px; max-width: 320px; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.intro-start { display: block; width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem var(--sans); text-align: center; cursor: pointer; background: var(--accent); color: var(--on-fill, #fff); }
.intro-start:hover { filter: brightness(1.07); }
.intro-title .intro-actions { max-width: 320px; margin-top: 6px; }

/* the stage: a phone on a quiet morning */
.intro-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 420px; padding: 10px 0 30px; }
.phone { width: 200px; height: 400px; flex: none; border-radius: 30px; border: 2px solid #343a34; background: #0f120f;
  padding: 8px; box-sizing: border-box; box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.8); }
.pscreen { position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden;
  background: #0d1f1c url(assets/wallpaper.jpg) center/cover no-repeat; }
.pscreen::before { content: ""; position: absolute; left: 50%; top: 8px; width: 46px; height: 8px; border-radius: 999px;
  background: #0f120f; transform: translateX(-50%); z-index: 5; }
.lock { position: absolute; inset: 0; padding: 30px 12px 12px; text-align: center; color: #F3F8F5; }
.ldate { margin: 0; font: 500 0.62rem var(--sans); letter-spacing: 0.02em; color: #fff; opacity: 0.9; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.ltime { margin: 2px 0 0; font: 300 3rem/1 var(--sans); letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.notif { position: absolute; left: 10px; right: 10px; top: 132px; display: flex; gap: 8px; align-items: center;
  padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14); text-align: left; }
.notif .nb { width: 28px; height: 28px; border-radius: 8px; background: #151815; display: flex; align-items: center;
  justify-content: center; font: 700 0.62rem var(--serif); color: #E6E9E4; flex: none; }
.notif .nb em { font-style: normal; color: #D07A50; }
.notif .nt { flex: 1; font-size: 0.58rem; line-height: 1.25; color: rgba(255, 255, 255, 0.85); }
.notif .nt b { display: block; color: #fff; font-size: 0.6rem; }
.appview { position: absolute; inset: 0; padding: 22px 11px 10px; background: #1C201C; color: #E6E9E4; opacity: 0; }
.abrand { margin: 0 0 10px; font: 700 0.8rem var(--serif); color: #E6E9E4; }
.abrand em { font-style: normal; color: #43BFA0; }
.abrand .dot { color: #D07A50; }
.aeyebrow { margin: 0 0 4px; font: 0.5rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #98A096; }
.ahead { margin: 0 0 12px; font: 600 0.95rem/1.25 var(--serif); color: #E6E9E4; }
.pfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pfacts li { display: flex; align-items: center; gap: 6px; font-size: 0.66rem; color: #A9B1A8; line-height: 1.2; }
.pfacts .pchip { font: 0.48rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px;
  border-radius: 999px; border: 1px solid #2A2F2A; white-space: nowrap; }
.pfacts .pchip.v { border-color: #43BFA0; color: #43BFA0; }
.pfacts .pchip.r { border-color: #98A096; color: #A9B1A8; }
.pfacts .pchip.d { border-color: #D07A50; color: #D07A50; }
.psrc { margin: 10px 0 0; font: 0.52rem var(--mono); color: #98A096; letter-spacing: 0.04em; }

/* the resting state: motto, wordmark, the prototype card, the button */
.intro-rest { position: absolute; left: 18px; right: 18px; top: 72px; bottom: 28px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; }
.intro-rest .swap { display: grid; width: 100%; margin-bottom: 10px; }
.intro-rest .swap > * { grid-area: 1 / 1; align-self: center; }
.intro-motto { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.intro-motto span { display: inline-block; }
.intro-motto .m3 { color: var(--accent); }
.brand-big { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-big em, .intro-brand em { font-style: normal; color: var(--accent); }
.brand-big .dot, .intro-brand .dot { color: var(--clay); }
.proto-card { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 14px 16px; text-align: left;
  border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-tint); color: var(--ink); }
.proto-card .pc-k { display: block; font: 600 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.proto-card p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.4; color: var(--ink); }
.proto-card p:last-child { margin-bottom: 0; }
.proto-card b { font-weight: 600; }
.intro-actions { width: 100%; display: grid; gap: 6px; margin-top: 4px; }
.intro-go { display: block; width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 1rem var(--sans); text-align: center; cursor: pointer; background: var(--accent); color: var(--on-fill, #fff); }
.intro-go:hover { filter: brightness(1.07); }
.intro-replay { background: none; border: 0; color: var(--ink-3); font: 500 0.78rem var(--sans); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.intro-replay:hover { color: var(--ink); }
.lab-banner .replay-link { margin-left: 6px; }
@media (max-height: 640px) { .intro-stage { min-height: 360px; } .phone { width: 170px; height: 340px; } }
@media (prefers-reduced-motion: reduce) { .intro * { transition: none !important; } }
