/* =========================================================
   LEARNING REWIRED LAB — PRODUCT-INSPIRED PROTOTYPE PAGES
   Shared CSS for Innovation Lab prototype case pages
   File: /assets/css/innovation-lab/product-inspired-prototype.css
   ========================================================= */

.pip-v1 {
  overflow: hidden;
  background: #f7f8fb;
  color: #080b12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pip-v1 *,
.pip-v1 *::before,
.pip-v1 *::after {
  box-sizing: border-box;
}

.pip-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.pip-v1 h1,
.pip-v1 h2,
.pip-v1 h3,
.pip-v1 p {
  margin-top: 0;
}

.pip-v1 h1,
.pip-v1 h2,
.pip-v1 h3 {
  color: #080b12;
  text-wrap: balance;
}

.pip-v1 p {
  color: rgba(8, 11, 18, 0.64);
}

.pip-v1 a {
  color: inherit;
}

/* =========================================================
   Shared type + buttons
   ========================================================= */

.pip-eyebrow,
.pip-kicker {
  margin: 0 0 16px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.pip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pip-btn:hover {
  transform: translateY(-2px);
}

.pip-btn.primary {
  border: 0;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 48%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

.pip-btn.secondary {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #080b12 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.pip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pip-actions.centered {
  justify-content: center;
}

/* =========================================================
   Hero
   ========================================================= */

.pip-hero {
  position: relative;
  padding: clamp(54px, 7vw, 92px) 0 clamp(44px, 6vw, 76px);
  background:
    radial-gradient(circle at 84% 16%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 18% 80%, rgba(20, 184, 166, 0.10), transparent 32%),
    #ffffff;
}

.pip-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.pip-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  padding-bottom: 0.14em;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.064em;
  font-weight: 720;
}

.pip-hero-copy h1 span {
  display: inline-block;
  padding-right: 0.06em;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #2563eb 0%, #5b4df5 42%, #7c3aed 70%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pip-deck {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.64;
}

/* =========================================================
   Hero visual: video
   ========================================================= */

.pip-hero-visual {
  position: relative;
}

.pip-hero-video-wrap {
  position: relative;
  min-height: auto;
  display: block;
  padding: 0;
  border-radius: 34px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
}

.pip-hero-video-wrap::before {
  display: none;
}

.pip-hero-video {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
}

/* =========================================================
   Fallback hero visual: phone/card stack
   Kept for future non-video prototype pages
   ========================================================= */

.pip-phone-frame {
  position: relative;
  z-index: 2;
  width: min(300px, 72%);
  min-height: 430px;
  padding: 22px 18px 24px;
  border: 10px solid #080b12;
  border-radius: 44px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.pip-phone-top {
  width: 88px;
  height: 20px;
  margin: 0 auto 18px;
  border-radius: 0 0 16px 16px;
  background: #080b12;
}

.pip-card-stack {
  position: relative;
  min-height: 330px;
}

.pip-mobile-card {
  position: absolute;
  inset: 0;
  padding: 24px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.pip-mobile-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pip-mobile-card h2 {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.pip-mobile-card p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.pip-mobile-card.card-front {
  z-index: 3;
  background:
    radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.12), transparent 28%),
    #ffffff;
}

.pip-mobile-card.card-mid {
  z-index: 2;
  transform: translate(18px, 14px) rotate(4deg);
  opacity: 0.74;
}

.pip-mobile-card.card-back {
  z-index: 1;
  transform: translate(-18px, 28px) rotate(-5deg);
  opacity: 0.52;
}

.pip-card-progress {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.pip-card-progress span {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  margin: 0;
}

.pip-card-progress span:first-child {
  background: #2563eb;
}

.pip-phone-nav {
  display: grid;
  place-items: center;
  height: 28px;
  margin-top: 18px;
}

.pip-phone-nav span {
  width: 86px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.pip-floating-note {
  position: absolute;
  z-index: 3;
  width: 190px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  color: rgba(8, 11, 18, 0.66);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.pip-floating-note span {
  display: block;
  margin-bottom: 7px;
  color: #123f9c;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pip-floating-note.note-one {
  left: 28px;
  top: 46px;
}

.pip-floating-note.note-two {
  right: 28px;
  bottom: 44px;
}

/* =========================================================
   Shared sections
   ========================================================= */

.pip-section {
  padding: clamp(46px, 6vw, 84px) 0;
}

.pip-section-header,
.pip-demo-header {
  max-width: 860px;
  margin-bottom: 28px;
}

.pip-section-header h2,
.pip-demo-header h2,
.pip-context-copy h2,
.pip-use-copy h2,
.pip-reveal-intro h2,
.pip-signal-copy h2,
.pip-final-card h2 {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 1;
  letter-spacing: -0.058em;
  font-weight: 700;
}

.pip-section-header p,
.pip-demo-header p,
.pip-context-copy p,
.pip-use-copy p,
.pip-reveal-intro p,
.pip-signal-copy p,
.pip-final-card p {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.66;
}

.pip-context-section,
.pip-reveal-section {
  background: #f7f8fb;
}

.pip-demo-section,
.pip-preview-section,
.pip-use-section,
.pip-signal-section {
  background: #ffffff;
}

/* =========================================================
   Prototype demo / mobile mock-up
   ========================================================= */

.pip-demo-section {
  position: relative;
  background: #ffffff;
}

.pip-demo-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(20, 184, 166, 0.12), transparent 34%),
    #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}

.pip-demo-phone {
  position: relative;
  width: min(350px, 100%);
  margin: 0 auto;
  padding: 18px 14px 22px;
  border: 10px solid #080b12;
  border-radius: 52px;
  background: #ffffff;
  box-shadow:
    0 34px 84px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.pip-demo-phone-top {
  display: grid;
  place-items: center;
  height: 20px;
  margin-bottom: 12px;
}

.pip-demo-phone-top span {
  width: 92px;
  height: 18px;
  border-radius: 0 0 16px 16px;
  background: #080b12;
}

.pip-demo-screen {
  position: relative;
  min-height: 560px;
  padding: 14px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.08), transparent 30%),
    #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.pip-demo-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.pip-demo-app-header p {
  margin: 0 0 5px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.pip-demo-app-header strong {
  display: block;
  color: #080b12;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.pip-demo-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #123f9c;
  font-size: 12px;
  font-weight: 950;
}

.pip-demo-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 14px 0;
}

.pip-demo-progress span {
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.10);
}

.pip-demo-progress span.is-active {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.pip-demo-slides {
  position: relative;
  min-height: 360px;
}

.pip-demo-slide {
  display: none;
  min-height: 360px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 8%, rgba(37, 99, 235, 0.11), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(20, 184, 166, 0.10), transparent 30%),
    #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.pip-demo-slide.is-active {
  display: block;
}

.pip-demo-card-label {
  margin: 0 0 14px;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.pip-demo-slide h3 {
  margin: 0;
  color: #080b12;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.pip-demo-slide p:not(.pip-demo-card-label) {
  margin: 16px 0 0;
  color: rgba(8, 11, 18, 0.62);
  font-size: 15px;
  line-height: 1.55;
}

.pip-demo-choice-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pip-demo-choice-list button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 17px;
  background: #f8fafc;
  color: rgba(8, 11, 18, 0.72);
  font: inherit;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  cursor: default;
}

.pip-demo-choice-list button.is-selected {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
  color: #123f9c;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}

.pip-demo-callout,
.pip-demo-feedback-card {
  margin-top: 18px;
  padding: 15px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  color: rgba(8, 11, 18, 0.66);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.pip-demo-callout.selected,
.pip-demo-feedback-card {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
  color: #123f9c;
}

.pip-demo-callout span,
.pip-demo-feedback-card span {
  display: block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.pip-demo-reflection-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.pip-demo-reflection-lines span {
  height: 42px;
  border-radius: 16px;
  background:
    linear-gradient(#e2e8f0 0 0) 16px 18px / 70% 8px no-repeat,
    #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.pip-demo-controls {
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.pip-demo-controls span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.pip-demo-control {
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  background: #ffffff;
  color: #080b12;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.pip-demo-control.primary {
  border: 0;
  background: #080b12;
  color: #ffffff;
}

.pip-demo-control:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.pip-demo-bottom-nav {
  display: grid;
  place-items: center;
  height: 22px;
  margin-top: 18px;
}

.pip-demo-bottom-nav span {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.pip-demo-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pip-demo-notes article {
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
}

.pip-demo-notes span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.12), rgba(20, 184, 166, 0.12));
  color: #123f9c;
  font-size: 14px;
  font-weight: 950;
}

.pip-demo-notes h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.pip-demo-notes p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.54;
}

/* =========================================================
   Context + use + signal cards
   ========================================================= */

.pip-context-card,
.pip-use-card,
.pip-signal-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 54px);
  border-radius: 40px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

.pip-proof-grid,
.pip-use-list {
  display: grid;
  gap: 12px;
}

.pip-proof-grid article,
.pip-use-list article {
  padding: 18px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.pip-proof-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
}

.pip-proof-grid h3,
.pip-use-list h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pip-proof-grid p,
.pip-use-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* =========================================================
   Flow grid
   ========================================================= */

.pip-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pip-flow-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.08), transparent 28%),
    #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.052);
}

.pip-flow-grid article > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.12), rgba(20, 184, 166, 0.12));
  color: #123f9c;
  font-size: 14px;
  font-weight: 950;
}

