/* =====================================================================
   Pixel Forge — Business Home Page
   Design source: Figma hXUEkfFvYVBLM41Hzj740K (node 5047-4925)
   Scaffold mirrors Pixel Forge v1 (see 06_Design_Style.md, renovation/)
   ===================================================================== */

:root {
  /* Brand — WhatsApp-leaning green, matches Figma fill_LHAB2B */
  --brand: #41c460;
  --brand-hover: #39ae55;
  --brand-on: #ffffff;
  --brand-soft: rgba(65, 196, 96, 0.12);
  --brand-dark: #2a8c43;
  --accent: #5ab542;

  /* Sale / promo — warm red tones that complement the green brand */
  --sale: #e0452b;
  --sale-dark: #b23214;
  --sale-soft: #ffe9e3;
  --sale-banner-from: #fff3e6;
  --sale-banner-to: #ffe1c2;
  --sale-banner-border: #ffb067;
  --sale-banner-ink: #8a3a00;

  /* Surfaces */
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --bg-muted: #f5f5f5;
  --bg-sunken: #f5f6fa;
  --bg-inverse: #12131a;
  --bg-hero: #0f1720;

  /* Text */
  --text-strong: rgba(0, 6, 38, 0.9);
  --text-body: rgba(0, 9, 51, 0.75);
  --text-weak: rgba(0, 9, 51, 0.65);
  --text-heading: #1c1b1b;
  --text-inverse-strong: #ffffff;
  --text-inverse-weak: rgba(255, 255, 255, 0.78);

  /* Stroke */
  --stroke-weak: rgba(0, 17, 102, 0.1);

  /* Radius / shadow */
  --radius-card: 24px;
  --radius-pill: 360px;
  --shadow-raised: 0 4px 8px -2px rgba(0, 0, 0, 0.04),
    0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 40px -18px rgba(12, 42, 21, 0.35),
    0 8px 18px -10px rgba(12, 42, 21, 0.2);

  /* Layout */
  --max-content: 1084px;
  --top-nav-h: 72px; /* fixed-header height — used for anchor scroll-offset under the appbar */

  /* Type */
  --font-sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC",
    "Microsoft JhengHei", sans-serif;

  /* Hero — image-backed variant (Figma 5056:115 Hero-group) */
  --hero-bg-image: url("./assets/image.png");
  --hero-bg-fallback: #0d1c11;
  --hero-floating-frame-bg: #ffffff;
  --hero-floating-frame-pad: 16px;
  /* Hero-floating: brand glow + depth shadow combo (Option B) */
  --hero-floating-glow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px 4px rgba(65, 196, 96, 0.45),
    0 18px 36px -14px rgba(0, 0, 0, 0.55),
    0 6px 14px -6px rgba(0, 0, 0, 0.35);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #4d90fe;
  outline-offset: 2px;
  border-radius: 4px;
}
@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;
    scroll-behavior: auto !important;
  }
}

/* ---------- a11y skip link ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--brand);
  color: var(--brand-on);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* =====================================================================
   Buttons — green pill (primary), small pill (sm), inverse pill
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--brand-on);
  font-family: inherit;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-raised);
  transition: background-color 0.15s ease, transform 0.08s ease;
}
.btn:hover {
  background: var(--brand-hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.btn--inverse {
  background: #ffffff;
  color: var(--text-strong);
}
.btn--inverse:hover {
  background: #f0f0f0;
}
.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--stroke-weak);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--bg-sunken);
}
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}
.icon--sm {
  width: 16px;
  height: 16px;
}

/* =====================================================================
   Hero — dark gradient card, decorative circle cluster, floating stats
   ===================================================================== */
