/* Piko Home 2026-11-28: Aligned 1:1 with PikoTheme client tokens (DESIGN_SYSTEM.md),
   single-layer 2+3 Bento Download Hub, Frosted Launch Sheets, and Multi-Device Adaptation. */

/* ---- 0. Client PikoTheme Semantic Tokens & Typography Parity (DESIGN_SYSTEM.md) ------------- */
:root {
  --canvas: #f5f5f3;
  --surface: #fcfcfb;
  --elevated: #efefed;
  --ink: #111111;
  --on-ink: #ffffff;
  --muted: #646469;
  --line: #e5e5ea;
  --wash: #efefed;
  --panel: #fcfcfb;
  --control-line: #d1d1d6;
}

:root[data-theme="dark"] {
  --canvas: #0b0b0a;
  --surface: #151515;
  --elevated: #1a1a19;
  --ink: #f4f4f4;
  --on-ink: #111111;
  --muted: #a1a1a6;
  --line: #28282b;
  --wash: #151515;
  --panel: #151515;
  --control-line: #3a3a3c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b0b0a;
    --surface: #151515;
    --elevated: #1a1a19;
    --ink: #f4f4f4;
    --on-ink: #111111;
    --muted: #a1a1a6;
    --line: #28282b;
    --wash: #151515;
    --panel: #151515;
    --control-line: #3a3a3c;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
}

html[lang="zh-Hant"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "PingFang SC", sans-serif;
}

/* Uniform footer link spacing & prompt footer crew detail reveal */
.footer-bottom a {
  min-width: 0;
}

.pkc-ready .pkc-detail {
  transition: opacity .32s cubic-bezier(.16, 1, .3, 1) .35s, transform .32s cubic-bezier(.16, 1, .3, 1) .35s;
}

/* ---- 1. Ultrawide container & Frosted Sticky Header Harmony ---------------------------------- */
@media (min-width: 1440px) {
  .container { width: min(100% - var(--page-gutter) * 2, 1140px); }
}

.site-header {
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  min-height: 76px;
  gap: clamp(14px, 2vw, 26px);
}

.site-nav {
  gap: clamp(12px, 1.45vw, 22px);
}

.site-nav a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 480;
  transition: color .16s ease;
}

.site-nav a:hover {
  text-decoration: none;
}

/* Unify language + theme controls into matching sleek 36px (44px touch) chrome */
.site-header .header-actions {
  gap: 8px;
}

.site-header .language-control {
  min-height: 36px;
  min-width: 0;
}

.site-header .language-control select {
  height: 36px;
  min-height: 36px;
  max-width: 112px;
  padding: 0 10px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.site-header .language-control select:hover {
  border-color: var(--ink);
}

.site-header .theme-control {
  height: 36px;
  min-height: 36px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--surface);
  gap: 6px;
  transition: border-color .16s ease;
}

.site-header .theme-control:hover {
  border-color: var(--ink);
}

.site-header .theme-control select {
  height: 34px;
  min-height: 34px;
  max-width: 96px;
  padding: 0 2px;
  background: transparent;
  font-size: 12px;
}

.site-header .motion-toggle {
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.site-header .motion-toggle:hover {
  background: var(--wash);
  border-color: var(--line);
}

/* Crisp primary header pill CTA */
.site-header .header-link {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  gap: 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12.5px;
  font-weight: 580;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), opacity .16s ease;
}

.site-header .header-link span {
  font-size: 13px;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
}

.site-header .header-link:hover {
  opacity: .9;
  transform: translateY(-1px);
  text-decoration: none;
}

.site-header .header-link:hover span {
  transform: translateY(1.5px);
}

.site-header .header-link:active {
  transform: scale(.97);
}

/* Tactile button polish across Hero & Sections */
.button-primary {
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), opacity .16s ease, box-shadow .22s ease;
}

.button-primary:active {
  transform: scale(.975);
}

.text-link {
  transition: color .16s ease, opacity .16s ease;
}

.text-link span {
  display: inline-block;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}

.text-link:hover span {
  transform: translateX(3px);
}

.device-selector a {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .16s ease;
}

.device-selector a:active {
  transform: scale(.97);
}

@keyframes pk-lab-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 28%, transparent); }
  55% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 10%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.pk-lab-highlight {
  border-radius: 20px;
  animation: pk-lab-pulse .95s cubic-bezier(.16, 1, .3, 1);
}

