/* ==========================================================================
   同频 (TongPin) — Shared Stylesheet
   Editorial Warm Espresso & Ivory Design System
   ========================================================================== */

:root {
  /* Core Palette */
  --bg-dark: #1d130d;
  --bg-dark-elevated: #281a12;
  --bg-dark-card: rgba(255, 248, 236, 0.06);
  --bg-light: #faf6ef;
  --bg-warm: #f2eadf;
  --surface: #ffffff;

  /* Typography Colors */
  --ink: #211712;
  --ink-soft: #59493f;
  --muted: #7a6b61;
  --ink-on-dark: #fff8ee;
  --ink-on-dark-soft: rgba(255, 248, 238, 0.78);

  /* Brand Accents */
  --gold: #f5d67a;
  --gold-deep: #b8871d;
  --red: #c93b2b;
  --red-hover: #ae2f20;
  --green: #1e9e5a;
  --green-soft: rgba(30, 158, 90, 0.12);

  /* Borders & Shadows */
  --border-light: rgba(33, 23, 18, 0.09);
  --border-warm: rgba(33, 23, 18, 0.14);
  --border-dark: rgba(255, 248, 236, 0.13);
  --shadow-sm: 0 4px 16px rgba(29, 19, 13, 0.06);
  --shadow-md: 0 16px 40px rgba(29, 19, 13, 0.1);
  --shadow-lg: 0 28px 64px rgba(15, 9, 6, 0.34);

  /* Fonts */
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout & Radii */
  --max-w: 1200px;
  --nav-h: 74px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(201, 59, 43, 0.34);
}

.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(201, 59, 43, 0.42);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
  box-shadow: 0 10px 24px rgba(245, 214, 122, 0.25);
}

.btn-gold:hover {
  background: #f9df92;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 248, 236, 0.08);
  color: var(--ink-on-dark);
  border-color: rgba(255, 248, 236, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 248, 236, 0.16);
  border-color: rgba(255, 248, 236, 0.48);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-warm);
}

.btn-outline:hover {
  background: rgba(33, 23, 18, 0.05);
  border-color: var(--ink-soft);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow-gold {
  color: var(--gold);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: rgba(245, 214, 122, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 214, 122, 0.28);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 158, 90, 0.25);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.nav-solid {
  background: rgba(29, 19, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 248, 236, 0.1);
  box-shadow: 0 8px 28px rgba(10, 6, 4, 0.22);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.brand b {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 248, 238, 0.82);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s var(--ease);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: #fff;
}

.nav-links a:not(.btn).active::after,
.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 20px;
  font-size: 14px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 248, 238, 0.2);
  border-radius: 10px;
  background: rgba(255, 248, 238, 0.06);
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav.open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section (Home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.hero-bg {
  position: absolute;
  inset: -6% 0;
  background: url("../assets/hero-photo.jpg") center 35% / cover no-repeat;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(22, 12, 7, 0.92) 0%, rgba(22, 12, 7, 0.72) 48%, rgba(22, 12, 7, 0.34) 80%, rgba(22, 12, 7, 0.45) 100%),
    linear-gradient(180deg, rgba(22, 12, 7, 0.45) 0%, transparent 25%, rgba(22, 12, 7, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 46px) 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.18;
  font-weight: 900;
  margin: 18px 0 20px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
  white-space: nowrap;
}

.hero-copy .lede {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 248, 236, 0.9);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 248, 236, 0.76);
}

