:root {
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: #e8e8ed;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --soft-2: #f5f5f7;
  --teal: #1d7c78;
  --teal-dark: #14605d;
  --amber: #b0802b;
  --navy: #1d1d1f;
  --green: #1d7c78;
  --danger: #c0392b;
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Text", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  width: 18px;
  height: 18px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 99;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.top-strip {
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.top-strip span {
  opacity: 0.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(20px, 4vw);
  height: 56px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand small {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.header-actions,
.hero-actions,
.product-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.cart-btn,
.member-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  background: none;
  transition: all 0.22s ease;
}

.primary-btn {
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 999px;
  min-height: 44px;
}

.primary-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.015);
}

.primary-btn.full {
  width: 100%;
}

.primary-btn svg,
.secondary-btn svg {
  display: none;
}

.secondary-btn {
  color: var(--teal);
  border: 1px solid var(--teal);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 999px;
  min-height: 44px;
  background: transparent;
}

.secondary-btn:hover {
  background: rgba(29, 124, 120, 0.08);
}

.secondary-btn:disabled,
.primary-btn:disabled,
.text-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.ghost-btn {
  color: var(--ink);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}

.ghost-btn:hover {
  background: var(--soft);
}

.ghost-btn svg {
  width: 16px;
  height: 16px;
}

.cart-btn,
.member-btn,
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink);
  position: relative;
}

.cart-btn:hover,
.member-btn:hover,
.icon-btn:hover {
  background: var(--soft);
}

.cart-btn svg,
.member-btn svg,
.icon-btn svg {
  width: 19px;
  height: 19px;
}