/* ---- 2. Direct 2+3 Bento Download Hub (#updates — single surface layer, zero outer wrapper) -- */
.release-section {
  padding-top: 12px;
  padding-bottom: 100px;
}

.release-card {
  position: relative;
  display: block;
  overflow: visible;
  padding: clamp(52px, 6.5vw, 84px) 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.release-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.release-head-copy {
  min-width: 0;
  flex: 1;
}

.release-eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.release-card .eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.release-rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
}

.release-rec-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

.release-rec-pill[hidden] {
  display: none;
}

.release-card h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -.045em;
  margin: 0 0 10px;
}

.release-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 540px;
}

.release-card .release-character {
  width: clamp(92px, 12vw, 140px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  margin: 0;
  cursor: pointer;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
}

.release-card .release-character:hover {
  transform: translateY(-4px) rotate(-3deg) scale(1.03);
}

/* Bento Hub container */
.get-hub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.get-tier-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.get-tier-ecosystem {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Individual Bento Card (PikoTheme.surface + settingsCorner 20px) */
.get-card {
  --card-bg: var(--surface);
  --card-ink: var(--ink);
  --card-muted: var(--muted);
  --card-border: var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 22px 24px 20px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--card-ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), border-color .2s ease, box-shadow .24s ease, background-color .2s ease;
}

.get-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 20%), color-mix(in srgb, var(--card-ink) 7%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity .22s ease;
}

.get-card:hover {
  transform: translateY(-2.5px);
  border-color: color-mix(in srgb, var(--card-ink) 45%, var(--card-border));
  box-shadow: 0 14px 36px color-mix(in srgb, #000 10%, transparent);
  text-decoration: none;
}

.get-card:hover::before {
  opacity: 1;
}

.get-card:active {
  transform: translateY(0) scale(.988);
}

.get-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Primary / Recommended Featured Inverted Card */
.get-card.is-featured {
  --card-bg: var(--ink);
  --card-ink: var(--on-ink);
  --card-muted: color-mix(in srgb, var(--on-ink) 70%, transparent);
  --card-border: var(--ink);
  --card-icon-bg: color-mix(in srgb, var(--on-ink) 12%, transparent);
  --card-pill-bg: color-mix(in srgb, var(--on-ink) 12%, transparent);
  --card-arrow-bg: color-mix(in srgb, var(--on-ink) 14%, transparent);
}

.get-card.is-featured:hover {
  border-color: var(--ink);
  box-shadow: 0 18px 42px color-mix(in srgb, #000 18%, transparent);
}

.get-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.get-card-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  border: 0;
  flex: none;
  transition: transform .26s cubic-bezier(.16, 1, .3, 1);
}

.get-card:hover .get-card-icon {
  transform: scale(1.06);
}

.get-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  --badge-fill: var(--card-bg);
}

.get-tier-ecosystem .get-card {
  padding: 20px 22px 18px;
  gap: 14px;
}

.get-tier-ecosystem .get-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
}

.get-tier-ecosystem .get-card-icon svg {
  width: 24px;
  height: 24px;
}

.get-card-pill {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--card-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.get-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.get-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--card-ink);
}

.get-tier-ecosystem .get-card-title {
  font-size: 16.5px;
}

.get-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--card-muted);
}

.get-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--card-ink) 10%, transparent);
  font-size: 12.5px;
  font-weight: 560;
  color: var(--card-ink);
}

.get-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  flex: none;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.get-card:hover .get-card-arrow {
  transform: translateX(3px);
}

/* Bottom Meta Strip */
.release-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.release-meta p {
  margin: 0;
  line-height: 1.6;
}

.release-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.release-meta-link:hover {
  text-decoration: underline;
}

/* ---- 3. Native Frosted-Glass Launch Sheets (<dialog class="pk-launch-dialog">) --------------- */
html.pk-sheet-open {
  overflow: hidden;
}

.pk-launch-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  max-height: min(88dvh, 720px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 32px 96px rgba(0, 0, 0, .24);
  overflow: hidden;
  font: inherit;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .24s cubic-bezier(.16, 1, .3, 1), transform .28s cubic-bezier(.16, 1, .3, 1), overlay .24s allow-discrete, display .24s allow-discrete;
}

:root[data-theme="dark"] .pk-launch-dialog {
  background: var(--surface);
  border-color: var(--control-line);
  box-shadow: 0 36px 104px rgba(0, 0, 0, .68);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pk-launch-dialog {
    background: var(--surface);
    border-color: var(--control-line);
    box-shadow: 0 36px 104px rgba(0, 0, 0, .68);
  }
}

