@import url("tokens.css");

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

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  background: var(--slate-50);
}

/* Fixed top chrome — matches app hero-topbar */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(8, 20, 40, 0.22));
}

.site-chrome h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
}

.site-chrome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-select {
  padding: 5px 10px;
  border: none;
  border-radius: var(--radius-button);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--slate-200);
  color: var(--slate-900);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.lang-select:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--navy-700),
    0 0 0 3px var(--navy-ring);
}

button {
  border: none;
  border-radius: var(--radius-button);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  background: var(--navy-700);
  color: #fff;
  transition: filter 120ms ease, transform 120ms ease;
}

button:hover {
  filter: brightness(0.96);
}

button.secondary {
  background: var(--slate-200);
  color: var(--slate-900);
}

button.secondary:hover {
  filter: brightness(0.94);
}

button.ghost {
  background: transparent;
  color: var(--navy-700);
  padding: 6px 10px;
}

.user-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: none;
  background: var(--navy-100);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  transition: background 0.15s, filter 0.15s;
}

.user-pill.visible {
  display: inline-flex;
}

.user-pill:hover {
  background: var(--navy-200, #cdd9f2);
}

.user-pill .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Viewport + infinite plane */
.viewport {
  position: fixed;
  inset: var(--chrome-h) 0 0 0;
  cursor: grab;
  touch-action: none;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--navy-100) 100%);
}

.viewport.is-dragging {
  cursor: grabbing;
}

.canvas-dot-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  z-index: 1;
  transform-origin: 0 0;
  /* Intentionally NOT `will-change: transform`: promoting the whole world to a
     standalone compositor layer makes the browser keep one big rasterised
     backing store, which it discards and re-rasterises on a big scale change
     (zoom-out) — for a frame the content vanishes and the near-white page
     background shows through, read as a "white flash". Painting inline avoids
     that discard. */
}

/* Cards on the plane */
.plane-card {
  position: absolute;
  width: 304px;
  padding: 16px;
  background: var(--panel-bg);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  transform: translate(-50%, -50%);
  transition: box-shadow 120ms ease, transform 120ms ease;
  user-select: none;
}

.plane-card:not(.no-lift):hover {
  box-shadow: var(--shadow-card-hover);
  transform: translate(-50%, calc(-50% - 2px));
}

.plane-card.wide {
  width: 376px;
}

/* ====================================================================== *
 * Massive download banner — wide, short (height ≈ ¼ width), four apps
 * ====================================================================== */
.plane-card.download-card,
.home-download-section {
  width: min(1180px, 92vw);
  padding: 30px 40px 34px;
  background: linear-gradient(160deg, #ffffff 0%, #e9f1ff 100%);
  color: var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plane-card.download-card-archive,
.plane-card.free-card-archive {
  display: none;
}

.home-download-section {
  width: 100%;
  margin-top: 28px;
  padding: 28px 0 0;
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.download-card .card-spot {
  display: none;
}
.download-card .dl-title,
.home-download-section .dl-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  color: var(--slate-900);
}
.download-card .dl-grid,
.home-download-section .dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* No box-inside-the-box: the apps sit directly on the light banner. */
.download-card .dl-app,
.home-download-section .dl-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 28px 12px 0;
  color: inherit;
}
.download-card .dl-app-main,
.home-download-section .dl-app-main {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.download-card .dl-app-main .dl-ico,
.home-download-section .dl-app-main .dl-ico,
.download-card .dl-app-main strong,
.home-download-section .dl-app-main strong {
  transition: transform 160ms ease, color 160ms ease;
}
.download-card .dl-app-main:hover .dl-ico,
.home-download-section .dl-app-main:hover .dl-ico {
  transform: translateY(-3px);
}
.download-card .dl-app-main:hover strong,
.home-download-section .dl-app-main:hover strong {
  color: #244d87;
}
.download-card .dl-app-main:focus-visible,
.home-download-section .dl-app-main:focus-visible,
.download-card .dl-source:focus-visible,
.home-download-section .dl-source:focus-visible {
  outline: 3px solid rgba(47, 98, 173, 0.32);
  outline-offset: 3px;
  border-radius: 4px;
}
.download-card .dl-recommendation,
.home-download-section .dl-recommendation {
  position: absolute;
  top: 0;
  left: 8px;
  z-index: 1;
  color: #244d87;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.download-card .dl-recommendation[hidden],
.home-download-section .dl-recommendation[hidden] {
  display: none;
}
.download-card .dl-ico,
.home-download-section .dl-ico {
  display: block;
}
.download-card .dl-ico svg,
.home-download-section .dl-ico svg {
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 10px 20px rgba(20, 40, 80, 0.22));
}
.download-card .dl-app strong,
.home-download-section .dl-app strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
}
.download-card .dl-app-description,
.home-download-section .dl-app-description {
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-500);
}
.download-card .dl-source,
.home-download-section .dl-source {
  margin-top: 7px;
  color: #536987;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration-line: underline;
  text-decoration-color: rgba(83, 105, 135, 0.55);
  text-underline-offset: 2px;
}
.download-card .dl-source::after,
.home-download-section .dl-source::after {
  content: " \2197";
}
.download-card .dl-source:hover,
.home-download-section .dl-source:hover {
  color: #244d87;
  text-decoration-color: currentColor;
}

/* ====================================================================== *
 * "Completely free" card — bigger, roughly square, app blue/slate theme
 * ====================================================================== */
.plane-card.free-card {
  width: 840px;
  padding: 36px 44px 40px;
}
.free-card .card-spot {
  display: none;
}
.free-card h2 {
  font-size: 26px;
  margin: 8px 0 6px;
  color: var(--slate-900);
}
.free-card .free-intro {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-600);
}
.free-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 34px;
}
.free-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-600);
}
.free-points li .inj-ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--navy-700);
}
.free-points strong {
  color: var(--slate-900);
}
.free-why {
  border-top: 1px solid var(--slate-200);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.free-why h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--slate-900);
}
.why-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.why-item .inj-ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  color: var(--navy-700);
}
.why-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate-600);
}
.why-item strong {
  color: var(--slate-800);
}

.plane-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--slate-900);
}

.plane-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate-600);
}

.plane-card .card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tag-home {
  background: var(--navy-100);
  color: var(--navy-700);
}

.tag-download {
  background: var(--cyan-50);
  color: var(--cyan-text);
}

.tag-feature {
  background: var(--gold-50);
  color: var(--gold-text);
}

.tag-platform {
  background: var(--navy-100);
  color: var(--navy-700);
}

.tag-account {
  background: var(--pink-50);
  color: var(--pink-text);
}

.tag-docs {
  background: var(--slate-200);
  color: var(--slate-600);
}

/* Home card — first impression on the main canvas */
.plane-card.home-card {
  width: min(1680px, 92vw);
  height: 13900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 60px 36px;
  background:
    radial-gradient(circle at 50% 20%, rgba(86, 168, 242, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

.home-card > * {
  flex: 0 0 auto;
}

.home-card > .home-stage { order: 1; }
.home-card > h2 { order: 2; }
.home-card > .subtitle { order: 3; }
.home-card > .home-download-section { order: 4; }
.home-card > .home-free-section { order: 5; }
.home-card > .what-adamancia-does { order: 6; }
.home-card > .product-shot-carousel { order: 7; }
.home-card > .blocking-universe-showcase { order: 8; }
.home-card > .bridge-budget-showcase { order: 9; }
.home-card > .schedule-rule-showcase { order: 10; }
.home-card > .platform-dom-intro { order: 11; }
.home-card > .youtube-showcase-card { order: 12; }
.home-card > .tiktok-showcase-card { order: 13; }
.home-card > .website-rule-carousel { order: 14; }
.home-card > .custom-rule-showcase { order: 15; }
.home-card > .custom-possibility-wall { order: 16; }
.home-card > .freeze-snooze-showcase { order: 17; }

.home-stage {
  position: relative;
  width: 100%;
  height: 410px;
  margin: 0 auto 18px;
  isolation: isolate;
}

.home-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 120px;
  height: 120px;
  margin: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 24px 46px rgba(8, 20, 40, 0.22));
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.home-logo svg {
  width: 120px;
  height: 120px;
  display: block;
}

.home-card.is-holding .home-logo {
  animation: home-vibrate 90ms linear infinite;
}

.home-card.is-expanding .home-logo,
.home-card.is-contracting .home-logo {
  animation: home-pop-core 900ms ease both;
}

.home-launch-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-app-shot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 310px;
  min-height: 94px;
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-template-rows: min-content min-content;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  text-align: left;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.62) rotate(-4deg);
  transition: opacity 260ms ease;
}

.home-app-ico {
  grid-row: 1 / span 2;
  display: block;
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 12px 22px rgba(8, 20, 40, 0.2));
}

.home-app-ico svg {
  width: 90px;
  height: 90px;
  display: block;
}

.home-app-shot strong {
  min-width: 0;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
}

.home-app-shot span:not(.home-app-ico) {
  min-width: 0;
  max-width: 190px;
  font-size: 12px;
  line-height: 1.22;
  color: var(--slate-500);
}

.home-app-right {
  grid-template-columns: 1fr 90px;
  text-align: right;
}

.home-app-right .home-app-ico {
  grid-column: 2;
}

.home-app-right strong,
.home-app-right span:not(.home-app-ico) {
  grid-column: 1;
  justify-self: end;
}

.home-card.is-expanded .home-app-shot {
  opacity: 1;
  transform:
    translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
    scale(1)
    rotate(0deg);
}

.home-card.is-expanding .home-app-shot {
  animation: home-app-eject 860ms cubic-bezier(0.18, 0.88, 0.2, 1.08) forwards;
}

.home-card.is-contracting .home-app-shot {
  animation: home-app-contract 720ms cubic-bezier(0.32, 0, 0.24, 1) forwards;
}

.home-card.is-expanding .home-app-shot:nth-child(1),
.home-card.is-contracting .home-app-shot:nth-child(1) { animation-delay: 80ms; }
.home-card.is-expanding .home-app-shot:nth-child(2),
.home-card.is-contracting .home-app-shot:nth-child(2) { animation-delay: 150ms; }
.home-card.is-expanding .home-app-shot:nth-child(3),
.home-card.is-contracting .home-app-shot:nth-child(3) { animation-delay: 220ms; }
.home-card.is-expanding .home-app-shot:nth-child(4),
.home-card.is-contracting .home-app-shot:nth-child(4) { animation-delay: 290ms; }

.home-card > h2 {
  max-width: 100%;
  margin: 0 auto 12px;
  font-size: 44px;
  line-height: 1;
  font-weight: 850;
  color: var(--slate-900);
  white-space: nowrap;
}

.home-card .subtitle {
  max-width: 600px;
  margin: 0 auto 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--slate-500);
}

.home-card .platform-showcase-card {
  width: 100%;
  margin: 112px auto 0;
  text-align: left;
}

.what-adamancia-does {
  width: min(1160px, 100%);
  margin: 92px auto 0;
  padding: 46px 52px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(30, 64, 175, 0.1), transparent 30%),
    radial-gradient(circle at 86% 92%, rgba(20, 184, 166, 0.1), transparent 30%),
    #ffffff;
  box-shadow: 0 24px 66px rgba(15, 23, 42, 0.12);
  text-align: left;
}

.what-copy {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.what-copy span {
  display: block;
  margin-bottom: 14px;
  color: #1e40af;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.what-copy h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 950;
}

.what-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.what-list li {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 20px 22px 20px 58px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.82);
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.48;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.what-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 44%, #fff 45% 56%, transparent 57%),
    linear-gradient(135deg, #1e40af, #14b8a6);
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.18);
}

.product-shot-carousel {
  width: 100%;
  margin: 112px auto 0;
  padding-top: 52px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.home-card > .blocking-universe-showcase,
.home-card > .bridge-budget-showcase,
.home-card > .schedule-rule-showcase,
.home-card > .platform-dom-intro,
.home-card > .website-rule-carousel,
.home-card > .custom-rule-showcase,
.home-card > .custom-possibility-wall,
.home-card > .freeze-snooze-showcase {
  margin-top: 116px;
  padding-top: 52px;
}

.platform-dom-intro {
  width: min(1020px, 100%);
  margin: 116px auto 0;
  padding-top: 52px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.platform-dom-intro span {
  display: block;
  margin-bottom: 14px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.platform-dom-intro h3 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: 44px;
  line-height: 1.12;
  font-weight: 950;
}

.platform-dom-intro p {
  margin: 0;
  color: var(--slate-500);
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
}

.shot-copy {
  max-width: 980px;
  margin: 0 auto 44px;
}

.shot-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.shot-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 46px;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) > span {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.09em;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) h3 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 950;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) p {
  color: var(--slate-500);
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
}

.shot-stage {
  position: relative;
  height: 700px;
  max-width: 1320px;
  margin: 0 auto;
  perspective: 1400px;
}

.product-shot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1040px, 76%);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform:
    translate(-50%, -50%)
    translateX(var(--shot-x, 0))
    translateY(var(--shot-y, 0))
    translateZ(var(--shot-z, 0))
    scale(var(--shot-scale, 1))
    rotateY(var(--shot-ry, 0deg));
  transition:
    transform 440ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    filter 260ms ease;
  pointer-events: none;
}

.product-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 3456 / 2234;
  object-fit: cover;
  object-position: top left;
}

.product-shot figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--slate-700);
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
}

.product-shot figcaption strong {
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.product-shot figcaption span {
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.3;
}

.product-shot.is-active {
  --shot-x: 0;
  --shot-y: 0;
  --shot-z: 120px;
  --shot-scale: 1;
  --shot-ry: 0deg;
  z-index: 3;
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.product-shot.is-prev {
  --shot-x: -29%;
  --shot-y: 18px;
  --shot-z: -120px;
  --shot-scale: 0.78;
  --shot-ry: 13deg;
  z-index: 2;
  opacity: 0.58;
  filter: saturate(0.82) brightness(0.92);
}

.product-shot.is-next {
  --shot-x: 29%;
  --shot-y: 18px;
  --shot-z: -120px;
  --shot-scale: 0.78;
  --shot-ry: -13deg;
  z-index: 2;
  opacity: 0.58;
  filter: saturate(0.82) brightness(0.92);
}

.shot-controls {
  position: relative;
  z-index: 5;
  display: inline-grid;
  grid-template-columns: 46px minmax(150px, auto) 46px;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.75);
}

.shot-controls button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-700);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.13);
}

.shot-controls button:hover {
  transform: translateY(-1px);
}

.shot-controls output {
  color: var(--slate-900);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.website-rule-carousel {
  width: 100%;
  margin: 52px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.site-rule-copy {
  max-width: 760px;
  margin: 0 auto 22px;
}

.site-rule-copy span {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-rule-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.site-rule-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.site-rule-rail {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-rule-stage {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.site-rule-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 12px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--slate-700);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--site-offset, 0) * 138px))
    scale(var(--site-scale, 0.64));
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  pointer-events: none;
}

.site-rule-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 15px;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.16));
}

.site-rule-item span {
  max-width: 100%;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-rule-item.is-active {
  --site-offset: 0;
  --site-scale: 1;
  z-index: 6;
  opacity: 1;
  background: #fff;
  color: var(--slate-900);
  box-shadow: 0 22px 52px rgba(30, 58, 138, 0.2);
  pointer-events: auto;
}

.site-rule-item.is-active img {
  width: 64px;
  height: 64px;
}

.site-rule-item.is-active span {
  color: var(--slate-900);
}

.site-rule-item.is-near {
  z-index: 4;
  opacity: 0.78;
  pointer-events: auto;
}

.site-rule-item.is-far {
  z-index: 2;
  opacity: 0.34;
}

.site-rule-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0f766e;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.14);
}

.site-rule-arrow:hover {
  transform: translateY(-1px);
}

.site-rule-description {
  max-width: 780px;
  min-height: 114px;
  margin: 18px auto 0;
  padding: 22px 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 10%, rgba(20, 184, 166, 0.12), transparent 32%),
    #ffffff;
  text-align: left;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.site-rule-description h4 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.site-rule-description p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.45;
}

.blocking-universe-showcase {
  width: 100%;
  margin: 56px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.blocking-universe-copy {
  max-width: 880px;
  margin: 0 auto 26px;
}

.blocking-universe-copy span {
  display: block;
  margin-bottom: 8px;
  color: #1e40af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blocking-universe-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.blocking-universe-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.blocking-universe-panels {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.blocking-target-panel {
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(30, 58, 138, 0.09), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(20, 184, 166, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 24px 66px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.blocking-target-panel header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.blocking-target-panel header span {
  display: block;
  margin-bottom: 6px;
  color: #0f766e;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blocking-target-panel header h4 {
  margin: 0;
  color: var(--slate-900);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.blocking-target-panel header strong {
  min-width: 68px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1e40af;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.blocking-target-carousel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
}

.blocking-target-stage {
  position: relative;
  height: 238px;
  overflow: hidden;
}

.blocking-target-arrow {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0f766e;
  font-family: inherit;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.blocking-target-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.2);
}

.blocking-target-item {
  --target-offset: 0;
  --target-scale: 0.68;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px 14px;
  border: 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14), 0 18px 46px rgba(15, 23, 42, 0.08);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--target-offset, 0) * min(19vw, 240px)))
    scale(var(--target-scale, 0.68));
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 260ms ease,
    box-shadow 260ms ease;
}

.blocking-target-icon {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef2ff, #ecfeff);
  color: #1e3a8a;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.12);
  transition: width 260ms ease, height 260ms ease;
}

.blocking-target-icon img {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: contain;
}