.hero {
  padding: 16px 24px;
}
.hero__card {
  position: relative;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg-image) center / cover no-repeat,
    var(--hero-bg-fallback);
  color: #fff;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px)
    clamp(120px, 18vw, 160px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  box-shadow: var(--shadow-raised);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero__title {
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}
.hero__title span {
  display: block;
}
.hero__rule {
  display: block;
  width: 120px;
  height: 12px;
  background: var(--brand);
  border-radius: 4px;
  margin: 16px 0 24px;
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.hero__sub span {
  display: block;
}

/* Decorative circle cluster — desktop only, visually anchors top-right */
.hero__cluster {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 640px;
  height: 720px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
.hero__cluster span {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 24px 12px rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}
.hero__cluster .c1 {
  top: 80px;
  left: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, #7ed9a0, #2c7c46);
}
.hero__cluster .c2 {
  top: 0;
  left: 300px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, #b8e2c5, #41c460);
}
.hero__cluster .c3 {
  top: 300px;
  left: 160px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle at 30% 30%, #a4e8b6, #2a8c43);
}
.hero__cluster .c4 {
  top: 560px;
  left: 220px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at 30% 30%, #d8f5df, #5ab542);
}
.hero__cluster .c5 {
  top: 420px;
  left: 420px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, #9adeab, #41c460);
}
.hero__cluster .c6 {
  top: 180px;
  left: 480px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at 30% 30%, #c6ead0, #2a8c43);
}

/* Hero floating highlight — 3 stats in a green card glued bottom-right */
/* Outer wrapper (white frame removed; now just a positioning + glow host) */
.hero-floating {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-card);
  box-shadow: var(--hero-floating-glow);
  max-width: calc(100% - 32px);
}
/* Inner = solid green stats card */
.hero-floating__inner {
  display: flex;
  gap: 40px;
  align-items: stretch;
  padding: 32px 40px;
  background: var(--brand);
  color: var(--brand-on);
  border-radius: var(--radius-card);
}
.hero-floating__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-floating__value {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
}
.hero-floating__label {
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
}

/* =====================================================================
   Generic section
   ===================================================================== */
.section {
  padding: 80px 24px;
}
.section--sunken {
  background: var(--bg-sunken);
}
.section__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}
.section__header {
  max-width: var(--max-content);
  margin: 0 auto 40px;
  text-align: center;
}
.section__header--left {
  text-align: left;
}
.section__header--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  text-align: left;
}
.section__eyebrow {
  color: var(--text-weak);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}
.section__title {
  color: var(--text-heading);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.3;
  font-weight: 700;
}
.section__title--pad {
  margin-bottom: 16px;
}
.section__quote {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}
.section__quote::before {
  content: "";
  flex: none;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section__quote p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-strong);
}

/* =====================================================================
   Info cards — shared shape used by pain points, behavior, features
   ===================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--max-content);
  margin: 0 auto;
}
.info-card {
  background: var(--bg-muted);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.info-card--bright {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  box-shadow: var(--shadow-raised);
}
.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.info-card__icon svg {
  width: 24px;
  height: 24px;
}
.info-card__title {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-strong);
}
.info-card__desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
}

/* =====================================================================
   Tip callout — green-tinted bar with icon, heading, body, side image
   ===================================================================== */
.tip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  max-width: var(--max-content);
  margin: 40px auto 0;
}
.tip__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  text-transform: uppercase;
}
.tip__eyebrow svg {
  width: 16px;
  height: 16px;
}
.tip__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
}
.tip__text strong {
  color: var(--text-strong);
}
.tip__figure {
  flex: none;
  width: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.tip__figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================================
   Behavior flow — 3 steps linked by arrow
   ===================================================================== */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: var(--max-content);
  margin: 0 auto;
}
.flow__step {
  background: var(--bg-muted);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
/* bright variant for use on --sunken section backgrounds */
.flow__step.info-card--bright {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  box-shadow: var(--shadow-raised);
}
.flow__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
}
.flow__arrow svg {
  width: 32px;
  height: 32px;
}

/* =====================================================================
   Solution — header with CTA, 3 feature cards, hero-style artwork above
   ===================================================================== */
.solution-hero {
  max-width: var(--max-content);
  margin: 0 auto 40px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #eef3f8;
}
.solution-hero img {
  width: 100%;
  height: auto;
  display: block;
}
/* bare variant: no plate, no rounding — for composite PNG demos that carry their own visuals */
.solution-hero--bare {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.solution-hero--bare img {
  max-width: 100%;
  margin: 0 auto;
}
/* centered CTA under the solution header (matches demo reference) */
.solution__cta {
  margin-top: 12px;
}

/* =====================================================================
   Pricing — 3 tier cards + auxiliary rows (domain + maintenance)
   ===================================================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--max-content);
  margin: 0 auto;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
}
.pricing-card--featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
}
.pricing-card__ribbon {
  background: var(--brand);
  color: var(--brand-on);
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.pricing-card__head {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--stroke-weak);
}
.pricing-card__tier {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-strong);
}
.pricing-card__price {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-strong);
}
.pricing-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pricing-card__chip {
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-body);
}
.pricing-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-card__body-head {
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  color: var(--text-weak);
}
.pricing-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 22px;
  color: #000;
}
.pricing-feature__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--brand);
  color: var(--brand-on);
  margin-top: 1px;
}
.pricing-feature__check svg {
  width: 14px;
  height: 14px;
}

/* ---- Promo / discount (limited-time sale) ---- */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: var(--max-content);
  margin: 0 auto 28px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--sale-banner-from) 0%,
    var(--sale-banner-to) 100%
  );
  border: 1px solid var(--sale-banner-border);
  color: var(--sale-banner-ink);
  box-shadow: var(--shadow-raised);
}
.promo-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 14px;
  background: var(--sale);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}
