:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  color: #1c1e1d;
  background: #efeeeb;
  font-synthesis: none;
  --paper: #f8f7f4;
  --ink: #1c1e1d;
  --muted: #6f746f;
  --line: #d9d8d3;
  --orange: #d9782f;
  --orange-dark: #a84e18;
  --green: #356f52;
  --red: #a13f38;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #efeeeb; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
}
.skip-link:focus { top: 12px; }

.commerce-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 52px;
  border-bottom: 1px solid rgba(35, 37, 35, .08);
  background: rgba(239, 238, 235, .94);
}
.header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  letter-spacing: -.15px;
}
.wordmark img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.global-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.global-nav a {
  padding: 7px 10px;
  border-radius: 7px;
  color: #555a56;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.global-nav a[aria-current="page"] { color: var(--ink); background: rgba(0, 0, 0, .055); }

.commerce-main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 100px;
}
.narrow { width: min(720px, calc(100% - 40px)); }
.eyebrow {
  margin: 0 0 16px;
  color: #8c5b35;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-hero { max-width: 760px; margin-bottom: 52px; }
.page-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 570;
  letter-spacing: -.048em;
  line-height: 1.06;
}
.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .45);
  color: #555a56;
  font-size: 13px;
  line-height: 1.55;
}
.notice[data-tone="success"] { border-color: #b7d1c0; color: var(--green); background: #f1f7f2; }
.notice[data-tone="error"] { border-color: #dfc2be; color: var(--red); background: #fbf2f1; }
.notice[data-tone="warning"] { border-color: #e2c69f; color: #845221; background: #fcf5e9; }

.term-switch {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 3px;
  margin-bottom: 24px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #e6e5e1;
}
.term-switch button {
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  background: transparent;
  color: #696d69;
  cursor: pointer;
  font-size: 13px;
}
.term-switch button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  position: relative;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}
.product-card:hover:not(:disabled) { border-color: #b9b7af; }
.product-card[aria-pressed="true"] { border-color: #675f57; box-shadow: inset 0 0 0 1px #675f57; }
.product-card:disabled { cursor: default; color: inherit; }
.product-card .plan-name { margin: 0; font-size: 15px; font-weight: 640; }
.product-card .price { margin: 20px 0 0; font-size: 33px; font-weight: 580; letter-spacing: -.045em; }
.product-card .period { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 450; letter-spacing: 0; }
.product-card .scope { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.product-card .availability { margin: auto 0 0; color: #8a6a4f; font-size: 12px; line-height: 1.5; }
.product-card .available { color: var(--green); }

.checkout-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e7e5df;
}
.checkout-panel h2 { margin: 0; font-size: 17px; font-weight: 620; }
.checkout-summary { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.checkout-summary p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.checkout-price { flex: none; font-size: 20px; font-weight: 610; }
.payment-options { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; padding: 0; border: 0; }
.payment-options legend { width: 100%; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.payment-option { position: relative; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option span {
  display: block;
  padding: 10px 13px;
  border: 1px solid #cbc9c2;
  border-radius: 9px;
  background: var(--paper);
  color: #515652;
  font-size: 13px;
  cursor: pointer;
}
.payment-option input:checked + span { border-color: #625c56; box-shadow: inset 0 0 0 1px #625c56; color: var(--ink); }
.payment-option input:focus-visible + span { outline: 2px solid var(--orange-dark); outline-offset: 3px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 610;
  text-decoration: none;
}
.button.primary { background: #1f211f; color: #fff; }
.button.primary:hover:not(:disabled) { background: #080908; }
.button.secondary { border-color: #ceccc5; background: var(--paper); color: var(--ink); }
.button.text { min-height: auto; padding: 5px 0; color: #6c5c50; }
.button:disabled { opacity: .45; cursor: default; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 46px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.facts h3 { margin: 0 0 8px; font-size: 13px; font-weight: 620; }
.facts p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.login-card, .account-card, .result-card, .download-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.login-card { max-width: 520px; }
.login-card h2, .account-card h2, .download-card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 620; }
.login-card > p, .download-card > p { margin: 0 0 21px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: #555a56; font-size: 12px; }
.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9c7c0;
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.login-meta { margin: 9px 0 16px; color: var(--muted); font-size: 12px; }

.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.account-identity h2 { margin: 0; font-size: 23px; font-weight: 610; }
.account-identity p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.account-sections { display: grid; gap: 18px; margin-top: 20px; }
.data-section { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 620; }
.section-head span { color: var(--muted); font-size: 12px; }
.item-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; background: var(--paper); }
.item-main { min-width: 0; }
.item-main strong { display: block; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.item-main span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.item-value { flex: none; color: #4f544f; font-size: 12px; text-align: right; }
.empty { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.status-chip { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: #e9e8e4; font-size: 11px; }
.status-chip.paid, .status-chip.active { background: #e6f1e9; color: var(--green); }
.status-chip.failed, .status-chip.refunded { background: #f6e9e7; color: var(--red); }
.status-chip.cancellation_requested, .status-chip.requires_refund { background: #f1ead8; color: #785d21; }

.result-card { max-width: 650px; text-align: center; padding: 50px 40px; }
.result-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #dfded9;
  font-size: 21px;
}
.result-card[data-state="paid"] .result-mark { background: #dfeee4; color: var(--green); }
.result-card[data-state="failed"] .result-mark, .result-card[data-state="refunded"] .result-mark { background: #f2dfdc; color: var(--red); }
.result-card[data-state="cancellation_requested"] .result-mark,
.result-card[data-state="requires_refund"] .result-mark { background: #eee5cf; color: #785d21; }
.result-card h1 { margin: 0; font-size: 34px; font-weight: 580; letter-spacing: -.035em; }
.result-card > p { max-width: 480px; margin: 16px auto 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.order-reference { margin-top: 24px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; overflow-wrap: anywhere; }

.download-meta { display: grid; gap: 9px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-meta div { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.download-meta dt { color: var(--muted); }
.download-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.commerce-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 35px;
  border-top: 1px solid var(--line);
  color: #858985;
  font-size: 11px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--ink); }
.skeleton { min-height: 220px; border-radius: 18px; background: #e5e4df; animation: breathe 1.5s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .55; } }

@media (max-width: 760px) {
  .header-inner { width: calc(100% - 24px); gap: 10px; }
  .wordmark span { display: none; }
  .global-nav { gap: 0; }
  .global-nav a { padding: 7px 8px; font-size: 11px; }
  .commerce-main, .narrow { width: calc(100% - 28px); padding: 54px 0 76px; }
  .page-hero { margin-bottom: 36px; }
  .page-hero h1 { font-size: clamp(34px, 12vw, 50px); }
  .page-hero p:not(.eyebrow) { font-size: 15px; }
  .term-switch { width: 100%; grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 190px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .checkout-summary, .account-head, .item-row { align-items: flex-start; }
  .account-head { flex-direction: column; }
  .item-row { gap: 10px; }
  .login-card, .account-card, .result-card, .download-card, .data-section, .checkout-panel { padding: 21px; }
  .result-card { padding-block: 40px; }
  .result-card h1 { font-size: 29px; }
  .commerce-footer { width: calc(100% - 28px); flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