.blocking-target-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.blocking-target-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.blocking-target-copy strong,
.blocking-target-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocking-target-copy strong {
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.blocking-target-copy small {
  color: var(--slate-400);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 850;
}

.blocking-target-item.is-active {
  --target-offset: 0;
  --target-scale: 1;
  z-index: 6;
  opacity: 1;
  width: 204px;
  height: 204px;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(30, 58, 138, 0.2);
  pointer-events: auto;
}

.blocking-target-item.is-active .blocking-target-icon {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.blocking-target-item.is-active .blocking-target-icon img {
  width: 70px;
  height: 70px;
  border-radius: 18px;
}

.blocking-target-item.is-active .blocking-target-copy strong {
  color: var(--slate-900);
  font-size: 19px;
}

.blocking-target-item.is-active .blocking-target-copy small {
  color: var(--slate-500);
  font-size: 12px;
}

.blocking-target-item.is-near {
  z-index: 4;
  opacity: 0.8;
  pointer-events: auto;
}

.blocking-target-item.is-far {
  z-index: 2;
  opacity: 0.34;
  pointer-events: auto;
}

.custom-rule-showcase {
  width: 100%;
  margin: 56px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.custom-rule-copy {
  max-width: 780px;
  margin: 0 auto 26px;
}

.custom-rule-copy span {
  display: block;
  margin-bottom: 8px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-rule-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.custom-rule-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.custom-rule-demo {
  --cursor-x: 23%;
  --cursor-y: 24%;
  position: relative;
  max-width: 1260px;
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(124, 58, 237, 0.11), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(20, 184, 166, 0.12), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 28px 78px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.cr-panel,
.cr-ai-card {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22), 0 18px 46px rgba(15, 23, 42, 0.1);
  text-align: left;
}

.cr-panel {
  padding: 22px;
  display: grid;
  gap: 13px;
}

.cr-panel-head,
.cr-ai-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cr-panel-head strong,
.cr-ai-head strong {
  display: block;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.cr-panel-head small,
.cr-ai-head small {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.cr-app-mark,
.cr-ai-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #263956, #07101e);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.cr-app-mark svg,
.cr-ai-mark svg,
.cr-copy-button svg {
  width: 22px;
  height: 22px;
}

.cr-ai-mark {
  background: linear-gradient(145deg, #7c3aed, #0f766e);
}

.cr-field {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background: #fff;
  color: var(--slate-700);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.cr-field span {
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.cr-type-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cr-type-field strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.cr-field textarea {
  width: 100%;
  min-height: 58px;
  resize: none;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  color: var(--slate-800);
  font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cr-code-field textarea {
  min-height: 118px;
}

.cr-copy-button,
.cr-run-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.18);
}

.cr-run-button {
  background: #0f766e;
}

.cr-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cr-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 900;
}

.cr-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cr-chip-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.cr-ai-card {
  min-height: 100%;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    radial-gradient(circle at 78% 10%, rgba(124, 58, 237, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.88);
}

.cr-chat {
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.cr-user-bubble {
  min-height: 96px;
  background: #eef2ff;
  color: #1e3a8a;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cr-code-bubble {
  min-height: 146px;
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
  background: #07101e;
  color: #dbeafe;
  font: 800 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cr-thinking {
  width: 92px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cr-thinking i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  animation: cr-thinking-dot 900ms ease-in-out infinite;
}

.cr-thinking i:nth-child(2) { animation-delay: 120ms; }
.cr-thinking i:nth-child(3) { animation-delay: 240ms; }

.cr-cursor {
  position: absolute;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 8;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 7px rgba(15, 23, 42, 0.1), 0 10px 22px rgba(15, 23, 42, 0.25);
  transform: translate(-50%, -50%);
  transition: left 520ms cubic-bezier(0.2, 0.8, 0.2, 1), top 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.cr-cursor::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 0;
  height: 0;
  border-left: 12px solid #0f172a;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: rotate(45deg);
}

.cr-packet {
  position: absolute;
  left: 44%;
  top: 45%;
  z-index: 7;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(30, 58, 138, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 260ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), left 560ms cubic-bezier(0.2, 0.8, 0.2, 1), top 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.cr-code-packet {
  color: #0f766e;
}

.custom-rule-demo[data-phase="select"] { --cursor-x: 23%; --cursor-y: 25%; }
.custom-rule-demo[data-phase="prompt"] { --cursor-x: 24%; --cursor-y: 43%; }
.custom-rule-demo[data-phase="send"] { --cursor-x: 29%; --cursor-y: 47%; }
.custom-rule-demo[data-phase="think"] { --cursor-x: 73%; --cursor-y: 36%; }
.custom-rule-demo[data-phase="return"] { --cursor-x: 72%; --cursor-y: 68%; }
.custom-rule-demo[data-phase="code"],
.custom-rule-demo[data-phase="ok"],
.custom-rule-demo[data-phase="final"] { --cursor-x: 30%; --cursor-y: 69%; }

.custom-rule-demo[data-phase="select"] .cr-type-field,
.custom-rule-demo[data-phase="prompt"] .cr-prompt-field,
.custom-rule-demo[data-phase="send"] .cr-copy-button,
.custom-rule-demo[data-phase="code"] .cr-code-field,
.custom-rule-demo[data-phase="ok"] .cr-code-field,
.custom-rule-demo[data-phase="final"] .cr-code-field {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.custom-rule-demo[data-phase="send"] .cr-prompt-packet {
  left: 68%;
  top: 42%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.custom-rule-demo[data-phase="return"] .cr-code-packet {
  left: 38%;
  top: 60%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.custom-rule-demo[data-phase="think"] .cr-user-bubble,
.custom-rule-demo[data-phase="return"] .cr-user-bubble,
.custom-rule-demo[data-phase="code"] .cr-user-bubble,
.custom-rule-demo[data-phase="ok"] .cr-user-bubble,
.custom-rule-demo[data-phase="final"] .cr-user-bubble,
.custom-rule-demo[data-phase="think"] .cr-thinking {
  opacity: 1;
  transform: translateY(0);
}

.custom-rule-demo[data-phase="return"] .cr-code-bubble,
.custom-rule-demo[data-phase="code"] .cr-code-bubble,
.custom-rule-demo[data-phase="ok"] .cr-code-bubble,
.custom-rule-demo[data-phase="final"] .cr-code-bubble {
  opacity: 1;
  transform: translateY(0);
}

.custom-rule-demo[data-phase="ok"] .cr-status,
.custom-rule-demo[data-phase="final"] .cr-status {
  background: #dcfce7;
  color: #166534;
}

.custom-rule-demo[data-phase="ok"] .cr-chip-row,
.custom-rule-demo[data-phase="final"] .cr-chip-row {
  opacity: 1;
  transform: translateY(0);
}

.custom-rule-demo.is-reduced .cr-cursor,
.custom-rule-demo.is-reduced .cr-packet,
.custom-rule-demo.is-reduced .cr-thinking {
  display: none;
}

.custom-rule-demo.is-reduced .cr-user-bubble,
.custom-rule-demo.is-reduced .cr-code-bubble,
.custom-rule-demo.is-reduced .cr-chip-row {
  opacity: 1;
  transform: none;
}

.custom-rule-demo.is-reduced .cr-status {
  background: #dcfce7;
  color: #166534;
  animation: cr-status-pulse 1800ms ease-in-out infinite;
}

.custom-possibility-wall {
  width: 100%;
  margin: 56px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.possibility-copy {
  max-width: 860px;
  margin: 0 auto 26px;
}

.possibility-copy span {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.possibility-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.possibility-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.prompt-code-stage {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(124, 58, 237, 0.11), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 28px 78px rgba(15, 23, 42, 0.13);
  overflow: hidden;
}

.prompt-code-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.prompt-code-rail-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  padding: 0 4px;
  color: #0f766e;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-code-rail-label svg {
  width: 16px;
  height: 16px;
}

.code-label {
  margin-top: 10px;
  color: #1e40af;
}

.possibility-controls {
  display: inline-flex;
  justify-content: flex-end;
}

.possibility-control {
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1e3a8a;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.possibility-control:hover,
.possibility-control:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  outline: none;
}

.possibility-control:focus-visible {
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.28);
}

.possibility-control:active {
  transform: translateY(1px);
}

.possibility-rotation-glyph {
  position: relative;
  width: 12px;
  height: 14px;
  display: block;
  transition: width 180ms ease, height 180ms ease, border 180ms ease;
}

.possibility-rotation-glyph::before,
.possibility-rotation-glyph::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 140ms ease;
}

.possibility-rotation-glyph::before { left: 1px; }
.possibility-rotation-glyph::after { right: 1px; }

.custom-possibility-wall.is-paused .possibility-rotation-glyph {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.custom-possibility-wall.is-paused .possibility-rotation-glyph::before,
.custom-possibility-wall.is-paused .possibility-rotation-glyph::after {
  opacity: 0;
}

.prompt-code-rail {
  position: relative;
  min-height: 202px;
  overflow: hidden;
}

.code-rail {
  min-height: 338px;
}

.prompt-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 58%);
  min-height: 178px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2), 0 14px 36px rgba(15, 23, 42, 0.08);
  text-align: left;
  will-change: transform, opacity;
  transition: transform 560ms cubic-bezier(.22, .61, .36, 1), box-shadow 220ms ease, background 220ms ease, opacity 560ms ease;
}

.prompt-card > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #eef2ff, #ecfeff);
  color: #1e3a8a;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.12);
}

.prompt-card svg {
  width: 23px;
  height: 23px;
}

.prompt-card strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 760;
}

.prompt-card-app strong {
  background: #eff6ff;
  color: #1e40af;
}

.prompt-card.is-active {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.26), 0 22px 52px rgba(15, 118, 110, 0.16);
}

.code-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(650px, 72%);
  min-height: 310px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #07101e;
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.16), 0 18px 44px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  text-align: left;
  will-change: transform, opacity;
  transition: transform 560ms cubic-bezier(.22, .61, .36, 1), box-shadow 220ms ease, border-color 220ms ease, opacity 560ms ease;
}

.code-card code {
  display: block;
  white-space: pre-wrap;
  font: 850 12px/1.48 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pc-key { color: #c4b5fd; }
.pc-call { color: #67e8f9; }
.pc-str { color: #86efac; }
.pc-num { color: #facc15; }
.pc-comment { color: #94a3b8; }

.code-card::after {
  content: none;
  position: absolute;
  right: 16px;
  top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background-color: rgba(30, 58, 138, 0.92);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.code-card.is-active {
  box-shadow: inset 0 0 0 2px rgba(45, 212, 191, 0.34), 0 24px 58px rgba(15, 118, 110, 0.2);
}

.prompt-code-rail .is-ring-card {
  --ring-shift: 0%;
  --ring-scale: 1;
  --ring-opacity: 1;
  transform: translate(calc(-50% + var(--ring-shift)), -50%) scale(var(--ring-scale));
  opacity: var(--ring-opacity);
  pointer-events: none;
}

.prompt-code-rail .is-ring-card[data-ring-offset="-2"],
.prompt-code-rail .is-ring-card[data-ring-offset="2"] {
  --ring-scale: 0.72;
  --ring-opacity: 0.2;
  z-index: 1;
}

.prompt-code-rail .is-ring-card[data-ring-offset="-2"] { --ring-shift: -216%; }
.prompt-code-rail .is-ring-card[data-ring-offset="-1"] {
  --ring-shift: -106%;
  --ring-scale: 0.88;
  --ring-opacity: 0.5;
  z-index: 2;
}
.prompt-code-rail .is-ring-card[data-ring-offset="0"] { z-index: 3; }
.prompt-code-rail .is-ring-card[data-ring-offset="1"] {
  --ring-shift: 106%;
  --ring-scale: 0.88;
  --ring-opacity: 0.5;
  z-index: 2;
}
.prompt-code-rail .is-ring-card[data-ring-offset="2"] { --ring-shift: 216%; }

.prompt-code-rail .is-ring-card[data-ring-offset="-3"],
.prompt-code-rail .is-ring-card[data-ring-offset="3"] {
  --ring-scale: 0.64;
  --ring-opacity: 0;
  z-index: 0;
}

.prompt-code-rail .is-ring-card[data-ring-offset="-3"] { --ring-shift: -326%; }
.prompt-code-rail .is-ring-card[data-ring-offset="3"] { --ring-shift: 326%; }

.prompt-code-rail .is-ring-card.is-entering {
  opacity: 0;
}

.code-card.is-active::after {
  content: "";
  width: 60px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Ctext x='30' y='8' text-anchor='middle' fill='%23fff' font-family='Arial,sans-serif' font-size='8' font-weight='700' letter-spacing='.5'%3EGENERATED%3C/text%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60px 10px;
  opacity: 1;
  transform: translateY(0);
}

.code-card-app {
  background:
    radial-gradient(circle at 90% 8%, rgba(59, 130, 246, 0.18), transparent 26%),
    #07101e;
}

.schedule-rule-showcase {
  width: 100%;
  margin: 56px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.schedule-rule-copy {
  max-width: 820px;
  margin: 0 auto 26px;
}

.schedule-rule-copy span {
  display: block;
  margin-bottom: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-rule-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.schedule-rule-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.schedule-rule-demo {
  max-width: 1260px;
  margin: 0 auto;
  display: block;
}

.schedule-calendar-card {
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(30, 64, 175, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.13);
}

.schedule-calendar-card {
  padding: 36px;
  overflow: hidden;
}

.schedule-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.schedule-calendar-head span {
  display: block;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-calendar-head h4 {
  margin: 7px 0 0;
  color: var(--slate-900);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.schedule-legend {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  min-width: 230px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.schedule-legend span {
  position: relative;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.schedule-legend span::before {
  content: "";
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e40af, #38bdf8);
}

.schedule-legend-weekend::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444) !important;
}

.schedule-weekdays,
.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-weekdays {
  margin-bottom: 8px;
}

.schedule-weekdays span {
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.schedule-calendar-grid {
  transition: opacity 220ms ease, transform 220ms ease;
}

.schedule-calendar-grid.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.schedule-day {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 9px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2), 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.schedule-day.is-empty {
  background: rgba(226, 232, 240, 0.36);
  box-shadow: none;
}

.schedule-day-number {
  position: relative;
  z-index: 2;
  justify-self: start;
  color: var(--slate-900);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.schedule-day-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  color: var(--slate-400);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-strip {
  position: absolute;
  left: var(--strip-left);
  bottom: 28px;
  width: var(--strip-width);
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.18);
  animation: schedule-strip-pulse 2400ms ease-in-out infinite;
}

.schedule-strip-work {
  background: linear-gradient(90deg, #1e40af, #38bdf8);
}

.schedule-strip-weekend {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
}

.schedule-day.has-workday {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.82));
}

.schedule-day.has-weekend {
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.82));
}

.schedule-month-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.schedule-month-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 220ms ease, background 220ms ease;
}

.schedule-month-dots span.is-active {
  width: 24px;
  background: #b45309;
}

@keyframes cr-thinking-dot {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes cr-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 101, 52, 0); }
  50% { box-shadow: 0 0 0 6px rgba(22, 101, 52, 0.12); }
}

@keyframes schedule-strip-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.82; }
  50% { transform: scaleX(1.06); opacity: 1; }
}

.freeze-snooze-showcase {
  width: 100%;
  margin: 56px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.freeze-snooze-copy {
  max-width: 860px;
  margin: 0 auto 26px;
}

.freeze-snooze-copy span {
  display: block;
  margin-bottom: 8px;
  color: #1e40af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.freeze-snooze-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.freeze-snooze-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.freeze-snooze-demo {
  --freeze-cursor-x: 20%;
  --freeze-cursor-y: 48%;
  --snooze-cursor-x: 26%;
  --snooze-cursor-y: 46%;
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.freeze-control-panel,
.snooze-control-panel {
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(30, 64, 175, 0.12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.13);
  overflow: hidden;
  text-align: left;
}

.freeze-control-panel {
  padding: 24px;
}

.snooze-control-panel {
  padding: 24px;
  background:
    radial-gradient(circle at 14% 12%, rgba(245, 158, 11, 0.13), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(20, 184, 166, 0.1), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #fffaf1 100%);
}

.freeze-panel-head,
.snooze-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.freeze-panel-head span,
.snooze-panel-head span {
  display: block;
  color: #1e40af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snooze-panel-head span {
  color: #b45309;
}

.freeze-panel-head h4,
.snooze-panel-head h4 {
  margin: 7px 0 0;
  color: var(--slate-900);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.freeze-panel-head strong,
.snooze-panel-head strong {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.snooze-panel-head strong {
  background: #ffedd5;
  color: #b45309;
}

.freeze-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.freeze-mode-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
  opacity: 0.68;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.freeze-mode-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e0f2fe;
  color: #1e40af;
}

.freeze-mode-card svg {
  width: 19px;
  height: 19px;
}

.freeze-mode-card strong {
  display: block;
  color: var(--slate-900);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.freeze-mode-card small {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 800;
}

.freeze-mode-card.is-active {
  opacity: 1;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px rgba(30, 64, 175, 0.2), 0 18px 38px rgba(30, 64, 175, 0.13);
}

.freeze-stage,
.snooze-stage {
  position: relative;
  min-height: 310px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.85), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0 1px, transparent 1px 18px);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.snooze-stage {
  min-height: 300px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(135deg, rgba(180, 83, 9, 0.05) 0 1px, transparent 1px 18px);
}

.freeze-frost-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.1), rgba(255, 255, 255, 0.44)),
    linear-gradient(45deg, transparent 0 36%, rgba(255, 255, 255, 0.55) 37% 39%, transparent 40% 100%);
  pointer-events: none;
}

.freeze-target-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 310px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
  padding: 28px;
}

.freeze-target,
.snooze-target {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--slate-900);
  font-family: inherit;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2), 0 16px 36px rgba(15, 23, 42, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.freeze-target::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background:
    linear-gradient(#fff 0 0) center 10px / 8px 6px no-repeat,
    linear-gradient(135deg, #1e40af, #38bdf8);
  box-shadow: 0 8px 14px rgba(30, 64, 175, 0.18);
}

.freeze-target img,
.snooze-target img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
}

.freeze-target span,
.snooze-target span {
  max-width: 100%;
  color: var(--slate-900);
  font-size: 13px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.freeze-target.is-hit {
  animation: freeze-deny-shake 520ms ease both;
  box-shadow: inset 0 0 0 2px rgba(30, 64, 175, 0.42), 0 22px 52px rgba(30, 64, 175, 0.2);
}

.freeze-cursor,
.snooze-cursor {
  position: absolute;
  left: var(--freeze-cursor-x);
  top: var(--freeze-cursor-y);
  z-index: 6;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f172a;
  color: #0f172a;
  box-shadow: 0 0 0 7px rgba(15, 23, 42, 0.1), 0 10px 22px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
  transition: left 580ms cubic-bezier(0.2, 0.8, 0.2, 1), top 580ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
  pointer-events: none;
}

.snooze-cursor {
  left: var(--snooze-cursor-x);
  top: var(--snooze-cursor-y);
  background: #78350f;
  color: #78350f;
}

.freeze-cursor::after,
.snooze-cursor::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  color: inherit;
  transform: rotate(45deg);
}

.freeze-blocked-callout {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 12px 15px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.26);
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.96);
  transition: opacity 240ms ease, transform 240ms ease;
}

.freeze-blocked-callout strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
}

.freeze-blocked-callout span {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.freeze-status-strip {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.freeze-timer-ring {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 55%, transparent 56%),
    conic-gradient(#1e40af var(--freeze-ring, 300deg), #dbeafe 0 360deg);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.14);
}

.freeze-timer-ring span {
  color: var(--slate-900);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.freeze-status-strip strong {
  display: block;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.freeze-status-strip div > span {
  display: block;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.freeze-code-card,
.snooze-code-card {
  min-height: 112px;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #07101e;
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.16);
  overflow: auto;
  white-space: pre-wrap;
}

.freeze-code-card code,
.snooze-code-card code {
  font: 850 12px/1.48 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.snooze-target {
  z-index: 2;
  width: 150px;
}

.snooze-queue {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.snooze-queue span,
.snooze-queue strong {
  color: var(--slate-700);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.snooze-queue i {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #fed7aa;
}

.snooze-queue i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--snooze-progress, 14%);
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #14b8a6);
  transition: width 520ms ease;
}

.snooze-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.snooze-note > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ffedd5;
  color: #b45309;
}

.snooze-note svg {
  width: 21px;
  height: 21px;
}

.snooze-note p {
  margin: 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.freeze-snooze-demo[data-phase="normal"] { --freeze-cursor-x: 18%; --freeze-cursor-y: 24%; --freeze-ring: 300deg; }
.freeze-snooze-demo[data-phase="normal-click"] { --freeze-cursor-x: 18%; --freeze-cursor-y: 50%; --freeze-ring: 300deg; }
.freeze-snooze-demo[data-phase="normal-confirm"] { --freeze-cursor-x: 48%; --freeze-cursor-y: 78%; --freeze-ring: 216deg; }
.freeze-snooze-demo[data-phase="strict"] { --freeze-cursor-x: 43%; --freeze-cursor-y: 24%; --freeze-ring: 248deg; }
.freeze-snooze-demo[data-phase="strict-click"] { --freeze-cursor-x: 42%; --freeze-cursor-y: 50%; --freeze-ring: 220deg; }
.freeze-snooze-demo[data-phase="parental"] { --freeze-cursor-x: 68%; --freeze-cursor-y: 24%; --freeze-ring: 360deg; }
.freeze-snooze-demo[data-phase="parental-click"] { --freeze-cursor-x: 68%; --freeze-cursor-y: 50%; --freeze-ring: 360deg; }
.freeze-snooze-demo[data-phase="snooze"] { --freeze-cursor-x: 86%; --freeze-cursor-y: 50%; --snooze-cursor-x: 50%; --snooze-cursor-y: 45%; --snooze-progress: 18%; }
.freeze-snooze-demo[data-phase="snooze-wait"] { --freeze-cursor-x: 86%; --freeze-cursor-y: 50%; --snooze-cursor-x: 74%; --snooze-cursor-y: 76%; --snooze-progress: 72%; }

.freeze-snooze-demo[data-phase$="click"] .freeze-blocked-callout,
.freeze-snooze-demo[data-phase="normal-confirm"] .freeze-blocked-callout {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.freeze-snooze-demo[data-phase="snooze"] .snooze-target,
.freeze-snooze-demo[data-phase="snooze-wait"] .snooze-target {
  transform: translateY(-10px);
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.28), 0 22px 52px rgba(245, 158, 11, 0.18);
}

.freeze-snooze-demo[data-phase="parental"],
.freeze-snooze-demo[data-phase="parental-click"] {
  --freeze-ring: 360deg;
}

.freeze-snooze-demo[data-phase="strict"] .freeze-frost-layer,
.freeze-snooze-demo[data-phase="strict-click"] .freeze-frost-layer,
.freeze-snooze-demo[data-phase="parental"] .freeze-frost-layer,
.freeze-snooze-demo[data-phase="parental-click"] .freeze-frost-layer {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.22), rgba(255, 255, 255, 0.54)),
    repeating-linear-gradient(45deg, rgba(30, 64, 175, 0.16) 0 2px, transparent 2px 20px);
}

.freeze-snooze-demo[data-phase="parental"] .freeze-frost-layer,
.freeze-snooze-demo[data-phase="parental-click"] .freeze-frost-layer {
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.2), rgba(255, 255, 255, 0.56)),
    repeating-linear-gradient(45deg, rgba(180, 83, 9, 0.14) 0 2px, transparent 2px 20px);
}

@keyframes freeze-deny-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
}

.bridge-budget-showcase {
  width: 100%;
  margin: 56px auto 0;
  padding-top: 42px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.bridge-budget-copy {
  max-width: 800px;
  margin: 0 auto 26px;
}

.bridge-budget-copy span {
  display: block;
  margin-bottom: 8px;
  color: #1e40af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bridge-budget-copy h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.bridge-budget-copy p {
  margin: 0;
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.5;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 46px;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) > span {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0.09em;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) h3 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 950;
}

.home-card :is(
  .shot-copy,
  .site-rule-copy,
  .blocking-universe-copy,
  .custom-rule-copy,
  .possibility-copy,
  .schedule-rule-copy,
  .freeze-snooze-copy,
  .bridge-budget-copy
) p {
  color: var(--slate-500);
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
}

.bridge-budget-demo {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.budget-card,
.bridge-graph {
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(30, 64, 175, 0.1), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.13);
}

.budget-card {
  padding: 24px;
  text-align: left;
}

.budget-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.budget-head span {
  color: #1e40af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.budget-head h4 {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.budget-head strong {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
}

.budget-meter {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.budget-ring {
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 56%, transparent 57%),
    conic-gradient(#1e40af 0 252deg, #dbeafe 252deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.12), 0 16px 36px rgba(30, 64, 175, 0.14);
  animation: budget-ring-breathe 4200ms ease-in-out infinite;
}

.budget-ring span {
  color: var(--slate-900);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.budget-ring small {
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 850;
}

.budget-bar {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.1);
}

.budget-bar i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e40af, #14b8a6);
  animation: budget-bar-pulse 4200ms ease-in-out infinite;
}

.budget-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.budget-target {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.budget-target img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.budget-target strong {
  display: block;
  color: var(--slate-900);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-target span {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.budget-target.site {
  border-left: 4px solid #1e40af;
}

.budget-target.app {
  border-left: 4px solid #0f766e;
}

.bridge-graph {
  position: relative;
  min-height: 480px;
  padding: 28px;
  overflow: hidden;
}

.bridge-lane {
  position: relative;
  z-index: 2;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 260px;
}

.bridge-node {
  width: 150px;
  min-height: 144px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22), 0 16px 34px rgba(15, 23, 42, 0.1);
}

.bridge-node img,
.bridge-node [data-prog] {
  width: 58px;
  height: 58px;
  display: block;
}

.bridge-node [data-prog] svg {
  width: 58px;
  height: 58px;
}

.bridge-node strong {
  color: var(--slate-900);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
  text-align: center;
}

.bridge-node span:not([data-prog]) {
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.bridge-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28);
}

.bridge-core svg {
  width: 28px;
  height: 28px;
  color: #93c5fd;
}

.bridge-core strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
}

.bridge-core small {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.bridge-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.bridge-path {
  fill: none;
  stroke: #1e40af;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 11 13;
  opacity: 0.55;
  animation: bridge-pulse 2600ms linear infinite;
}

.path-b {
  stroke: #0f766e;
  animation-delay: 260ms;
}

.path-c,
.path-d {
  stroke: #7c3aed;
  stroke-width: 3;
  opacity: 0.28;
}

.path-d {
  animation-delay: 520ms;
}

@keyframes budget-ring-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes budget-bar-pulse {
  0%, 100% { width: 70%; }
  50% { width: 63%; }
}

@keyframes bridge-pulse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -48; }
}

@keyframes home-vibrate {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  25% { transform: translate(calc(-50% - 2px), calc(-50% + 1px)) rotate(-1.2deg) scale(1.01); }
  50% { transform: translate(calc(-50% + 2px), calc(-50% - 1px)) rotate(1.1deg) scale(1.015); }
  75% { transform: translate(calc(-50% - 1px), calc(-50% - 2px)) rotate(-0.8deg) scale(1.01); }
  100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes home-pop-core {
  0% { transform: translate(-50%, -50%) scale(1); }
  42% { transform: translate(-50%, -50%) scale(1.09); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes home-app-eject {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62) rotate(-4deg);
  }
  55% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--tx) * 1.08), calc(-50% + var(--ty) * 1.08))
      scale(1.05)
      rotate(1deg);
  }
  100% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(1)
      rotate(0deg);
  }
}

@keyframes home-app-contract {
  0% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(1)
      rotate(0deg);
  }
  42% {
    opacity: 1;
    transform:
      translate(calc(-50% + var(--tx) * 0.86), calc(-50% + var(--ty) * 0.86))
      scale(0.96)
      rotate(-1deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.58) rotate(5deg);
  }
}

/* Download tiles inside cluster card */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.download-tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.download-tile-info {
  min-width: 0;
}

.download-tile-info strong {
  display: block;
  font-size: 13px;
  color: var(--slate-900);
}

.download-tile-info span {
  font-size: 11px;
  color: var(--slate-500);
}

.download-tile button {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 11px;
}

/* Feature list */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate-600);
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li strong {
  color: var(--slate-800);
}