.promo-banner__badge svg {
  width: 14px;
  height: 14px;
  fill: none;
}
.promo-banner__text {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--sale-banner-ink);
}
.promo-banner__text strong {
  color: var(--sale-dark);
  font-weight: 800;
}

.pricing-card__price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.pricing-card__price-old {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--text-weak);
  text-decoration: line-through;
  text-decoration-color: rgba(224, 69, 43, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.pricing-card__savings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--sale-soft);
  color: var(--sale-dark);
  border: 1px solid rgba(224, 69, 43, 0.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pricing-card--featured .pricing-card__savings {
  background: #ffffff;
  border-color: var(--sale);
}

/* a11y-only helper for screen-reader labels like "原價" */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Auxiliary info cards under pricing (網域優惠 / 維護) */
.pricing-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-content);
  margin: 24px auto 0;
}
.extra-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  align-items: flex-start;
}
.extra-card__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.extra-card__icon svg {
  width: 24px;
  height: 24px;
}
.extra-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.extra-card__text {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-body);
}
.extra-card__fine {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-weak);
  margin-top: 6px;
}

/* =====================================================================
   Process timeline — tip card above, 4-step horizontal timeline
   ===================================================================== */
.process-tip {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  max-width: var(--max-content);
  margin: 0 auto 40px;
}
.process-tip__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--brand-on);
}
.process-tip__icon svg {
  width: 28px;
  height: 28px;
}
.process-tip__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--text-strong);
}
.process-tip__body {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-body);
}
.timeline {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
}
.timeline__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  padding-top: 40px;
}
.timeline__rail::before {
  content: "";
  position: absolute;
  /* Line runs from dot-1's center to dot-4's center.
     Dot 1 center = step1.padding-left (8px) + dot.width/2 (10px) = 18px.
     Dot 4 center = 0.75·rail-width + 36px (see styles.css change log for
     derivation), so offset from right = 25% − 36px. */
  left: 18px;
  right: calc(25% - 36px);
  top: 19px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--brand-dark) 0 8px,
    transparent 8px 14px
  );
  z-index: 0;
}
.timeline__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 0 8px;
  position: relative;
}
.timeline__dot {
  position: absolute;
  /* Dot pinned to the step's left padding so it sits directly above the
     "第 N 日" label (which starts at the same 8px padding edge). */
  top: -30px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(65, 196, 96, 0.2);
  z-index: 1;
}
.timeline__day {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.05em;
}
.timeline__title {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-strong);
}
.timeline__body {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-body);
}

/* =====================================================================
   About — centered prose block with eyebrow & title
   ===================================================================== */
.about {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.about__prose {
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
  white-space: pre-wrap;
  text-align: center;
}
.about__signoff {
  margin-top: 24px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
}

/* =====================================================================
   Contact — simple row + WhatsApp CTA
   ===================================================================== */
.contact {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact__row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
}
.contact__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.contact__icon svg {
  width: 22px;
  height: 22px;
}
.contact__label {
  font-size: 13px;
  color: var(--text-weak);
  line-height: 18px;
}
.contact__value {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-strong);
  font-weight: 600;
}
.contact__cta {
  align-self: center;
}

/* =====================================================================
   FAQ — visible content paired with FAQPage JSON-LD
   ===================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 56px 22px 24px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding: 0 24px 24px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 26px;
}

/* =====================================================================
   Footer (dark)
   ===================================================================== */
.footer {
  background: var(--bg-inverse);
  color: var(--text-inverse-strong);
  padding: 64px 24px 40px;
}
.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer__brand {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
}
.footer__tagline {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-inverse-weak);
  white-space: pre-line;
}
.footer__heading {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-inverse-weak);
}
.footer__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  line-height: 22px;
}
.footer__list a {
  color: var(--text-inverse-weak);
  transition: color 0.15s ease;
}
.footer__list a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__copy {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-inverse-weak);
  font-size: 14px;
  line-height: 22px;
}

