:root {
  color-scheme: light;
  --ink: #211b40;
  --muted: #605976;
  --paper: #f7f6fd;
  --surface: #ffffff;
  --line: #dedaf0;
  --accent: #5239cc;
  --accent-hover: #3f2aa9;
  --tint: #eee9ff;
  --tint-selected: #e7dfff;
  --soft-border: #c9bde9;
  --round: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #6f4be0; outline-offset: 4px; }
.container { width: min(70rem, 100% - 3rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 4.5rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; font-size: 1.15rem; }
.brand-mark, .ticket-icon { display: inline-grid; place-items: center; border-radius: .5rem; background: var(--accent); color: white; width: 2.1rem; height: 2.1rem; }
nav { display: flex; gap: 1.6rem; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--accent); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding-block: clamp(2.8rem, 7vw, 6.25rem); }
h1 { margin-block: 0 .85rem; font-size: clamp(2.25rem, 5.15vw, 4.5rem); letter-spacing: -.065em; line-height: 1.14; }
h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 29rem; color: var(--muted); margin-bottom: 1.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; padding: .65rem 1rem; min-height: 2.75rem; border: 1px solid var(--accent); border-radius: .6rem; background: var(--accent); color: white; font-weight: 650; white-space: nowrap; }
.button:hover { background: var(--accent-hover); }
.button-small { padding: .5rem .9rem; min-height: 2.65rem; font-size: .93rem; }
.hero-card {
  min-height: 18rem;
  display: grid;
  place-items: center;
  padding: 1.9rem 1.35rem;
  border-radius: 1.45rem;
  background: radial-gradient(ellipse at 12% 5%, #a487fc85, transparent 62%),
    repeating-linear-gradient(135deg, transparent 0 13px, #daceff28 13px 14px),
    linear-gradient(130deg, #6650dc, #3a248f);
}
.ticket { width: min(18rem, 100%); padding: 1.25rem; border: 1px solid var(--soft-border); border-radius: 1rem; background: #fcfaff; transform: rotate(-7deg); box-shadow: .55rem 1.1rem 2rem #21145066; }
.ticket-top, .ticket-bottom { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.ticket-icon { width: 1.8rem; height: 1.8rem; }
.ticket-top, .ticket-bottom { color: var(--accent); font-size: .85rem; font-weight: 700; }
.ticket-title { font-weight: 780; font-size: clamp(1.35rem, 3vw, 2rem); margin-block: 1.2rem 1rem; letter-spacing: -.04em; }
.ticket-title span { display: block; color: var(--muted); font-weight: 450; font-size: .81rem; letter-spacing: 0; }
.ticket-bottom { border-top: 1px dashed #a192cc; padding-top: .8rem; }
.ticket-stripes { width: 4.1rem; height: 1.15rem; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 4px, var(--accent) 4px 5px, transparent 5px 8px); }
.product-section { border-top: 1px solid var(--line); padding-block: 2.4rem; }
.section-heading, .product-bottom { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); letter-spacing: -.03em; line-height: 1.25; }
.section-heading p, .product p, .lookup-section p, .footer-inner, dialog p { color: var(--muted); }
.section-heading p { font-size: .88rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
.product { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--round); background: var(--surface); }
.product-icon { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: .6rem; background: var(--tint); color: var(--accent); font-weight: 750; margin-bottom: .6rem; }
.product-icon-pro { background: #e4eaff; color: #2c469e; }
.product h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.product p { font-size: .93rem; }
.product-bottom { margin-top: 1.15rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.price { font-size: 1.65rem; font-weight: 800; letter-spacing: -.04em; }
.lookup-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; padding: 1.5rem; background: var(--tint); border: 1px solid var(--line); border-radius: var(--round); }
.lookup-section h2 { margin-bottom: .3rem; }
label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 650; }
.input-group { display: flex; gap: .5rem; }
input { width: 100%; min-width: 0; min-height: 2.65rem; padding: .4rem .65rem; border: 1px solid #8f82aa; border-radius: .55rem; color: var(--ink); background: var(--surface); }
.lookup-status:not(:empty) { margin-top: .65rem; }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1rem; font-size: .86rem; }
.footer-inner .brand { color: var(--accent); }
dialog { width: min(28rem, 100% - 2rem); padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--round); color: var(--ink); background: var(--surface); box-shadow: 0 .8rem 3rem #21145040; }
dialog::backdrop { background: #1c143e99; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.close-button { background: transparent; border: 1px solid var(--line); border-radius: .5rem; width: 2.25rem; height: 2.25rem; font-size: 1.45rem; color: var(--ink); line-height: 1; }
.order-product { font-weight: 750; margin-block: .85rem .35rem; }
dialog .button { margin-top: 1.15rem; width: 100%; }
dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; padding: .8rem; margin-bottom: 0; background: var(--tint); border-radius: .5rem; }
dd { margin: 0; font-weight: 650; }
@media (max-width: 43rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.8rem; }
  nav { gap: .9rem; }
  .hero, .lookup-section { grid-template-columns: 1fr; }
  .hero { gap: 1.5rem; padding-block: 2rem; }
  .hero-card { min-height: 14rem; }
  .product-section { padding-block: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  transform: translateY(-200%);
  padding: .55rem .85rem;
  border-radius: .45rem;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { transform: none; }
.announcement {
  padding: .4rem 1rem;
  background: #2f205f;
  color: #f2ecff;
  font-size: .82rem;
  text-align: center;
}
.nav-lookup {
  font-weight: 700;
  color: var(--accent);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .65rem .95rem;
  border: 1px solid var(--soft-border);
  border-radius: .6rem;
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
}
.secondary-button:hover { background: var(--tint); }
.hero-card { overflow: hidden; }
.hero-card .ticket { grid-area: 1 / 1; }
.hero-card .ticket-back {
  height: 82%;
  background: #d0c0ff;
  transform: translate(1rem, -.4rem) rotate(5deg);
  box-shadow: none;
}
.text-link { color: var(--accent); font-size: .9rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.catalog {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.catalog-sidebar {
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: #f0edfb;
}
.catalog-sidebar h3 { margin-bottom: .55rem; font-size: .87rem; }
.catalog-filters { display: grid; gap: .3rem; }
.catalog-filters button {
  min-height: 2.4rem;
  padding: .45rem .65rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: .9rem;
}
.catalog-filters button:hover { background: var(--tint-selected); }
.catalog-filters button[aria-pressed="true"] {
  border-color: var(--soft-border);
  background: var(--tint-selected);
  color: var(--accent);
  font-weight: 700;
}
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.product-icon-claude { background: #fae7f6; color: #852f70; }
.faq-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-top: .65rem;
}
.faq-section h2 { margin-bottom: .35rem; }
.faq-section p, .footer-inner p { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: .8rem .1rem; cursor: pointer; font-weight: 650; }
.faq-list summary::marker { color: var(--accent); }
.faq-list p { padding: 0 .1rem .85rem; font-size: .92rem; }

.process-section {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style-position: inside;
}
.process-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--surface);
}
.process-list li::marker { color: var(--accent); font-weight: 750; }
.process-list h3 { display: inline; font-size: 1rem; }
.process-list p { margin-top: .25rem; color: var(--muted); font-size: .93rem; }

@media (max-width: 38rem) {
  .process-section { padding-block: 1.25rem 1.7rem; }
  .process-list { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 62rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .catalog, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .catalog-filters { display: flex; flex-wrap: wrap; }
  .catalog-sidebar { padding: .75rem; }
  .catalog-sidebar h3 { margin-bottom: .25rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 34rem) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .section-heading { align-items: baseline; }
  nav { gap: .65rem; font-size: .84rem; }
  .header-inner { gap: .5rem; }
  .brand { gap: .45rem; font-size: 1rem; white-space: nowrap; }
}
@media (max-width: 23rem) {
  .nav-lookup span, .section-heading .text-link { display: none; }
}


.button:disabled {
  border-color: var(--soft-border);
  background: var(--tint);
  color: var(--muted);
  cursor: not-allowed;
}
.order-access {
  margin-top: 1rem;
}
.order-access p {
  margin-top: .3rem;
  font-size: .83rem;
}
.order-access .secondary-button {
  padding: .35rem .8rem;
}
#refresh-order {
  width: 100%;
  margin-top: .65rem;
}


.order-redemption {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--soft-border);
  border-radius: .6rem;
  background: var(--tint);
}
.order-redemption h3 { font-size: 1.05rem; }
.order-redemption p { margin-block: .3rem .55rem; font-size: .9rem; overflow-wrap: anywhere; }
.order-redemption p[role="status"] { margin-block: .35rem 0; font-size: .83rem; }
.order-redemption .secondary-button { padding: .35rem .8rem; }
.order-redemption .button { margin-top: .8rem; }


/* Storefront layout for three live plans. */
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-unavailable { color: var(--muted); font-size: .9rem; }
.catalog-status:not(:empty) { color: var(--muted); margin-top: 1rem; }
.lookup-entry { display: flex; align-items: center; justify-content: flex-end; }
@media (max-width: 56rem) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 43rem) {
  .product-grid { grid-template-columns: 1fr; }
  .lookup-entry { justify-content: flex-start; }
}
