:root {
  --bg: #fcfaf6;
  --paper: #ffffff;
  --ink: #1c1a16;
  --ink-soft: #4f4a42;
  --muted: #8a8478;
  --line: #1c1a16;
  --c1: #ff7a5a;
  --c2: #6a5cff;
  --c3: #19c37d;
  --c4: #ffc845;
  --c5: #ff5e95;
  --c6: #4ec3e0;
  --pricing-bg: linear-gradient(135deg, #fff5f0, #ffe8de);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110d;
    --paper: #1c1814;
    --ink: #fcfaf6;
    --ink-soft: #c8c2b3;
    --muted: #807a6d;
    --line: #fcfaf6;
    --pricing-bg: linear-gradient(135deg, #2a1f1a, #2e2520);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
}

body {
  font-family: "Plus Jakarta Sans", "Zen Kaku Gothic New", -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

.header {
  margin-bottom: 56px;
}

.topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  box-shadow: 3px 3px 0 var(--ink);
}

.topline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c1);
}

h1 {
  font-size: clamp(34px, 9vw, 76px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-family: "Zen Kaku Gothic New", "Plus Jakarta Sans", sans-serif;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 .phrase {
  display: inline-block;
  max-width: 100%;
}

h1 .pop {
  padding: 0 4px;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 122, 90, 0.32) 62%);
  color: var(--ink);
}

.lede {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.lede + .lede {
  margin-top: 6px;
}

.footnote {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin: 48px 0 36px;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.stat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.stat-val {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.stat-suf {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.stat:nth-child(1) {
  background: linear-gradient(135deg, var(--c2), #4d3eff);
  color: var(--paper);
  border-color: var(--ink);
}

.stat:nth-child(1) .stat-label {
  color: var(--paper);
  opacity: 0.85;
}

.stat:nth-child(1) .stat-suf {
  color: var(--paper);
  opacity: 0.7;
}

.stat:nth-child(2)::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c3);
  opacity: 0.18;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: 5px 5px 0 var(--ink);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

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

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--card-color, var(--c1));
}

.card[data-color="1"] {
  --card-color: var(--c1);
}

.card[data-color="2"] {
  --card-color: var(--c2);
}

.card[data-color="3"] {
  --card-color: var(--c3);
}

.card[data-color="4"] {
  --card-color: var(--c4);
}

.card[data-color="5"] {
  --card-color: var(--c5);
}

.card[data-color="6"] {
  --card-color: var(--c6);
}

.card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 16px;
}

.card-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--card-color, var(--c1));
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--paper);
  overflow: hidden;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: var(--paper);
}

.card-title {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
  word-break: keep-all;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1.5px solid var(--ink);
}

.card-cycle {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.card-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-price-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.empty {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  box-shadow: 5px 5px 0 var(--ink);
}

.footer {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal.open {
  display: flex;
  animation: fade 0.2s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    transform: scale(0.96) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-box {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  animation: pop 0.22s ease;
  position: relative;
  overflow: hidden;
}

.modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c1), var(--c5), var(--c2));
}

.modal-head {
  padding: 32px 28px 0;
  display: flex;
  gap: 14px;
  align-items: center;
}

.modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c5));
  color: var(--paper);
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: var(--paper);
}

.modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.modal-close {
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
  color: var(--ink);
}

.modal-body {
  padding: 24px 28px 0;
}

.modal-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: var(--pricing-bg);
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.modal-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-cycle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.modal-price-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.modal-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-desc.empty-desc {
  font-style: italic;
  color: var(--muted);
}

.modal-desc a {
  color: var(--c2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.modal-desc a:hover {
  color: var(--c1);
}

.modal-foot {
  padding: 24px 28px 28px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--c1);
  transition: all 0.15s;
}

.modal-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--c1);
}