/* =====================================================================
   MOBILE — ≤ 768px
   ===================================================================== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--top-nav-h) + 12px);
  }

  /* hero */
  .hero {
    padding: 12px 16px;
  }
  .hero__card {
    padding: 40px 20px 180px;
    min-height: 560px;
  }
  .hero__title {
    font-size: 30px;
    line-height: 42px;
  }
  .hero__rule {
    width: 80px;
    height: 8px;
    margin: 12px 0 16px;
  }
  .hero__sub {
    font-size: 15px;
    line-height: 22px;
  }
  .hero__cluster {
    display: none;
  }
  .hero-floating {
    right: 12px;
    left: 12px;
    bottom: 12px;
    padding: 0;
    max-width: none;
    border-radius: var(--radius-card);
  }
  .hero-floating__inner {
    padding: 20px 16px;
    gap: 8px;
    justify-content: space-between;
    border-radius: var(--radius-card);
  }
  .hero-floating__value {
    font-size: 22px;
  }
  .hero-floating__label {
    font-size: 12px;
    line-height: 18px;
  }

  /* sections */
  .section {
    padding: 48px 16px;
  }
  .section__header {
    margin-bottom: 24px;
  }
  .section__eyebrow {
    font-size: 16px;
    line-height: 24px;
  }
  .section__title {
    font-size: 22px;
    line-height: 32px;
  }
  .section__header--split {
    gap: 16px;
  }

  /* info grid → stacked */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .info-card {
    padding: 24px 20px;
  }

  /* tip → stacked */
  .tip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    margin-top: 24px;
  }
  .tip__figure {
    width: 100px;
  }

  /* flow → vertical stack with down arrows */
  .flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow__arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  /* solution artwork */
  .solution-hero {
    margin-bottom: 24px;
  }

  /* pricing → stacked, keep featured card as-is */
  .pricing {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-card--featured {
    transform: none;
  }
  .promo-banner {
    border-radius: 20px;
    padding: 14px 16px;
    gap: 10px;
    margin-bottom: 20px;
  }
  .promo-banner__text {
    font-size: 14px;
    line-height: 20px;
    flex-basis: 100%;
  }
  .pricing-card__price-old {
    font-size: 16px;
  }
  .pricing-extras {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .extra-card {
    gap: 16px;
    padding: 20px;
  }

  /* process timeline → vertical list */
  .process-tip {
    padding: 20px;
    gap: 16px;
  }
  .timeline__rail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 0;
    padding-left: 32px;
  }
  .timeline__rail::before {
    top: 0;
    bottom: 0;
    height: auto;
    /* Align the dashed line's vertical centerline with the dot's center.
       Dot: rail padding-left (32) + dot.left (-28) + dot.width/2 (8) = 12.
       Line width 2 → left 11 puts its center at 12. */
    left: 11px;
    right: auto;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--brand-dark) 0 8px,
      transparent 8px 14px
    );
  }
  .timeline__step {
    padding: 0;
  }
  .timeline__dot {
    top: 6px;
    left: -28px;
    transform: none;
    width: 16px;
    height: 16px;
  }
  .timeline__title {
    font-size: 20px;
    line-height: 28px;
  }

  /* contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-list {
    gap: 10px;
  }
  .faq-item summary {
    padding: 18px 48px 18px 18px;
    font-size: 16px;
    line-height: 24px;
  }
  .faq-item summary::after {
    right: 18px;
  }
  .faq-item p {
    padding: 0 18px 18px;
    font-size: 15px;
    line-height: 24px;
  }

  /* footer */
  .footer {
    padding: 48px 16px 24px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

/* Small phones: tighten further */
@media (max-width: 380px) {
  .hero-floating__value {
    font-size: 20px;
  }
  .hero-floating__label {
    font-size: 11px;
  }
  .hero__title {
    font-size: 26px;
    line-height: 38px;
  }
}

/* =====================================================================
   Desktop narrow (769–1100) — breathing room, 2-up pricing
   ===================================================================== */
@media (min-width: 769px) and (max-width: 1100px) {
  .section,
  .footer {
    padding-left: 48px;
    padding-right: 48px;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .pricing-card--featured {
    transform: none;
  }
  .pricing-extras {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow__arrow {
    transform: rotate(90deg);
    justify-content: center;
  }
}

/* =====================================================================
   Legal page — header, tabs, content panels
   ===================================================================== */
.legal {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: calc(var(--top-nav-h) + 48px) 24px 80px;
}
.legal__header {
  margin-bottom: 32px;
}
.legal__title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 8px;
}
.legal__updated {
  font-size: 14px;
  color: var(--text-weak);
}

.legal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.legal-tabs__btn {
  appearance: none;
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--text-body);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}
.legal-tabs__btn:hover {
  background: #e8e8e8;
}
.legal-tabs__btn.is-active {
  background: var(--brand);
  color: var(--brand-on);
  border-color: var(--brand);
}

.legal__panel {
  display: none;
}
.legal__panel.is-active {
  display: block;
}
.legal__panel h2 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 24px;
}
.legal__panel h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-strong);
  margin: 32px 0 12px;
}
.legal__panel p {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
  margin: 0 0 12px;
}
.legal__panel ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal__panel li {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-body);
  margin-bottom: 6px;
}
.legal__panel a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__panel a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .legal {
    padding-top: calc(var(--top-nav-h) + 24px);
    padding-bottom: 48px;
  }
  .legal__title {
    font-size: 28px;
  }
  .legal-tabs__btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .legal__panel h2 {
    font-size: 22px;
  }
  .legal__panel h3 {
    font-size: 16px;
  }
}