.pk-launch-dialog[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
}

@starting-style {
  .pk-launch-dialog[open] {
    opacity: 0;
    transform: translateY(16px) scale(.965);
  }
}

.pk-launch-dialog::backdrop {
  background: rgba(0, 0, 0, .54);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .24s ease, overlay .24s allow-discrete, display .24s allow-discrete;
}

.pk-launch-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .pk-launch-dialog[open]::backdrop {
    opacity: 0;
  }
}

.pk-sheet-grabber {
  display: none;
}

.pk-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.pk-sheet-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pk-sheet-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: none;
}

.pk-sheet-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  --badge-fill: var(--surface);
}

.pk-sheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.pk-sheet-meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pk-sheet-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: background-color .16s ease, color .16s ease, transform .14s ease;
}

.pk-sheet-close:hover {
  background: var(--wash);
  color: var(--ink);
}

.pk-sheet-close:active {
  transform: scale(.92);
}

.pk-sheet-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.pk-sheet-body {
  padding: 20px 26px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pk-sheet-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* Hairline Mini Guide inside Sheet (zero nested boxes) */
.pk-sheet-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pk-sheet-steps.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pk-sheet-step {
  padding: 12px 0 2px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pk-sheet-step-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pk-sheet-step-num {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pk-sheet-step strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.pk-sheet-step span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* QR Code Split Layout (TestFlight — clean direct placement, zero wrapper box) */
.pk-qr-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px 0 4px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.pk-qr-box {
  width: 144px;
  height: 144px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  flex: none;
}

.pk-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: crispEdges;
}

.pk-qr-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pk-qr-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.pk-qr-steps li i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11px;
  font-weight: 650;
  flex: none;
}

/* Release notes & SHA-256 checksum (clean hairlines, no nested boxes) */
.pk-sheet-notes {
  padding: 14px 0 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.pk-sheet-notes strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink);
}

.pk-sheet-notes p {
  margin: 0;
  white-space: pre-line;
}

.pk-sheet-checksum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 11.5px;
  color: var(--muted);
}

.pk-sheet-checksum code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 11px;
  color: var(--ink);
}

.pk-copy-chip {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--control-line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.pk-copy-chip:hover {
  border-color: var(--ink);
}

/* Highlights list inside Sheet (clean hairline rows, zero boxes) */
.pk-sheet-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pk-sheet-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
}

.pk-sheet-highlights li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.pk-sheet-highlights li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

/* Download live feedback line */
.pk-sheet-status {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #1f8a4c;
  font-size: 12.5px;
  font-weight: 540;
  line-height: 1.5;
}

:root[data-theme="dark"] .pk-sheet-status {
  color: #6ccf95;
  background: transparent;
  border-color: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pk-sheet-status {
    color: #6ccf95;
    background: transparent;
    border-color: transparent;
  }
}

.pk-sheet-status[hidden] {
  display: none;
}

/* Sheet Action Footer */
.pk-sheet-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  flex: none;
}

.pk-sheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s cubic-bezier(.16, 1, .3, 1), opacity .16s ease, border-color .16s ease, background-color .16s ease;
}

.pk-sheet-btn:active {
  transform: scale(.975);
}