/* Platform rows */
.platform-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.platform-row:last-child {
  border-bottom: none;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--navy-700);
}

.platform-row p {
  margin: 0;
  font-size: 12px;
}

/* Zoom controls */
.zoom-controls {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zoom-controls button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .plane-card {
    width: min(280px, calc(100vw - 48px));
  }

  .plane-card.home-card {
    width: 92vw;
    height: 16050px;
    padding: 46px 22px 30px;
  }

  .home-stage {
    height: 315px;
    margin-bottom: 14px;
  }

  .home-logo,
  .home-logo svg {
    width: 83px;
    height: 83px;
  }

  .home-app-shot {
    width: 180px;
    min-height: 68px;
    grid-template-columns: 62px 1fr;
    column-gap: 8px;
  }

  .home-app-right {
    grid-template-columns: 1fr 62px;
  }

  .home-app-shot:nth-child(1) { --tx: -118px !important; --ty: -86px !important; }
  .home-app-shot:nth-child(2) { --tx: 118px !important; --ty: -86px !important; }
  .home-app-shot:nth-child(3) { --tx: -118px !important; --ty: 86px !important; }
  .home-app-shot:nth-child(4) { --tx: 118px !important; --ty: 86px !important; }

  .home-app-ico,
  .home-app-ico svg {
    width: 62px;
    height: 62px;
  }

  .home-app-shot strong {
    font-size: 10.5px;
  }

  .home-app-shot span:not(.home-app-ico) {
    max-width: 104px;
    font-size: 8px;
    line-height: 1.18;
  }

  .home-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .home-card .subtitle {
    max-width: 320px;
    font-size: 13px;
    margin-bottom: 14px;
  }

  .home-download-section {
    margin-top: 22px;
    padding-top: 22px;
    gap: 12px;
  }

  .home-download-section .dl-title {
    font-size: 28px;
  }

  .home-download-section .dl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }

  .home-download-section .dl-app {
    padding: 25px 4px 0;
  }

  .home-download-section .dl-app-main {
    gap: 6px;
  }

  .home-download-section .dl-ico svg {
    width: 52px;
    height: 52px;
  }

  .home-download-section .dl-app strong {
    font-size: 13px;
  }

  .home-download-section .dl-app-description {
    font-size: 10px;
    line-height: 1.25;
  }

  .home-download-section .dl-recommendation {
    left: 2px;
    font-size: 11.5px;
  }

  .home-download-section .dl-source {
    margin-top: 5px;
    font-size: 9.5px;
  }

  .product-shot-carousel {
    margin-top: 34px;
    padding-top: 28px;
  }

  .shot-copy {
    margin-bottom: 18px;
  }

  .shot-copy h3 {
    font-size: 25px;
  }

  .shot-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .shot-stage {
    height: 290px;
  }

  .product-shot {
    width: 88%;
    border-radius: 14px;
  }

  .product-shot.is-prev {
    --shot-x: -22%;
    --shot-y: 12px;
    --shot-scale: 0.72;
  }

  .product-shot.is-next {
    --shot-x: 22%;
    --shot-y: 12px;
    --shot-scale: 0.72;
  }

  .product-shot figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: block;
    padding: 9px 10px;
    border-radius: 11px;
  }

  .product-shot figcaption strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
  }

  .product-shot figcaption span {
    display: block;
    font-size: 9px;
  }

  .shot-controls {
    grid-template-columns: 38px minmax(120px, auto) 38px;
    margin-top: 16px;
  }

  .shot-controls button {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .website-rule-carousel {
    margin-top: 34px;
    padding-top: 28px;
  }

  .site-rule-copy {
    margin-bottom: 18px;
  }

  .site-rule-copy h3 {
    font-size: 24px;
  }

  .site-rule-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .site-rule-rail {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .site-rule-stage {
    height: 116px;
  }

  .site-rule-item {
    width: 88px;
    height: 88px;
    padding: 12px 8px 9px;
    border-radius: 18px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--site-offset, 0) * 84px))
      scale(var(--site-scale, 0.64));
  }

  .site-rule-item img,
  .site-rule-item.is-active img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .site-rule-item span {
    font-size: 10px;
  }

  .site-rule-arrow {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }

  .site-rule-description {
    min-height: 128px;
    margin-top: 14px;
    padding: 17px 18px;
    border-radius: 18px;
  }

  .site-rule-description h4 {
    font-size: 18px;
  }

  .site-rule-description p {
    font-size: 12px;
    line-height: 1.38;
  }

  .blocking-universe-showcase {
    margin-top: 34px;
    padding-top: 28px;
  }

  .blocking-universe-copy {
    margin-bottom: 18px;
  }

  .blocking-universe-copy h3 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .blocking-universe-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .blocking-universe-panels {
    gap: 16px;
  }

  .blocking-target-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .blocking-target-panel header {
    margin-bottom: 12px;
  }

  .blocking-target-panel header h4 {
    font-size: 19px;
  }

  .blocking-target-panel header strong {
    min-width: 56px;
    height: 34px;
    padding: 0 11px;
    font-size: 14px;
  }

  .blocking-target-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .blocking-target-stage {
    height: 164px;
  }

  .blocking-target-arrow {
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .blocking-target-item {
    width: 104px;
    height: 118px;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 20px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--target-offset, 0) * 69px))
      scale(var(--target-scale, 0.62));
  }

  .blocking-target-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .blocking-target-icon img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .blocking-target-fallback {
    font-size: 15px;
  }

  .blocking-target-copy strong {
    font-size: 9.5px;
  }

  .blocking-target-copy small {
    display: none;
  }

  .blocking-target-item.is-active {
    width: 132px;
    height: 140px;
    border-radius: 24px;
  }

  .blocking-target-item.is-active .blocking-target-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .blocking-target-item.is-active .blocking-target-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .blocking-target-item.is-active .blocking-target-copy strong {
    font-size: 13px;
  }

  .custom-rule-showcase {
    margin-top: 34px;
    padding-top: 28px;
  }

  .custom-rule-copy {
    margin-bottom: 18px;
  }

  .custom-rule-copy h3 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .custom-rule-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .custom-rule-demo {
    --cursor-x: 50%;
    --cursor-y: 20%;
    min-height: 920px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
  }

  .cr-panel,
  .cr-ai-card {
    border-radius: 18px;
  }

  .cr-panel,
  .cr-ai-card {
    padding: 16px;
  }

  .cr-panel-head strong,
  .cr-ai-head strong {
    font-size: 15px;
  }

  .cr-field {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .cr-field textarea {
    min-height: 74px;
    font-size: 10.5px;
  }

  .cr-code-field textarea {
    min-height: 150px;
  }

  .cr-copy-button,
  .cr-run-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 11px;
  }

  .cr-status {
    min-height: 32px;
    font-size: 10px;
  }

  .cr-chip-row span {
    font-size: 10px;
  }

  .cr-chat {
    font-size: 11px;
  }

  .cr-code-bubble {
    min-height: 160px;
    font-size: 10px;
  }

  .cr-cursor {
    width: 18px;
    height: 18px;
  }

  .cr-cursor::after {
    left: 10px;
    top: 10px;
    border-left-width: 10px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .custom-rule-demo[data-phase="select"] { --cursor-x: 50%; --cursor-y: 15%; }
  .custom-rule-demo[data-phase="prompt"] { --cursor-x: 48%; --cursor-y: 30%; }
  .custom-rule-demo[data-phase="send"] { --cursor-x: 50%; --cursor-y: 38%; }
  .custom-rule-demo[data-phase="think"] { --cursor-x: 50%; --cursor-y: 61%; }
  .custom-rule-demo[data-phase="return"] { --cursor-x: 50%; --cursor-y: 74%; }
  .custom-rule-demo[data-phase="code"],
  .custom-rule-demo[data-phase="ok"],
  .custom-rule-demo[data-phase="final"] { --cursor-x: 50%; --cursor-y: 43%; }

  .custom-rule-demo[data-phase="send"] .cr-prompt-packet {
    left: 50%;
    top: 55%;
  }

  .custom-rule-demo[data-phase="return"] .cr-code-packet {
    left: 50%;
    top: 42%;
  }

  .custom-possibility-wall {
    margin-top: 34px;
    padding-top: 28px;
  }

  .possibility-copy {
    margin-bottom: 18px;
  }

  .possibility-copy h3 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .possibility-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .prompt-code-stage {
    gap: 10px;
    padding: 16px;
    border-radius: 22px;
  }

  .prompt-code-stage-head {
    align-items: flex-start;
    gap: 10px;
  }

  .possibility-controls {
    margin-top: -1px;
  }

  .prompt-code-rail-label {
    font-size: 10px;
  }

  .prompt-code-rail {
    min-height: 164px;
    padding: 0;
  }

  .code-rail {
    min-height: 286px;
  }

  .prompt-card {
    width: min(340px, 82%);
    min-height: 150px;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 13px;
    border-radius: 14px;
  }

  .prompt-card > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .prompt-card svg {
    width: 20px;
    height: 20px;
  }

  .prompt-card strong {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .prompt-card p {
    font-size: 11px;
    line-height: 1.35;
  }

  .code-card {
    width: min(430px, 90%);
    min-height: 286px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .code-card code {
    font-size: 9.2px;
    line-height: 1.45;
  }

  .code-card::after {
    right: 10px;
    top: 8px;
    font-size: 8px;
  }

  .schedule-rule-showcase {
    margin-top: 34px;
    padding-top: 28px;
  }

  .schedule-rule-copy {
    margin-bottom: 18px;
  }

  .schedule-rule-copy h3 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .schedule-rule-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .schedule-calendar-card {
    border-radius: 22px;
  }

  .schedule-calendar-card {
    padding: 16px;
  }

  .schedule-calendar-head {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .schedule-calendar-head h4 {
    font-size: 22px;
  }

  .schedule-legend {
    min-width: 0;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
  }

  .schedule-legend span {
    min-height: 20px;
    font-size: 9.5px;
  }

  .schedule-legend span::before {
    width: 25px;
    height: 7px;
  }

  .schedule-weekdays,
  .schedule-calendar-grid {
    gap: 4px;
  }

  .schedule-weekdays span {
    font-size: 8px;
  }

  .schedule-day {
    min-height: 43px;
    padding: 5px 4px;
    border-radius: 8px;
  }

  .schedule-day-number {
    font-size: 9px;
  }

  .schedule-day-label {
    left: 4px;
    right: 4px;
    bottom: 4px;
    font-size: 6.8px;
  }

  .schedule-strip {
    bottom: 17px;
    height: 6px;
  }

  .schedule-month-dots {
    gap: 5px;
    margin-top: 13px;
  }

  .schedule-month-dots span {
    width: 6px;
    height: 6px;
  }

  .schedule-month-dots span.is-active {
    width: 18px;
  }

  .freeze-snooze-showcase {
    margin-top: 34px;
    padding-top: 28px;
  }

  .freeze-snooze-copy {
    margin-bottom: 18px;
  }

  .freeze-snooze-copy h3 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .freeze-snooze-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .freeze-snooze-demo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .freeze-control-panel,
  .snooze-control-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .freeze-panel-head,
  .snooze-panel-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .freeze-panel-head h4,
  .snooze-panel-head h4 {
    font-size: 22px;
  }

  .freeze-panel-head strong,
  .snooze-panel-head strong {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .freeze-mode-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .freeze-mode-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
    border-radius: 14px;
  }

  .freeze-mode-card > span {
    width: 34px;
    height: 34px;
  }

  .freeze-stage,
  .snooze-stage {
    min-height: 280px;
    border-radius: 18px;
  }

  .freeze-target-grid {
    min-height: 280px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
  }

  .freeze-target,
  .snooze-target {
    gap: 8px;
    padding: 14px 10px;
    border-radius: 17px;
  }

  .freeze-target img,
  .snooze-target img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .freeze-target span,
  .snooze-target span {
    font-size: 11px;
  }

  .freeze-target::after {
    right: 8px;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 5px;
  }

  .freeze-cursor,
  .snooze-cursor {
    width: 18px;
    height: 18px;
  }

  .freeze-cursor::after,
  .snooze-cursor::after {
    left: 10px;
    top: 10px;
    border-left-width: 10px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .freeze-blocked-callout {
    bottom: 14px;
    min-width: 194px;
    padding: 10px 12px;
    border-radius: 13px;
  }

  .freeze-status-strip {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
    border-radius: 16px;
  }

  .freeze-timer-ring {
    width: 60px;
    height: 60px;
  }

  .freeze-timer-ring span {
    font-size: 15px;
  }

  .freeze-status-strip strong {
    font-size: 13px;
  }

  .freeze-status-strip div > span {
    font-size: 10px;
  }

  .freeze-code-card,
  .snooze-code-card {
    min-height: 118px;
    padding: 13px;
    border-radius: 14px;
  }

  .freeze-code-card code,
  .snooze-code-card code {
    font-size: 9px;
    line-height: 1.45;
  }

  .snooze-target {
    width: 124px;
  }

  .snooze-queue {
    left: 16px;
    right: 16px;
    bottom: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px;
    border-radius: 14px;
  }

  .snooze-queue strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .snooze-note {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .snooze-note > span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .snooze-note p {
    font-size: 10px;
  }

  .bridge-budget-showcase {
    margin-top: 34px;
    padding-top: 28px;
  }

  .bridge-budget-copy {
    margin-bottom: 18px;
  }

  .bridge-budget-copy h3 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
  }

  .bridge-budget-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .bridge-budget-demo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .budget-card,
  .bridge-graph {
    border-radius: 22px;
  }

  .budget-card {
    padding: 16px;
  }

  .budget-head h4 {
    font-size: 21px;
  }

  .budget-meter {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .budget-ring {
    width: 132px;
    height: 132px;
  }

  .budget-ring span {
    font-size: 23px;
  }

  .budget-bar {
    width: 100%;
  }

  .budget-targets {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .bridge-graph {
    min-height: 520px;
    padding: 18px;
  }

  .bridge-lane {
    height: 50%;
    gap: 24px;
  }

  .bridge-node {
    width: 118px;
    min-height: 126px;
    padding: 12px 10px;
    border-radius: 18px;
  }

  .bridge-node img,
  .bridge-node [data-prog],
  .bridge-node [data-prog] svg {
    width: 44px;
    height: 44px;
  }

  .bridge-node strong {
    font-size: 11px;
  }

  .bridge-node span:not([data-prog]) {
    font-size: 9px;
  }

  .bridge-core {
    width: 116px;
    height: 116px;
  }

  .bridge-core strong {
    font-size: 12px;
  }

  .bridge-core small {
    font-size: 9px;
  }

  .plane-card.wide {
    width: min(320px, calc(100vw - 48px));
  }

  .docs-card {
    width: min(600px, calc(100vw - 48px));
    height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-ring,
  .budget-bar i,
  .bridge-path,
  .schedule-strip,
  .freeze-target.is-hit {
    animation: none;
  }

  .schedule-calendar-grid,
  .freeze-cursor,
  .snooze-cursor,
  .freeze-blocked-callout,
  .snooze-queue i::after {
    transition: none;
  }

  .freeze-blocked-callout {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Docs cards — split into a small Legal box and a large Manual box */
.docs-card {
  width: 820px;
  height: 660px;
  display: flex;
  flex-direction: column;
}

/* Privacy & Terms — smaller */
.docs-legal-card {
  width: 440px;
  height: 480px;
}

/* Instruction Manual — bigger */
.docs-manual-card {
  width: 880px;
  height: 720px;
}

.docs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.docs-header h2 {
  margin: 0;
  font-size: 16px;
}

.docs-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.docs-tabs button.active {
  background: var(--navy-700);
  color: #fff;
}

.docs-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.docs-body h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--slate-900);
}

.docs-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-600);
  margin: 0 0 8px;
}

.docs-body ul {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-600);
}

.docs-body code {
  font-size: 12px;
  background: var(--slate-200);
  padding: 2px 6px;
  border-radius: 6px;
}

.docs-body h2 {
  font-size: 15px;
  margin: 18px 0 6px;
  color: var(--slate-900);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 4px;
}

.docs-body h2:first-child {
  margin-top: 0;
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 8px 0;
}

.docs-body th,
.docs-body td {
  text-align: left;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.docs-body th {
  background: var(--slate-50);
  font-weight: 600;
}

.docs-body hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 14px 0;
}

.docs-body pre {
  font-size: 11px;
  line-height: 1.4;
  padding: 10px;
  border-radius: 8px;
  background: var(--slate-900);
  color: #e2e8f0;
  overflow-x: auto;
  margin: 8px 0;
}

.docs-body blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--navy-300);
  background: var(--navy-100);
  font-size: 12px;
  color: var(--slate-600);
}

.docs-placeholder {
  font-size: 16px;
  color: var(--slate-400);
  text-align: center;
  margin-top: 140px;
}

/* Download inline detail */
.download-detail {
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--radius-card);
  background: var(--slate-50);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.download-detail p {
  font-size: 12px;
  color: var(--slate-600);
  margin: 0 0 8px;
  line-height: 1.4;
}

.download-detail pre {
  font-size: 11px;
  line-height: 1.4;
  padding: 8px;
  border-radius: 8px;
  background: var(--slate-900);
  color: #e2e8f0;
  overflow-x: auto;
  margin: 0 0 8px;
}

.download-detail .dl-zip-btn {
  font-size: 11px;
  padding: 5px 10px;
}

/* Account card — FIXED SIZE: the box never resizes between states. The three
 * states (credentials / verify / signed-in) swap inside .account-body, which
 * fills the constant-height card; the note stays pinned to the bottom. */
.account-card {
  width: 320px;
  height: 452px;
  display: flex;
  flex-direction: column;
}

.account-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-signin-region {
  margin-bottom: 12px;
}

.google-signin-region[hidden],
.google-account-actions[hidden],
.google-signin-slot[hidden],
.google-connected-label[hidden] {
  display: none;
}

.google-signin-slot {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.google-account-actions {
  min-height: 34px;
}

.google-connected-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 700;
}

.account-form[hidden],
.account-signed-in[hidden] {
  display: none;
}

.account-form label,
.account-name-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-800);
}