/* =====================================================================
   Entrance animations (Option 2 — staggered hero reveal)
   + Hover micro-interactions (Option 3)

   Accessibility: the earlier prefers-reduced-motion block already
   collapses animations to 0.01ms, so we only need to define the normal
   case here.
   ===================================================================== */

@keyframes pf-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pf-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pf-fade-right {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Option 2: staggered hero reveal on first load ---------------- */
.hero__title span,
.hero__rule,
.hero__sub span,
.hero-floating__item {
  opacity: 0;
  will-change: opacity, transform;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: forwards;
}

.hero__title span:nth-child(1) {
  animation-name: pf-fade-up;
  animation-delay: 180ms;
}
.hero__title span:nth-child(2) {
  animation-name: pf-fade-up;
  animation-delay: 280ms;
}
.hero__rule {
  animation-name: pf-fade-in;
  animation-delay: 380ms;
}
.hero__sub span:nth-child(1) {
  animation-name: pf-fade-up;
  animation-delay: 440ms;
}
.hero__sub span:nth-child(2) {
  animation-name: pf-fade-up;
  animation-delay: 520ms;
}
.hero-floating__item:nth-child(1) {
  animation-name: pf-fade-right;
  animation-delay: 640ms;
}
.hero-floating__item:nth-child(2) {
  animation-name: pf-fade-right;
  animation-delay: 740ms;
}
.hero-floating__item:nth-child(3) {
  animation-name: pf-fade-right;
  animation-delay: 840ms;
}

/* --- Option 2b: gentle scroll reveal for sections below the fold - */
.js-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Option 3: hover micro-interactions --------------------------- */
.btn {
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.25),
    0 4px 10px -4px rgba(0, 0, 0, 0.12);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-raised);
}

.info-card,
.pricing-card,
.extra-card,
.contact__row,
.faq-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
  will-change: transform;
}
.info-card:hover,
.extra-card:hover,
.contact__row:hover,
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(65, 196, 96, 0.35);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(65, 196, 96, 0.35);
}
.pricing-card--featured {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card--featured:hover {
  transform: translateY(-6px);
}

/* =====================================================================
   BLOG — Article page styles
   Design system §8 components: answer box, key takeaways, GEO Q&A,
   definition list, comparison table, who-needs list, stat callout, FAQ,
   breadcrumb, TOC, related posts, byline, blog CTAs.
   ===================================================================== */

/* ---- Button additions ---- */
.btn--large {
  height: 64px;
  padding: 0 32px;
  font-size: 20px;
  line-height: 32px;
}

/* ---- Article container ---- */
.blog-article {
  max-width: var(--max-content);  /* matches homepage container width (1084px) */
  margin: 0 auto;
  padding: 24px 24px 80px;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .blog-article {
    padding: 16px 20px 64px;
    font-size: 16px;
  }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 24px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--text-weak);
}
.breadcrumb a {
  color: var(--text-weak);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--brand-dark);
}
.breadcrumb [aria-current="page"] {
  color: var(--text-body);
}

/* ---- Article header ---- */
.blog-article__header {
  margin: 16px 0 32px;
}
.blog-article__pillar {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-weak);
  margin: 0 0 12px;
}
.blog-article h1,
.blog-article__header h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0 0 20px;
}

/* ---- §8.1 Answer Box — GEO citation magnet ---- */
.answer-box {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 24px 0;
}
.answer-box__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.answer-box p:not(.answer-box__eyebrow) {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-strong);
}

/* ---- §8.2 Key Takeaways ---- */
.key-takeaways {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
  padding: 20px 24px;
  margin: 24px 0;
}
.key-takeaways__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.key-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.key-takeaways li {
  position: relative;
  padding: 4px 0 4px 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
}
.key-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3,8 6.5,11 13,5'/></svg>");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Lede paragraph ---- */
.blog-article__lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-body);
  margin: 24px 0;
}

/* ---- Byline meta row ---- */
.blog-article__byline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-weak);
  margin: 16px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.blog-article__byline a {
  color: var(--text-weak);
  text-decoration: underline;
  text-decoration-color: var(--stroke-weak);
  text-underline-offset: 3px;
}
.blog-article__byline a:hover {
  color: var(--brand-dark);
  text-decoration-color: var(--brand);
}

/* ---- Blog CTAs (inline + end) ---- */
.blog-cta--inline {
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.blog-cta--inline p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}
.blog-cta--inline a {
  text-decoration: none;
}
.blog-cta--end {
  background: var(--bg-hero);
  color: var(--text-inverse-strong);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  margin: 48px 0;
  text-align: center;
}
/* Higher specificity (.blog-article .blog-cta--end h2) needed so it wins over `.blog-article h2` below */
.blog-cta--end h2,
.blog-article .blog-cta--end h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-inverse-strong);
  margin: 0 0 12px;
}
.blog-cta--end p {
  font-size: 16px;
  color: var(--text-inverse-weak);
  margin: 0 0 24px;
}
.blog-cta--end .btn {
  margin: 0;
}
.blog-cta__sub {
  margin-top: 16px !important;
  font-size: 14px !important;
}
.blog-cta__sub a {
  color: var(--brand);
  text-decoration: underline;
}