.pk-sheet-btn-primary {
  flex: 1 1 auto;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.pk-sheet-btn-primary:hover {
  opacity: .9;
  text-decoration: none;
}

.pk-sheet-btn-secondary {
  border: 1px solid var(--control-line);
  background: var(--wash);
  color: var(--ink);
}

.pk-sheet-btn-secondary:hover {
  border-color: var(--ink);
  text-decoration: none;
}

/* ---- 4. True Multi-Device Responsive Breakpoints --------------------------------------------- */

/* Laptop 1141px–1280px: keep 7 nav links + controls breathable on 1 row */
@media (min-width: 1141px) and (max-width: 1280px) {
  .header-inner { gap: 12px; }
  .site-nav { gap: 11px; }
  .site-nav a { font-size: 12.5px; }
  .site-header .motion-label { display: none; }
  .site-header .motion-toggle { width: 36px; padding: 0; }
}

/* Tablet Portrait & Landscape (761px–1140px) */
@media (max-width: 1140px) {
  .site-header .header-inner {
    min-height: 68px;
    padding-block: 10px 6px;
    gap: 6px 14px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px 16px;
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-header .header-link { display: none; }
}

/* iPad Portrait (761px–1024px): clean 2 + (2 + 1 full-width) Bento Hub, no ragged orphan */
@media (min-width: 761px) and (max-width: 1024px) {
  .get-tier-ecosystem {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .get-tier-ecosystem .get-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
  }
  .get-tier-ecosystem .get-card:last-child .get-card-top {
    align-items: center;
  }
  .get-tier-ecosystem .get-card:last-child .get-card-pill {
    display: none;
  }
  .get-tier-ecosystem .get-card:last-child .get-card-body {
    flex: 1;
  }
  .get-tier-ecosystem .get-card:last-child .get-card-foot {
    border-top: 0;
    padding-top: 0;
    flex: none;
  }
}

/* iPhone Portrait (<= 760px): compact single-row scrollable nav, sleek touch card deck, iOS Bottom Sheet */
@media (max-width: 760px) {
  .site-header .header-inner {
    min-height: 58px;
    padding-block: 8px 4px;
    gap: 4px 10px;
  }
  .site-header .brand {
    font-size: 17px;
    gap: 7px;
  }
  .site-header .brand svg {
    width: 30px;
    height: 34px;
  }
  .site-header .language-control select,
  .site-header .theme-control {
    height: 36px;
    min-height: 36px;
    font-size: 11.5px;
  }
  .site-header .language-control select {
    max-width: 92px;
    padding: 0 7px;
  }
  .site-header .theme-control {
    padding: 0 6px 0 8px;
  }
  .site-header .theme-control select {
    max-width: 76px;
    font-size: 11.5px;
  }
  .site-header .motion-toggle {
    width: 36px;
    min-width: 36px;
    flex: 0 0 36px;
    padding: 0;
  }
  .site-header .motion-label {
    display: none;
  }
  /* Single-row horizontally scrollable nav bar with subtle edge fade — cuts header from 160px to ~98px! */
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    padding: 2px 16px 2px 0;
    border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    min-height: 40px;
    font-size: 12.5px;
    flex: none;
  }

  /* Mobile Bento Hub */
  .release-section {
    padding-bottom: 68px;
  }
  .release-card {
    padding: 40px 0 0;
    border-radius: 0;
  }
  .release-head {
    align-items: flex-start;
    gap: 14px;
  }
  .release-card h2 {
    font-size: 27px;
  }
  .release-sub {
    font-size: 13.5px;
  }
  .release-card .release-character {
    width: 76px;
  }
  .get-hub {
    margin-top: 22px;
    gap: 10px;
  }
  .get-tier-primary,
  .get-tier-ecosystem {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .get-card,
  .get-tier-ecosystem .get-card {
    padding: 18px 18px 16px;
    gap: 12px;
    border-radius: 16px;
  }
  .get-card-icon,
  .get-tier-ecosystem .get-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 0;
  }
  .get-card-icon svg,
  .get-tier-ecosystem .get-card-icon svg {
    width: 24px;
    height: 24px;
  }
  .get-card-title {
    font-size: 17px;
  }
  .get-card-foot {
    padding-top: 10px;
  }
  .release-meta {
    margin-top: 18px;
    padding-top: 14px;
    gap: 6px 12px;
  }
}

/* Compact Phones (iPhone SE 375px / Split-View <= 420px): guarantee single-row top bar */
@media (max-width: 420px) {
  :root { --page-padding: 16px; }
  .site-header .header-inner { gap: 4px 6px; }
  .site-header .brand { font-size: 15.5px; gap: 6px; }
  .site-header .brand svg { width: 26px; height: 30px; }
  .site-header .header-actions { gap: 5px; }
  .site-header .language-control select { max-width: 80px; padding: 0 5px; font-size: 11px; height: 34px; min-height: 34px; }
  .site-header .theme-control { padding: 0 4px 0 6px; gap: 4px; height: 34px; min-height: 34px; }
  .site-header .theme-swatch { width: 10px; height: 10px; }
  .site-header .theme-control select { max-width: 66px; font-size: 11px; height: 32px; min-height: 32px; }
  .site-header .motion-toggle { width: 30px; min-width: 30px; height: 34px; min-height: 34px; flex: 0 0 30px; }
}

/* Native iOS Bottom Sheet Transform on Mobile (<= 640px) */
@media (max-width: 640px) {
  .pk-launch-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    border-inline: 0;
    transform: translateY(36px);
  }
  @starting-style {
    .pk-launch-dialog[open] {
      opacity: 0;
      transform: translateY(48px);
    }
  }
  .pk-sheet-grabber {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--control-line);
    margin: 10px auto 0;
    flex: none;
  }
  .pk-sheet-header {
    padding: 14px 20px 14px;
  }
  .pk-sheet-body {
    padding: 16px 20px 18px;
    gap: 14px;
  }
  .pk-sheet-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pk-sheet-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }
  .pk-sheet-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .pk-qr-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
    gap: 14px;
    padding: 14px 0 4px;
  }
  .pk-qr-box {
    width: 136px;
    height: 136px;
  }
  .pk-sheet-footer {
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
  }
  .pk-sheet-btn {
    width: 100%;
    min-height: 48px;
  }
}

