@import url("../fonts/fonts.css");

/* ==========================================================================
   Phonelum — warm clinical
   Audience is 55+ and their adult children, so the type scale runs large,
   contrast stays high, and every control clears a 56px touch target.
   ========================================================================== */

:root {
  /* Brand — sampled from the wordmark */
  --navy: #01203d;
  --navy-700: #06304f;
  --navy-500: #0f4a72;
  --orange: #ff5200;      /* decorative only: rules, waveform, ticks, icons */
  --orange-600: #cc4200;  /* text + buttons — 4.8:1 on white, 4.6:1 on paper */
  --orange-700: #b83b00;  /* hover */
  --orange-100: #ffeee6;
  --gold: #c2984f;

  /* Warm paper neutrals — never a cold clinical white */
  --paper: #fbf8f3;
  --paper-sunk: #f3ede3;
  --card: #ffffff;
  --rule: #e4dacb;
  --rule-soft: #efe7db;

  --ink: #10283d;
  --ink-soft: #4d6273;
  --ink-faint: #627384;
  --on-dark: #f4efe7;
  --on-dark-soft: #b6c4d1;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;

  --shell: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(1, 32, 61, 0.06), 0 6px 18px -12px rgba(1, 32, 61, 0.28);
  --shadow-md: 0 2px 4px rgba(1, 32, 61, 0.05), 0 22px 48px -28px rgba(1, 32, 61, 0.42);
  --shadow-lg: 0 4px 8px rgba(1, 32, 61, 0.06), 0 44px 80px -40px rgba(1, 32, 61, 0.5);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Chinese pages run entirely on the CJK stack. Mixing a latin serif into a
   Chinese headline makes the embedded English words look like a different
   voice, so the display face is dropped here rather than layered. */
html[lang="zh-Hans"] {
  --body: var(--cjk);
  --display: var(--cjk);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem; /* 19px — deliberately above the usual 16 */
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="zh-Hans"] body {
  font-size: 1.125rem;
  line-height: 1.85;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--navy);
  text-wrap: balance;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4 {
  letter-spacing: 0.01em;
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 120;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-variation-settings: "SOFT" 16, "opsz" 72;
}
h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-variation-settings: "opsz" 32;
}
h4 {
  font-size: 1.25rem;
  font-variation-settings: "opsz" 20;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

a {
  color: var(--navy-500);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}
a:hover {
  color: var(--orange-600);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--navy);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.shell--wide {
  width: min(100% - var(--gutter) * 2, 1440px);
}
.shell--narrow {
  width: min(100% - var(--gutter) * 2, 780px);
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.section--sunk {
  background: var(--paper-sunk);
}
.section--dark {
  background: var(--navy);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--paper);
}
.section--dark a {
  color: #ffd9c6;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* Eyebrow + rule — the editorial spine of the whole site */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--orange);
  flex: none;
}
.section--dark .eyebrow,
.hero .eyebrow,
.pagehead .eyebrow,
.cta-band .eyebrow {
  color: #ff8a4d;
}
.section--dark .eyebrow::before,
.hero .eyebrow::before,
.pagehead .eyebrow::before,
.cta-band .eyebrow::before {
  background: #ff8a4d;
}

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--dark .lead {
  color: var(--on-dark-soft);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Waveform — the recurring "hear the joy" motif
   -------------------------------------------------------------------------- */

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 2.5rem;
}
.waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
  height: calc(var(--h) * 1%);
  transform-origin: center;
  animation: pulse 2.4s var(--ease) infinite;
  animation-delay: calc(var(--i) * 90ms);
}
.waveform--quiet span {
  background: var(--rule);
  animation: none;
}
.waveform--light span {
  background: rgba(255, 255, 255, 0.55);
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 58px;
  padding: 0.85rem 1.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(204, 66, 0, 0.9);
}
.btn--primary:hover {
  background: var(--orange-700);
  border-color: var(--orange-700);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(204, 66, 0, 0.85);
}

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn--onDark {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}
.btn--onDark:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  min-height: 2.5rem;
}
.textlink:hover {
  color: var(--orange-600);
  gap: 0.75rem;
}
.textlink::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.textlink:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 84px;
  padding-block: 0.75rem;
}

