:root {
  --bg: #f6f7fb;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --ink: #141822;
  --muted: #52607a;
  --line: #dbe2f2;
  --accent: #0f766e;
  --accent-2: #f97316;
  --accent-ink: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(18, 25, 46, 0.12);
  --maxw: 1140px;
}

[data-theme="dark"] {
  --bg: #0d1118;
  --bg-soft: #121a25;
  --surface: #151d2a;
  --surface-2: #1a2332;
  --ink: #e7edf8;
  --muted: #9db0ce;
  --line: #2a364b;
  --accent: #34b6aa;
  --accent-2: #f59e0b;
  --accent-ink: #071116;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .site-nav a {
  color: #d9ff7a;
  border-color: #3c4a2d;
  background: rgba(18, 29, 16, 0.35);
}

[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a:focus-visible {
  color: #edffb8;
  border-color: #7f9653;
  background: rgba(26, 38, 20, 0.55);
}

[data-theme="dark"] .site-nav summary {
  color: #d9ff7a;
  border-color: #3c4a2d;
  background: rgba(18, 29, 16, 0.35);
}

[data-theme="dark"] .site-nav summary:hover,
[data-theme="dark"] .site-nav summary:focus-visible {
  color: #edffb8;
  border-color: #7f9653;
  background: rgba(26, 38, 20, 0.55);
}

[data-theme="dark"] .dropdown-menu {
  background: rgba(17, 25, 36, 0.96);
  border-color: #33415a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .dropdown-label {
  color: #a2b5d3;
}

[data-theme="dark"] .dropdown-menu a {
  color: #cfddf4;
}

[data-theme="dark"] .dropdown-menu a:hover,
[data-theme="dark"] .dropdown-menu a:focus-visible {
  background: rgba(53, 124, 186, 0.2);
  border-color: #41628a;
}

[data-theme="dark"] .theme-toggle {
  color: #d9ff7a;
  border-color: #7f9653;
  background: rgba(22, 33, 20, 0.55);
}

[data-theme="dark"] .hero-pills span {
  color: #d9ff7a;
  border-color: #6a7f48;
  background: rgba(23, 34, 20, 0.58);
}

[data-theme="dark"] .brand {
  background: rgba(242, 247, 255, 0.95);
  border-color: #98a7c2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .brand img {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--bg-soft) 60%, transparent) 0%, transparent 34%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--bg-soft) 40%, transparent) 0%, transparent 36%),
    var(--bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-one {
  width: 320px;
  height: 320px;
  left: -90px;
  top: 160px;
  background: #a7f3d0;
}

.orb-two {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 380px;
  background: #bfdbfe;
}

.site-shell {
  width: min(var(--maxw), 100% - 2.2rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.18rem 0.34rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.brand img {
  width: 52px;
  height: auto;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav summary {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav summary:hover,
.site-nav summary:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.site-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary::after {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 140ms ease;
}

.nav-dropdown[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.site-nav .nav-premium > summary {
  color: #fff6cc;
  border-color: rgba(255, 200, 66, 0.62);
  background: linear-gradient(135deg, rgba(147, 81, 22, 0.9), rgba(224, 144, 38, 0.9));
  box-shadow: 0 6px 14px rgba(224, 144, 38, 0.26);
}

.site-nav .nav-premium > summary:hover,
.site-nav .nav-premium > summary:focus-visible {
  color: #fff9dd;
  border-color: rgba(255, 224, 141, 0.95);
  background: linear-gradient(135deg, rgba(162, 88, 23, 0.95), rgba(242, 160, 44, 0.95));
}

[data-theme="dark"] .site-nav .nav-premium > summary {
  color: #ffe9a8;
  border-color: rgba(255, 200, 66, 0.68);
  background: linear-gradient(135deg, rgba(118, 65, 18, 0.92), rgba(186, 119, 30, 0.92));
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 290px;
  max-width: 420px;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 0.55rem;
  max-height: min(76vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.dropdown-group {
  display: grid;
  gap: 0.22rem;
}

.dropdown-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.dropdown-menu a {
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.86rem;
}

.nav-dropdown:not([open]) .dropdown-menu {
  display: none;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.36rem 0.56rem;
  min-width: 42px;
  min-height: 34px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.site-main {
  padding-top: 1.1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: #2563eb;
}

.hero-intro {
  padding: 2.35rem 0 0.85rem;
}

.hero-intro h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-intro p {
  margin: 0.9rem 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-pills {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-pills span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  font-size: 0.82rem;
  color: #35517b;
  font-weight: 700;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 380px);
  gap: 1.1rem;
  align-items: center;
}

.home-hero-copy {
  padding-top: 1rem;
}

.home-hero-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-hero-visual {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: 0 12px 28px rgba(18, 25, 46, 0.1);
}

.home-cover-window {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, #ffffff 25%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, #eef4ff 10%);
  padding: 0.5rem;
}

.home-cover-track {
  display: flex;
  gap: 0.48rem;
  width: max-content;
  animation: cover-roll 28s linear infinite;
}

.home-cover-track img {
  width: 108px;
  height: 148px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, #ffffff 20%);
  background: #eef4ff;
}

@keyframes cover-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-hero-badge {
  margin-top: 0.62rem;
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, #164d7b);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.home-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.6rem 0 1.6rem;
}

.home-start-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(18, 25, 46, 0.08);
}

.home-start-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.home-start-card h2 {
  margin: 0.45rem 0 0;
  font-size: 1.3rem;
  line-height: 1.12;
}

.home-start-card p {
  margin: 0.58rem 0 0;
  color: var(--muted);
}

.home-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-intent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(18, 25, 46, 0.08);
}

.home-intent-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.home-intent-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.home-lab {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.home-lab-controls h3 {
  margin: 0;
  font-size: 1.14rem;
}

.home-lab-controls p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.home-lab-controls textarea {
  width: 100%;
  margin-top: 0.7rem;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
}

.home-lab-form-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-lab-form-grid label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.home-lab-form-grid select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.42rem 0.56rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.home-lab-fit {
  margin: 0.56rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.home-lab-fit.ok { color: #15803d; }
.home-lab-fit.warn { color: #b45309; }

.home-lab-actions {
  margin-top: 0.66rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-lab-preview-wrap {
  display: grid;
  place-items: center;
  padding: 0.35rem;
}

.home-lab-preview {
  width: min(100%, 460px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(140deg, #0f4fe5 0%, #00a6ca 100%);
  box-shadow: 0 14px 28px rgba(14, 35, 100, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-lab-preview-ocean { background: linear-gradient(140deg, #0f4fe5 0%, #00a6ca 100%); }
.home-lab-preview-mint { background: linear-gradient(140deg, #0f9b69 0%, #27c7d8 100%); }
.home-lab-preview-sunset { background: linear-gradient(140deg, #ef5f36 0%, #f59e0b 100%); }

.home-lab-preview p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.home-lab-preview span {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.22);
}

.featured-bundle,
.bundle-grid-section,
.posters-section {
  padding: 1.2rem 0 2.8rem;
}

.featured-bundle h2,
.bundle-grid-section h2,
.bundle-books h2,
.posters-section h2 {
  margin: 0 0 0.95rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 500px) 1fr;
  gap: 1.2rem;
  max-width: 1020px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 76%, #ffffff 24%), var(--surface));
}

.featured-image-link img {
  width: min(100%, 500px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.featured-content {
  padding: 1.35rem 1.3rem 1.35rem 0;
}

.featured-content h3 {
  margin: 0;
  font-size: clamp(1.42rem, 2.5vw, 1.92rem);
  line-height: 1.15;
}

.featured-content h3 a,
.bundle-card h3 a {
  text-decoration: none;
}

.featured-content p {
  margin: 0.74rem 0 0;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 0.98rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(90deg, var(--accent), #0891b2);
  box-shadow: 0 8px 18px rgba(6, 95, 70, 0.23);
}

.button:hover,
.button:focus-visible {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button-muted {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  box-shadow: none;
  cursor: default;
}

.price {
  margin: 0.88rem 0 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
}

.price-wrap {
  margin-top: 0.72rem;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  border: 1px solid rgba(217, 119, 6, 0.36);
  background: rgba(251, 191, 36, 0.16);
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price.price-sale {
  margin-top: 0.44rem;
  display: flex;
  align-items: baseline;
  gap: 0.58rem;
}

.price-old {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: line-through;
}

.price-new {
  color: #b45309;
  font-size: 1.06rem;
  font-weight: 900;
}

.bundle-grid,
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.faq-section {
  padding: 1.2rem 0 2.8rem;
  max-width: 920px;
}

.faq-section h2 {
  margin: 0 0 0.95rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  margin: 0 0 0.8rem;
  box-shadow: 0 8px 24px rgba(18, 25, 46, 0.08);
}

.faq-item h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

.faq-item p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.faq-item a {
  color: #1d4ed8;
  text-underline-offset: 2px;
}

[data-theme="dark"] .faq-item a {
  color: #7ab2ff;
}

.contact-section {
  padding: 1.2rem 0 2.8rem;
  max-width: 980px;
}

.contact-section h2 {
  margin: 0 0 0.95rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.contact-embed-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(18, 25, 46, 0.08);
}

.contact-embed-wrap iframe {
  width: 100%;
  min-height: 1550px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
}

.bundle-card,
.poster-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  box-shadow: 0 8px 24px rgba(18, 25, 46, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bundle-card:hover,
.bundle-card:focus-within,
.poster-card:hover,
.poster-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 26px rgba(18, 25, 46, 0.11);
}

.bundle-card img {
  width: 100%;
  height: 148px;
  border-radius: 10px;
  object-fit: contain;
  background: linear-gradient(180deg, #f0f5ff, #f8fbff);
}

.bundle-card h3,
.poster-card h3 {
  margin: 0.66rem 0 0;
  font-size: 1rem;
  line-height: 1.24;
}

.bundle-card p,
.posters-empty {
  margin: 0.53rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.premium-preview {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1rem;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(18, 25, 46, 0.09);
}

.premium-preview-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #edf3ff, #f7fbff);
}

.premium-preview-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
}

.premium-preview-content h3 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.2;
}

.premium-preview-content p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.premium-preview-status {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.premium-status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, #114a72);
}

.premium-preview-panel {
  margin-top: 0.75rem;
  padding: 0.7rem 0.78rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.premium-preview-panel p {
  margin-top: 0;
}

.premium-preview-panel.locked {
  background: rgba(148, 163, 184, 0.14);
}

.premium-preview-panel.unlocked {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.premium-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.button.preview-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.preview-secondary:hover,
.button.preview-secondary:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.premium-verify {
  margin-top: 1.1rem;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(18, 25, 46, 0.08);
}

.premium-feedback {
  border-style: dashed;
}

.premium-verify h2 {
  margin: 0;
}

.premium-verify-intro {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.premium-verify-form {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.8rem;
}

.premium-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.72rem;
}

.premium-field {
  display: grid;
  gap: 0.26rem;
}

.premium-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.premium-field input,
.premium-field select,
.premium-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.64rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.premium-field textarea {
  resize: vertical;
  min-height: 88px;
}

.premium-fieldset {
  margin: 0;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.premium-fieldset legend {
  padding: 0 0.3rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #1f2937;
}

.premium-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.premium-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--ink);
  font-size: 0.93rem;
}

.premium-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.premium-check-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.premium-helper {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.premium-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  align-items: center;
}

.premium-verify-form button[disabled] {
  opacity: 0.75;
  cursor: wait;
}

.premium-form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.premium-form-status.is-error {
  color: #b91c1c;
}

.premium-form-status.is-success {
  color: #166534;
}

.premium-form-status.is-verifying {
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  font-weight: 700;
}

.premium-form-status.is-verifying::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(29, 78, 216, 0.25);
  border-top-color: #1d4ed8;
  animation: premium-spin 0.8s linear infinite;
}

@keyframes premium-spin {
  to {
    transform: rotate(360deg);
  }
}

.poster-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  background: linear-gradient(180deg, #edf3ff, #f7fbff);
}

.bundle-detail {
  padding: 1.35rem 0 3rem;
}

.bundle-hero {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow);
}

.bundle-hero-image {
  padding: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 70%, #fff 30%), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-hero-image img {
  width: min(100%, 500px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.bundle-hero-content {
  padding: 1.15rem 1.2rem 1.15rem 0;
}

.bundle-hero-content h1 {
  margin: 0.32rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.32rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.bundle-hero-content p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.bundle-books {
  padding-top: 1.45rem;
}

.included-book {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.book-thumb {
  width: 98px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef4ff;
}

.book-meta h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.24;
}

.book-author {
  margin: 0.36rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f375f;
}

.book-description {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.footer-shell {
  padding: 1.2rem 0 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
}

.footer-block {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.footer-block h3 {
  margin: 0 0 0.38rem;
  font-size: 0.96rem;
}

.footer-block p {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-block a {
  color: #1d4ed8;
  text-underline-offset: 2px;
}

[data-theme="dark"] .footer-block a {
  color: #7ab2ff;
}

[data-theme="dark"] .home-start-kicker {
  color: #aabedc;
}

[data-theme="dark"] .home-start-card,
[data-theme="dark"] .home-intent-card,
[data-theme="dark"] .home-lab {
  background: rgba(21, 29, 42, 0.92);
  border-color: #31415c;
}

[data-theme="dark"] .home-lab-controls textarea {
  background: #111827;
  border-color: #3b4c67;
  color: #e7edf8;
}

[data-theme="dark"] .home-hero-visual {
  background: rgba(21, 29, 42, 0.92);
  border-color: #31415c;
}

[data-theme="dark"] .home-cover-window {
  background: rgba(17, 25, 38, 0.74);
  border-color: #3a4d6c;
}

[data-theme="dark"] .home-hero-badge {
  color: #9ee3ff;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

[data-theme="dark"] .sale-badge {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

[data-theme="dark"] .price-old {
  color: #94a3b8;
}

[data-theme="dark"] .price-new {
  color: #fbbf24;
}

[data-theme="dark"] .home-lab-form-grid label {
  color: #bed0eb;
}

[data-theme="dark"] .home-lab-form-grid select {
  background: #111827;
  border-color: #3b4c67;
  color: #e7edf8;
}

[data-theme="dark"] .premium-preview {
  background: rgba(21, 29, 42, 0.92);
  border-color: #31415c;
}

[data-theme="dark"] .premium-preview-media img {
  border-color: #31415c;
  background: #111827;
}

[data-theme="dark"] .premium-preview-kicker {
  color: #aabedc;
}

[data-theme="dark"] .premium-status-pill {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: #9ee3ff;
}

[data-theme="dark"] .premium-preview-panel.locked {
  background: rgba(71, 85, 105, 0.26);
  border-color: #3d4f69;
}

[data-theme="dark"] .premium-preview-panel.unlocked {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.4);
}

[data-theme="dark"] .button.preview-secondary {
  background: rgba(24, 36, 54, 0.82);
  border-color: #3a4d6c;
  color: #dbe7fb;
}

[data-theme="dark"] .button.preview-secondary:hover,
[data-theme="dark"] .button.preview-secondary:focus-visible {
  background: rgba(34, 50, 72, 0.9);
}

[data-theme="dark"] .premium-verify {
  background: rgba(21, 29, 42, 0.92);
  border-color: #31415c;
}

[data-theme="dark"] .premium-feedback {
  border-color: #3a4e6d;
}

[data-theme="dark"] .premium-field label {
  color: #bed0eb;
}

[data-theme="dark"] .premium-field input,
[data-theme="dark"] .premium-field select,
[data-theme="dark"] .premium-field textarea {
  background: #111827;
  border-color: #3b4c67;
  color: #e7edf8;
}

[data-theme="dark"] .premium-fieldset {
  border-color: #33445f;
  background: rgba(17, 25, 38, 0.6);
}

[data-theme="dark"] .premium-fieldset legend {
  color: #d3e1f5;
}

[data-theme="dark"] .premium-form-status.is-error {
  color: #fca5a5;
}

[data-theme="dark"] .premium-form-status.is-success {
  color: #86efac;
}

[data-theme="dark"] .premium-form-status.is-verifying {
  color: #93c5fd;
}

[data-theme="dark"] .premium-form-status.is-verifying::before {
  border-color: rgba(147, 197, 253, 0.35);
  border-top-color: #93c5fd;
}

.footer-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: color-mix(in srgb, var(--accent) 78%, #114a72);
  font-weight: 700;
  text-decoration: none;
}

.footer-pill-link::after {
  content: "->";
  font-size: 0.82rem;
}

.footer-pill-link:hover,
.footer-pill-link:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

[data-theme="dark"] .footer-pill-link {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: #9ee3ff;
}

[data-theme="dark"] .footer-pill-link:hover,
[data-theme="dark"] .footer-pill-link:focus-visible {
  color: var(--ink);
  background: var(--surface);
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 120ms ease, filter 120ms ease;
}

.share-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.share-btn:hover,
.share-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.share-x { background: #0a0a0a; }
.share-ln { background: #165ea8; }
.share-wa { background: #22b455; }
.share-tg { background: #1f94cf; }
.share-rd { background: #e14a00; }
.share-em { background: #b91c1c; }

[data-theme="dark"] .share-btn {
  border-color: rgba(255, 255, 255, 0.24);
}

.footer-shell small {
  grid-column: 1 / -1;
  color: #5f6d86;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.build-version {
  margin-left: 0.5rem;
  text-align: right;
  color: #7b8ba9;
  font-size: 0.65rem;
}

.tool-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tool-frame {
  width: 100%;
  min-height: 820px;
  border: 0;
  display: block;
  background: transparent;
}

[data-theme="dark"] .tool-frame-wrap {
  background: rgba(17, 25, 36, 0.95);
  border-color: #33415a;
}

@media (max-width: 930px) {
  .home-hero,
  .featured-card,
  .bundle-hero,
  .home-lab,
  .premium-preview {
    grid-template-columns: 1fr;
  }

  .featured-content,
  .bundle-hero-content {
    padding: 1rem;
  }

  .premium-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(var(--maxw), 100% - 1.2rem);
  }

  .site-nav {
    gap: 0.25rem;
    align-items: center;
  }

  .site-nav a {
    padding: 0.35rem 0.58rem;
    font-size: 0.86rem;
  }

  .site-nav summary {
    padding: 0.35rem 0.58rem;
    font-size: 0.86rem;
  }

  .nav-dropdown {
    width: auto;
    max-width: 100%;
  }

  .nav-dropdown[open] {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-top: 0.25rem;
    max-height: min(42vh, 280px);
  }

  .brand {
    min-height: 42px;
    padding: 0.14rem 0.26rem;
  }

  .brand img {
    width: 44px;
  }

  .bundle-grid,
  .poster-grid,
  .home-start-grid,
  .home-intent-grid {
    grid-template-columns: 1fr;
  }

  .home-lab-form-grid {
    grid-template-columns: 1fr;
  }

  .included-book {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .book-thumb {
    width: 84px;
    height: 120px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}
