:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --bg-2: #ececea;
  --card: #ffffff;
  --ink: #111111;
  --on-ink: #ffffff;
  --muted: #5e5e5e;
  --line: #e4e4e4;
  --orange: #f25c05;
  --orange-hover: #d44e00;
  --orange-soft: #fff1e8;
  --danger: #9f1239;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
  --header: rgba(244, 244, 242, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --bg-2: #1a1a1a;
    --card: #1c1c1c;
    --ink: #f4f4f2;
    --on-ink: #111111;
    --muted: #b0b0aa;
    --line: #2e2e2e;
    --orange: #ff6a1a;
    --orange-hover: #f25c05;
    --orange-soft: rgba(242, 92, 5, 0.16);
    --danger: #ff8fa3;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --header: rgba(17, 17, 17, 0.88);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 90% -10%, var(--orange-soft), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; }

button, input { font: inherit; color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 40px));
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex: none;
}

.top-links { display: flex; gap: 18px; }

.top-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  position: relative;
}

.top-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.top-links a:hover { color: var(--ink); }
.top-links a:hover::after { transform: scaleX(1); }

.top-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: default; }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover:not(:disabled) { background: var(--orange-hover); }

.btn-black { background: var(--ink); color: var(--on-ink); }
.btn-black:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
}

.btn-ghost:hover:not(:disabled) { background: var(--bg-2); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 28px;
}

.hero > :not(.orbit) { position: relative; z-index: 1; }

.orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100vh - 75px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orbit-hub {
  position: absolute;
  left: 50%;
  top: calc(50vh - 170px);
  width: 0;
  height: 0;
}

.arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}

.arm-black { z-index: 1; animation: orbit-black 22s linear infinite; }
.arm-orange { z-index: 2; animation: orbit-orange 22s linear infinite; }

.planet {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
}