.brand {
  flex: none;
  display: block;
  line-height: 0;
}
.brand img {
  width: clamp(148px, 17vw, 196px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.5rem);
  margin-left: auto;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  text-decoration: none;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav__link[aria-current="page"] {
  color: var(--orange-600);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.lang:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.lang svg {
  flex: none;
  opacity: 0.7;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: background 0.2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.24s var(--ease);
}
.nav__toggle span::before {
  top: -7px;
}
.nav__toggle span::after {
  top: 7px;
}
.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(1, 32, 61, 0.96) 0%,
      rgba(1, 32, 61, 0.9) 38%,
      rgba(1, 32, 61, 0.42) 66%,
      rgba(1, 32, 61, 0.12) 100%
    );
}

.hero__inner {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
  max-width: 40rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 0.5em;
}
.hero h1 em {
  font-style: normal;
  color: #ff8a4d;
}
.hero__lead {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.55;
  color: #dbe5ee;
  max-width: 34rem;
}
.hero .waveform {
  margin-bottom: 1.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1rem;
  color: #c3d1dd;
}
.hero__meta strong {
  color: #fff;
}

/* Page banner for interior pages */
.pagehead {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 82, 0, 0.22) 0%,
    rgba(255, 82, 0, 0) 66%
  );
  pointer-events: none;
}
.pagehead h1 {
  color: #fff;
  margin-bottom: 0.35em;
}
.pagehead .lead {
  color: var(--on-dark-soft);
}

.crumbs {
  font-size: 0.95rem;
  color: #9fb2c2;
  margin-bottom: 1.25rem;
}
.crumbs a {
  color: #cfdce7;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trust__item {
  padding: 1.75rem clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--rule-soft);
}
.trust__item:first-child {
  border-left: 0;
}
.trust__item dt {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  font-variation-settings: "opsz" 24;
  margin-bottom: 0.15rem;
}
.trust__item dd {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Cards + grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.4vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin-bottom: 0.45em;
}
.card p:last-child {
  margin-bottom: 0;
}