/* iPhone Landscape & Short Wide Viewports (e.g. 844x390, 812x375) */
@media (min-width: 600px) and (max-height: 500px) and (orientation: landscape) {
  .site-header {
    position: relative;
  }
  .site-header .header-inner {
    min-height: 54px;
    padding-block: 6px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .site-nav {
    order: 0;
    width: auto;
    border-top: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .site-nav a {
    min-height: 36px;
    font-size: 11.5px;
  }
  .site-header .language-control select,
  .site-header .theme-control {
    height: 32px;
    min-height: 32px;
    font-size: 11px;
  }
  .site-header .theme-control select {
    height: 30px;
    min-height: 30px;
    font-size: 11px;
  }
  .site-header .motion-toggle {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .hero {
    padding-block: 12px 18px;
    gap: 20px;
    align-items: center;
  }
  .hero .status {
    padding: 2px 9px;
    font-size: 10px;
  }
  .hero h1 {
    font-size: clamp(26px, 3.8vw, 34px);
    line-height: 1.2;
    margin-block: 10px 8px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.65;
  }
  .hero-actions {
    margin-top: 12px;
    gap: 8px 14px;
  }
  .hero-actions .button {
    min-height: 40px;
    padding: 8px 16px;
    gap: 12px;
  }
  .hero-platforms {
    margin-top: 8px;
  }
  .hero-art {
    width: min(100%, 52svh, 210px);
  }
  .piko-intro {
    padding-top: 10px;
  }
  .intro-answer {
    min-height: 3.4em;
    font-size: 12px;
    line-height: 1.6;
  }
  /* Compact 2-column Bento Hub in short landscape */
  .release-card {
    padding: 36px 0 0;
  }
  .release-card .release-character {
    width: 78px;
  }
  .get-tier-primary,
  .get-tier-ecosystem {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .get-tier-ecosystem .get-card:last-child {
    grid-column: 1 / -1;
  }
  .get-card {
    padding: 15px 16px 14px;
    gap: 10px;
  }
  /* Compact modal sheet in short landscape */
  .pk-launch-dialog {
    width: min(640px, calc(100vw - 24px));
    max-width: 640px;
    max-height: calc(100dvh - 16px);
    margin: auto;
    border-radius: 18px;
  }
  .pk-sheet-header {
    padding: 14px 20px 12px;
  }
  .pk-sheet-body {
    padding: 14px 20px;
    gap: 12px;
  }
  .pk-sheet-footer {
    padding: 12px 20px 14px;
  }
  .pk-qr-box {
    width: 112px;
    height: 112px;
  }
}

/* Ensure Prysai studio wordmark always stays crisp in manual Dark/Light theme overrides */
:root[data-theme="dark"] .studio-credit img { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .studio-credit img { filter: invert(1); }
}

/* Reduced motion respects user preference */
@media (prefers-reduced-motion: reduce) {
  .pk-launch-dialog,
  .pk-launch-dialog::backdrop,
  .get-card,
  .get-card-icon,
  .get-card-arrow,
  .release-character {
    transition: none !important;
    animation: none !important;
  }
}

html[data-motion="paused"] .get-card:hover,
html[data-motion="paused"] .get-card:hover .get-card-icon,
html[data-motion="paused"] .get-card:hover .get-card-arrow,
html[data-motion="paused"] .release-character:hover {
  transform: none;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-visual .expression-disclosure {
  width: min(100%, 380px);
  margin-top: 0;
}

.introduction {
  align-items: center;
  gap: 16px 28px;
}

.introduction > .piko-waypoint {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.piko-waypoint {
  margin-bottom: 14px;
}

.devices-section .section-heading {
  align-items: flex-end;
}

.questions-heading .text-link {
  margin-top: 12px;
  display: inline-flex;
}
