:root {
  color-scheme: light;
  --paper: #f3efe4;
  --paper-bright: #fffdf7;
  --ink: #17211d;
  --ink-soft: #34413b;
  --muted: #66706a;
  --line: #c8c9bd;
  --mint: #9df3c7;
  --mint-deep: #16734b;
  --coral: #ff806d;
  --coral-soft: #ffd7cf;
  --yellow: #f5da72;
  --focus: #087f5b;
  --display: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --utility: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 33, 29, 0.1) 0.75px, transparent 0.75px);
  background-size: 15px 15px;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-bright);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-frame {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-frame::before,
.page-frame::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.page-frame::before {
  top: 178px;
  right: -64px;
  width: 246px;
  height: 246px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.page-frame::after {
  top: 540px;
  left: -110px;
  width: 270px;
  height: 74px;
  background: var(--mint);
  border: 2px solid var(--ink);
  transform: rotate(-14deg);
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--mint);
  transform: rotate(-4deg);
}

.brand-mark span {
  font: 900 24px/1 var(--display);
  transform: rotate(4deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.04em;
}

.brand-copy small,
.kicker,
.section-kicker,
.ticket-topline,
.ticket-brand small,
.ticket-data dd,
.card-label,
.platform-tag,
.card-action,
.route-tab,
.site-footer {
  font-family: var(--utility);
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav a {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:first-child {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.header-nav .nav-admin {
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.64fr);
  align-items: center;
  gap: clamp(50px, 8vw, 108px);
  min-height: 650px;
  padding: 76px 0 92px;
}

.kicker,
.section-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kicker span {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--ink);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--display);
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(52px, 7vw, 91px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

h1 em {
  display: inline-block;
  position: relative;
  margin-top: 10px;
  padding: 0.02em 0.17em 0.08em 0.12em;
  font-style: normal;
  background: var(--mint);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 650px;
  margin: 35px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button-download {
  min-width: 224px;
  background: var(--coral);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-quiet {
  border-color: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button-download:hover {
  box-shadow: 7px 7px 0 var(--ink);
}

.download-hint {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 570px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.download-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.download-hint strong {
  color: var(--ink);
}

.lock-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.lock-icon > span {
  position: relative;
  width: 13px;
  height: 11px;
  background: var(--ink);
  border-radius: 1px;
}

.lock-icon > span::before {
  position: absolute;
  top: -9px;
  left: 2px;
  width: 7px;
  height: 8px;
  content: "";
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.inventory-ticket {
  position: relative;
  padding: 40px 29px 26px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(1.3deg);
}

.inventory-ticket::before,
.inventory-ticket::after {
  position: absolute;
  left: -11px;
  width: 19px;
  height: 19px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.inventory-ticket::before {
  top: 118px;
}

.inventory-ticket::after {
  top: 157px;
}

.ticket-tape {
  position: absolute;
  top: -19px;
  left: 50%;
  width: 146px;
  height: 38px;
  background: rgba(255, 128, 109, 0.85);
  border: 1px dashed rgba(23, 33, 29, 0.58);
  transform: translateX(-50%) rotate(-2deg);
}

.ticket-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--ink);
}

.ticket-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 27px 0 25px;
}

.app-block {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--mint);
  font: 900 42px/1 var(--display);
}

.ticket-brand strong,
.ticket-brand small {
  display: block;
}

.ticket-brand strong {
  font: 900 clamp(27px, 3.1vw, 40px)/1 var(--display);
  letter-spacing: -0.06em;
}

.ticket-brand small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.ticket-data {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ticket-data div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ticket-data dt,
.ticket-data dd {
  margin: 0;
  font-size: 12px;
}

.ticket-data dt {
  color: var(--muted);
}

.ticket-data dd {
  font-weight: 700;
  text-align: right;
}

.ticket-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-top: 24px;
}

.barcode {
  height: 45px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 9px,
    var(--ink) 9px 13px,
    transparent 13px 16px
  );
}

.owner-stamp {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--mint-deep);
  font: 900 9px/1.1 var(--utility);
  text-align: center;
  border: 2px solid var(--mint-deep);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.start-panel {
  padding: 82px 0 38px;
  border-top: 2px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 380px);
  align-items: end;
  gap: 40px;
  margin-bottom: 32px;
}

.section-heading h2,
.route-note h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4.3vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.7;
}

.action-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(212px, auto));
  gap: 18px;
}

.action-card {
  display: flex;
  min-width: 0;
  padding: 25px;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255, 253, 247, 0.94);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.action-card:hover {
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.download-card {
  grid-row: 1 / 3;
  min-height: 442px;
  background: var(--mint);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-label {
  padding: 6px 9px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
}

.card-label-coral {
  background: var(--coral-soft);
}

.card-label-ink {
  color: var(--paper-bright);
  background: var(--ink);
}

.card-arrow {
  font: 700 27px/1 var(--utility);
}

.download-copy {
  margin: auto 0;
}

.platform-tag {
  display: inline-block;
  margin-bottom: 17px;
  padding: 5px 8px;
  color: var(--paper-bright);
  background: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card strong {
  margin-top: 30px;
  font-size: clamp(23px, 2.8vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.download-card strong {
  margin-top: 0;
  font: 900 clamp(38px, 5vw, 60px)/1 var(--display);
  letter-spacing: -0.07em;
}

.action-card small {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.download-card small {
  max-width: 460px;
  font-size: 15px;
}

.card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-top: 1px dashed rgba(23, 33, 29, 0.3);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #20c879;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.route-note {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.8fr);
  align-items: end;
  gap: 50px;
  margin: 76px 0 72px;
  padding: 38px 34px 32px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.route-note > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.route-tab {
  position: absolute;
  top: -20px;
  right: 28px;
  padding: 8px 13px;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  transform: rotate(2deg);
}

code {
  padding: 3px 6px;
  font-family: var(--utility);
  font-size: 0.88em;
  background: var(--paper-bright);
  border: 1px solid rgba(23, 33, 29, 0.4);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 68px 0 88px;
  }

  .inventory-ticket {
    width: min(490px, calc(100% - 14px));
    justify-self: center;
  }

  .section-heading,
  .route-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 78px;
  }

  .brand-copy small,
  .header-nav a:first-child {
    display: none;
  }

  .header-nav .nav-admin {
    padding: 9px 10px;
    font-size: 12px;
  }

  .product-hero {
    gap: 64px;
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(45px, 15vw, 68px);
    letter-spacing: -0.085em;
  }

  h1 em {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .hero-lead {
    margin-top: 29px;
    font-size: 15px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button-quiet {
    min-height: 42px;
  }

  .inventory-ticket {
    padding-inline: 23px;
    box-shadow: 8px 9px 0 var(--ink);
    transform: none;
  }

  .inventory-ticket::before,
  .inventory-ticket::after {
    display: none;
  }

  .ticket-brand {
    gap: 13px;
  }

  .app-block {
    width: 62px;
    height: 62px;
    font-size: 36px;
  }

  .start-panel {
    padding-top: 68px;
  }

  .action-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .download-card {
    grid-row: auto;
    min-height: 420px;
  }

  .admin-card,
  .status-card {
    min-height: 220px;
  }

  .route-note {
    margin-block: 62px;
    padding: 34px 23px 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* Quiet FlipBox brand layer. The page stays expressive through typography and
   spacing, while cards and controls use a restrained private-console system. */
:root {
  --paper: #f7f9fc;
  --paper-bright: #ffffff;
  --ink: #172a46;
  --ink-soft: #3e526e;
  --muted: #718096;
  --line: #d9e2ee;
  --mint: #e8f1ff;
  --mint-deep: #1d4ed8;
  --coral: #f2a33a;
  --coral-soft: #fff4df;
  --yellow: #fff4df;
  --focus: #2563eb;
}

body { background: var(--paper); background-image: none; }
.page-frame::before,
.page-frame::after,
.ticket-tape,
.barcode { display: none; }
.site-header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 44px; height: 44px; padding: 0; background: transparent;
  border: 0; box-shadow: none; transform: none;
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-mark span { display: none; }
.header-nav .nav-admin { color: #fff; background: #2563eb; border: 1px solid #2563eb; border-radius: 7px; }
.product-hero { min-height: 0; padding-block: 42px 52px; }
h1 { font-size: clamp(48px, 6.5vw, 78px); letter-spacing: -0.055em; }
h1 em { padding: 0; color: var(--mint-deep); background: transparent; border: 0; box-shadow: none; transform: none; }
.button { border-width: 1px; border-radius: 8px; }
.button-download { color: #fff; background: #2563eb; border-color: #2563eb; box-shadow: none; }
.button-download:hover { background: #1d4ed8; box-shadow: none; }
.lock-icon { background: var(--coral-soft); border: 1px solid #efd49b; border-radius: 8px; }
.inventory-ticket { padding: 27px 26px 22px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(23, 42, 70, .08); transform: none; }
.inventory-ticket::before,
.inventory-ticket::after { display: none; }
.ticket-brand { padding-block: 23px 21px; }
.app-block { width: 66px; height: 66px; padding: 0; background: transparent; border: 0; box-shadow: none; font-size: 0; }
.app-block img { display: block; width: 100%; height: 100%; }
.ticket-bottom { margin-top: 20px; }
.owner-stamp { width: auto; height: auto; padding: 7px 9px; border-radius: 6px; transform: none; }
.start-panel { padding-block: 64px 28px; border-top: 1px solid var(--line); }
.action-grid { gap: 14px; }
.action-card { padding: 22px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 22px rgba(23, 42, 70, .06); transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.action-card:hover { border-color: #8db0ed; box-shadow: 0 12px 26px rgba(23, 42, 70, .1); transform: translateY(-2px); }
.download-card { background: var(--mint); border-color: #bfd3f7; }
.card-label { border-radius: 5px; }
.card-label-coral { color: #8a5a13; background: var(--coral-soft); }
.card-label-ink { color: #fff; background: var(--ink); }
.route-note { margin-block: 58px; padding: 27px 26px; background: var(--paper-bright); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 10px; box-shadow: none; }
.route-tab { top: 18px; right: 22px; padding: 0; color: var(--muted); background: transparent; border: 0; transform: none; }
code { background: var(--mint); border-color: #bfd3f7; border-radius: 4px; }
.site-footer { border-top: 1px solid var(--line); }

@media (min-width: 681px) and (max-height: 820px) {
  .product-hero { padding-block: 30px 38px; }
  .hero-lead { margin-top: 24px; }
  .hero-actions { margin-top: 24px; }
  .download-hint { margin-top: 18px; padding-top: 12px; }
}