.hero-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-bar .sep {
  opacity: 0.4;
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 236, 0.14);
  font-size: 14px;
  color: rgba(255, 248, 236, 0.88);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust i {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   Phone Mockups
   ========================================================================== */
.hero-phones {
  position: relative;
  height: 600px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.phone {
  width: 228px;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(160deg, #35251c 0%, #19100b 100%);
  border: 1px solid rgba(255, 248, 236, 0.22);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  user-select: none;
}

.phone-screen {
  background: #fdfbf7;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-phones .phone {
  position: absolute;
  animation: floatY 7s ease-in-out infinite;
}

.hero-phones .ph-a {
  left: 0;
  top: 72px;
  z-index: 1;
  animation-delay: 0.5s;
}

.hero-phones .ph-b {
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  width: 246px;
  z-index: 3;
  animation-name: floatYCenter;
}

.hero-phones .ph-c {
  right: 0;
  top: 84px;
  z-index: 2;
  animation-delay: 1s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes floatYCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.p-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  background: #f6f0e6;
}

.p-head {
  padding: 6px 14px 10px;
  background: #f6f0e6;
  border-bottom: 1px solid rgba(33, 23, 18, 0.08);
}

.p-head.center {
  text-align: center;
}

.p-head .t {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.p-head .s {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.p-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fdfbf7;
}

.p-body-chat {
  min-height: 330px;
}

.p-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(33, 23, 18, 0.05);
}

.p-ava {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.p-ava-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
}

.p-ava.green { background: #1e9e5a; }
.p-ava.gold { background: #c9a227; }
.p-ava.olive { background: #5b7a3a; }
.p-ava.slate { background: #3a6a8f; }

.p-row-text {
  min-width: 0;
}

.p-row .nm {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-row .ms {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-row .tm {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.p-row .badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.bubble {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bubble.l {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(33, 23, 18, 0.08);
  border-top-left-radius: 4px;
}

.bubble.r {
  align-self: flex-end;
  background: #d9f3e3;
  color: #133320;
  border-top-right-radius: 4px;
}

.bubble.redpacket {
  background: linear-gradient(135deg, #e25138 0%, #c83321 100%);
  color: #fff5d6;
  font-weight: 600;
}

.bubble .who {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}

.bubble .voice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.bubble .voice i {
  font-style: normal;
  font-size: 10px;
}

.p-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f6f0e6;
  border-top: 1px solid rgba(33, 23, 18, 0.08);
}

.p-input .field {
  flex: 1;
  height: 28px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(33, 23, 18, 0.1);
}

.p-input .mic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(33, 23, 18, 0.1);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.moment {
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(33, 23, 18, 0.06);
}

.moment-head {
  display: flex;
  gap: 8px;
  align-items: center;
}

.moment-author {
  font-size: 12.5px;
  font-weight: 700;
}

.moment-time {
  font-size: 10.5px;
  color: var(--muted);
}

.moment-text {
  font-size: 12px;
  margin-top: 6px;
  color: var(--ink);
}

.m-img {
  margin-top: 7px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9dfd1;
}

.m-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-act {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   Page Hero (Subpages)
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(245, 214, 122, 0.12), transparent 46%),
    linear-gradient(155deg, #251710 0%, #18100b 100%);
  color: var(--ink-on-dark);
  padding: calc(var(--nav-h) + 56px) 0 64px;
  border-bottom: 1px solid rgba(255, 248, 236, 0.08);
}

.page-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  margin: 14px 0 14px;
}

.page-hero .lede {
  font-size: 17px;
  max-width: 660px;
  color: var(--ink-on-dark-soft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 248, 236, 0.64);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Content Sections & Cards
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-warm {
  background: var(--bg-warm);
}

.section-dark {
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 59, 43, 0.14), transparent 40%),
    radial-gradient(circle at 86% 80%, rgba(245, 214, 122, 0.11), transparent 44%),
    var(--bg-dark);
  color: var(--ink-on-dark);
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  margin-top: 10px;
}

.section-head p {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.section-dark .section-head p {
  color: var(--ink-on-dark-soft);
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(201, 59, 43, 0.09);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.card-icon.gold {
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-deep);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Split Feature Showcase */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.split + .split {
  margin-top: 68px;
}

.split-reverse .split-media {
  order: -1;
}

.split-copy h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  margin: 10px 0 14px;
}

.split-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.showcase-panel {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

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

.mini-tile {
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.mini-tile strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.mini-tile span {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Download Card & Release Specs
   ========================================================================== */
.dl-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.05);
  border: 1px solid var(--border-dark);
}

.dl-box.light {
  background: var(--surface);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.dl-app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.dl-app-head img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dl-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 26px;
}

.dl-spec {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.06);
  border: 1px solid rgba(255, 248, 236, 0.1);
}

.dl-box.light .dl-spec {
  background: var(--bg-light);
  border-color: var(--border-light);
}

.dl-spec small {
  display: block;
  font-size: 12px;
  color: var(--ink-on-dark-soft);
}

.dl-box.light .dl-spec small {
  color: var(--muted);
}

.dl-spec strong {
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.dl-side-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 236, 0.06);
  border: 1px solid rgba(255, 248, 236, 0.14);
}

.dl-box.light .dl-side-card {
  background: var(--bg-warm);
  border-color: var(--border-light);
}

.dl-side-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.dl-side-card ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  counter-reset: step;
}

.dl-side-card ol li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  counter-increment: step;
}

.dl-side-card ol li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.copy-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 248, 236, 0.14);
  font-size: 12.5px;
}

.dl-box.light .copy-url-row {
  background: #fff;
  border-color: var(--border-warm);
}

.copy-url-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   Guide Tabs & Accordion
   ========================================================================== */
.tab-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-warm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.tab-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tab-btn.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(201, 59, 43, 0.1);
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.faq-q span.plus {
  font-size: 20px;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.faq-item.open .faq-q span.plus {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.faq-item.open .faq-a {
  display: block;
}

/* ==========================================================================
   Legal Document Layout (Terms & Privacy)
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-light);
}

.legal-toc h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc a {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--red);
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.legal-doc section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.legal-doc h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.legal-doc p + p,
.legal-doc p + ul,
.legal-doc ul + p {
  margin-top: 12px;
}

.legal-doc ul {
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-soft);
}

.legal-doc li + li {
  margin-top: 6px;
}

.legal-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

/* ==========================================================================
   Footer & Mobile Sticky Bar
   ========================================================================== */
.footer {
  background: #160e0a;
  color: rgba(255, 248, 238, 0.78);
  padding: 64px 0 36px;
  border-top: 1px solid rgba(255, 248, 236, 0.08);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 248, 236, 0.1);
}

.f-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 248, 238, 0.68);
  max-width: 340px;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer ul a {
  color: rgba(255, 248, 238, 0.72);
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--gold);
}

.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13.5px;
  color: rgba(255, 248, 238, 0.6);
}

.f-icp {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 248, 238, 0.5);
}

.f-icp a:hover {
  color: var(--gold);
}

.dl-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 14, 10, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 248, 236, 0.14);
}

.dl-bar .btn {
  width: 100%;
}

/* ==========================================================================
   Motion & Reveal Animations
   ========================================================================== */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.75s var(--ease) forwards;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.14s; }
.rise-3 { animation-delay: 0.22s; }
.rise-4 { animation-delay: 0.3s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 32px);
    gap: 36px;
  }

  .hero-phones {
    height: 530px;
  }

  .grid-3,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .dl-box,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-media {
    order: 0;
  }

  .legal-toc {
    position: static;
  }

  .f-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(24, 15, 10, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 248, 236, 0.12);
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
  }

  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 248, 236, 0.08);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .dl-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero-phones {
    height: auto;
    display: flex;
    justify-content: center;
  }

  .hero-phones .ph-a,
  .hero-phones .ph-c {
    display: none;
  }

  .hero-phones .ph-b {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(280px, 100%);
    animation-name: floatY;
  }

  @keyframes floatYCenter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .grid-3,
  .grid-2,
  .step-grid,
  .showcase-grid,
  .f-grid {
    grid-template-columns: 1fr;
  }

  .dl-box,
  .legal-doc {
    padding: 24px 20px;
  }

  .dl-bar {
    display: block;
  }

  .footer {
    padding-bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-phones .phone,
  .rise,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