.account-form input,
.account-name-form input {
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-button);
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.account-form input:focus,
.account-name-form input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--navy-700),
    0 0 0 3px var(--navy-ring);
}

.account-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-hint {
  font-size: 12px;
  color: var(--slate-600);
  margin: 0 0 6px;
  line-height: 1.4;
}

.account-note {
  font-size: 11px;
  color: var(--slate-500);
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Signed-in state */
.account-signed-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.account-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--navy-700);
}

.account-id-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-id-text strong {
  font-size: 15px;
  color: var(--slate-900);
}

.account-email {
  font-size: 12px;
  color: var(--slate-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-name-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-delete {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  color: var(--red-text, #dc2626);
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.account-delete:hover {
  filter: none;
  text-decoration: underline;
}

/* Destructive primary button (used by confirm popups) */
button.danger {
  background: var(--red-text, #dc2626);
  color: #fff;
}

/* ====================================================================== *
 * CardPopup — per-box feedback / confirm overlay (see docs/DESIGN.md)
 * ====================================================================== */
.card-popup-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.card-popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.card-popup {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  max-width: 92%;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
  transform: translateY(8px) scale(0.97);
  transition: transform 200ms ease;
}

.card-popup-overlay.visible .card-popup {
  transform: none;
}

.card-popup-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-popup-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--slate-400);
}

.card-popup-success .card-popup-dot { background: #16a34a; }
.card-popup-error .card-popup-dot { background: var(--red-text, #dc2626); }
.card-popup-info .card-popup-dot { background: var(--navy-700); }

.card-popup-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate-800);
}

.card-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.card-popup-actions button {
  font-size: 12px;
  padding: 7px 12px;
}

/* Home demo links */
.home-demo-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.demo-link {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-button);
  color: var(--navy-700);
  background: var(--slate-50);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.demo-link.primary {
  color: #fff;
  background: var(--navy-700);
  box-shadow: none;
}

.demo-link:hover {
  filter: brightness(1.05);
}

/* ============================ Supported platform replicas ============================ */
.youtube-replica-card {
  width: min(1680px, 96vw);
  height: 980px;
  padding: 0;
  overflow: hidden;
  background: #0f0f0f;
  color: #f1f5f9;
  border-radius: 20px;
  box-shadow: 0 28px 72px rgba(3, 16, 31, 0.28);
}

.youtube-replica-card .card-spot {
  display: none;
}

.yt-replica-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  font-family: Arial, Helvetica, sans-serif;
}

.yt-replica-sidebar {
  padding: 18px 18px 24px;
  border-right: 1px solid #303030;
  overflow: hidden;
}

.yt-replica-timer {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-bottom: 24px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(33, 60, 115, 0.72);
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.yt-replica-nav,
.yt-replica-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 15px;
}

.yt-replica-nav.active {
  background: #272727;
}

.yt-replica-nav span {
  font-size: 22px;
  line-height: 1;
}

.yt-replica-rule {
  margin: 16px 0 22px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(28, 92, 168, 0.32), rgba(34, 52, 79, 0.52));
  box-shadow: inset 0 0 0 1px rgba(86, 168, 242, 0.22);
}

.yt-replica-rule strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 14px;
}

.yt-replica-rule span {
  display: block;
  color: #a9bdd7;
  font-size: 12px;
  line-height: 1.35;
}

.yt-replica-sub {
  margin: 16px 14px 8px;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 800;
}

.yt-replica-channel i,
.yt-replica-meta i {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c, #64748b);
}

.yt-replica-channel.muted {
  color: #a3a3a3;
}

.yt-replica-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 22px 26px;
  overflow: hidden;
}

.yt-replica-top {
  display: grid;
  grid-template-columns: 190px minmax(320px, 560px) 120px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 48px;
}

.yt-replica-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
}

.yt-replica-logo span {
  width: 34px;
  height: 24px;
  border-radius: 7px;
  background: #ff0033;
  position: relative;
}

.yt-replica-logo span::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.yt-replica-search {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #8f8f8f;
  background: #121212;
  border: 1px solid #303030;
  box-shadow: inset -54px 0 0 #222;
}

.yt-replica-create {
  justify-self: end;
  height: 38px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #272727;
  color: #f1f5f9;
  font-weight: 800;
}

.yt-replica-chips {
  display: flex;
  gap: 10px;
  padding: 18px 0 26px;
  overflow: hidden;
}

.yt-replica-chips span {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 9px;
  background: #272727;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 800;
}

.yt-replica-chips .on {
  color: #0f0f0f;
  background: #f1f1f1;
}

.yt-replica-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 26px;
}

.yt-replica-video {
  min-width: 0;
}

.yt-replica-thumb {
  position: relative;
  height: 276px;
  overflow: hidden;
  border-radius: 14px;
  background: #202020;
  isolation: isolate;
}

.yt-replica-thumb::before,
.yt-replica-thumb::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.85;
}

.yt-replica-thumb::before {
  width: 68%;
  height: 72%;
  left: -12%;
  top: -16%;
  background: rgba(255, 255, 255, 0.22);
}

.yt-replica-thumb::after {
  width: 52%;
  height: 64%;
  right: -10%;
  bottom: -18%;
  background: rgba(0, 0, 0, 0.22);
}