.cart-btn span {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.text-btn {
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
}

.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero:Apple 式白底居中 ---------- */

.hero {
  padding: clamp(64px, 9vw, 110px) 24px 0;
  text-align: center;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7.4vw, 78px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-heading h2,
.serial-callout h2 {
  text-wrap: balance;
}

.hero h1 span {
  display: inline;
}

.hero h1 span + span::before {
  content: " ";
}

.hero-lede {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  justify-content: center;
  margin-top: 30px;
  gap: 22px;
}

.hero-figure {
  max-width: 1240px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

.hero-figure img {
  width: 100%;
  border-radius: clamp(14px, 2vw, 22px);
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.hero-proof {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: clamp(34px, 5vw, 52px) auto 0;
  padding: clamp(26px, 4vw, 38px) 0 0;
  border-top: 1px solid var(--line);
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-proof strong {
  font-size: 17px;
  font-weight: 600;
}

.hero-proof span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 区块基础 ---------- */

.section {
  padding: clamp(64px, 9vw, 110px) 24px 0;
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(34px, 5vw, 54px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.section-heading p:not(.eyebrow) {
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: clamp(26px, 4vw, 40px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.intro-band div {
  background: var(--soft);
  border-radius: 20px;
  padding: 26px 28px;
  font-size: 15px;
  line-height: 1.65;
}

.intro-band strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.intro-band span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 序列号入口 ---------- */

.serial-callout {
  background: var(--soft);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.serial-callout-copy {
  max-width: 560px;
}

.serial-callout h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.serial-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.serial-callout small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
}

.serial-callout-btn {
  flex-shrink: 0;
}

/* ---------- 实拍 ---------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--soft);
}

.story-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover img {
  transform: scale(1.025);
}

.story-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- 商品卡 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--soft);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-media {
  background: #fff;
  padding: clamp(20px, 3vw, 34px);
}

.product-media img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  margin: 0 auto;
}

.product-body {
  padding: clamp(24px, 3.4vw, 36px) clamp(20px, 3vw, 34px) clamp(26px, 3.4vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.product-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-top h3 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.product-type-line {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.price {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.product-body > p {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.chips,
.included-list,
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips,
.included-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 6px;
  row-gap: 2px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.chips li:not(:last-child)::after,
.included-list li:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  opacity: 0.6;
}

.feature-list {
  margin: 16px auto 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.included-list {
  order: 5;
}

.product-actions {
  justify-content: center;
  margin-top: 22px;
}

/* ---------- 赠品 ---------- */

.gift-band {
  text-align: center;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.gift-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.gift-grid svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
  stroke-width: 1.6;
}

.gift-grid h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.gift-grid p,
.service-list p,
.compare-panel p,
.faq-list p,
.medical-note p {
  color: var(--muted);
}

.gift-grid p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- 服务 ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(22px, 3vw, 38px);
}

.service-list div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list span {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.service-list h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.service-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 对比(iOS 分段控件) ---------- */

.selector {
  display: inline-flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 26px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.selector-tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.22s ease;
}

.selector-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.compare-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.compare-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
}

.compare-panel p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 专栏 ---------- */

.journal-preview {
  max-width: 1120px;
}

.journal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  max-width: none;
}

.journal-heading > div {
  max-width: 620px;
}

.journal-heading h2 {
  text-align: left;
}

.journal-heading p:not(.eyebrow) {
  text-align: left;
  margin-left: 0;
}

.journal-heading .eyebrow {
  text-align: left;
}

.journal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journal-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 8px;
  transition: transform 0.4s ease;
}

.journal-card:hover img {
  transform: scale(1.02);
}

.journal-card > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}

.journal-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.journal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.journal-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
}

.journal-socials a {
  color: var(--teal);
  font-weight: 500;
}

.journal-socials a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- FAQ(支持页风格) ---------- */

.faq-section .section-heading {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 44px 0 4px;
}

.faq-category:first-child {
  margin-top: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.5;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
}

.faq-list ol,
.faq-list ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.faq-list li {
  margin-bottom: 6px;
}

/* ---------- 合规提示 ---------- */

.medical-note {
  max-width: 1120px;
  margin: clamp(64px, 9vw, 110px) auto 0;
  padding: 26px 24px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.medical-note svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 3px;
}

.medical-note p {
  margin: 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 滚动浮现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 首页响应式 ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .brand small {
    display: none;
  }

  .top-strip {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .ghost-btn {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .primary-btn {
    width: min(100%, 340px);
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card img {
    min-height: 220px;
  }

  .serial-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .serial-callout-btn {
    width: 100%;
  }

  .product-actions {
    flex-direction: column;
    width: 100%;
  }

  .product-actions .primary-btn,
  .product-actions .secondary-btn {
    width: 100%;
  }

  .journal-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 32, 51, 0.46);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cart-drawer.is-open .cart-backdrop {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 440px);
  height: 100%;
  background: white;
  box-shadow: -24px 0 60px rgba(17, 32, 51, 0.18);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.cart-items {
  overflow: auto;
  padding: 20px 24px;
}

.empty-cart {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 86px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fbfc;
}

.cart-item h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.cart-item p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: white;
  color: var(--ink);
  font-size: 18px;
}

.qty-controls span {
  min-width: 34px;
  text-align: center;
  font-weight: 900;
}

.cart-summary {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 18px;
}

.cart-summary p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-dialog {
  width: min(92vw, 780px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(17, 32, 51, 0.5);
}

.checkout-form {
  min-width: 0;
  padding: 26px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.dialog-head h2 {
  margin-bottom: 0;
  font-size: 31px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid > * {
  min-width: 0;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #29394d;
  font-weight: 850;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.checkout-region-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: white;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(29, 124, 120, 0.28);
  border-color: var(--teal);
}

.payment-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coupon-field {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(29, 124, 120, 0.3);
  border-radius: 8px;
  background: #f4fbfa;
}

.coupon-field legend {
  padding: 0 6px;
  color: #29394d;
  font-weight: 900;
}

.coupon-option {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px !important;
  align-items: center;
  cursor: pointer;
}

.coupon-option input {
  position: absolute;
  opacity: 0;
}

.coupon-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #8aa9a6;
  border-radius: 4px;
  background: white;
  color: white;
}

.coupon-check svg {
  width: 16px;
  height: 16px;
}

.coupon-option input:checked + .coupon-check {
  border-color: var(--teal);
  background: var(--teal);
}

.coupon-option input:focus-visible + .coupon-check {
  outline: 2px solid rgba(29, 124, 120, 0.3);
  outline-offset: 2px;
}

.coupon-option input:disabled + .coupon-check {
  opacity: 0.45;
}

.coupon-copy {
  display: grid;
  gap: 2px;
}

.coupon-copy strong {
  color: var(--ink);
}

.coupon-copy small {
  color: var(--muted);
  font-weight: 700;
}

.coupon-option b {
  color: #c33838;
  font-size: 20px;
}

.checkout-totals {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.checkout-item-lines {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.checkout-item-lines > div,
.checkout-amount-row,
.checkout-payable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-item-lines span,
.checkout-amount-row span {
  color: var(--muted);
}

.checkout-amount-row {
  min-height: 32px;
}

.checkout-discount-row strong {
  color: #c33838;
}

.checkout-payable {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.checkout-payable span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.checkout-payable strong {
  color: var(--teal-dark);
  font-size: 38px;
  line-height: 1;
}

.payment-field legend {
  padding: 0 6px;
  color: #29394d;
  font-weight: 900;
}

.payment-option {
  display: block;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.payment-option input:checked + span {
  border-color: var(--teal);
  background: #edf6f5;
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.payment-option input:disabled + span {
  cursor: not-allowed;
  opacity: 0.48;
}

.payment-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 190px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(29, 124, 120, 0.24);
  border-radius: 8px;
  background: #f4fbfa;
}

.payment-qr[hidden] {
  display: none;
}

.payment-qr strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 18px;
}

.payment-manual-amount {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 12px 14px;
  border-left: 4px solid #c77a24;
  background: white;
  color: #5f411c;
  font-size: 14px;
  font-weight: 850;
}

.payment-manual-amount b {
  color: var(--teal-dark);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.payment-qr .payment-countdown {
  display: inline-flex;
  margin: 4px 0;
  padding: 7px 10px;
  border: 1px solid rgba(209, 138, 34, 0.35);
  border-radius: 6px;
  background: #fff8eb;
  color: #744a0a;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.payment-qr .payment-countdown[hidden] {
  display: none;
}

.payment-qr p {
  margin-bottom: 8px;
  color: #314156;
  line-height: 1.55;
}

.payment-qr small {
  color: var(--muted);
  font-weight: 800;
}

.payment-qr .payment-long-press {
  display: block;
  margin: 10px 0 4px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
}

.payment-qr-crop {
  width: min(100%, 190px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.payment-qr-crop img {
  width: 200%;
  max-width: none;
  transform: translate(-25.5%, -35.3%);
}

.order-preview {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.checkout-form .dialog-actions {
  position: sticky;
  bottom: -26px;
  z-index: 1;
  justify-content: flex-end;
  margin: 18px -26px -26px;
  padding: 14px 26px 20px;
  border-top: 1px solid var(--line);
  background: white;
}

.checkout-form .dialog-actions [data-copy-order]:disabled {
  display: none;
}

.order-preview strong {
  color: var(--ink);
}

.support-chat-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 58px;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #15a36d;
  color: white;
  box-shadow: 0 16px 34px rgba(21, 163, 109, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.support-chat-btn:hover {
  background: #0c8d5b;
  box-shadow: 0 18px 38px rgba(21, 163, 109, 0.36);
  transform: translateY(-2px);
}

.support-chat-btn svg {
  width: 25px;
  height: 25px;
}

.support-chat-btn span {
  font-size: 15px;
  font-weight: 850;
}

.support-dialog {
  width: min(88vw, 430px);
  border: 0;
  border-radius: 8px;
  padding: 46px 18px 18px;
  background: white;
  box-shadow: var(--shadow);
}

.support-dialog[open] {
  display: grid;
  place-items: center;
}

.support-dialog::backdrop {
  background: rgba(17, 32, 51, 0.54);
}

.support-dialog img {
  width: min(76vw, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}

.support-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
}

.serial-page {
  background: #f7fafb;
}

.serial-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 183, 115, 0.22), transparent 28%),
    linear-gradient(135deg, #081827 0%, #153653 100%);
  color: white;
}

.serial-hero-copy {
  max-width: 760px;
}

.serial-hero .eyebrow {
  color: #9be0dc;
}

.serial-hero h1 {
  margin-bottom: 18px;
  color: white;
}

.serial-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.72;
}

.serial-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.serial-panel label {
  display: grid;
  gap: 8px;
  color: #26374c;
  font-weight: 850;
}

.serial-panel input,
.serial-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: white;
  color: var(--ink);
  outline: none;
}

.serial-panel input:focus,
.serial-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(29, 124, 120, 0.12);
}

.serial-panel input.is-invalid {
  border-color: #c0362c;
  background: #fff8f7;
  box-shadow: 0 0 0 4px rgba(192, 54, 44, 0.12);
}

.serial-field-error {
  display: none;
  margin-top: -2px;
  color: #a63229;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.serial-field-error.is-visible {
  display: block;
}

.serial-panel .serial-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.serial-result-section {
  padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.serial-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
  box-shadow: 0 14px 42px rgba(17, 32, 51, 0.08);
}

.serial-result.is-empty {
  display: none;
}

.serial-result > svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.serial-result.is-empty > svg {
  color: var(--muted);
}

.serial-result.is-review > svg {
  color: var(--amber);
}

.serial-result.is-verified {
  border-color: rgba(18, 133, 91, 0.35);
  background: #f1fbf6;
}

.serial-result.is-verified > svg,
.serial-result.is-verified .serial-status {
  color: #087a50;
}

.serial-result h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 3vw, 28px);
}

.serial-status {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.serial-result.is-review .serial-status {
  color: #9a5f19;
}

.serial-result p {
  color: var(--muted);
  line-height: 1.65;
}

.serial-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.serial-facts div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.serial-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.serial-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.serial-next {
  margin-bottom: 16px;
}

.serial-coverage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.serial-coverage article {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(29, 124, 120, 0.24);
  border-radius: 8px;
  background: #f4fbfa;
}

.serial-coverage span,
.serial-coverage small {
  color: var(--muted);
  font-weight: 750;
}

.serial-coverage strong {
  color: var(--teal-dark);
  font-size: 22px;
}

.serial-coverage p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.serial-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
}

.serial-process div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(17, 32, 51, 0.06);
}

.serial-process span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-weight: 950;
}

.serial-process p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.serial-disclaimer {
  margin-top: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1060px) {
  .serial-hero, .serial-process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cart-btn, .member-btn, .icon-btn {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .serial-hero {
    padding: 44px 16px;
  }

  .serial-panel {
    padding: 18px;
  }

  .serial-result-section {
    padding: 28px 16px;
  }

  .serial-result, .serial-facts, .serial-coverage {
    grid-template-columns: 1fr;
  }

  .serial-coverage p {
    grid-column: auto;
  }

  .serial-process {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .checkout-region-fields {
    grid-template-columns: 1fr;
  }

  .payment-field {
    grid-template-columns: 1fr;
  }

  .coupon-option {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .coupon-option b {
    font-size: 17px;
  }

  .checkout-payable strong {
    font-size: 32px;
  }

  .payment-qr {
    grid-template-columns: 1fr;
  }

  .checkout-form {
    padding: 20px;
  }

  .checkout-form .dialog-actions {
    bottom: -20px;
    margin: 18px -20px -20px;
    padding: 14px 20px 18px;
  }

  .support-chat-btn {
    right: 16px;
    bottom: 16px;
    min-width: 116px;
    height: 52px;
    padding: 0 14px;
  }

  .support-chat-btn span {
    font-size: 14px;
  }

  .support-dialog {
    width: calc(100vw - 28px);
    padding: 44px 14px 14px;
  }

  .support-dialog img {
    width: min(82vw, 340px);
  }
}



/* Sleep health journal */
.content-site-header {
  position: relative;
}

.journal-page,
.article-page {
  min-height: 70vh;
}

.journal-masthead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: min(680px, calc(100vh - 138px));
  background: #0f2637;
  color: white;
  overflow: hidden;
}

.journal-masthead > * {
  min-width: 0;
}

.journal-masthead > div {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 112px) clamp(28px, 6vw, 96px);
}

.journal-masthead h1 {
  margin: 12px 0 24px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.journal-masthead p:last-child {
  margin: 0;
  color: #d8e4e9;
  font-size: 18px;
  line-height: 1.8;
}

.journal-masthead img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.journal-index-section,
.journal-follow-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.journal-index-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.journal-index-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.journal-index-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.journal-index-item span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.journal-index-item h2 {
  margin: 10px 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.24;
}

.journal-index-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.journal-index-item:hover h2 {
  color: var(--teal-dark);
}

.journal-follow-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 70px;
  border-top: 1px solid var(--line);
}

.journal-follow-band h2 {
  margin: 8px 0 12px;
  font-size: 38px;
}

.journal-follow-band p {
  margin: 0;
  color: var(--muted);
}

.journal-follow-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.journal-follow-links a {
  display: grid;
  align-content: center;
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.journal-follow-links a:hover {
  border-color: var(--teal);
  background: #f4fbfa;
}

.journal-follow-links strong {
  font-size: 22px;
}

.journal-follow-links span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100% - 1180px) / 2));
  background: #0f2637;
  color: #c5d3d9;
  font-size: 13px;
}

.content-footer a {
  color: white;
  font-weight: 850;
  text-decoration: none;
}

.article-topbar {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: white;
}

.article-page > article {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.article-header {
  max-width: 820px;
  padding: 82px 0 52px;
}

.article-header h1 {
  margin: 12px 0 22px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-deck {
  margin: 0;
  color: #415166;
  font-size: 20px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.article-lead-image {
  margin: 0;
}

.article-lead-image img {
  width: 100%;
  max-height: 670px;
  object-fit: cover;
}

.article-lead-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  width: min(720px, 100%);
  margin: 54px auto 90px;
  color: #223247;
  font-size: 18px;
  line-height: 1.95;
}

.article-body h2 {
  margin: 52px 0 16px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.3;
}

.article-body h3 {
  margin: 30px 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.article-body p {
  margin: 0 0 22px;
}

.article-callout {
  margin: 40px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--teal);
  background: #f1f8f7;
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.article-callout p {
  margin: 0;
}

.article-comparison {
  margin: 36px 0;
  border-top: 1px solid var(--line);
}

.article-comparison > div {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.4fr;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}

.article-comparison > div:first-child {
  background: #f6f8f9;
}

.article-sources {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.article-sources h2 {
  margin-top: 0;
  font-size: 20px;
}

.article-sources a {
  display: block;
  color: var(--teal-dark);
  font-weight: 800;
}

.article-next {
  display: grid;
  width: min(980px, calc(100% - 40px));
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin: 0 auto 90px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-next > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-next a {
  display: grid;
  color: var(--ink);
  text-decoration: none;
}

.article-next strong {
  font-size: 26px;
}

.article-next small {
  margin-top: 7px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .content-site-header .nav-links {
    display: none;
  }

  .journal-masthead {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .journal-masthead > div {
    padding: 60px 24px;
  }

  .journal-masthead img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .journal-index-item {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .journal-follow-band {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .content-site-header > .secondary-btn {
    display: none;
  }

  .journal-index-section, .journal-follow-band {
    width: min(100% - 32px, 1180px);
    padding: 58px 0;
  }

  .journal-masthead h1 {
    font-size: 39px;
    line-height: 1.14;
  }

  .journal-follow-links {
    grid-template-columns: 1fr;
  }

  .content-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-topbar {
    min-height: 78px;
    padding: 8px 16px;
  }

  .article-header {
    padding: 54px 0 38px;
  }

  .article-deck {
    font-size: 18px;
  }

  .article-body {
    margin-top: 38px;
    font-size: 17px;
  }

  .article-comparison > div {
    grid-template-columns: 0.65fr 1fr;
  }

  .article-comparison > div > :last-child {
    grid-column: 1 / -1;
    color: var(--muted);
  }

  .article-next {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