.pip-flow-grid h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.pip-flow-grid p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.54;
}

/* =========================================================
   Reveal sections
   ========================================================= */

.pip-reveal-card {
  padding: clamp(28px, 4.5vw, 54px);
  border-radius: 40px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

.pip-reveal-intro {
  max-width: 820px;
  margin-bottom: 24px;
}

.pip-reveal-list {
  display: grid;
  gap: 12px;
}

.pip-reveal {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #f8fafc;
  overflow: hidden;
}

.pip-reveal summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 18px 20px;
  color: #080b12;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  cursor: pointer;
  list-style: none;
}

.pip-reveal summary::-webkit-details-marker {
  display: none;
}

.pip-reveal summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #123f9c;
  font-size: 20px;
  font-weight: 950;
}

.pip-reveal[open] summary::after {
  content: "–";
  background: #123f9c;
  color: #ffffff;
}

.pip-reveal-body {
  padding: 0 20px 20px;
}

.pip-reveal-body p {
  margin: 0;
  color: rgba(8, 11, 18, 0.64);
  font-size: 16px;
  line-height: 1.62;
}

.pip-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pip-reveal-grid article {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.pip-reveal-grid h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pip-reveal-grid p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

/* =========================================================
   Tally / Prototype Signal
   ========================================================= */

.pip-signal-card {
  align-items: start;
}

.pip-tally-panel {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
}

.pip-tally-intro {
  margin-bottom: 14px;
  padding: 18px 18px 0;
}

.pip-tally-label {
  margin: 0 0 8px;
  color: #2563eb !important;
  font-size: 11px !important;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.pip-tally-intro h3 {
  margin: 0;
  color: #080b12;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.052em;
}

.pip-tally-intro p {
  margin: 12px 0 0;
  color: rgba(8, 11, 18, 0.62);
  font-size: 15px;
  line-height: 1.55;
}

.pip-tally-wrap {
  min-height: 260px;
  padding: 8px 18px 18px;
  border-radius: 28px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.pip-tally-wrap iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

/* =========================================================
   Final CTA
   ========================================================= */

.pip-final-section {
  padding: clamp(46px, 6vw, 84px) 0 clamp(70px, 8vw, 112px);
  background: #ffffff;
}

.pip-final-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px);
  border-radius: 40px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 24%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(20, 184, 166, 0.14), transparent 34%),
    #080b12;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
}