.planet-orange {
  background: radial-gradient(circle at 32% 28%, #ffd2b3 0%, #ff8a3d 22%, #fd630d 52%, #c2410c 100%);
  box-shadow: 18px 28px 50px rgba(242, 92, 5, 0.22);
}

.planet-black {
  background: radial-gradient(circle at 32% 28%, #4a5166 0%, #242838 34%, #161a26 70%, #0c0e14 100%);
  box-shadow: 14px 22px 36px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  .planet-black {
    background: radial-gradient(circle at 30% 26%, #d5d8e0 0%, #5c6478 16%, #242838 40%, #12141c 72%, #07080c 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 36px rgba(255, 255, 255, 0.05),
      16px 24px 40px rgba(0, 0, 0, 0.45);
  }

  .planet-orange {
    box-shadow: 0 0 48px rgba(253, 99, 13, 0.28), 18px 28px 50px rgba(0, 0, 0, 0.35);
  }
}

@keyframes orbit-black {
  0% { transform: translate(-47px, 0px); }
  4% { transform: translate(-112px, 72px); }
  8% { transform: translate(-167px, 146px); }
  12% { transform: translate(-208px, 217px); }
  16% { transform: translate(-232px, 280px); }
  20% { transform: translate(-238px, 333px); }
  24% { transform: translate(-226px, 371px); }
  28% { transform: translate(-196px, 393px); }
  32% { transform: translate(-150px, 396px); }
  36% { transform: translate(-92px, 380px); }
  40% { transform: translate(-24px, 348px); }
  44% { transform: translate(49px, 299px); }
  48% { transform: translate(123px, 239px); }
  52% { transform: translate(192px, 170px); }
  56% { transform: translate(252px, 96px); }
  60% { transform: translate(301px, 23px); }
  64% { transform: translate(333px, -45px); }
  68% { transform: translate(349px, -103px); }
  72% { transform: translate(346px, -149px); }
  76% { transform: translate(324px, -179px); }
  80% { transform: translate(286px, -191px); }
  84% { transform: translate(233px, -185px); }
  88% { transform: translate(170px, -161px); }
  92% { transform: translate(99px, -120px); }
  96% { transform: translate(25px, -65px); }
  100% { transform: translate(-47px, 0px); }
}

@keyframes orbit-orange {
  0% { transform: translate(47px, 0px); }
  4% { transform: translate(-25px, -65px); }
  8% { transform: translate(-99px, -120px); }
  12% { transform: translate(-170px, -161px); }
  16% { transform: translate(-233px, -185px); }
  20% { transform: translate(-286px, -191px); }
  24% { transform: translate(-324px, -179px); }
  28% { transform: translate(-346px, -149px); }
  32% { transform: translate(-349px, -103px); }
  36% { transform: translate(-333px, -45px); }
  40% { transform: translate(-301px, 23px); }
  44% { transform: translate(-252px, 96px); }
  48% { transform: translate(-192px, 170px); }
  52% { transform: translate(-123px, 239px); }
  56% { transform: translate(-49px, 299px); }
  60% { transform: translate(24px, 348px); }
  64% { transform: translate(92px, 380px); }
  68% { transform: translate(150px, 396px); }
  72% { transform: translate(196px, 393px); }
  76% { transform: translate(226px, 371px); }
  80% { transform: translate(238px, 333px); }
  84% { transform: translate(232px, 280px); }
  88% { transform: translate(208px, 217px); }
  92% { transform: translate(167px, 146px); }
  96% { transform: translate(112px, 72px); }
  100% { transform: translate(47px, 0px); }
}

.section,
.foot {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.lead {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.pills li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}

.rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
.rise-4 { animation-delay: 0.24s; }

.callout {
  margin: 18px 0 0;
  max-width: 40rem;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: var(--orange-soft);
  color: var(--ink);
  font-size: 15.5px;
}

.board {
  position: relative;
  background: #fdf8f2;
  color: #161a26;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(22, 26, 38, 0.12);
  animation: float 7s ease-in-out 0.8s infinite;
}

.board-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #c73e09;
  font-size: 13px;
  font-weight: 700;
}

.board-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fd630d;
  animation: pulse 2.2s ease-out infinite;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet {
  background: #fff;
  border: 1px solid rgba(22, 26, 38, 0.06);
  border-radius: 16px;
  padding: 12px 12px 6px;
}

.sheet > p {
  margin: 0 0 4px;
  color: #5e5e5e;
  font-size: 12px;
  font-weight: 700;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid #f0ece6;
  font-size: 13px;
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.row b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.row span { white-space: nowrap; }

.board[data-mode="gap"] [data-one-pay],
.board[data-mode="gap"] [data-one-total] {
  color: #c73e09;
}

.d1 { animation-delay: 0.28s; }
.d2 { animation-delay: 0.44s; }
.d3 { animation-delay: 0.6s; }

.board-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.mini-mark {
  position: relative;
  width: 48px;
  height: 32px;
  flex: none;
}

.mini-mark span {
  position: absolute;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  animation: pop 0.5s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mini-mark .a { left: 0; background: #161a26; z-index: 1; }
.mini-mark .b { right: 0; background: #fd630d; z-index: 2; animation-delay: 0.82s; }

.board-foot strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.board-foot em {
  display: block;
  margin-top: 2px;
  color: #5e5e5e;
  font-style: normal;
  font-size: 12px;
}

.seal {
  margin-left: auto;
  padding: 8px 14px;
  border: 2px solid #fd630d;
  border-radius: 999px;
  background: #161a26;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.seal:hover { background: #2a2a2a; }

.board[data-mode="gap"] .seal { display: none; }

.board-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.board.is-stamped .board-seal {
  opacity: 0.95;
  animation: board-seal 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.section-lead {
  max-width: 42rem;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.guard { margin-top: 14px; }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value h3 { font-size: 20px; letter-spacing: -0.02em; }

.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out 1s infinite;
}

.mock-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mock h2 { margin: 0 0 14px; font-size: 22px; }

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  animation: drop 0.8s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.file-chip b { display: block; font-size: 14px; }
.file-chip span { color: var(--muted); font-size: 12px; }

.file-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.banner {
  background: var(--orange-soft);
  border: 1.5px solid var(--orange);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  animation: rise 0.6s 0.7s both;
}

.banner strong { display: block; font-size: 16px; }
.banner span { color: var(--muted); font-size: 14px; }

.totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  animation: rise 0.6s 0.85s both;
}

.total {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.total em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.total b { font-size: 16px; font-weight: 650; font-weight: 600; }

.total-gap {
  background: var(--orange-soft);
  border-color: var(--orange);
}

.mock-stamp { margin-top: 12px; width: 100%; animation: rise 0.5s 1s both; }

.section { padding: 28px 0 8px; }

.section h2 {
  margin: 0 0 16px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.steps, .split, .outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card, .step, .outcome {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover, .outcome:hover, .card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.step b, .num {
  display: block;
  color: var(--orange);
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.step h3, .card h3, .outcome h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p, .card p, .outcome p { margin: 0; color: var(--muted); }

.split { grid-template-columns: 1.15fr 0.85fr; }
.outcomes { grid-template-columns: 1fr 1fr; }

.rule {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rule:first-of-type { border-top: 0; padding-top: 4px; }

.rule i {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.rule strong { display: block; }
.rule span { color: var(--muted); }

.price {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 20px;
  padding: 32px;
  margin: 22px 0 10px;
}

.price .muted, .price .list li { color: color-mix(in srgb, var(--on-ink) 72%, transparent); }
.price-num {
  margin: 0;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.price .muted { margin: 8px 0 18px; }

.lead-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-dialog.is-open {
  display: flex;
}

.lead-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.46);
}

.lead-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  margin: 0;
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lead-form h2 {
  margin: 0;
  font-size: 28px;
}

.lead-form .muted { margin: 0 0 8px; }

.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.lead-form select { min-height: 46px; padding: 0 14px; }

.lead-form textarea {
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.months {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.months button {
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.months button.is-on {
  border-color: #fd630d;
  background: #161a26;
  color: #fff;
}

.price .months button {
  border-color: color-mix(in srgb, var(--on-ink) 28%, transparent);
  color: var(--on-ink);
}

.price .months button.is-on {
  border-color: #fd630d;
  background: #fd630d;
  color: #fff;
}

.list { margin: 0; padding: 0; list-style: none; }
.list li {
  padding: 10px 0 10px 18px;
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent);
  position: relative;
}
.list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  left: 0;
  top: 18px;
}

.foot {
  margin-top: 28px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.foot h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
}

.foot p, .foot li { margin: 0 0 6px; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--ink); }

.foot-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-weight: 500;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  flex: none;
}

.doc {
  width: min(760px, 100%);
  margin: 18px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.doc h1 { font-size: 34px; letter-spacing: -0.03em; }
.doc h2 { margin: 22px 0 8px; font-size: 18px; }
.doc p, .doc li { line-height: 1.5; }
.doc ul { padding-left: 18px; }

.key-list { display: grid; gap: 12px; margin: 14px 0; }
.key-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.key-card.is-active { border-color: var(--orange); background: var(--orange-soft); }
.key-card input { margin-bottom: 8px; }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.key-actions .btn { width: auto; }

@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.auth-wrap, .account-wrap { padding: 28px 0 56px; }

.auth-card, .pay-box {
  width: min(440px, 100%);
  margin: 18px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pay-box { width: min(520px, 100%); }

.auth-card h1, .account-head h1, .pay-box h1 {
  font-size: 32px;
  letter-spacing: -0.03em;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}

input:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--card);
}

.form-error {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.auth-card .btn, .pay-box .btn { width: 100%; margin-top: 8px; }

.switch { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.switch a { color: var(--ink); }

.account { display: grid; gap: 14px; }

.account-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.muted { color: var(--muted); }

.status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  animation: rise 0.55s 0.05s both;
}

.status.is-active {
  background: var(--orange-soft);
  border-color: var(--orange);
}

.status h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; }
.status p { margin: 0 0 16px; color: var(--muted); }
.status.is-active p { color: var(--ink); }

.key-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.key-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.key-ask { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.key-ask button {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.linkish {
  display: inline;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.key {
  margin: 8px 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pay-list { display: grid; }

.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.pay-row strong { display: block; }
.pay-row span { color: var(--muted); font-size: 14px; }

.pay-box .sum {
  margin: 8px 0 4px;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--ink);
  font-size: 14px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 92, 5, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(242, 92, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 92, 5, 0); }
}

@keyframes stamp {
  0% { opacity: 0; transform: scale(1.35) rotate(-12deg); }
  65% { opacity: 1; transform: scale(0.96) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes seal-drop {
  0% { opacity: 0; transform: scale(1.4) rotate(-18deg); }
  65% { opacity: 1; transform: scale(0.94) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

@keyframes board-seal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35) rotate(-22deg); }
  65% { opacity: 1; transform: translate(-50%, -50%) scale(0.96) rotate(-8deg); }
  100% { opacity: 0.95; transform: translate(-50%, -50%) scale(1) rotate(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.demo {
  background: #fff;
  color: #161a26;
  border: 1px solid #e4e4e4;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.demo-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.demo-head h2 { margin: 0; color: #f25c05; }

.demo-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 16px;
  background: #fff1e8;
  border: 1.5px solid #111;
  flex: none;
  min-width: 320px;
}

.demo-knob {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: #111;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.demo[data-mode="gap"] .demo-knob { transform: translateX(100%); }

.demo-switch button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.demo-switch button.is-on { color: #fff; }

.appwin {
  position: relative;
  background: #f4f4f2;
  border-radius: 18px;
  padding: 14px;
}

.appwin-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #5e5e5e;
  font-size: 13px;
}

.appwin-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-weight: 650;
  font-weight: 600;
}

.appwin-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.app-status {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-left: 4px solid #f25c05;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.demo[data-mode="ok"] .app-status {
  border-left-color: #111;
}

.app-status strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.app-status span { color: #5e5e5e; }

.app-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
}

.app-totals article {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 14px;
}

.app-totals p,
.app-totals em,
.app-line em,
.line-delta em {
  display: block;
  margin: 0;
  color: #5e5e5e;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.app-totals b {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.app-totals small,
.app-meta {
  display: block;
  margin-top: 4px;
  color: #5e5e5e;
  font-size: 12px;
}

.app-delta {
  background: #e56a2a !important;
  border-color: #e56a2a !important;
  color: #fff;
}

.app-delta p { font-size: 14px; }
.app-delta small { font-size: 15px; }

.app-delta p,
.app-delta small { color: rgba(255, 255, 255, 0.92); }

.app-delta b { color: #fff; font-size: 36px; }

.demo[data-mode="ok"] .app-delta {
  background: #111 !important;
  border-color: #111 !important;
}

.demo[data-mode="ok"] .app-delta b { color: #fff; }

.app-diff { margin-top: 10px; }

.app-line {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 132px;
  gap: 8px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 8px;
}

.app-who {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;
}

.app-line .kind {
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.app-line strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sides div {
  background: #f4f4f2;
  border-radius: 10px;
  padding: 10px 12px;
}

.line-delta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: right;
}

.line-delta em { color: rgba(255, 255, 255, 0.72); }

.sides b,
.line-delta b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.line-delta b { color: #fff; font-size: 22px; }

.app-clear,
.app-stamp { display: none; }

.demo[data-mode="ok"] [data-diff],
.demo[data-mode="gap"] [data-clear],
.demo[data-mode="gap"] [data-stamp] { display: none; }

.demo[data-mode="ok"] [data-clear] {
  display: block;
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4e4e4;
}

.demo[data-mode="ok"] [data-stamp] {
  display: inline-flex;
  margin-top: 12px;
  min-height: 42px;
  padding: 8px 16px;
  border: 2px solid #fd630d;
  border-radius: 999px;
  background: #161a26;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
  cursor: pointer;
  animation: stamp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.demo[data-mode="ok"] [data-stamp]:hover { background: #2a2a2a; }

.seal-mark {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 132px;
  height: 132px;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.appwin.is-stamped .seal-mark {
  opacity: 1;
  transform: rotate(-8deg);
  animation: seal-drop 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-diff.in .app-line { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.flash { animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.admin { display: grid; gap: 14px; }
.admin[hidden], #gate[hidden], #logout[hidden] { display: none; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.metric b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric span, .metric small {
  display: block;
  color: var(--muted);
}

.metric span { margin-top: 6px; font-size: 14px; font-weight: 600; }
.metric small { margin-top: 2px; font-size: 13px; }

.admin-bar { display: flex; gap: 10px; align-items: center; margin: 8px 0 14px; }
.admin-bar input { flex: 1; }
.admin-bar .btn { width: auto; white-space: nowrap; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.company-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.company-card:hover { border-color: var(--orange); }
.company-card strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.company-card .company-mail { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.company-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stat-pill {
  background: var(--bg-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
.company-card .open-hint { display: block; margin-top: 12px; color: var(--orange); font-size: 13px; font-weight: 600; }
.detail-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-top: 14px; }
.detail-top h2 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }
.detail-top .btn { width: auto; }
#back { width: auto; margin-top: 8px; }
.key-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.key-head strong { font-size: 16px; }
.key-code { margin: 8px 0 0; font-family: Consolas, "Courier New", monospace; font-size: 18px; letter-spacing: 0.03em; }
.term-date { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.term-date input { max-width: 190px; }
.term-date .btn, .key-actions .btn { width: auto; }
.admin-list { padding: 18px 8px 8px; }
.admin-create { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; }
.admin-create .btn { width: auto; }
@media (max-width: 800px) {
  .admin-create { grid-template-columns: 1fr; }
}
.admin-tools { padding: 0 10px 12px; }
.admin-tools input { max-width: 320px; }

.table-scroll { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.admin-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.admin-table strong, .admin-table span, .admin-table code, .admin-table em {
  display: block;
}
.admin-table span, .admin-table code {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.admin-table code {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.02em;
}

.tag {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}
.tag-on { color: var(--ink); }
.tag-soon { color: var(--orange); }
.tag-off { color: var(--muted); }

.ticket-log {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}
.period-test { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.period-test button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.period-test button:hover { border-color: var(--orange); color: var(--orange); }

@media (max-width: 860px) {
  h1 { font-size: 36px; }
  .hero, .steps, .split, .outcomes, .price, .values { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr; }
  .top-links { display: none; }
  .account-head { align-items: start; flex-direction: column; }
  .price-num { font-size: 48px; }
  .board-grid { grid-template-columns: 1fr; }
  .orbit-hub { transform: scale(0.62); }
  .board-foot { flex-wrap: wrap; }
  .seal { margin-left: 0; }
  .demo-head { align-items: start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .company-grid, .admin-bar, .detail-top, .term-date { grid-template-columns: 1fr; display: grid; }
  .admin-bar .btn, .detail-top .btn, .term-date .btn { width: 100%; }
  .term-date input { max-width: none; }
  .app-totals, .sides, .app-line { grid-template-columns: 1fr; }
  .line-delta { text-align: left; }
}