/* Numbered feature cards — the counter is the design */
.feature {
  position: relative;
  padding-top: 2.75rem;
}
.feature__num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 600;
  color: var(--paper-sunk);
  font-variation-settings: "opsz" 144;
  pointer-events: none;
  user-select: none;
}
.feature h3 {
  position: relative;
}
.feature p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card__media {
  background: var(--paper-sunk);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__body {
  padding: clamp(1.5rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
}
.product-card__body p {
  color: var(--ink-soft);
  flex: 1;
}
.product-card__body .textlink {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 100px;
  background: var(--orange-100);
  color: #a83700;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--muted {
  background: var(--paper-sunk);
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Split rows — alternating editorial blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split--flip .split__media {
  order: -1;
}
@media (max-width: 720px) {
  .split--flip .split__media {
    order: 0;
  }
}

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.15rem;
  height: 0.62rem;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}
.section--dark .checklist li::before {
  border-color: #ff8a4d;
}

/* --------------------------------------------------------------------------
   Price comparison
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.5rem;
}
.compare__cell {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--card);
}
.compare__cell--hero {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.compare__cell--hero::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 0, 0.4), transparent 68%);
}
.compare__label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.compare__cell--hero .compare__label {
  color: #ff8a4d;
}
.compare__price {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  font-variation-settings: "opsz" 120;
  color: var(--navy);
  font-feature-settings: "tnum";
}
.compare__cell--hero .compare__price {
  color: #fff;
}
.compare__note {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  color: var(--ink-faint);
}
.compare__cell--hero .compare__note {
  color: var(--on-dark-soft);
}
.compare__price--struck {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--orange);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 3.75rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange-600);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  width: 2.8rem;
}
.step h3 {
  margin-bottom: 0.4em;
}
.step p {
  color: var(--ink-soft);
  margin-bottom: 0;
}
.section--dark .step p {
  color: var(--on-dark-soft);
}
.section--dark .step::before {
  color: #ff8a4d;
}

/* --------------------------------------------------------------------------
   Spec table
   -------------------------------------------------------------------------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
}
.spec caption {
  text-align: left;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  padding-bottom: 1rem;
}
.spec th,
.spec td {
  text-align: left;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.spec th {
  font-weight: 600;
  color: var(--ink-soft);
  width: 42%;
  white-space: normal;
}
.spec td {
  color: var(--navy);
  font-weight: 600;
  font-feature-settings: "tnum";
}
.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: 0;
}

.footnote {
  font-size: 0.95rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__item summary {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.6rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  font-variation-settings: "opsz" 28;
}
html[lang="zh-Hans"] .faq__item summary {
  font-weight: 700;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--orange-600);
}
.faq__icon {
  flex: none;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.3em;
  margin-left: auto;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
  transition: transform 0.25s var(--ease);
}
.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2.5px;
  transform: translateY(-50%);
}
.faq__icon::after {
  left: 50%;
  top: 0;
  width: 2.5px;
  height: 100%;
  transform: translateX(-50%);
}
.faq__item[open] .faq__icon::after {
  transform: translateX(-50%) scaleY(0);
}
.faq__body {
  padding: 0 0 1.85rem;
  max-width: 62ch;
  color: var(--ink-soft);
}
.faq__body > :last-child {
  margin-bottom: 0;
}
.faq__body ul {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.faq__body li {
  margin-bottom: 0.4em;
}
.faq__item[open] .faq__body {
  animation: reveal 0.35s var(--ease);
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.faq-group + .faq-group {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
.faq-group__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--rule);
}

.figure-band img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.figure-band + .figure-band {
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.contact-list dt,
.contact-list__label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}
.contact-list__value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-list__value a {
  color: inherit;
}

.notice {
  border-left: 4px solid var(--orange);
  background: var(--card);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}
.notice > :last-child {
  margin-bottom: 0;
}
.notice strong {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -60%;
  width: 60rem;
  height: 60rem;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 82, 0, 0.18) 0%,
    rgba(255, 82, 0, 0) 62%
  );
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}
.cta-band .lead {
  margin-inline: auto;
  color: var(--on-dark-soft);
}
.cta-band .btn-row {
  justify-content: center;
}
.cta-band .waveform {
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: #01182d;
  color: var(--on-dark-soft);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  font-size: 1rem;
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__brand img {
  width: 180px;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}
.footer__brand p {
  max-width: 34ch;
  color: #8ea1b3;
  font-size: 0.975rem;
  line-height: 1.65;
}
.footer h2 {
  color: #fff;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #c6d3de;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__legal {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #7b8ea1;
}
.footer__disclaimer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #7e90a4;
  max-width: 90ch;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/* Only hide content once JS has confirmed it can reveal it again. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal:nth-child(2) {
  transition-delay: 80ms;
}
.js .reveal:nth-child(3) {
  transition-delay: 160ms;
}
.js .reveal:nth-child(4) {
  transition-delay: 240ms;
}
.js .reveal:nth-child(5) {
  transition-delay: 320ms;
}
.js .reveal:nth-child(6) {
  transition-delay: 400ms;
}

/* Hero load-in */
.hero__inner > * {
  animation: rise 0.9s var(--ease) backwards;
}
.hero__inner > *:nth-child(1) {
  animation-delay: 60ms;
}
.hero__inner > *:nth-child(2) {
  animation-delay: 160ms;
}
.hero__inner > *:nth-child(3) {
  animation-delay: 260ms;
}
.hero__inner > *:nth-child(4) {
  animation-delay: 360ms;
}
.hero__inner > *:nth-child(5) {
  animation-delay: 460ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 84px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__link {
    min-height: 60px;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--rule-soft);
    padding-inline: 0;
  }
  .nav__link::after {
    display: none;
  }
  .nav .lang,
  .nav .btn {
    margin-top: 1rem;
    justify-content: center;
  }
  .trust__item {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
  }
  .trust__item:first-child {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.125rem;
  }
  .hero__media img {
    object-position: 65% 50%;
  }
  .btn {
    width: 100%;
  }
  .btn-row {
    flex-direction: column;
  }
  .feature__num {
    font-size: 2.6rem;
    top: 1.2rem;
  }
  .spec th {
    width: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .masthead,
  .cta-band,
  .nav__toggle {
    display: none;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .faq__body {
    display: block !important;
  }
}