.pip-final-card .pip-kicker,
.pip-final-card h2 {
  color: #ffffff;
}

.pip-final-card p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.74);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .pip-hero-grid,
  .pip-demo-stage,
  .pip-context-card,
  .pip-use-card,
  .pip-signal-card {
    grid-template-columns: 1fr;
  }

  .pip-hero-copy h1 {
    max-width: 760px;
  }

  .pip-hero-video {
    height: auto;
  }

  .pip-flow-grid,
  .pip-demo-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pip-tally-panel {
    max-width: 760px;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .pip-shell {
    width: min(100% - 32px, 1240px);
  }

  .pip-hero {
    padding: 48px 0 58px;
  }

  .pip-hero-copy h1 {
    font-size: clamp(42px, 12vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.062em;
  }

  .pip-actions,
  .pip-actions.centered {
    width: 100%;
  }

  .pip-btn {
    width: 100%;
  }

  .pip-section-header h2,
  .pip-demo-header h2,
  .pip-context-copy h2,
  .pip-use-copy h2,
  .pip-reveal-intro h2,
  .pip-signal-copy h2,
  .pip-final-card h2 {
    font-size: clamp(34px, 9vw, 50px);
    line-height: 1;
    letter-spacing: -0.052em;
  }

  .pip-flow-grid,
  .pip-demo-notes,
  .pip-reveal-grid {
    grid-template-columns: 1fr;
  }

  .pip-hero-video-wrap,
  .pip-hero-video,
  .pip-demo-stage,
  .pip-demo-phone,
  .pip-context-card,
  .pip-use-card,
  .pip-reveal-card,
  .pip-signal-card,
  .pip-final-card,
  .pip-flow-grid article,
  .pip-demo-notes article {
    border-radius: 28px;
  }

  .pip-hero-video {
    height: auto;
  }

  .pip-demo-stage {
    padding: 22px;
  }

  .pip-demo-phone {
    width: min(340px, 100%);
    min-height: 630px;
  }

  .pip-demo-card {
    padding: 22px;
  }

  .pip-demo-card h3 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .pip-demo-card-footer {
    left: 22px;
    right: 22px;
  }

  .pip-floating-note {
    display: none;
  }

  .pip-phone-frame {
    width: min(300px, 88%);
  }

  .pip-reveal summary {
    font-size: 17px;
    align-items: flex-start;
  }

  .pip-tally-panel {
    max-width: 100%;
  }

  .pip-tally-intro {
    padding: 16px 16px 0;
  }

  .pip-tally-wrap {
    padding: 6px 14px 14px;
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .pip-shell {
    width: min(100% - 28px, 1240px);
  }

  .pip-phone-frame {
    min-height: 410px;
  }

  .pip-mobile-card h2 {
    font-size: 30px;
  }

  .pip-demo-phone {
    min-height: 610px;
    padding: 18px 14px 22px;
    border-width: 9px;
  }

  .pip-demo-card-stack {
    min-height: 392px;
  }

  .pip-demo-choice-list button {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pip-btn {
    transition: none !important;
  }

  .pip-btn:hover {
    transform: none !important;
  }
}
@media (max-width: 1080px) {
  .pip-demo-stage {
    grid-template-columns: 1fr;
  }

  .pip-demo-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pip-demo-stage {
    padding: 22px;
  }

  .pip-demo-notes {
    grid-template-columns: 1fr;
  }

  .pip-demo-phone {
    width: min(340px, 100%);
    border-radius: 42px;
  }

  .pip-demo-screen {
    min-height: 540px;
    border-radius: 28px;
  }

  .pip-demo-slide {
    min-height: 340px;
  }

  .pip-demo-slide h3 {
    font-size: clamp(24px, 8vw, 32px);
  }
}

@media (max-width: 520px) {
  .pip-demo-phone {
    padding: 16px 12px 20px;
    border-width: 9px;
  }

  .pip-demo-screen {
    min-height: 530px;
    padding: 12px;
  }

  .pip-demo-controls {
    grid-template-columns: 74px 1fr 74px;
  }

  .pip-demo-choice-list button {
    font-size: 13px;
  }
}