/* ---- §8.12 Table of contents ---- */
.blog-toc {
  background: var(--bg-muted);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 24px 0 32px;
}
.blog-toc > summary {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-weak);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-toc > summary::-webkit-details-marker { display: none; }
.blog-toc > summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-weak);
}
.blog-toc[open] > summary::after { content: "−"; }
.blog-toc ol {
  margin: 16px 0 0;
  padding: 0 0 0 24px;
  font-size: 15px;
  line-height: 2;
  color: var(--text-body);
}
.blog-toc a {
  color: var(--text-body);
  text-decoration: none;
}
.blog-toc a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---- Body headings ---- */
.blog-article h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 48px 0 16px;
  scroll-margin-top: calc(var(--top-nav-h) + 16px);
}
.blog-article h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-heading);
  margin: 28px 0 12px;
}

/* ---- §8.3 GEO Q&A block ---- */
.geo-qa {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 24px 0;
}
.geo-qa h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 10px;
}
.geo-qa__answer,
.geo-qa p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-strong);
}

/* ---- §8.4 Definition list ---- */
.geo-definition {
  background: var(--bg-sunken);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 24px 0;
}
.geo-definition dt {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 12px 0 6px;
}
.geo-definition dt:first-child { margin-top: 0; }
.geo-definition dd {
  margin: 0 0 12px 0;
  padding-left: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}
.geo-definition .def-pron {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-weak);
  margin-left: 6px;
}

/* ---- §8.6 Comparison table ---- */
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.blog-article table caption {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-weak);
  text-align: left;
  padding: 0 0 8px;
  caption-side: top;
}
.blog-article table th {
  background: var(--bg-muted);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke-weak);
  color: var(--text-heading);
}
.blog-article table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke-weak);
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.5;
}
.blog-article table tbody tr:nth-child(even) td {
  background: var(--bg-sunken);
}
.blog-article table tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .blog-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- §8.5 Who-needs-this numbered list ---- */
.who-needs-this {
  counter-reset: who;
  list-style: none;
  margin: 24px 0;
  padding: 0;
}
.who-needs-this > li {
  counter-increment: who;
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  padding: 16px 20px 16px 64px;
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}
.who-needs-this > li::before {
  content: counter(who);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-on);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.who-needs-this strong {
  display: block;
  color: var(--text-heading);
  margin-bottom: 4px;
}

/* ---- §8.7 Stat callout ---- */
.stat-callout {
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}
.stat-callout__number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-dark);
  margin: 0 0 8px;
}
.stat-callout__context {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
  margin: 0;
}
.stat-callout .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: var(--sale);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---- Body paragraphs + links ---- */
.blog-article p {
  margin: 16px 0;
}
/* Body links only — exclude .btn so buttons keep their default white text + no underline */
.blog-article a:not(.btn) {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease;
}
.blog-article a:not(.btn):hover {
  color: var(--text-heading);
  text-decoration-color: var(--brand-dark);
}

/* ---- §8.16 Figures + captions ---- */
.blog-article figure {
  margin: 32px 0;
}
.blog-article figure img {
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
  display: block;
}
.blog-article figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-weak);
  line-height: 1.5;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ---- §8.15 FAQ via <details> ---- */
.blog-article #faq details,
.blog-article details:not(.blog-toc) {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin: 12px 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.blog-article details:not(.blog-toc)[open] {
  box-shadow: var(--shadow-raised);
  border-color: rgba(65, 196, 96, 0.35);
}
.blog-article details:not(.blog-toc) > summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.blog-article details:not(.blog-toc) > summary::-webkit-details-marker { display: none; }
.blog-article details:not(.blog-toc) > summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 300;
  color: var(--brand-dark);
  transition: transform 0.15s ease;
}
.blog-article details:not(.blog-toc)[open] > summary::after {
  content: "−";
}
.blog-article details:not(.blog-toc) > p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

/* ---- §8.9 Author byline (compact) ---- */
.author-byline--compact {
  margin: 32px 0;
  padding: 16px 20px;
  background: var(--bg-sunken);
  border-radius: var(--radius-card);
  font-size: 15px;
  color: var(--text-body);
}
.author-byline--compact p { margin: 0; }
.author-byline--compact strong {
  color: var(--text-heading);
  margin-right: 4px;
}