.thumb-red { background: linear-gradient(135deg, #7f1d1d, #ef4444 48%, #fca5a5); }
.thumb-blue { background: linear-gradient(135deg, #172554, #2563eb 50%, #93c5fd); }
.thumb-green { background: linear-gradient(135deg, #064e3b, #16a34a 48%, #bbf7d0); }
.thumb-gold { background: linear-gradient(135deg, #451a03, #d97706 50%, #fde68a); }

.thumb-war-update {
  background:
    linear-gradient(90deg, rgba(127, 29, 29, 0.96) 0 50%, rgba(23, 37, 84, 0.96) 50% 100%),
    radial-gradient(circle at 52% 45%, rgba(248, 113, 113, 0.44), transparent 22%),
    #111827;
}

.thumb-war-update::before {
  z-index: 0;
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.32;
  filter: none;
}

.thumb-war-update::after {
  z-index: 1;
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    radial-gradient(circle at 14% 88%, rgba(239, 68, 68, 0.34), transparent 25%),
    radial-gradient(circle at 84% 20%, rgba(96, 165, 250, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 46%, rgba(0, 0, 0, 0.2));
  opacity: 1;
  filter: none;
}

.war-map,
.war-smoke,
.war-alert,
.war-plane,
.war-title,
.war-subtitle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.war-map {
  top: 18%;
  width: 32%;
  height: 43%;
  opacity: 0.52;
  clip-path: polygon(5% 30%, 18% 12%, 36% 20%, 47% 8%, 66% 18%, 82% 12%, 94% 28%, 86% 45%, 94% 62%, 77% 76%, 58% 68%, 45% 88%, 28% 74%, 12% 80%, 2% 58%, 12% 45%);
  border: 2px solid currentColor;
  background:
    linear-gradient(135deg, currentColor, transparent 68%),
    rgba(255, 255, 255, 0.05);
}

.war-map.red {
  left: 56%;
  color: #f87171;
  filter: drop-shadow(0 0 12px rgba(248, 113, 113, 0.52));
}

.war-map.blue {
  right: 4%;
  color: #60a5fa;
  filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.52));
}

.war-smoke {
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.58;
}

.smoke-a {
  left: -7%;
  bottom: -18%;
  width: 44%;
  height: 40%;
  background: rgba(248, 113, 113, 0.7);
}

.smoke-b {
  right: -9%;
  top: 16%;
  width: 38%;
  height: 42%;
  background: rgba(96, 165, 250, 0.62);
}

.war-alert {
  left: 64%;
  top: 32%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  border: 4px solid #ef4444;
  border-radius: 16px;
  transform: rotate(45deg);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.5);
}

.war-alert::after {
  content: "!";
  color: #fecaca;
  transform: rotate(-45deg);
}

.war-plane {
  width: 54px;
  height: 18px;
  background: #020617;
  clip-path: polygon(0 45%, 68% 45%, 92% 0, 100% 0, 84% 50%, 100% 100%, 92% 100%, 68% 55%, 0 55%);
  opacity: 0.72;
}

.plane-a {
  right: 9%;
  top: 18%;
  transform: rotate(22deg);
}

.plane-b {
  right: 21%;
  top: 28%;
  transform: rotate(22deg) scale(0.74);
  opacity: 0.58;
}

.war-title {
  left: 24px;
  top: 46px;
  display: grid;
  gap: 0;
  width: 57%;
  padding: 10px 14px 12px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.66), transparent);
  color: #fff;
  text-align: left;
  transform: none;
  text-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
}

.war-title span:first-child {
  font-size: 64px;
  line-height: 0.86;
  font-weight: 950;
}

.war-title span:last-child {
  color: #ef0000;
  font-size: 54px;
  line-height: 0.88;
  font-weight: 950;
}

.war-subtitle {
  left: 48px;
  bottom: 37px;
  padding: 6px 14px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.76);
  border-left: 9px solid #ef0000;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.yt-replica-thumb > strong:not(.war-title) {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.yt-replica-thumb em {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.yt-replica-blocked,
.yt-replica-allowed {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.yt-replica-blocked {
  color: #fff;
  background: rgba(220, 38, 38, 0.94);
}

.yt-replica-allowed {
  color: #052e16;
  background: rgba(187, 247, 208, 0.95);
}

.yt-replica-video.blocked .yt-replica-thumb {
  filter: saturate(0.82) brightness(0.9);
}

.yt-replica-video.blocked .yt-replica-thumb::before {
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.2);
}

.yt-replica-meta {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 0 0;
}

.yt-replica-meta i {
  width: 38px;
  height: 38px;
}

.yt-replica-meta h3 {
  margin: 0 0 6px;
  color: #f1f5f9;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 800;
}

.yt-replica-meta p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
  line-height: 1.35;
}

/* Main-page YouTube showcase: a taller, editable replica with two states. */
.youtube-showcase-card {
  width: min(1680px, 96vw);
  height: 1860px;
  padding: 0;
  background: #0f0f0f;
}

.yt-showcase-intro {
  height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: 28px 34px 24px;
  background:
    radial-gradient(circle at 78% 8%, rgba(239, 68, 68, 0.24), transparent 28%),
    linear-gradient(135deg, #101010, #151923 62%, #101010);
  border-bottom: 1px solid #303030;
}

.yt-showcase-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yt-showcase-intro h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.yt-showcase-intro p {
  max-width: 890px;
  margin: 0;
  color: #b9c0ca;
  font-size: 15px;
  line-height: 1.45;
}

.yt-state-toggle {
  justify-self: end;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 18px;
  background: #1f2937;
  color: #f8fafc;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.yt-state-toggle:hover {
  filter: brightness(1.08);
}

.yt-toggle-track {
  width: 66px;
  height: 36px;
  padding: 4px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.35);
}

.yt-toggle-knob {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(30px);
  transition: transform 160ms ease;
}

.yt-state-toggle strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1;
}

.yt-state-toggle small {
  display: block;
  color: #aeb7c4;
  font-size: 12px;
  line-height: 1.3;
}

.youtube-showcase-card[data-blocking="off"] .yt-toggle-track {
  background: #475569;
  box-shadow: none;
}

.youtube-showcase-card[data-blocking="off"] .yt-toggle-knob {
  transform: translateX(0);
}

.youtube-showcase-card .yt-replica-shell {
  height: calc(100% - 178px);
  grid-template-columns: 246px 1fr;
}

.youtube-showcase-card .yt-replica-main {
  padding: 14px 24px 28px;
}

.youtube-showcase-card .yt-replica-top {
  grid-template-columns: 190px minmax(380px, 620px) 120px;
}

.youtube-showcase-card .yt-replica-chips {
  padding: 18px 0 22px;
}

.yt-replica-chips .custom {
  background: #303030;
  color: #f1f5f9;
}

.yt-replica-chips .custom::before {
  content: "▣";
  margin-right: 7px;
  color: #cbd5e1;
}

.youtube-showcase-card .yt-replica-grid {
  gap: 30px 22px;
}

.youtube-showcase-card .yt-replica-thumb {
  height: auto;
  aspect-ratio: 16 / 9;
}

.youtube-showcase-card .yt-replica-meta {
  grid-template-columns: 36px 1fr;
  gap: 11px;
  padding-top: 10px;
}

.youtube-showcase-card .yt-replica-meta i {
  width: 32px;
  height: 32px;
}

.youtube-showcase-card .yt-replica-meta h3 {
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.youtube-showcase-card .yt-replica-meta p {
  font-size: 12px;
}

.thumb-election-needle {
  background:
    radial-gradient(circle at 78% 28%, rgba(248, 113, 113, 0.48), transparent 24%),
    linear-gradient(135deg, #111827 0 44%, #7f1d1d 45% 68%, #1e3a8a 69% 100%);
}

.thumb-election-needle::before {
  z-index: 0;
  display: block;
  inset: 18% 9% 18% 9%;
  width: auto;
  height: auto;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(248, 250, 252, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.7) 0 36%, rgba(239, 68, 68, 0.74) 37% 66%, rgba(250, 204, 21, 0.7) 67% 100%);
  background-size: 42px 42px, 42px 42px, auto;
  filter: none;
  opacity: 0.92;
}

.thumb-election-needle::after {
  z-index: 1;
  display: block;
  left: 50%;
  top: 44%;
  width: 36%;
  height: 9px;
  border-radius: 999px;
  background: #f8fafc;
  transform: rotate(-24deg);
  transform-origin: left center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
  opacity: 0.92;
}

.thumb-election-needle > strong {
  top: 74%;
  font-size: 42px !important;
  text-align: center;
}

.thumb-comment-fire {
  background:
    radial-gradient(circle at 72% 42%, rgba(239, 68, 68, 0.7), transparent 23%),
    linear-gradient(135deg, #18181b, #7f1d1d 58%, #f97316);
}

.thumb-comment-fire::before {
  z-index: 0;
  display: block;
  inset: 14% 8% 20%;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 24% 25%, #f8fafc 0 15%, transparent 16%),
    radial-gradient(ellipse at 62% 32%, #fecaca 0 17%, transparent 18%),
    radial-gradient(ellipse at 42% 62%, #f8fafc 0 19%, transparent 20%),
    radial-gradient(ellipse at 78% 70%, #fed7aa 0 16%, transparent 17%);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
  opacity: 0.92;
}

.thumb-comment-fire::after {
  z-index: 1;
  display: block;
  right: 7%;
  top: 9%;
  width: 26%;
  height: 42%;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 82%, #facc15 0 16%, transparent 17%),
    linear-gradient(180deg, #ef4444, #f97316 66%, transparent 67%);
  clip-path: polygon(50% 0, 74% 25%, 68% 46%, 92% 67%, 62% 100%, 28% 96%, 8% 70%, 30% 48%, 22% 24%);
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
  opacity: 0.9;
}

.thumb-comment-fire > strong {
  top: 77%;
  font-size: 38px !important;
}

.thumb-course-clean {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(135deg, #064e3b, #16a34a 48%, #bbf7d0);
}

.thumb-course-clean::before {
  z-index: 0;
  display: block;
  inset: 12% 12% 16%;
  width: auto;
  height: auto;
  border-radius: 16px;
  background:
    linear-gradient(#0f172a 0 0) 18% 26% / 58% 7px no-repeat,
    linear-gradient(#0f172a 0 0) 18% 43% / 42% 7px no-repeat,
    linear-gradient(#0f172a 0 0) 18% 60% / 50% 7px no-repeat,
    linear-gradient(135deg, #ecfdf5, #dbeafe);
  filter: none;
  opacity: 0.95;
}

.thumb-course-clean::after {
  z-index: 1;
  display: block;
  right: 12%;
  bottom: 16%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #16a34a 0 20%, transparent 21%),
    conic-gradient(#16a34a 0 290deg, #bbf7d0 290deg 360deg);
  filter: none;
}

.thumb-course-clean > strong {
  top: 78%;
  font-size: 36px !important;
}

.thumb-study {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(135deg, #064e3b, #16a34a 48%, #bbf7d0);
}

.thumb-train {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.36)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.16) 52px 58px),
    linear-gradient(135deg, #164e63, #64748b 52%, #facc15);
}

.youtube-showcase-card .war-title {
  left: 18px;
  top: 34px;
  width: 60%;
  padding: 8px 12px 10px;
}

.youtube-showcase-card .war-title span:first-child {
  font-size: 50px;
}

.youtube-showcase-card .war-title span:last-child {
  font-size: 42px;
}

.youtube-showcase-card .war-subtitle {
  left: 36px;
  bottom: 26px;
  font-size: 13px;
}

.youtube-showcase-card .war-alert {
  width: 42px;
  height: 42px;
  font-size: 26px;
}

.yt-shorts-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 14px;
  color: #f8fafc;
}

.yt-shorts-head span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #ff0033;
  transform: rotate(-14deg);
}

.yt-shorts-head strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.yt-shorts-head small {
  margin-left: 8px;
  color: #8f8f8f;
  font-size: 13px;
  font-weight: 800;
}

.yt-shorts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.yt-short-card {
  min-width: 0;
}

.yt-short-thumb {
  position: relative;
  height: auto;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 16px;
  background: #18181b;
}

.yt-short-thumb strong {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  color: #fff;
  font-size: 34px;
  line-height: 0.94;
  font-weight: 950;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.short-politics {
  background:
    radial-gradient(circle at 62% 38%, rgba(239, 68, 68, 0.7), transparent 22%),
    linear-gradient(135deg, #450a0a, #1e1b4b);
}

.short-map-refresh {
  background:
    radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.72), transparent 22%),
    linear-gradient(135deg, #450a0a, #1e1b4b);
}

.short-map-refresh::after {
  content: "";
  position: absolute;
  inset: 28% 16% 28%;
  border: 3px solid rgba(248, 250, 252, 0.74);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.7) 0 46%, rgba(59, 130, 246, 0.72) 47% 100%),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  clip-path: polygon(5% 20%, 26% 7%, 48% 20%, 65% 10%, 92% 26%, 76% 50%, 94% 75%, 64% 87%, 45% 72%, 20% 90%, 8% 62%);
}

.short-reaction-chain {
  background:
    radial-gradient(circle at 28% 28%, #f97316, transparent 22%),
    radial-gradient(circle at 72% 42%, #a855f7, transparent 24%),
    linear-gradient(135deg, #111827, #7c2d12);
}

.short-reaction-chain::after {
  content: "";
  position: absolute;
  inset: 18% 12% 36%;
  background:
    linear-gradient(#f8fafc 0 0) 14% 18% / 34% 8px no-repeat,
    linear-gradient(#f8fafc 0 0) 58% 48% / 34% 8px no-repeat,
    radial-gradient(ellipse at 22% 36%, rgba(255, 255, 255, 0.78) 0 24%, transparent 25%),
    radial-gradient(ellipse at 72% 62%, rgba(255, 255, 255, 0.78) 0 24%, transparent 25%);
}

.short-rank-loop {
  background:
    radial-gradient(circle at 50% 46%, #a855f7, transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 7px, transparent 8px 20px),
    linear-gradient(135deg, #020617, #312e81);
}

.short-rank-loop::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 24%;
  height: 30%;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #22d3ee 0 22%, transparent 23% 31%, #facc15 32% 56%, transparent 57% 65%, #fb7185 66% 100%);
  box-shadow: 0 18px 0 rgba(255, 255, 255, 0.16), 0 36px 0 rgba(255, 255, 255, 0.1);
}

.yt-short-card h3 {
  margin: 9px 0 0;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
}

.yt-short-card.blocked .yt-short-thumb {
  filter: saturate(0.82) brightness(0.9);
}

.youtube-showcase-card[data-blocking="off"] .yt-replica-video.blocked .yt-replica-thumb,
.youtube-showcase-card[data-blocking="off"] .yt-short-card.blocked .yt-short-thumb {
  filter: none;
}

.youtube-showcase-card[data-blocking="off"] .yt-replica-video.blocked .yt-replica-thumb::before {
  box-shadow: none;
}

.youtube-showcase-card[data-blocking="off"] .yt-replica-blocked {
  display: none;
}

.youtube-showcase-card[data-blocking="off"] .yt-replica-rule {
  background: linear-gradient(145deg, rgba(71, 85, 105, 0.42), rgba(30, 41, 59, 0.52));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.youtube-showcase-card[data-blocking="off"] .yt-showcase-intro {
  background:
    radial-gradient(circle at 78% 8%, rgba(100, 116, 139, 0.18), transparent 28%),
    linear-gradient(135deg, #101010, #151923 62%, #101010);
}

/* Main-page TikTok showcase: procedural, static, and sized like a platform feed. */
.tiktok-showcase-card {
  height: 1040px;
  padding: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  color: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.tk-sidebar {
  padding: 24px 18px;
  border-right: 1px solid #1f1f1f;
  background: #050505;
}

.tk-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
}

.tk-logo span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 62% 34%, #fff 0 23%, transparent 24%),
    linear-gradient(135deg, #00f2ea 0 45%, #ff0050 46% 100%);
  box-shadow: -3px 2px 0 #00f2ea, 3px -2px 0 #ff0050;
}

.tk-search {
  height: 46px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 16px;
  border-radius: 999px;
  background: #222;
  color: #8b8b8b;
  font-size: 15px;
  font-weight: 700;
}

.tk-search::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border: 2px solid #8b8b8b;
  border-radius: 50%;
  box-shadow: 7px 7px 0 -5px #8b8b8b;
}

.tk-nav {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px;
  color: #e5e7eb;
  font-size: 17px;
}

.tk-nav.active {
  color: #ff2f5f;
}

.tk-login {
  width: 100%;
  height: 48px;
  margin: 24px 0 22px;
  border-radius: 8px;
  background: #ff2f5f;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.tk-sidebar p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #232323;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.45;
}

.tk-main {
  min-width: 0;
  padding: 24px 28px 30px;
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 242, 234, 0.12), transparent 22%),
    radial-gradient(circle at 82% 6%, rgba(255, 0, 80, 0.13), transparent 20%),
    #000;
}

.tk-cats {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
  overflow: hidden;
  white-space: nowrap;
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 850;
}

.tk-cats span {
  flex: 0 0 auto;
}

.tk-cats .active {
  padding: 13px 18px;
  border-radius: 999px;
  background: #232323;
  color: #fff;
}

.tk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.tk-video {
  min-width: 0;
}

.tk-thumb {
  position: relative;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  border-radius: 12px;
  background: #18181b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tk-thumb::before,
.tk-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tk-thumb::before {
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62));
}

.tk-thumb::after {
  opacity: 0.62;
  mix-blend-mode: screen;
}

.tk-thumb strong {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 40px;
  color: #fff;
  font-size: 22px;
  line-height: 0.96;
  font-weight: 950;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.tk-thumb em {
  position: absolute;
  left: 13px;
  bottom: 13px;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.tk-badge,
.tk-ok {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tk-badge {
  background: #ff2f5f;
  box-shadow: 0 0 22px rgba(255, 47, 95, 0.45);
}

.tk-ok {
  background: #16a34a;
  box-shadow: 0 0 22px rgba(22, 163, 74, 0.34);
}

.tk-video p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-video i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.tk-video.blocked .tk-thumb {
  filter: saturate(0.86) brightness(0.86);
}

.tk-beauty {
  background:
    radial-gradient(ellipse at 48% 22%, #fff7ed 0 14%, transparent 15%),
    linear-gradient(155deg, #fbcfe8, #a78bfa 47%, #f9a8d4);
}

.tk-beauty::after {
  background:
    linear-gradient(74deg, transparent 0 34%, rgba(255, 255, 255, 0.7) 35% 42%, transparent 43%),
    radial-gradient(circle at 42% 54%, #f0abfc 0 18%, transparent 19%);
}

.tk-car {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.4), transparent),
    repeating-linear-gradient(90deg, #64748b 0 34px, #475569 35px 39px),
    linear-gradient(135deg, #0f172a, #f97316);
}

.tk-car::after {
  background:
    radial-gradient(circle at 66% 35%, #fde68a 0 10%, transparent 11%),
    linear-gradient(158deg, transparent 0 42%, rgba(14, 165, 233, 0.5) 43% 57%, transparent 58%);
}

.tk-makeup {
  background:
    radial-gradient(circle at 50% 40%, #fee2e2 0 34%, transparent 35%),
    linear-gradient(155deg, #7f1d1d, #fecaca);
}

.tk-makeup::after {
  background:
    radial-gradient(circle at 49% 42%, #111827 0 5%, transparent 6%),
    linear-gradient(120deg, transparent 0 58%, #111827 59% 61%, transparent 62%);
}

.tk-comedy {
  background:
    radial-gradient(circle at 54% 54%, #92400e 0 19%, transparent 20%),
    linear-gradient(145deg, #111827, #0ea5e9 48%, #fb7185);
}

.tk-comedy::after {
  background:
    radial-gradient(circle at 58% 28%, #f97316 0 10%, transparent 11%),
    radial-gradient(circle at 42% 72%, #7c2d12 0 17%, transparent 18%);
}

.tk-sports {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 44%),
    repeating-linear-gradient(90deg, #e11d48 0 36px, #0ea5e9 37px 74px),
    #111827;
}

.tk-sports::after {
  background:
    radial-gradient(circle at 48% 62%, #fb923c 0 11%, transparent 12%),
    linear-gradient(90deg, transparent 0 45%, rgba(255, 255, 255, 0.72) 46% 48%, transparent 49%);
}

.tk-sand {
  background:
    radial-gradient(ellipse at 50% 62%, #92400e 0 15%, transparent 16%),
    repeating-radial-gradient(circle at 50% 62%, #f59e0b 0 9px, #b45309 10px 20px);
}

.tk-farm {
  background:
    linear-gradient(180deg, #64748b 0 26%, transparent 27%),
    repeating-linear-gradient(90deg, #78350f 0 30px, #a16207 31px 60px),
    #365314;
}

.tk-farm::after {
  background:
    radial-gradient(ellipse at 58% 58%, #fef3c7 0 17%, transparent 18%),
    radial-gradient(ellipse at 36% 64%, #111827 0 13%, transparent 14%);
}

.tk-ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #111827, #020617 54%, #27272a);
}

.tk-ghost::after {
  background:
    radial-gradient(ellipse at 55% 44%, rgba(255, 255, 255, 0.72) 0 20%, transparent 21%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.12) 43px 47px);
}

.tk-late-story {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.28), transparent 17%),
    linear-gradient(155deg, #111827, #4c1d95 54%, #be185d);
}

.tk-late-story::after {
  background:
    linear-gradient(#f8fafc 0 0) 20% 28% / 54% 7px no-repeat,
    linear-gradient(#f8fafc 0 0) 20% 42% / 38% 7px no-repeat,
    radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, 0.16) 0 32%, transparent 33%),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(255, 255, 255, 0.1) 27px 30px);
}

.tk-road-argue {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.36), transparent),
    repeating-linear-gradient(90deg, #64748b 0 34px, #475569 35px 39px),
    linear-gradient(135deg, #0f172a, #f97316);
}

.tk-road-argue::after {
  background:
    radial-gradient(circle at 66% 35%, #fde68a 0 10%, transparent 11%),
    linear-gradient(158deg, transparent 0 42%, rgba(14, 165, 233, 0.5) 43% 57%, transparent 58%),
    linear-gradient(#f8fafc 0 0) 28% 64% / 46% 8px no-repeat;
}

.tk-haul {
  background:
    radial-gradient(circle at 66% 26%, #fde68a 0 13%, transparent 14%),
    linear-gradient(155deg, #831843, #f472b6 50%, #fef3c7);
}

.tk-haul::after {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.84) 19% 33%, transparent 34%),
    linear-gradient(90deg, transparent 0 52%, rgba(255, 255, 255, 0.82) 53% 69%, transparent 70%),
    radial-gradient(circle at 26% 70%, #f9a8d4 0 16%, transparent 17%),
    radial-gradient(circle at 62% 72%, #fb7185 0 16%, transparent 17%);
}

.tk-drama-receipts {
  background:
    radial-gradient(circle at 30% 28%, #22d3ee, transparent 18%),
    radial-gradient(circle at 72% 36%, #fb7185, transparent 20%),
    linear-gradient(145deg, #111827, #0ea5e9 48%, #fb7185);
}

.tk-drama-receipts::after {
  background:
    linear-gradient(#111827 0 0) 19% 27% / 42% 6px no-repeat,
    linear-gradient(#111827 0 0) 23% 43% / 52% 6px no-repeat,
    radial-gradient(ellipse at 48% 40%, rgba(255, 255, 255, 0.82) 0 31%, transparent 32%),
    radial-gradient(circle at 70% 74%, #f97316 0 14%, transparent 15%);
}

.tk-casino {
  background:
    radial-gradient(circle at 50% 42%, rgba(250, 204, 21, 0.72), transparent 23%),
    linear-gradient(155deg, #064e3b, #7f1d1d 54%, #020617);
}

.tk-casino::after {
  background:
    linear-gradient(#f8fafc 0 0) 18% 30% / 20% 42px no-repeat,
    linear-gradient(#f8fafc 0 0) 42% 30% / 20% 42px no-repeat,
    linear-gradient(#f8fafc 0 0) 66% 30% / 20% 42px no-repeat,
    radial-gradient(circle at 28% 51%, #ef4444 0 7%, transparent 8%),
    radial-gradient(circle at 52% 51%, #facc15 0 7%, transparent 8%),
    radial-gradient(circle at 76% 51%, #22c55e 0 7%, transparent 8%);
}

.tk-conspiracy {
  background:
    radial-gradient(circle at 76% 20%, rgba(245, 158, 11, 0.6), transparent 21%),
    linear-gradient(155deg, #1f2937, #451a03 54%, #111827);
}

.tk-conspiracy::after {
  background:
    linear-gradient(70deg, transparent 0 28%, rgba(248, 250, 252, 0.7) 29% 31%, transparent 32%),
    linear-gradient(118deg, transparent 0 45%, rgba(248, 250, 252, 0.58) 46% 48%, transparent 49%),
    radial-gradient(circle at 30% 34%, #f8fafc 0 7%, transparent 8%),
    radial-gradient(circle at 70% 66%, #f8fafc 0 7%, transparent 8%),
    radial-gradient(circle at 52% 48%, #f97316 0 11%, transparent 12%);
}

.tk-quiet-recipe {
  background:
    linear-gradient(180deg, #64748b 0 26%, transparent 27%),
    repeating-linear-gradient(90deg, #78350f 0 30px, #a16207 31px 60px),
    #365314;
}

.tk-quiet-recipe::after {
  background:
    linear-gradient(#fef3c7 0 0) 18% 26% / 48% 7px no-repeat,
    linear-gradient(#fef3c7 0 0) 18% 40% / 38% 7px no-repeat,
    radial-gradient(ellipse at 58% 66%, #fef3c7 0 18%, transparent 19%),
    radial-gradient(circle at 34% 68%, #84cc16 0 12%, transparent 13%);
}

.tk-game-loop {
  background:
    radial-gradient(circle at 50% 44%, #a855f7, transparent 26%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 7px, transparent 8px 20px),
    linear-gradient(135deg, #020617, #312e81);
}

.tk-game-loop::after {
  background:
    linear-gradient(90deg, #22d3ee 0 22%, transparent 23% 31%, #facc15 32% 56%, transparent 57% 65%, #fb7185 66% 100%) 18% 26% / 64% 22% no-repeat,
    radial-gradient(circle at 52% 64%, rgba(255, 255, 255, 0.78) 0 13%, transparent 14%),
    linear-gradient(#f8fafc 0 0) 26% 78% / 50% 8px no-repeat;
}

.home-card > .youtube-showcase-card {
  width: min(1008px, 100%);
  height: 1120px;
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
}

.home-card > .youtube-showcase-card .yt-showcase-intro {
  height: 104px;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  padding: 18px 22px;
}

.home-card > .youtube-showcase-card .yt-showcase-kicker {
  margin-bottom: 6px;
  font-size: 10px;
}

.home-card > .youtube-showcase-card .yt-showcase-intro p {
  max-width: 540px;
  font-size: 13px;
  line-height: 1.35;
}

.home-card > .youtube-showcase-card .yt-state-toggle {
  min-height: 58px;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
}

.home-card > .youtube-showcase-card .yt-toggle-track {
  width: 52px;
  height: 30px;
  padding: 3px;
}

.home-card > .youtube-showcase-card .yt-toggle-knob {
  width: 24px;
  height: 24px;
  transform: translateX(22px);
}

.home-card > .youtube-showcase-card[data-blocking="off"] .yt-toggle-knob {
  transform: translateX(0);
}

.home-card > .youtube-showcase-card .yt-state-toggle strong {
  font-size: 13px;
}

.home-card > .youtube-showcase-card .yt-state-toggle small {
  font-size: 10px;
}

.home-card > .youtube-showcase-card .yt-replica-shell {
  height: calc(100% - 104px);
  grid-template-columns: 148px 1fr;
}

.home-card > .youtube-showcase-card .yt-replica-sidebar {
  padding: 14px 10px;
}

.home-card > .youtube-showcase-card .yt-replica-timer,
.home-card > .youtube-showcase-card .yt-replica-nav,
.home-card > .youtube-showcase-card .yt-replica-channel {
  font-size: 10px;
}

.home-card > .youtube-showcase-card .yt-replica-main {
  padding: 10px 14px 18px;
}

.home-card > .youtube-showcase-card .yt-replica-top {
  grid-template-columns: 128px minmax(220px, 1fr) 76px;
  gap: 10px;
  min-height: 36px;
}

.home-card > .youtube-showcase-card .yt-replica-logo {
  font-size: 16px;
}

.home-card > .youtube-showcase-card .yt-replica-search,
.home-card > .youtube-showcase-card .yt-replica-create {
  height: 32px;
  font-size: 11px;
}

.home-card > .youtube-showcase-card .yt-replica-chips {
  padding: 11px 0 13px;
  gap: 8px;
}

.home-card > .youtube-showcase-card .yt-replica-chips span {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 10px;
}

.home-card > .youtube-showcase-card .yt-replica-grid {
  gap: 18px 14px;
}

.home-card > .youtube-showcase-card .yt-replica-meta {
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding-top: 8px;
}

.home-card > .youtube-showcase-card .yt-replica-meta i {
  width: 26px;
  height: 26px;
}

.home-card > .youtube-showcase-card .yt-replica-meta h3 {
  font-size: 12px;
  line-height: 1.25;
}

.home-card > .youtube-showcase-card .yt-replica-meta p {
  font-size: 10px;
}

.home-card > .youtube-showcase-card .yt-replica-thumb > strong:not(.war-title) {
  left: 16px;
  right: 16px;
  font-size: 28px !important;
}

.home-card > .youtube-showcase-card .war-title {
  left: 12px;
  top: 22px;
  width: 62%;
  padding: 6px 8px 8px;
}

.home-card > .youtube-showcase-card .war-title span:first-child {
  font-size: 31px;
}

.home-card > .youtube-showcase-card .war-title span:last-child {
  font-size: 27px;
}

.home-card > .youtube-showcase-card .war-subtitle {
  left: 22px;
  bottom: 16px;
  padding: 5px 9px;
  border-left-width: 6px;
  font-size: 9px;
}

.home-card > .youtube-showcase-card .war-alert {
  width: 28px;
  height: 28px;
  border-width: 3px;
  border-radius: 9px;
  font-size: 18px;
}

.home-card > .youtube-showcase-card .war-plane {
  width: 34px;
  height: 12px;
}

.home-card > .youtube-showcase-card .yt-replica-blocked,
.home-card > .youtube-showcase-card .yt-replica-allowed {
  left: 9px;
  top: 9px;
  padding: 5px 8px;
  font-size: 9px;
}

.home-card > .youtube-showcase-card .yt-shorts-head {
  margin: 20px 0 10px;
}

.home-card > .youtube-showcase-card .yt-shorts-head strong {
  font-size: 17px;
}

.home-card > .youtube-showcase-card .yt-shorts-head small {
  font-size: 10px;
}

.home-card > .youtube-showcase-card .yt-shorts-row {
  gap: 12px;
}

.home-card > .youtube-showcase-card .yt-short-thumb strong {
  left: 10px;
  right: 10px;
  bottom: 12px;
  font-size: 22px;
}

.home-card > .youtube-showcase-card .yt-short-card h3 {
  font-size: 11px;
}

.home-card > .tiktok-showcase-card {
  width: min(1008px, 100%);
  height: 624px;
  margin-top: 58px;
  grid-template-columns: 150px minmax(0, 1fr);
  border-radius: 20px;
}

.home-card > .tiktok-showcase-card .tk-sidebar {
  padding: 14px 10px;
}

.home-card > .tiktok-showcase-card .tk-logo {
  gap: 6px;
  margin-bottom: 12px;
  font-size: 17px;
}

.home-card > .tiktok-showcase-card .tk-logo span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.home-card > .tiktok-showcase-card .tk-search {
  height: 31px;
  margin-bottom: 12px;
  padding: 0 10px;
  font-size: 11px;
}

.home-card > .tiktok-showcase-card .tk-nav {
  height: 31px;
  gap: 8px;
  padding: 0 6px;
  font-size: 11px;
}

.home-card > .tiktok-showcase-card .tk-login {
  height: 34px;
  margin: 14px 0 12px;
  font-size: 12px;
}

.home-card > .tiktok-showcase-card .tk-sidebar p {
  padding-top: 12px;
  font-size: 10px;
  line-height: 1.35;
}

.home-card > .tiktok-showcase-card .tk-main {
  padding: 14px 18px 18px;
}

.home-card > .tiktok-showcase-card .tk-cats {
  min-height: 34px;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 10px;
}

.home-card > .tiktok-showcase-card .tk-cats .active {
  padding: 8px 11px;
}

.home-card > .tiktok-showcase-card .tk-grid {
  gap: 12px;
}

.home-card > .tiktok-showcase-card .tk-thumb {
  aspect-ratio: 9 / 11;
  border-radius: 10px;
}

.home-card > .tiktok-showcase-card .tk-thumb strong {
  left: 9px;
  right: 9px;
  bottom: 27px;
  font-size: 14px;
}

.home-card > .tiktok-showcase-card .tk-thumb em {
  left: 9px;
  bottom: 8px;
  font-size: 9px;
}

.home-card > .tiktok-showcase-card .tk-badge,
.home-card > .tiktok-showcase-card .tk-ok {
  left: 8px;
  top: 8px;
  padding: 4px 6px;
  font-size: 8px;
}

.home-card > .tiktok-showcase-card .tk-video p {
  gap: 6px;
  margin-top: 6px;
  font-size: 10px;
}

.home-card > .tiktok-showcase-card .tk-video i {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .youtube-showcase-card {
    height: 1900px;
  }

  .tiktok-showcase-card {
    height: 1260px;
    grid-template-columns: 1fr;
  }

  .tk-sidebar {
    display: none;
  }

  .tk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yt-showcase-intro {
    height: 260px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .yt-state-toggle {
    justify-self: stretch;
  }

  .youtube-showcase-card .yt-replica-shell {
    height: calc(100% - 260px);
    grid-template-columns: 1fr;
  }

  .youtube-showcase-card .yt-replica-sidebar {
    display: none;
  }

  .youtube-showcase-card .yt-replica-top {
    grid-template-columns: 150px 1fr 96px;
  }

  .youtube-showcase-card .yt-replica-thumb {
    height: auto;
  }

  .yt-short-thumb {
    height: auto;
  }

  .home-card > .youtube-showcase-card {
    height: 1540px;
  }

  .home-card > .youtube-showcase-card .yt-showcase-intro {
    height: 150px;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .home-card > .youtube-showcase-card .yt-replica-shell {
    height: calc(100% - 150px);
  }

  .home-card > .tiktok-showcase-card {
    height: 980px;
    grid-template-columns: 1fr;
  }

  .home-card > .tiktok-showcase-card .tk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .youtube-showcase-card {
    height: 2850px;
  }

  .tiktok-showcase-card {
    height: 2620px;
  }

  .tk-main {
    padding: 20px 16px 24px;
  }

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

  .youtube-showcase-card .yt-replica-top {
    grid-template-columns: 1fr;
    height: auto;
  }

  .youtube-showcase-card .yt-replica-create {
    display: none;
  }

  .youtube-showcase-card .yt-replica-grid,
  .yt-shorts-row {
    grid-template-columns: 1fr;
  }

  .youtube-showcase-card .yt-replica-thumb {
    height: auto;
  }

  .plane-card.home-card {
    height: 18600px;
  }

  .what-adamancia-does {
    margin-top: 58px;
    padding: 30px 20px;
  }

  .what-copy {
    margin-bottom: 24px;
  }

  .what-copy h3 {
    font-size: 34px;
    line-height: 1.15;
  }

  .what-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .what-list li {
    min-height: 64px;
    padding: 16px 16px 16px 48px;
    font-size: 17px;
    line-height: 1.48;
  }

  .what-list li::before {
    left: 17px;
    width: 18px;
    height: 18px;
  }

  .platform-dom-intro,
  .home-card :is(
    .shot-copy,
    .site-rule-copy,
    .blocking-universe-copy,
    .custom-rule-copy,
    .possibility-copy,
    .schedule-rule-copy,
    .freeze-snooze-copy,
    .bridge-budget-copy
  ) {
    margin-bottom: 28px;
  }

  .platform-dom-intro h3,
  .home-card :is(
    .shot-copy,
    .site-rule-copy,
    .blocking-universe-copy,
    .custom-rule-copy,
    .possibility-copy,
    .schedule-rule-copy,
    .freeze-snooze-copy,
    .bridge-budget-copy
  ) h3 {
    font-size: 34px;
    line-height: 1.16;
  }

  .platform-dom-intro p,
  .home-card :is(
    .shot-copy,
    .site-rule-copy,
    .blocking-universe-copy,
    .custom-rule-copy,
    .possibility-copy,
    .schedule-rule-copy,
    .freeze-snooze-copy,
    .bridge-budget-copy
  ) p {
    font-size: 18px;
    line-height: 1.62;
  }

  .home-card > .youtube-showcase-card {
    height: 2580px;
  }

  .home-card > .youtube-showcase-card .yt-showcase-intro {
    height: 168px;
  }

  .home-card > .youtube-showcase-card .yt-replica-shell {
    height: calc(100% - 168px);
  }

  .home-card > .tiktok-showcase-card {
    height: 2160px;
  }

  .home-card > .tiktok-showcase-card .tk-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ Replica product page ============================ */
.plane-card.replica-page-card {
  width: min(1680px, 92vw);
  height: 4000px;
  padding: 72px 60px 64px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 4%, rgba(86, 168, 242, 0.17), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.replica-hero {
  max-width: 920px;
  margin: 0 auto 64px;
}

.replica-hero .card-tag { margin-bottom: 16px; }
.replica-hero h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.replica-lead {
  max-width: 760px;
  margin: 0 auto !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.replica-hero-graphic {
  position: relative;
  width: min(620px, 100%);
  height: 182px;
  margin: 26px auto 0;
}
.replica-graphic-link {
  position: absolute;
  top: 83px;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #8bc1f8, #5ea7ed 48%, #7db8f4);
}
.replica-graphic-orbit {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}
.replica-graphic-orbit-one {
  width: 170px;
  height: 170px;
  top: 2px;
  left: 50%;
  border: 1px solid rgba(94, 167, 237, 0.32);
  transform: translateX(-50%);
}
.replica-graphic-orbit-two {
  width: 110px;
  height: 110px;
  top: 32px;
  left: 50%;
  background: rgba(94, 167, 237, 0.07);
  transform: translateX(-50%);
}
.replica-graphic-node {
  position: absolute;
  top: 42px;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  color: var(--navy-700);
  background: #e8f3ff;
  box-shadow: 0 12px 24px rgba(42, 65, 108, 0.11);
}
.replica-graphic-node [data-icon] { width: 25px; height: 25px; }
.replica-graphic-node small { font-size: 10px; font-weight: 800; }
.replica-graphic-node-app { left: 5%; }
.replica-graphic-node-bridge {
  top: 57px;
  left: 50%;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: var(--navy-700);
  transform: translateX(-50%);
}
.replica-graphic-node-bridge [data-icon] { width: 20px; height: 20px; }
.replica-graphic-node-bridge small { display: none; }
.replica-graphic-node-ext { right: 5%; color: var(--navy-700); background: #e4f1ff; }

.replica-demos {
  max-width: 1540px;
  margin: 0 auto 66px;
  padding: 52px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
}
.replica-section-heading { max-width: 760px; margin: 0 auto 42px; }
.replica-section-heading > span,
.replica-info-heading > span {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.replica-section-heading h3,
.replica-info-heading h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.replica-section-heading p { margin: 0 !important; font-size: 14px !important; line-height: 1.6 !important; }

.replica-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  text-align: left;
}
.replica-demo-panel {
  min-width: 0;
  container-type: inline-size;
  --demo-scale: min(0.814815, calc(100cqi / 1728px));
  padding: 0;
}
.replica-demo-head {
  display: flex;
  min-height: 116px;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.replica-demo-head .card-tag { margin-bottom: 8px; }
.replica-demo-head h4 { margin: 0 0 8px; color: var(--slate-900); font-size: 22px; }
.replica-demo-head p { max-width: 760px; margin: 0 !important; font-size: 14px !important; line-height: 1.58 !important; }
.replica-tour-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(27, 73, 129, 0.2);
  border-radius: 11px;
  color: var(--navy-700);
  background: var(--navy-100);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.replica-tour-button:hover { background: #dcecff; }

.popup-frame-wrap {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3), 0 16px 34px rgba(42, 65, 108, 0.1);
}
.popup-frame {
  display: block;
  border: none;
  transform-origin: top left;
}
.replica-demo-panel .popup-frame-wrap {
  position: relative;
  width: min(1408px, 100%);
  height: auto;
  aspect-ratio: 1728 / 1080;
  margin: 0 auto;
}
.replica-demo-panel .popup-frame {
  position: absolute;
  inset: 0;
  width: 1728px;
  height: 1080px;
  transform: scale(var(--demo-scale));
}

.replica-info-section {
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
}
.replica-info-heading {
  max-width: 940px;
  margin: 0 0 30px;
}
.replica-info-heading h3 { font-size: 30px; }
.replica-info-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
}
.replica-info-list li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
}
.replica-info-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-top: 1px;
  color: var(--navy-700);
}
.replica-info-icon svg { width: 28px; height: 28px; }
.replica-info-list li:nth-child(2) .replica-info-icon { color: #2563b8; }
.replica-info-list li:nth-child(3) .replica-info-icon { color: var(--cyan-text); }
.replica-info-list li:nth-child(5) .replica-info-icon { color: var(--pink-text); }
.replica-info-list p {
  margin: 0 !important;
  color: var(--slate-600);
  font-size: 16px !important;
  line-height: 1.58 !important;
}
.replica-info-list strong { color: var(--slate-900); }

@media (max-width: 900px) {
  .plane-card.replica-page-card { width: min(820px, 92vw); height: 3200px; padding: 56px 32px 50px; }
  .replica-hero h2 { font-size: 40px; }
  .replica-demo-head { min-height: 134px; }
  .replica-info-list p { font-size: 15px !important; }
}

@media (max-width: 600px) {
  .plane-card.replica-page-card { width: min(620px, 92vw); height: 3100px; padding: 44px 22px 42px; }
  .replica-hero { margin-bottom: 46px; }
  .replica-hero h2 { font-size: 33px; }
  .replica-lead { font-size: 15px !important; }
  .replica-hero-graphic { height: 150px; transform: scale(0.82); transform-origin: top center; margin-bottom: -24px; }
  .replica-demos { margin-bottom: 48px; padding: 42px 0; }
  .replica-section-heading { margin-bottom: 32px; }
  .replica-demo-grid { gap: 48px; }
  .replica-demo-head { min-height: 160px; flex-direction: column; gap: 12px; }
  .replica-info-heading h3 { font-size: 25px; }
  .replica-info-list li { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 19px 0; }
  .replica-info-icon { width: 30px; height: 30px; }
  .replica-info-icon svg { width: 24px; height: 24px; }
  .replica-info-list p { font-size: 14px !important; }
}
/* How-it-works flow cards */
.howto-card {
  width: 620px;
}

.howto-card h2 {
  margin: 6px 0 6px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 0 14px;
}

.flow-stage {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.flow-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--navy-700, #1e3a8a);
}

.flow-dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
}

.dot-ext {
  background: #2563eb;
}

.dot-hub {
  background: #9333ea;
}

.dot-app {
  background: #0f766e;
}

.flow-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-body strong {
  font-size: 13px;
  color: var(--slate-900);
}

.flow-body span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate-600);
}

.flow-arrow {
  width: 2px;
  height: 18px;
  margin: 4px 0 4px 26px;
  background: rgba(100, 116, 139, 0.45);
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(100, 116, 139, 0.6);
}

.flow-arrow-two {
  margin-left: 7px;
}

.flow-arrow-two::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid rgba(100, 116, 139, 0.6);
}

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-700, #1e3a8a);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}

.flow-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-600);
  margin: 0;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.demo-header h2 {
  margin: 0;
  font-size: 17px;
}

.demo-flag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-text);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  padding: 3px 8px;
  border-radius: 999px;
}

.demo-grid {
  display: grid;
  gap: 12px;
}

.app-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "groups timers"
    "schedule settings";
}


.demo-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.demo-box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.demo-box-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}

.demo-box-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  font-variant-numeric: tabular-nums;
}

.demo-list {
  overflow-y: auto;
  max-height: 168px;
}

.demo-empty {
  font-size: 12px;
  color: var(--slate-400);
  margin: 6px 0;
}

/* Rows */
.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.demo-row:last-child {
  border-bottom: none;
}

.demo-row-main {
  flex: 1;
  min-width: 0;
}

.demo-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
}

.demo-row-sub {
  font-size: 11.5px;
  color: var(--slate-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Small icon buttons (reorder / delete) — override global button */
.demo-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
  font-size: 13px;
  background: var(--slate-50);
  color: var(--slate-600);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.demo-icon-btn:hover {
  background: #fff;
}

/* Action button rows — make demo buttons compact + consistent */
.demo-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.demo-box button {
  font-size: 12px;
  padding: 7px 12px;
}

.demo-inline-form {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.demo-inline-form.open {
  display: block;
}

.demo-field {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-input,
.demo-textarea {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-button);
  font-size: 13px;
  font-family: var(--font);
  background: var(--slate-50);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
  margin-bottom: 8px;
}

.demo-inline-form .demo-input:last-of-type {
  margin-bottom: 0;
}

.demo-textarea {
  min-height: 70px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.demo-input:focus,
.demo-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--navy-700), 0 0 0 3px var(--navy-ring);
}

/* Toggle switch */
.demo-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 23px;
  flex-shrink: 0;
}

.demo-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.demo-switch span {
  position: absolute;
  inset: 0;
  background: var(--slate-200);
  border-radius: 999px;
  transition: background 0.18s;
}

.demo-switch span::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
}

.demo-switch input:checked + span {
  background: var(--navy-700);
}

.demo-switch input:checked + span::before {
  transform: translateX(17px);
}

/* Range slider */
.demo-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.demo-range-row input[type="range"] {
  flex: 1;
  accent-color: var(--navy-700);
}

.demo-range-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: var(--slate-600);
  min-width: 70px;
  text-align: right;
}

/* Day pills */
.demo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.demo-daypill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-500);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.demo-daypill.on {
  background: var(--navy-700);
  color: #fff;
  box-shadow: none;
}

/* Freeze banner */
.demo-freeze {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-button);
  background: var(--navy-100);
  color: var(--navy-700);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 10px;
}

.demo-freeze.on {
  display: flex;
}

.demo-freeze-clock {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.demo-freeze-label {
  flex: 1;
}

/* Toast */
.demo-toast-wrap {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

.demo-toast {
  background: var(--slate-900);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-panel);
  animation: demoToastIn 0.2s ease;
}

.demo-toast::before {
  content: "✓ ";
  color: #4ade80;
}

@keyframes demoToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plane-card,
  .download-tile,
  button,
  .world {
    transition: none !important;
  }
}

/* ====================================================================== *
 * Symbolic line icons (injected from icon-set.js via icons-inject.js)
 * Bold, single-weight, no fills — the same hand as the program icons.
 * ====================================================================== */
.inj-ico {
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 2;
  color: inherit;
  transition: transform 160ms ease;
}

/* Card tags get a small leading glyph */
.plane-card .card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.plane-card .card-tag .inj-ico {
  width: 12px;
  height: 12px;
}

/* Feature bullets */
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.feature-list li .inj-ico {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--navy-700);
}

/* Download tiles — leading product glyph, info expands, button to the right */
.download-tile {
  justify-content: flex-start;
  gap: 12px;
}
.download-tile .inj-ico {
  width: 24px;
  height: 24px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 11px;
  background: var(--navy-100);
  color: var(--navy-700);
}
.download-tile-info {
  flex: 1 1 auto;
}

/* Platform rows — glyph replaces the old colored dot */
.platform-row {
  align-items: center;
}
.platform-row .inj-ico {
  width: 26px;
  height: 26px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-700);
}
.platform-row:nth-of-type(2) .inj-ico {
  background: var(--cyan-50);
  color: var(--cyan-text);
}
.platform-row:nth-of-type(3) .inj-ico {
  background: var(--pink-50);
  color: var(--pink-text);
}

/* Docs tabs */
.docs-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.docs-tabs button .inj-ico {
  width: 14px;
  height: 14px;
}

/* YouTube box titles */
.yt-box-title {
  display: flex;
  align-items: center;
  gap: 7px;
}
.yt-box-title .inj-ico {
  width: 16px;
  height: 16px;
  color: var(--navy-700);
}

/* Flow / AI step bodies — glyph spans both text rows on the left */
.flow-body[data-icon],
.ai-step-body[data-icon] {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 11px;
}
.flow-body[data-icon] .inj-ico,
.ai-step-body[data-icon] .inj-ico {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 22px;
  height: 22px;
  color: var(--navy-700);
}
.flow-body[data-icon] strong,
.ai-step-body[data-icon] strong {
  grid-column: 2;
  grid-row: 1;
}
.flow-body[data-icon] span,
.ai-step-body[data-icon] span {
  grid-column: 2;
  grid-row: 2;
}

/* Hover micro-interaction: tag glyph gives a tiny nudge */
.plane-card:not(.no-lift):hover .card-tag .inj-ico {
  transform: scale(1.18) rotate(-4deg);
}

/* ====================================================================== *
 * Stat chips
 * ====================================================================== */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.stat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--navy-100);
  line-height: 1.1;
}
.stat-chip b {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-700);
}
.stat-chip i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate-500);
}

/* ====================================================================== *
 * "Custom rules with AI" card
 * ====================================================================== */
.ai-card {
  width: 460px;
}
.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}
.ai-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ai-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--navy-700);
}
.ai-step-body strong {
  display: block;
  font-size: 13px;
  color: var(--slate-900);
}
.ai-step-body span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-600);
}
.ai-prompt {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  background: var(--slate-50);
  padding: 12px;
}
.ai-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
}
.ai-prompt code {
  display: block;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate-800);
}

/* ====================================================================== *
 * Demo "Show me how" trigger
 * ====================================================================== */
/* Icon-only "show me how" trigger that launches the in-replica guided tour. */
.show-how.icon-btn {
  margin-left: auto;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--navy-300);
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-700);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.show-how.icon-btn:hover {
  background: var(--navy-300);
  transform: translateY(-1px) rotate(-8deg);
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
}
.show-how.icon-btn .inj-ico {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* ====================================================================== *
 * In-replica guided tour — dashed bounding box + companion instruction card
 * ====================================================================== */
/* The overlay never blocks the page: it is a pure pass-through layer so the
   user can click any control in the replica freely. Only the small companion
   card re-enables pointer events for its own Skip / Back buttons. */
.rtour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  z-index: 90;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.rtour-overlay.is-visible {
  opacity: 1;
}

/* Dashed box drawn around the current UI target — just a line, no tint/fill,
   with a soft white halo so it stays legible over any background. */
.rtour-box {
  position: absolute;
  border: 2.5px dashed #2f6fd0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: top 200ms ease, left 200ms ease, width 200ms ease, height 200ms ease;
}

/* A fixed-in-world field guide placed beside the first resolved target. */
.rtour-tip {
  position: absolute;
  width: 340px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(3, 12, 28, 0.26), inset 0 0 0 1px rgba(148, 163, 184, 0.28);
  pointer-events: none;
}
/* Only re-enable clicks on the card while the tour is actually showing, so a
   leftover (hidden) card never blocks the replica underneath it. */
.rtour-overlay.is-visible .rtour-tip {
  pointer-events: auto;
}
.rtour-step {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--navy-100);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 0 0 10px;
}
.rtour-title {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.22;
  color: var(--slate-900);
}
.rtour-summary {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-600);
}
.rtour-details {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 13px;
  list-style: none;
}
.rtour-details li {
  position: relative;
  padding-left: 16px;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 1.45;
}
.rtour-details li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f87d8;
  box-shadow: 0 0 0 3px rgba(79, 135, 216, 0.12);
}
.rtour-action {
  display: block;
  margin: 0 0 13px;
  padding: 10px 11px 10px 30px;
  position: relative;
  border-radius: 6px;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-700);
}
.rtour-action::before {
  content: "\2713";
  position: absolute;
  top: 10px;
  left: 11px;
  font-style: normal;
  font-weight: 800;
}
.rtour-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}
.rtour-actions button {
  min-width: 62px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--slate-200);
  color: var(--slate-600);
}
.rtour-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ====================================================================== *
 * Animated mini-diagrams — sequential pulse along the flow steps
 * ====================================================================== */
@keyframes coachPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}
@keyframes stepPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 58, 138, 0); }
  35% { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(86, 168, 242, 0.22); }
}
@keyframes arrowFlow {
  0% { transform: translateY(-6px); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0.2; }
}

@media (prefers-reduced-motion: no-preference) {
  .flow .flow-num,
  .flow .flow-dot {
    animation: stepPulse 2.6s ease-in-out infinite;
  }
  .flow .flow-stage:nth-of-type(2) .flow-num,
  .flow .flow-stage:nth-of-type(2) .flow-dot {
    animation-delay: 0.45s;
  }
  .flow .flow-stage:nth-of-type(3) .flow-num,
  .flow .flow-stage:nth-of-type(3) .flow-dot {
    animation-delay: 0.9s;
  }
  .flow-arrow {
    animation: arrowFlow 2.6s ease-in-out infinite;
  }
  .flow-arrow.flow-arrow-two {
    animation-delay: 0.45s;
  }
}

/* ====================================================================== *
 * Bigger, unmistakable icons
 * ====================================================================== */
.plane-card .card-tag .inj-ico {
  width: 14px;
  height: 14px;
}
.feature-list li .inj-ico {
  width: 19px;
  height: 19px;
}
.download-tile .inj-ico {
  width: 26px;
  height: 26px;
}
.platform-row .inj-ico {
  width: 28px;
  height: 28px;
}

/* Large corner "spot" badge — reads clearly even at the opening zoom */
.card-spot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(150deg, #243a63, #0d1830);
  box-shadow: 0 6px 16px rgba(8, 20, 40, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 3;
  pointer-events: none;
}
.spot-ico {
  width: 26px;
  height: 26px;
  stroke: #cfe2ff;
  stroke-width: 2;
  fill: none;
}
.plane-card[data-spot] > h2 {
  padding-right: 54px;
}
/* The big content cards already have rich headers — keep their corners clean */
.demo-card .card-spot,
.docs-card .card-spot {
  display: none;
}
.demo-card[data-spot] .demo-header h2 {
  padding-right: 0;
}

/* ====================================================================== *
 * "By the numbers" stats card
 * ====================================================================== */
.stats-card {
  width: 332px;
}
.num-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.num-cell {
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--navy-100);
  text-align: center;
}
.num-cell b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-700);
}
.num-cell span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
}

/* ====================================================================== *
 * Global statistics panel (hourly time-series charts)
 * ====================================================================== */
.gstats-card {
  width: 980px;
  max-width: 92vw;
}
.gstats-card .stats-header h2 { margin: 10px 0 5px; font-size: 26px; }
.gstats-card .stats-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate-500);
}
.stats-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
}
.stats-range {
  display: inline-flex;
  border: 1px solid var(--navy-100);
  border-radius: 999px;
  overflow: hidden;
}
.stats-range button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-500);
  cursor: pointer;
}
.stats-range button + button { border-left: 1px solid var(--navy-100); }
.stats-range button:hover { background: var(--navy-100); }
.stats-range button.active {
  background: var(--navy-700);
  color: #fff;
}
.stats-log {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  user-select: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-tile {
  padding: 14px 14px 8px;
  border-radius: var(--radius-card);
  background: var(--navy-100);
}
.stat-tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.stat-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-700);
}
.stat-tile-now {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.stat-chart-wrap { width: 100%; }
.stat-chart {
  width: 100%;
  height: 124px;
  display: block;
}
.stat-grid { stroke: rgba(15, 23, 42, 0.08); stroke-width: 1; }
.stat-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stat-area { opacity: 0.12; stroke: none; }
.stat-dot { stroke: #fff; stroke-width: 1; }
.stat-axis {
  font-size: 9px;
  font-weight: 600;
  fill: var(--slate-500);
}
.stat-chart-empty { font-size: 11px; fill: var(--slate-500); }
@media (max-width: 560px) {
  .gstats-card { width: 92vw; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ====================================================================== *
 * "Get started" card
 * ====================================================================== */
.start-card {
  width: 332px;
}
.start-steps {
  counter-reset: step;
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.start-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 11px;
  align-items: center;
  padding-left: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--slate-600);
}
.start-steps li .inj-ico {
  grid-column: 1;
  width: 22px;
  height: 22px;
  color: var(--navy-700);
}
.start-steps li strong {
  color: var(--slate-900);
}
.start-cta {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-button);
  background: var(--navy-700);
  color: #fff;
  cursor: pointer;
}
.start-cta:hover {
  filter: brightness(1.08);
}

/* ====================================================================== *
 * "Who it's for" — expandable tiles
 * ====================================================================== */
.usecase-card {
  width: 340px;
}
.usecase-hint {
  font-size: 12px;
  color: var(--slate-500);
}
.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usecase {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.usecase:hover {
  border-color: var(--navy-300);
  box-shadow: var(--shadow-card);
}
.usecase .inj-ico {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  color: var(--navy-700);
}
.usecase strong {
  grid-column: 2;
  font-size: 13px;
  color: var(--slate-900);
}
.usecase strong::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--slate-400);
}
.usecase.open strong::after {
  content: "–";
}
.usecase span {
  grid-column: 2;
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-600);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
}
.usecase.open span {
  max-height: 120px;
  opacity: 1;
  margin-top: 5px;
}

/* ====================================================================== *
 * "What gets blocked" — before / after
 * ====================================================================== */
.blocked-card {
  width: 360px;
}
.ba-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--slate-200);
  margin: 4px 0 12px;
}
.ba-btn {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
}
.ba-btn.is-active {
  background: #fff;
  color: var(--navy-700);
  box-shadow: var(--shadow-card);
}
.ba-stage {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-card);
  background: var(--slate-50);
  font-size: 12.5px;
  color: var(--slate-800);
  transition: opacity 220ms ease, background 220ms ease;
}
.ba-row .inj-ico {
  width: 18px;
  height: 18px;
  color: var(--slate-600);
}
.ba-row::after {
  content: "live";
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pink-text);
}
.ba-stage[data-state="after"] .ba-row {
  opacity: 0.55;
  background: var(--cyan-50);
}
.ba-stage[data-state="after"] .ba-row span {
  text-decoration: line-through;
}
.ba-stage[data-state="after"] .ba-row .inj-ico {
  color: var(--cyan-text);
}
.ba-stage[data-state="after"] .ba-row::after {
  content: "blocked";
  color: var(--cyan-text);
}
.ba-caption {
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-500);
  margin: 0;
}

/* ====================================================================== *
 * Interactive manual — a band of boxes, each pairing beginner-friendly
 * copy with a display-only HTML/CSS reference panel.
 * Driven by js/manual.js (lazy loading + the Next/Back tour).
 * ====================================================================== */
.manual-card {
  width: 720px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manual-card > h2 {
  font-size: 21px;
  line-height: 1.2;
  margin: 2px 0 0;
  color: var(--slate-900);
}

.manual-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-700);
}

.manual-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manual-copy .m-sec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.manual-copy .m-sec h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--slate-900);
}
.manual-copy .m-sec p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-600);
}
.manual-copy .m-sec p + p {
  margin-top: 6px;
}

/* Download/access links inside a manual box. */
.manual-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px !important;
}
.manual-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-100, #eef2fb);
  color: var(--navy-700, #2f4d8a);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(47, 77, 138, 0.16);
  transition: background 0.15s ease, transform 0.15s ease;
}
.manual-links a:hover {
  background: var(--navy-200, #e0e7f8);
  transform: translateY(-1px);
}

/* Web vs App contrast — two labelled notes side by side. */
.plat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.plat-note {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate-700);
  border: 1px solid transparent;
}
.plat-note .plat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.plat-note .plat-tag .inj-ico {
  width: 12px;
  height: 12px;
}
.plat-note.web {
  background: #eef5ff;
  border-color: #d6e6ff;
}
.plat-note.web .plat-tag {
  color: #1c5ca8;
}
.plat-note.app {
  background: #f3f0ff;
  border-color: #e2dbff;
}
.plat-note.app .plat-tag {
  color: #6d54c8;
}
.plat-note.single {
  grid-column: 1 / -1;
}
.plat-note strong {
  color: var(--slate-900);
}

/* Tutorial reference panel. */
.manual-slice {
  margin-top: 4px;
}
/* The final fixed dimensions are set with the tutorial overrides below. */
.manual-slice-wrap {
  position: relative;
  width: 360px;
  height: 240px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
  transition: width 200ms ease, height 200ms ease;
}
.cb-manual-frame {
  display: block;
  border: none;
  transform-origin: top left;
  transform: scale(0.7);
  background: #fff;
}
.manual-slice-wrap::after {
  content: "Loading reference…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--slate-400);
  pointer-events: none;
}
.manual-slice-wrap[data-fitted="1"]::after {
  display: none;
}

/* ---- Chain library picker (#6) ---- */
.cb-chain-toggle {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: var(--slate-900, #0f1b2e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(8, 17, 33, 0.3);
}
.cb-chain-toggle span {
  font-size: 16px;
  line-height: 1;
}
.cb-chain-toggle:hover {
  background: #16263f;
}
.cb-chain-panel {
  position: fixed;
  left: 18px;
  bottom: 70px;
  z-index: 61;
  width: 300px;
  max-height: min(64vh, 560px);
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(8, 17, 33, 0.28);
  overflow: hidden;
}
.cb-chain-panel.is-open {
  display: flex;
}
.cb-chain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-900, #0f1b2e);
  border-bottom: 1px solid var(--slate-200, #e2e8f0);
}
.cb-chain-x {
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--slate-400, #94a3b8);
  padding: 2px 4px;
}
.cb-chain-scroll {
  overflow-y: auto;
  padding: 8px 12px 14px;
}
.cb-chain-group {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400, #94a3b8);
  margin: 12px 2px 6px;
}
.cb-chain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cb-chain-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1.5px solid var(--slate-200, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.cb-chain-item:hover {
  background: #eef4ff;
}
.cb-chain-item.is-active {
  border-color: #56a8f2;
  background: #e7f1fe;
}
.cb-chain-none {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--slate-600, #475569);
  margin-bottom: 2px;
}
.cb-chain-sample {
  display: block;
  line-height: 0;
}
.cb-chain-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-600, #475569);
}

/* ====================================================================== *
 * Creator Q&A — Reddit-style feed (upper part)
 * ====================================================================== */
.qa-card {
  width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qa-card .card-spot { display: none; }
.qa-card[data-spot] > .qa-header h2 { padding-right: 0; }

.qa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qa-header h2 { margin: 0; font-size: 18px; }
.qa-sort {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 3px;
}
.qa-sort-btn {
  border: 0;
  background: transparent;
  font: 700 12px var(--font);
  color: var(--slate-600);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.qa-sort-btn.is-active {
  background: #fff;
  color: var(--navy-700);
  box-shadow: var(--shadow-card);
}
.qa-intro {
  margin: 0 !important;
  font-size: 12.5px;
  color: var(--slate-500);
}

/* Filter + topic chips */
.qa-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qa-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.qa-tag-row { padding-top: 2px; border-top: 1px dashed var(--slate-200); }
.qa-chip {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-600);
  font: 700 11.5px var(--font);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease, border-color 100ms ease;
}
.qa-chip:hover { border-color: var(--navy-300, #b9c6ec); color: var(--navy-700); }
.qa-chip.is-active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.qa-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}
.qa-empty {
  margin: 0 !important;
  padding: 18px;
  text-align: center;
  color: var(--slate-500);
}

/* A post / comment row: vote rail on the left, content on the right */
.qa-post {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
}
.qa-post.is-pinned {
  border-color: var(--gold-300, #f0d49a);
  background: linear-gradient(180deg, var(--gold-50, #fff8ec), #fff 60%);
}
.qa-main { flex: 1; min-width: 0; }

/* Badge row above the title */
.qa-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}
.qa-badge {
  display: inline-flex;
  align-items: center;
  font: 800 10.5px var(--font);
  letter-spacing: 0.01em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.qa-badge.is-tag { background: var(--slate-100, #eef1f6); color: var(--slate-600); border-color: var(--slate-200); }
.qa-badge.is-pin { background: var(--gold-100, #fbeccb); color: #9a6a16; border-color: var(--gold-300, #f0d49a); }
.qa-badge.is-answered { background: #e6f6ec; color: #1f8a4c; border-color: #bfe6cc; }
.qa-badge.is-creator {
  margin-left: 6px;
  background: var(--navy-100, #e7ecfa);
  color: var(--navy-700);
  border-color: var(--navy-200, #c7d3f3);
  font-size: 9.5px;
  padding: 1px 6px;
}

.qa-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
}

/* Admin controls (pin + retag), only rendered for the creator account */
.qa-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 6px 8px;
  background: var(--navy-50, #f3f6fd);
  border: 1px dashed var(--navy-200, #c7d3f3);
  border-radius: 8px;
}
.qa-admin-btn {
  border: 1px solid var(--navy-300, #b9c6ec);
  background: #fff;
  color: var(--navy-700);
  font: 700 11.5px var(--font);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.qa-admin-btn:hover { background: var(--navy-100, #e7ecfa); }
.qa-admin-btn.is-on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.qa-admin-btn:disabled { opacity: 0.6; cursor: default; }
.qa-meta {
  font-size: 11.5px;
  color: var(--slate-500);
  margin-bottom: 6px;
}
.qa-author { font-weight: 700; color: var(--slate-600); }

.qa-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-800);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.qa-body p { margin: 0 0 8px !important; font-size: 13px !important; color: var(--slate-800) !important; }
.qa-body p:last-child { margin-bottom: 0 !important; }
.qa-body ul, .qa-body ol { margin: 4px 0 8px; padding-left: 20px; font-size: 13px; color: var(--slate-800); }
.qa-body code {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 5px;
  padding: 0 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}
.qa-body a { color: var(--navy-700); }
.qa-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  margin: 6px 0;
  display: block;
}
.qa-body blockquote {
  margin: 6px 0;
  padding: 2px 10px;
  border-left: 3px solid var(--slate-200);
  color: var(--slate-600);
}
.qa-body pre {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  font-size: 12px;
}

/* Vote rail */
.qa-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex: 0 0 30px;
  user-select: none;
}
.qa-up, .qa-down {
  border: 0;
  background: transparent;
  color: var(--slate-400);
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 100ms ease, background 100ms ease;
}
.qa-up:hover { color: #e0792b; background: var(--gold-50); }
.qa-down:hover { color: #4f7bd6; background: var(--navy-100); }
.qa-vote.is-up .qa-up { color: #e0792b; }
.qa-vote.is-down .qa-down { color: #3f6fd1; }
.qa-score {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--slate-600);
  min-width: 18px;
  text-align: center;
}
.qa-vote.is-up .qa-score { color: #c2630f; }
.qa-vote.is-down .qa-score { color: #2f5fc0; }

/* Comments */
.qa-comments-toggle {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font: 700 12px var(--font);
  padding: 4px 0;
  cursor: pointer;
}
.qa-comments-toggle:hover { color: var(--navy-700); }
.qa-comments-toggle.is-open { color: var(--navy-700); }
.qa-comments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--slate-200);
  padding-top: 8px;
}
/* The `hidden` attribute must beat the `display:flex` above (class-only) — this
   selector (class + attr) wins, so "Hide comments" actually collapses the box. */
.qa-comments[hidden] { display: none; }
.qa-comment {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--slate-200);
  background: var(--slate-50);
  border-radius: 8px;
}
.qa-comment[hidden] { display: none; }
.qa-comment .qa-vote { flex-basis: 24px; }
.qa-comment .qa-up, .qa-comment .qa-down { font-size: 12px; }

/* A creator/admin reply stands out as the official answer */
.qa-comment.is-creator-comment {
  border-left-color: var(--navy-700);
  background: var(--navy-50, #f3f6fd);
}

/* Per-comment collapse toggle — vertically centred in the comment row, with the
   +/- glyph centred inside the button. */
.qa-collapse {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-500);
  font: 800 13px/1 var(--font);
  border-radius: 5px;
  cursor: pointer;
}
.qa-collapse:hover { color: var(--navy-700); border-color: var(--navy-300, #b9c6ec); }
.qa-comment.is-collapsed { opacity: 0.75; }

/* Per-post / per-comment actions row (toggle + reply) */
.qa-post-actions { display: flex; align-items: center; gap: 14px; }
.qa-reply-btn {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font: 700 12px var(--font);
  padding: 4px 0;
  cursor: pointer;
}
.qa-reply-btn:hover { color: var(--navy-700); }
.qa-reply-slot:empty { display: none; }
.qa-reply-slot { margin-top: 8px; }

/* Comment action row (reply / edit / delete) */
.qa-comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.qa-comment-actions .qa-reply-btn { margin-top: 0; }
.qa-edit-btn, .qa-del-btn, .qa-post-edit-btn, .qa-post-del-btn {
  border: 1px solid var(--navy-100);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-500);
  font: 700 12px var(--font);
  padding: 3px 12px;
  cursor: pointer;
}
.qa-edit-btn, .qa-post-edit-btn { color: var(--navy-700); border-color: var(--navy-200, #c7d6ec); }
.qa-edit-btn:hover, .qa-post-edit-btn:hover { background: var(--navy-100); }
.qa-del-btn, .qa-post-del-btn { color: #b4452f; border-color: #e7c4bc; }
.qa-del-btn:hover, .qa-post-del-btn:hover { background: #fbece8; }
/* Tombstoned (deleted-but-kept) comments */
.qa-comment.is-deleted .qa-body { color: var(--slate-400); font-style: italic; }

/* Link-insert modal (fixed overlay, sits above the canvas transform) */
.qa-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}
.qa-modal {
  width: min(420px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}
.qa-modal-title { font: 800 15px var(--font); color: var(--slate-900); }
.qa-modal-input {
  font: 500 13px var(--font);
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 9px 11px;
}
.qa-modal-input:focus { outline: 2px solid var(--navy-200, #c7d3f3); border-color: var(--navy-300, #b9c6ec); }
.qa-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Footer */
.qa-feed-foot { display: flex; justify-content: center; }
#qaLoadMore { font-size: 12px; padding: 6px 16px; }

/* ====================================================================== *
 * Composer (the "lower part") — new question + inline replies
 * ====================================================================== */
.qa-composer-slot { margin-top: 4px; }
.qa-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--slate-200);
  padding-top: 12px;
}
.qa-composer.is-reply {
  border-top: 0;
  padding: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
}
.qa-composer-title { margin: 0; font-size: 14px; font-weight: 800; color: var(--slate-900); }
.qa-composer-hint { margin: 0 !important; font-size: 11.5px; color: var(--slate-500); }
.qa-input {
  font: 600 13px var(--font);
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.qa-input:focus, .qa-textarea:focus { outline: 2px solid var(--navy-200, #c7d3f3); border-color: var(--navy-300, #b9c6ec); }

/* Tag picker (new question) */
.qa-tagpick { display: flex; flex-wrap: wrap; gap: 5px; }
.qa-tagpick-chip {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-600);
  font: 700 11px var(--font);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.qa-tagpick-chip:hover { border-color: var(--navy-300, #b9c6ec); color: var(--navy-700); }
.qa-tagpick-chip.is-on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* Markdown toolbar */
.qa-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.qa-tool {
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-700, #334155);
  font: 700 11.5px var(--font);
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  min-width: 28px;
}
.qa-tool:hover { background: var(--slate-50); border-color: var(--navy-300, #b9c6ec); color: var(--navy-700); }
.qa-tool.is-on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.qa-textarea {
  font: 500 13px/1.5 var(--font);
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  resize: vertical;
  min-height: 70px;
}
/* The new-question editor is ~3x the reply editor's height. */
.qa-composer:not(.is-reply) .qa-textarea { min-height: 240px; }
.qa-preview {
  border: 1px dashed var(--slate-200);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}

.qa-composer-actions { display: flex; align-items: center; gap: 8px; }
.qa-submit {
  border: 0;
  background: var(--navy-700);
  color: #fff;
  font: 700 13px var(--font);
  padding: 8px 16px;
  border-radius: var(--radius-button);
  cursor: pointer;
}
.qa-submit:hover { background: #1b3478; }
.qa-submit:disabled { opacity: 0.55; cursor: default; }
.qa-cancel {
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600);
  font: 700 12.5px var(--font);
  padding: 7px 14px;
  border-radius: var(--radius-button);
  cursor: pointer;
}
.qa-cancel:hover { background: var(--slate-50); }

/* Clear-tags chip in the filter bar */
.qa-chip-clear { color: #b4452f; border-color: #eccac1; background: #fdf1ee; }
.qa-chip-clear:hover { color: #8f3422; border-color: #e2a899; }

/* Main page narrative refinements */
.home-card .feature-bullets {
  list-style: disc;
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 1.35em;
  color: var(--slate-500);
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
  text-align: left;
}

.home-card .feature-bullets li {
  padding-left: 8px;
}

.home-card .feature-bullets li::marker,
.what-list li::marker {
  color: #1e40af;
  font-size: 1.18em;
}

.site-rule-copy .feature-bullets li::marker {
  color: #0f766e;
}

.platform-dom-intro .feature-bullets li::marker,
.freeze-snooze-copy .feature-bullets li::marker {
  color: #991b1b;
}

.what-adamancia-does {
  width: min(1120px, 100%);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.what-copy {
  max-width: 980px;
  margin-bottom: 34px;
  text-align: left;
}

.what-list {
  list-style: disc;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 1.35em;
  gap: 20px 56px;
}

.what-list li {
  display: list-item;
  min-height: 0;
  padding: 0 0 0 8px;
  border-radius: 0;
  background: transparent;
  color: var(--slate-600);
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
  box-shadow: none;
}

.what-list li::before {
  content: none;
}

.blocking-target-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.blocking-target-panel header {
  margin: 0 auto 18px;
  padding: 0 8px;
}

.blocking-target-carousel {
  padding: 8px 0;
}

@media (min-width: 1080px) {
  .product-shot-carousel,
  .website-rule-carousel,
  .blocking-universe-showcase,
  .bridge-budget-showcase,
  .schedule-rule-showcase,
  .custom-rule-showcase,
  .freeze-snooze-showcase {
    display: grid;
    grid-template-columns: minmax(300px, 0.38fr) minmax(0, 0.62fr);
    column-gap: 64px;
    row-gap: 28px;
    align-items: center;
    text-align: left;
  }

  .product-shot-carousel {
    grid-template-areas:
      "copy visual"
      "copy controls";
  }

  .product-shot-carousel .shot-copy {
    grid-area: copy;
    max-width: 480px;
    margin: 0;
  }

  .product-shot-carousel .shot-stage {
    grid-area: visual;
    max-width: none;
    height: 540px;
    margin: 0;
  }

  .product-shot-carousel .shot-controls {
    grid-area: controls;
    justify-self: center;
    margin-top: 0;
  }

  .website-rule-carousel {
    grid-template-areas:
      "copy rail"
      "copy description";
  }

  .website-rule-carousel .site-rule-copy {
    grid-area: copy;
    max-width: 480px;
    margin: 0;
  }

  .website-rule-carousel .site-rule-rail {
    grid-area: rail;
    max-width: none;
    margin: 0;
  }

  .website-rule-carousel .site-rule-description {
    grid-area: description;
    max-width: none;
    margin: 8px 0 0;
  }

  .blocking-universe-showcase {
    grid-template-areas: "copy panels";
  }

  .blocking-universe-showcase .blocking-universe-copy {
    grid-area: copy;
    max-width: 480px;
    margin: 0;
  }

  .blocking-universe-showcase .blocking-universe-panels {
    grid-area: panels;
    max-width: none;
    margin: 0;
    gap: 48px;
  }

  .bridge-budget-showcase,
  .schedule-rule-showcase,
  .custom-rule-showcase,
  .freeze-snooze-showcase {
    grid-template-areas: "copy demo";
  }

  .bridge-budget-copy,
  .schedule-rule-copy,
  .custom-rule-copy,
  .freeze-snooze-copy {
    grid-area: copy;
    max-width: 480px;
    margin: 0;
  }

  .bridge-budget-demo,
  .schedule-rule-demo,
  .custom-rule-demo,
  .freeze-snooze-demo {
    grid-area: demo;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .what-adamancia-does {
    padding: 0;
  }

  .what-copy {
    margin-bottom: 22px;
  }

  .what-list {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-left: 1.25em;
  }

  .what-list li {
    min-height: 0;
    padding: 0 0 0 6px;
    font-size: 18px;
    line-height: 1.6;
  }

  .what-list li::before {
    content: none;
  }

  .home-card .feature-bullets {
    gap: 13px;
    padding-left: 1.25em;
    font-size: 18px;
    line-height: 1.6;
  }

  .home-card .feature-bullets li {
    padding-left: 6px;
  }

  .blocking-target-panel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .blocking-target-panel header {
    padding: 0;
  }
}

/* Alternating proof sections: graphic/text, then text/graphic. */
@media (min-width: 1080px) {
  .product-shot-carousel {
    grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
    grid-template-areas:
      "visual copy"
      "controls copy";
  }

  .bridge-budget-showcase,
  .custom-rule-showcase {
    grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
    grid-template-areas: "demo copy";
  }

  .website-rule-carousel {
    grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
    grid-template-areas:
      "rail copy"
      "description copy";
  }

  .product-shot-carousel .shot-copy,
  .bridge-budget-copy,
  .custom-rule-copy,
  .website-rule-carousel .site-rule-copy {
    max-width: 500px;
  }

  .freeze-snooze-showcase {
    display: block;
    text-align: left;
  }

  .freeze-snooze-demo {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 92px;
    align-items: initial;
  }

  .freeze-snooze-pair {
    display: grid;
    width: min(1260px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(600px, 7fr) minmax(360px, 4fr);
    gap: 64px;
    align-items: center;
  }

  .snooze-pair {
    grid-template-columns: minmax(360px, 4fr) minmax(600px, 7fr);
  }

  .freeze-snooze-pair .freeze-snooze-copy {
    max-width: 520px;
    margin: 0;
  }

  .freeze-snooze-pair .freeze-control-panel,
  .freeze-snooze-pair .snooze-control-panel {
    width: 100%;
    min-width: 0;
  }

  .freeze-snooze-pair .snooze-control-panel {
    justify-self: stretch;
  }

  .freeze-copy .feature-bullets li::marker {
    color: #1e40af;
  }

  .snooze-copy .feature-bullets li::marker {
    color: #b45309;
  }
}

@media (max-width: 1079px) {
  .freeze-snooze-demo {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .freeze-snooze-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .freeze-pair .freeze-snooze-copy {
    order: -1;
  }

  .freeze-snooze-pair .freeze-snooze-copy {
    margin-bottom: 0;
  }
}

@media (max-width: 1279px) {
  .freeze-snooze-showcase {
    display: block;
  }

  .freeze-snooze-demo {
    width: min(760px, 100%);
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .freeze-snooze-pair,
  .snooze-pair {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .freeze-pair .freeze-snooze-copy,
  .snooze-pair .freeze-snooze-copy {
    order: -1;
    margin: 0;
  }

  .freeze-control-panel,
  .snooze-control-panel {
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .freeze-snooze-showcase {
    display: block;
    text-align: left;
  }

  .freeze-snooze-demo {
    width: min(1260px, 100%);
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 104px;
  }

  .freeze-snooze-pair {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(600px, 7fr) minmax(360px, 4fr);
    gap: 64px;
    align-items: center;
  }

  .snooze-pair {
    grid-template-columns: minmax(360px, 4fr) minmax(600px, 7fr);
  }

  .freeze-snooze-pair .freeze-snooze-copy {
    max-width: 520px;
    margin: 0;
  }

  .freeze-control-panel,
  .snooze-control-panel {
    width: 100%;
    min-width: 0;
  }
}

/* Final freeze/snooze sizing guardrails. Keep the intended X O / O X rows. */
.freeze-snooze-showcase {
  overflow: visible;
}

@media (min-width: 980px) {
  .freeze-snooze-demo {
    width: min(1320px, 100%);
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 108px;
  }

  .freeze-snooze-pair,
  .snooze-pair {
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
    gap: clamp(44px, 5vw, 78px);
  }

  .freeze-snooze-pair {
    grid-template-columns: minmax(560px, 690px) minmax(440px, 540px);
  }

  .snooze-pair {
    grid-template-columns: minmax(440px, 540px) minmax(560px, 690px);
  }

  .freeze-pair .freeze-snooze-copy,
  .snooze-pair .freeze-snooze-copy {
    order: 0;
  }

  .freeze-control-panel,
  .snooze-control-panel {
    width: 100%;
    max-width: 690px;
    justify-self: center;
  }

  .freeze-snooze-pair .freeze-snooze-copy {
    width: 100%;
    max-width: 540px;
    justify-self: center;
  }

  .freeze-snooze-copy h3 {
    max-width: 12.5em;
  }

  .home-card .freeze-snooze-copy .feature-bullets {
    max-width: 520px;
    gap: 16px;
    font-size: 18px;
    line-height: 1.58;
  }
}

@media (max-width: 979px) {
  .freeze-snooze-demo {
    width: min(680px, 100%);
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .freeze-snooze-pair,
  .snooze-pair {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: stretch;
  }

  .freeze-pair .freeze-snooze-copy,
  .snooze-pair .freeze-snooze-copy {
    order: -1;
  }

  .freeze-control-panel,
  .snooze-control-panel,
  .freeze-snooze-pair .freeze-snooze-copy {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }
}

/* Keep the two proof rows in the intended visual/text rhythm. */
@media (min-width: 980px) {
  .freeze-pair {
    grid-template-areas: "visual copy";
  }

  .snooze-pair {
    grid-template-areas: "copy visual";
  }

  .freeze-control-panel,
  .snooze-control-panel {
    grid-area: visual;
  }

  .freeze-snooze-pair .freeze-snooze-copy {
    grid-area: copy;
  }
}

@media (max-width: 979px) {
  .freeze-pair .freeze-snooze-copy,
  .snooze-pair .freeze-snooze-copy {
    order: 0;
  }
}

/* The YouTube replica now begins directly with the feed. */
.youtube-showcase-card .yt-replica-shell {
  height: 100%;
}

/* Free promise list restored from the archived panel. */
.home-free-section {
  width: min(1180px, 100%);
  margin: 84px auto 0;
  padding: 46px 54px 24px;
  color: var(--slate-700);
  background: #eef6ff;
  text-align: left;
}

.home-free-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.home-free-heading > span {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-free-heading h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 38px;
  line-height: 1.1;
  font-weight: 900;
}

.home-free-heading p {
  margin: 0;
  color: var(--slate-500);
  font-size: 17px;
  line-height: 1.55;
}

.home-free-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(30, 64, 175, 0.18);
}

.home-free-points li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(30, 64, 175, 0.14);
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.55;
}

.home-free-points li .inj-ico {
  width: 23px;
  height: 23px;
  margin-top: 1px;
  color: var(--navy-700);
}

.home-free-points strong {
  color: var(--slate-900);
}

@media (max-width: 600px) {
  .home-free-section {
    margin-top: 56px;
    padding: 32px 20px 16px;
  }

  .home-free-heading {
    margin-bottom: 20px;
  }

  .home-free-heading h3 {
    font-size: 30px;
  }

  .home-free-heading p,
  .home-free-points li {
    font-size: 15px;
  }

  .home-free-points li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 0;
  }

  .home-free-points li .inj-ico {
    width: 20px;
    height: 20px;
  }
}

/* Tutorial cards size themselves from their frozen static reference content. */
.manual-card {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 44px));
  height: auto;
  padding: 26px 28px 22px;
  overflow: visible;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%);
}

.manual-card:not([data-manual="0.05"]) .cb-bolt {
  display: none !important;
}

.tutorial-welcome-hero {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 0 0 8px;
  padding: 2px 0 8px;
  text-align: center;
}

.tutorial-vault-button {
  display: grid;
  width: 78px;
  height: 78px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.tutorial-vault-button svg {
  width: 78px;
  height: 78px;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(8, 20, 40, 0.18));
}

.tutorial-vault-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.tutorial-vault-button.is-vibrating {
  animation: tutorial-vault-vibrate 340ms ease-in-out;
}

.tutorial-vault-button.is-focused svg {
  filter: drop-shadow(0 0 0 5px rgba(86, 168, 242, 0.2)) drop-shadow(0 14px 24px rgba(8, 20, 40, 0.2));
}

.tutorial-welcome-brand strong {
  display: block;
  color: var(--slate-900);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.tutorial-welcome-brand span {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.35;
}

.manual-slice-wrap {
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
  transition: none;
}

.manual-slice-wrap .cb-manual-frame {
  display: block;
  width: 100% !important;
  height: auto;
  border: 0;
  transform: none !important;
  pointer-events: none;
  user-select: none;
}

.manual-slice-wrap::after {
  display: none;
}

.manual-graphic {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-top: 6px;
  padding-top: 6px;
  color: var(--navy-700);
}

.manual-graphic > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(219, 234, 254, 0.72);
}

.manual-graphic .inj-ico {
  width: 16px;
  height: 16px;
}

.manual-graphic > i {
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(86, 168, 242, 0.68), rgba(148, 163, 184, 0.22));
}

@keyframes tutorial-vault-vibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-2deg); }
  40% { transform: translateX(3px) rotate(2deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(2px) rotate(1deg); }
}

@media (max-width: 600px) {
  .manual-card {
    width: min(760px, calc(100vw - 44px));
    padding: 22px 20px 18px;
  }

  .tutorial-vault-button,
  .tutorial-vault-button svg {
    width: 66px;
    height: 66px;
  }

  .tutorial-welcome-brand strong {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-vault-button.is-vibrating {
    animation: none;
  }
}