/* ---- §8.18 Related posts ---- */
.blog-related {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--stroke-weak);
}
.blog-related h2 {
  margin: 0 0 16px;
}
.blog-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-related li {
  margin: 8px 0;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-radius: var(--radius-card);
  transition: background 0.15s ease;
}
.blog-related li:hover { background: var(--brand-soft); }
.blog-related a {
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Site footer (minimal — used on blog post pages) ---- */
.site-footer {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-weak);
  border-top: 1px solid var(--stroke-weak);
}
.site-footer a {
  color: var(--text-weak);
  text-decoration: underline;
  text-decoration-color: var(--stroke-weak);
}
.site-footer a:hover {
  color: var(--brand-dark);
  text-decoration-color: var(--brand);
}

/* =====================================================================
   BLOG — Listing/index page styles
   ===================================================================== */
.blog-index-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.blog-index__header {
  margin: 0 0 48px;
  text-align: center;
}
.blog-index__header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0 0 16px;
}
.blog-index__lede {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 auto;
  max-width: 640px;
}
.blog-index__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .blog-index__list {
    grid-template-columns: 1fr 1fr;
    max-width: var(--max-content);
  }
}
.blog-card {
  background: var(--bg-raised);
  border: 1px solid var(--stroke-weak);
  border-radius: var(--radius-card);
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(65, 196, 96, 0.35);
}
.blog-card a {
  display: block;
  padding: 24px 28px;
  color: inherit;
  text-decoration: none;
}
.blog-card h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0 0 12px;
}
.blog-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0 0 16px;
}
.blog-card__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-weak);
  margin: 0 !important;
}
.blog-index__empty-state {
  text-align: center;
  color: var(--text-weak);
  padding: 48px 24px;
  font-size: 16px;
}
.blog-index__empty-state a {
  color: var(--brand-dark);
  text-decoration: underline;
}


/* =====================================================================
   NAV SYSTEM (NAV_COMPOSE_STAGE3.md) — appbar + glass botnav + drawer.
   This is the only nav system: the legacy .top-nav/.bottom-nav/.wa-fab
   rules were removed 2026-05-18 after all pages migrated.
   ===================================================================== */
:root{
  --glass-bg:     rgba(15, 23, 32, 0.72);
  --glass-blur:   16px;
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 6, 38, 0.24);
  --nav-radius:   28px;
  --appbar-h:     64px;
}

/* ---- App bar: transparent over hero -> glass on scroll ---- */
.appbar{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;align-items:center;
  justify-content:space-between;gap:16px;height:var(--appbar-h);padding:0 20px;
  background:transparent;border-bottom:1px solid transparent;
  transition:transform .25s ease,background .25s ease,border-color .25s ease,
             -webkit-backdrop-filter .25s ease,backdrop-filter .25s ease}
.appbar--scrolled{background:var(--glass-bg);
  -webkit-backdrop-filter:blur(var(--glass-blur));backdrop-filter:blur(var(--glass-blur));
  border-bottom-color:var(--glass-border)}
.appbar--hidden{transform:translateY(-100%)}
.appbar__logo{display:flex;align-items:center;height:32px}
.appbar__logo img{height:100%;width:auto;display:block}
.appbar__links{display:none;gap:24px;align-items:center}
.appbar__links a{color:#fff;font-weight:600;text-decoration:none;font-size:15px;opacity:.92}
.appbar__links a:hover{color:var(--brand);opacity:1}
.appbar__links a[aria-current="page"]{color:var(--brand);opacity:1}
.appbar__burger{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border:0;background:transparent;color:#fff;cursor:pointer;border-radius:12px}
.appbar__burger:hover{background:rgba(255,255,255,.10)}
.appbar__burger svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

/* ---- Nav drawer (SVP) ---- */
.navdrawer{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;
  padding:88px 28px 36px;background:var(--glass-bg);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  transform:translateY(-8px);opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease}
.navdrawer[data-open]{opacity:1;transform:none;pointer-events:auto}
.navdrawer a{color:#fff;font-size:22px;font-weight:700;padding:18px 4px;text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.10)}
.navdrawer a:hover{color:var(--brand)}
.navdrawer__close{position:absolute;top:18px;right:18px;width:44px;height:44px;border:0;
  background:transparent;color:#fff;cursor:pointer}
.navdrawer__close svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
body.nav-open{overflow:hidden}

/* ---- Glass bottom nav (in-page anchors) ---- */
.botnav{position:fixed;left:50%;transform:translateX(-50%);
  bottom:max(16px,env(safe-area-inset-bottom));z-index:55;
  display:flex;gap:4px;padding:8px;background:var(--glass-bg);
  -webkit-backdrop-filter:blur(var(--glass-blur));backdrop-filter:blur(var(--glass-blur));
  border:1px solid var(--glass-border);border-radius:var(--nav-radius);box-shadow:var(--glass-shadow);
  max-width:calc(100vw - 16px)}
.botnav__item{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:4px;min-width:76px;min-height:52px;padding:6px 11px;border-radius:20px;white-space:nowrap;
  color:var(--text-inverse-weak);text-decoration:none;font-size:11px;font-weight:600;
  transition:background .15s ease,color .15s ease}
.botnav__item svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.botnav__item:hover{color:#fff}
.botnav__item.is-active{background:var(--brand-soft);color:var(--brand)}
.botnav__item span{white-space:nowrap}
.botnav__wa{color:var(--brand)}

/* ---- WhatsApp floating corner (LVP only) ---- */
.wa-corner{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:55;
  display:none;width:56px;height:56px;border-radius:50%;align-items:center;justify-content:center;
  background:var(--brand);color:#fff;box-shadow:var(--glass-shadow)}
.wa-corner svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}

/* ---- backdrop-filter fallback ---- */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .appbar--scrolled,.navdrawer,.botnav{background:rgba(15,23,32,0.94)}
}

/* ---- spacing so content clears the floating bottom nav ----
   Applied to the (dark) footer, NOT body, so the clearance never
   renders as a white band below the footer. ---- */
.has-botnav .footer{padding-bottom:128px}

/* ---- LVP ---- */
@media (min-width:768px){
  .appbar__links{display:flex}
  .appbar__burger{display:none}
  .navdrawer{display:none}
  .botnav__wa{display:none}
  .wa-corner{display:flex}
}

/* Botnav clearance is handled by `.has-botnav .footer` (dark, no white
   strip). The old legacy `body{padding-bottom}` that caused the strip
   was removed in the 2026-05-18 cleanup, so no override is needed. */

/* ---- Always-glass appbar for pages without a dark hero (blog, legal) ---- */
.nav-solid .appbar{background:var(--glass-bg);
  -webkit-backdrop-filter:blur(var(--glass-blur));backdrop-filter:blur(var(--glass-blur));
  border-bottom-color:var(--glass-border)}
.nav-solid main{padding-top:var(--appbar-h)}

/* =====================================================================
   Shared page hero (.pf-hero) — single source of truth so every page's
   hero is identical. Pages may still override via an inline <style>.
   On .nav-solid pages the fixed appbar is opaque and `.nav-solid main`
   already offsets it, so the hero only needs its own top breathing room.
   ===================================================================== */
.pf-hero{padding:calc(var(--appbar-h) + 56px) 20px 56px;text-align:center;
  background:var(--bg-hero);color:#fff}
.pf-hero .section__eyebrow{color:var(--brand)}
.pf-hero h1{font-size:clamp(30px,6vw,56px);line-height:1.18;margin:10px 0 16px;color:#fff}
.pf-hero p{color:var(--text-inverse-weak);max-width:46ch;margin:0 auto;
  font-size:17px;line-height:1.7}
.nav-solid .pf-hero{padding-top:56px}

/* Blog listing: content wrapper (hero is full-bleed, list is constrained) */
.blog-index-wrap{max-width:var(--max-content);margin:0 auto;padding:48px 24px 80px}

/* Blog card — image-led */
.blog-card{overflow:hidden}
.blog-card a{display:block;padding:0;color:inherit;text-decoration:none}
.blog-card__img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;
  background:var(--bg-muted)}
.blog-card__body{padding:24px 28px}

/* ---- Real-screenshot device showcase (Services 解決方案) ---- */
.devshow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;
  gap:28px;margin:40px auto 52px;max-width:920px}
.devshow__browser{flex:1 1 460px;max-width:680px;border:1px solid var(--stroke-weak);
  border-radius:14px;overflow:hidden;box-shadow:var(--shadow-float);background:#fff;
  transition:transform .2s ease, box-shadow .2s ease}
.devshow__bar{display:flex;align-items:center;gap:7px;height:30px;padding:0 14px;
  background:#f3f3f5;border-bottom:1px solid var(--stroke-weak)}
.devshow__bar span{width:10px;height:10px;border-radius:50%;background:#cfcfd6}
.devshow__browser img,.devshow__phone img{display:block;width:100%;height:auto}
.devshow__phone{flex:0 0 auto;width:200px;align-self:center;border:8px solid #15171c;
  border-radius:30px;overflow:hidden;box-shadow:var(--shadow-float);background:#000;
  transition:transform .2s ease, box-shadow .2s ease}
.devshow__browser:hover,.devshow__phone:hover{transform:translateY(-6px);
  box-shadow:0 18px 44px rgba(0,6,38,.22)}
@media (max-width:560px){.devshow{gap:20px}.devshow__phone{width:160px}}

/* ---- Smooth cross-page transitions (CSS View Transitions API) ---- 
   Browser-native, graceful no-op on unsupported browsers,
   respects prefers-reduced-motion. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root){
  animation-duration:.35s;
  animation-timing-function:cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none}
}
