/* ============================================
   VestaOS - Airbnb-inspired Design System
   Theme color: Orange (replacing Airbnb's #FF385C)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand — orange replaces Airbnb's pinkish red */
  --brand: #FF6A00;
  --brand-hover: #E85D00;
  --brand-dark: #CC5200;
  --brand-soft: #FFF1E6;
  --brand-gradient-start: #FF6A00;
  --brand-gradient-end: #FF9347;

  /* Neutrals (Airbnb-like) */
  --black: #222222;
  --text: #222222;
  --text-secondary: #717171;
  --text-tertiary: #B0B0B0;
  --border: #EBEBEB;
  --border-strong: #DDDDDD;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --bg-card: #FFFFFF;

  /* Accents */
  --success: #008A05;
  --star: #FFB400;

  /* Shadow (Airbnb-like soft) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-nav: 0 1px 0 rgba(0,0,0,0.08);

  /* Radius (Airbnb uses heavy rounding) */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Type scale (Airbnb-like) */
  --font: 'Circular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --nav-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography (Airbnb hierarchy) ---------- */
.t-hero {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.t-h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.t-h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}
.t-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-secondary);
}
.t-body { font-size: 16px; color: var(--text); }
.t-small { font-size: 14px; color: var(--text-secondary); }
.t-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ---------- Buttons (Airbnb pill + gradient) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gradient-start) 0%, #FF7A1F 50%, var(--brand-gradient-end) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #E85D00 0%, #FF6A00 50%, #FF8A33 100%);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.45);
}

.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--text); }

.btn-link {
  color: var(--text);
  padding: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}
.btn-link:hover { color: var(--brand); }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-pill { border-radius: var(--r-pill); }
.btn-block { width: 100%; }

/* ---------- Top Navigation (Airbnb-like) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-logo svg { width: 30px; height: 30px; }

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 12px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s ease;
}
.nav-link:hover { background: var(--bg-soft); }
.nav-link.active { color: var(--brand); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: #fff;
  transition: box-shadow .15s ease;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.nav-icon-btn:hover { box-shadow: var(--shadow-sm); }
.nav-icon-btn .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--text-secondary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.nav-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  color: var(--text);
}
@media (max-width: 960px) {
  .nav-center { display: none; }
  .nav-icon-btn span:not(.avatar) { display: none; }
  .nav-menu-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #fff;
  z-index: 90;
  padding: 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 56px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,106,0,0.2);
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }

/* Hero visual — stylized listing card stack (Airbnb-like) */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
  max-width: 560px;
  margin-left: auto;
}
.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-card-main {
  inset: 0 0 10% 0;
  z-index: 3;
}
.hero-card-main .photo {
  width: 100%; height: 62%;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0)),
    url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?w=1200&auto=format&fit=crop') center/cover no-repeat,
    linear-gradient(135deg, #FFD9B8, #FFA15C);
}
.hero-card-main .meta {
  padding: 20px 22px;
}
.hero-card-main .meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.hero-card-main h4 { font-size: 16px; font-weight: 600; }
.hero-card-main .rating {
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600;
}
.hero-card-main .rating svg { width: 14px; height: 14px; color: var(--black); fill: currentColor; }
.hero-card-main .sub { color: var(--text-secondary); font-size: 14px; }
.hero-card-main .price { margin-top: 10px; font-weight: 600; }
.hero-card-main .price span { color: var(--text-secondary); font-weight: 400; }

.hero-chip {
  position: absolute;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  z-index: 4;
  border: 1px solid var(--border);
}
.hero-chip .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-chip strong { display: block; font-size: 14px; }
.hero-chip em { color: var(--text-secondary); font-style: normal; font-size: 13px; }

.hero-chip-1 { top: 8%; left: -6%; }
.hero-chip-2 { top: 45%; right: -6%; }
.hero-chip-3 { bottom: 8%; left: 8%; }
@media (max-width: 900px) {
  .hero-chip-1 { left: 0; }
  .hero-chip-2 { right: 0; }
}

/* Background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(255,106,0,0.14), transparent 60%);
  pointer-events: none;
}

/* ---------- Section ---------- */
.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--black); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .t-lead { color: rgba(255,255,255,0.7); }

.section-head { max-width: 800px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip-label {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logo-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.75;
}
.logo-row span {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* ---------- Feature / Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card .cover {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.product-card .cover.cclaw {
  background: #efe6dc;
}
.product-card .cover.cleanfy {
  background: #efe6dc;
}
.product-card .cover::after {
  display: none;
}
.product-card .cover-label {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.product-card .cover-name {
  display: none;
}
.product-preview {
  position: absolute;
  inset: 68px 20px 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  z-index: 2;
}
.mini-panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.mini-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(255,106,0,0.12);
  border: 1px solid rgba(255,106,0,0.18);
  text-transform: uppercase;
}
.mini-badge.green {
  color: #33b864;
  background: rgba(51,184,100,0.12);
  border-color: rgba(51,184,100,0.18);
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-top: 1px solid rgba(17,17,17,0.06);
}
.mini-row:first-of-type { border-top: 0; padding-top: 0; }
.mini-row strong { color: var(--text); font-size: 12px; }
.mini-row.final strong { color: #7b2f6a; }
.chat-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f3f5f7;
  color: var(--text);
  font-size: 12px;
  margin-bottom: 8px;
}
.chat-bubble.reply {
  background: #fff1e5;
  border: 1px solid rgba(255,106,0,0.18);
}
.mini-foot {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}
.mini-foot.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cleanfy-preview {
  grid-template-columns: 1fr;
}
.ops-panel {
  align-self: start;
}

.mini-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin: -4px 0 10px;
}
.uplift {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.5;
  color: #33b864;
  background: rgba(51,184,100,0.12);
  border: 1px solid rgba(51,184,100,0.16);
}
.green-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #33b864;
  margin-right: 6px;
  transform: translateY(-1px);
}
.original-preview .pricing-panel,
.original-preview .chat-panel,
.original-preview .ops-panel {
  background: rgba(255,255,255,0.92);
}
.status-line {
  font-size: 12px;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.status-line.done {
  color: #2d9f5a;
  background: rgba(51,184,100,0.08);
  border-color: rgba(51,184,100,0.16);
}
.status-line.warn {
  color: #d97706;
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.18);
}
@media (max-width: 640px) {
  .product-preview { grid-template-columns: 1fr; inset: 72px 14px 14px 14px; }
  .product-card .cover-name { bottom: 18px; left: 18px; font-size: 32px; }
}
.product-card .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.product-card .body h3 {
  font-size: 22px;
}
.product-card .body p {
  color: var(--text-secondary);
}
.product-card .feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.product-card .feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px;
}
.product-card .feature-list svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--brand);
  margin-top: 2px;
}
.product-card .card-cta {
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  padding: 28px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.section-dark .stat-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.stat-card .value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .label {
  font-size: 14px;
  color: var(--text-secondary);
}
.section-dark .stat-card .label { color: rgba(255,255,255,0.7); }

/* ---------- Before/After Comparison ---------- */
.compare-table {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 0.8fr;
  align-items: center;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.compare-row:first-child { border-top: 0; background: var(--bg-soft); }
.compare-row .metric { font-weight: 600; }
.compare-row .before { color: var(--text-secondary); }
.compare-row .after { color: var(--brand-dark); font-weight: 600; }
.compare-row .delta {
  text-align: right;
  font-weight: 600;
  color: var(--success);
}
.compare-row .head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
  .compare-row .delta { grid-column: span 2; text-align: left; }
  .compare-row .head:nth-child(4) { display: none; }
}

/* ---------- Feature grid (3 across) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 24px; } }
.feature-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--border);
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .icon-box svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; }

/* ---------- Workflow Steps ---------- */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 900px) { .workflow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .workflow { grid-template-columns: 1fr; } }
.workflow-step {
  padding: 28px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  position: relative;
}
.workflow-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.workflow-step h4 { font-size: 17px; margin-bottom: 8px; }
.workflow-step p { color: var(--text-secondary); font-size: 14px; }

/* ---------- Testimonial / Case study ---------- */
.case-card {
  background: linear-gradient(135deg, #FFF1E6 0%, #FFFFFF 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .case-card { grid-template-columns: 1fr; padding: 32px; } }
.case-card blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.case-card .attribution {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.case-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.case-metric {
  background: #fff;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.case-metric strong { font-size: 28px; color: var(--brand); font-weight: 700; }
.case-metric span { color: var(--text-secondary); font-size: 14px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.price-card:hover { box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.price-card h3 { font-size: 20px; }
.price-card .price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price-card .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.price-card .desc { color: var(--text-secondary); font-size: 15px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.price-card ul li { display: flex; align-items: flex-start; gap: 10px; }
.price-card ul svg {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--brand);
  margin-top: 2px;
}
.price-card .btn { margin-top: auto; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  padding: 28px 20px;
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-gradient-end));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em;
}
.team-card h4 { font-size: 17px; margin-bottom: 2px; }
.team-card .role { color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.team-card .bio { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #FF6A00 0%, #FF8A33 100%);
  border-radius: var(--r-xl);
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 32px;
}
@media (max-width: 900px) { .cta-banner { grid-template-columns: 1fr; padding: 40px; } }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 17px; }
.cta-banner .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .cta-banner .btns { justify-content: flex-start; } }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-banner .btn-primary:hover { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.cta-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--brand);
  transition: transform .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Footer (Airbnb-like) ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul a {
  color: var(--text);
  font-size: 14px;
}
.footer ul a:hover { text-decoration: underline; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-bottom .social { display: flex; gap: 16px; }
.footer-bottom .social a { color: var(--text); }
.footer-bottom .social a:hover { color: var(--brand); }

/* ---------- Page header (subpages) ---------- */
.page-header {
  padding: 72px 0 40px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,106,0,0.12), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(255,147,71,0.10), transparent 40%),
    #fff;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { margin-bottom: 16px; max-width: 800px; }
.page-header p.lead { max-width: 680px; }

/* ---------- Two-col sections ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.flip > *:first-child { order: 2; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.flip > *:first-child { order: 0; }
}
.two-col .visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  position: relative;
  box-shadow: var(--shadow-md);
}

/* Illustration blocks */
.illus-cclaw {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(135deg, #FF6A00 0%, #FF9347 100%);
  color: #fff;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus-cleanfy {
  background:
    radial-gradient(circle at 20% 80%, rgba(255,106,0,0.2), transparent 40%),
    linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  color: #fff;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat/dashboard mock */
.chat-mock {
  width: 100%; max-width: 380px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.chat-mock .chat-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.chat-mock .chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.chat-mock .chat-head strong { font-size: 14px; }
.chat-mock .chat-head em { font-style: normal; color: var(--text-secondary); font-size: 12px; display: block; }
.chat-mock .msg { margin-top: 12px; font-size: 14px; line-height: 1.45; }
.chat-mock .msg.them { color: var(--text-secondary); }
.chat-mock .msg.us {
  background: var(--brand-soft); color: var(--text); padding: 10px 12px;
  border-radius: 12px 12px 4px 12px; align-self: flex-end;
  display: inline-block;
  max-width: 85%;
}
.chat-mock .msg-row { display: flex; }
.chat-mock .msg-row.right { justify-content: flex-end; }
.chat-mock .chat-footer { margin-top: 12px; font-size: 11px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.chat-mock .chat-footer .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,106,0,0.2); }

/* Vendor dispatch mock */
.dispatch-mock {
  width: 100%; max-width: 380px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.dispatch-mock .dm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dispatch-mock .dm-head strong { font-size: 14px; }
.dispatch-mock .dm-head .tag { background: var(--success); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: var(--r-pill); font-weight: 600; }
.dispatch-mock .dm-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.dispatch-mock .dm-row:first-of-type { border-top: 0; }
.dispatch-mock .dm-row span:last-child { color: var(--text-secondary); }
.dispatch-mock .progress { height: 6px; background: var(--bg-soft); border-radius: var(--r-pill); overflow: hidden; margin-top: 14px; }
.dispatch-mock .progress-bar { height: 100%; width: 78%; background: linear-gradient(90deg, var(--brand), var(--brand-gradient-end)); border-radius: var(--r-pill); }
.dispatch-mock .progress-label { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; color: var(--text-secondary); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}


.nav-logo-image { height: 28px; width: auto; display: block; }
.nav-logo { color: inherit; }
@media (max-width: 768px) { .nav-logo-image { height: 24px; } }


/* tuned to match approved homepage product-card reference */
.product-card .cover.cclaw .mini-panel,
.product-card .cover.cleanfy .mini-panel {
  background: rgba(255,255,255,0.78);
  box-shadow: none;
}
.product-card .cover.cleanfy .ops-panel {
  background: rgba(255,255,255,0.82);
}
.product-card .cover.cclaw .chat-bubble.reply {
  background: #f6e6d7;
}
.product-card .cover.cleanfy .status-line.done {
  background: rgba(224, 245, 231, 0.7);
}
.product-card .cover.cleanfy .status-line.warn {
  background: rgba(248, 236, 221, 0.9);
}

.nav-brand { color: #111111 !important; font-weight: 700; letter-spacing: -0.02em; }
.nav-brand span { color: #F18C28 !important; }


/* title tuning */
.hero-title {
  max-width: 980px;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title,
.case-title {
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
  .one-line-title {
    white-space: nowrap;
  }
}

/* about page copy cleanup */
.about-copy {
  max-width: 920px;
}

.about-copy p {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 400;
  margin: 0 0 18px 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* about page editorial style */
.about-copy-editorial {
  max-width: 860px;
}

.about-copy-editorial p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 400;
  color: var(--text);
}

.about-copy-editorial p + p {
  margin-top: 24px;
}

.about-copy-editorial .about-lead {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about-copy-editorial p {
    font-size: 17px;
    line-height: 1.8;
  }

  .about-copy-editorial .about-lead {
    font-size: 24px;
    line-height: 1.4;
  }

  .about-copy-editorial p + p {
    margin-top: 20px;
  }
}

/* About page spacing */
.about-intro {
  padding-bottom: 120px;
}

.about-values {
  padding-top: 0;
}

@media (max-width: 768px) {
  .about-intro {
    padding-bottom: 72px;
  }
}

/* about page editorial style */
.about-intro {
  padding-bottom: 120px;
}

.about-values {
  padding-top: 0;
}

.about-copy-editorial {
  max-width: 860px;
}

.about-copy-editorial p {
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 400;
  color: var(--text);
}

.about-copy-editorial p + p {
  margin-top: 24px;
}

.about-copy-editorial .about-lead {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about-intro {
    padding-bottom: 72px;
  }

  .about-copy-editorial p {
    font-size: 17px;
    line-height: 1.8;
  }

  .about-copy-editorial .about-lead {
    font-size: 24px;
    line-height: 1.4;
  }

  .about-copy-editorial p + p {
    margin-top: 20px;
  }
}

/* about page editorial style */
.about-copy-editorial {
  max-width: 980px;
}

.about-copy-editorial p {
  margin: 0;
  font-size: 20px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--text);
}

.about-copy-editorial p + p {
  margin-top: 22px;
}

.about-copy-editorial .about-lead {
  font-size: 36px;
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about-copy-editorial p {
    font-size: 18px;
    line-height: 1.75;
  }

  .about-copy-editorial .about-lead {
    font-size: 28px;
    line-height: 1.32;
  }

  .about-copy-editorial p + p {
    margin-top: 20px;
  }
}

/* about page unified editorial layout */
.about-section-editorial .container {
  max-width: 1080px !important;
}

.about-section-editorial .t-eyebrow {
  margin-bottom: 14px;
}

.about-section-editorial .t-h1 {
  max-width: 980px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
}

.about-body-lead {
  max-width: 860px;
  margin: 22px 0 0 0;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--muted);
}

.about-copy-editorial {
  max-width: 860px;
  margin-top: 18px;
}

.about-copy-editorial p {
  margin: 0;
  font-size: 19px;
  line-height: 1.82;
  font-weight: 400;
  color: var(--text);
}

.about-copy-editorial p + p {
  margin-top: 22px;
}

.about-section-title {
  margin: 0 0 22px 0;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--text);
}

.about-intro {
  padding-bottom: 72px;
}

.about-values {
  padding-top: 0;
}

@media (max-width: 768px) {
  .about-section-editorial .t-h1,
  .about-section-title {
    font-size: 38px;
    line-height: 1.12;
  }

  .about-body-lead,
  .about-copy-editorial p {
    font-size: 17px;
    line-height: 1.75;
  }

  .about-copy-editorial p + p {
    margin-top: 18px;
  }

  .about-intro {
    padding-bottom: 52px;
  }
}

/* About page: make OUR STORY match OUR MISSION */
.about-story-copy {
  max-width: 860px;
}

.about-story-copy p {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--muted);
}

.about-story-copy p + p {
  margin-top: 22px;
}

#story .t-h1 {
  max-width: 980px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0;
}

@media (max-width: 768px) {
  .about-story-copy p {
    font-size: 17px;
    line-height: 1.75;
  }

  #story .t-h1 {
    font-size: 38px;
    line-height: 1.12;
  }
}

/* our story layout */
.about-story-copy {
  max-width: 860px;
}

.about-story-copy p {
  margin: 0;
  font-size: 19px;
  line-height: 1.72;
  font-weight: 400;
  color: var(--text);
}

.about-story-copy p + p {
  margin-top: 22px;
}

#story .t-h1 {
  max-width: 980px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0;
}

@media (max-width: 768px) {
  .about-story-copy p {
    font-size: 17px;
    line-height: 1.75;
  }

  #story .t-h1 {
    font-size: 38px;
    line-height: 1.12;
  }
}


/* homepage / about cleanup */
.one-line-title {
  white-space: nowrap;
}

.t-hero {
  max-width: 1100px !important;
  font-size: clamp(56px, 6.2vw, 86px) !important;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.about-story-copy {
  max-width: 860px;
}

.about-story-copy p {
  margin: 0;
  font-size: 19px;
  line-height: 1.72;
  font-weight: 400;
  color: var(--text);
}

.about-story-copy p + p {
  margin-top: 22px;
}

#story .t-h1 {
  max-width: 980px;
  font-size: clamp(46px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0;
}

@media (max-width: 1024px) {
  .one-line-title {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .about-story-copy p {
    font-size: 17px;
    line-height: 1.75;
  }

  #story .t-h1 {
    font-size: 38px;
    line-height: 1.12;
  }
}

/* structural problem title */
.one-line-title {
  display: inline-block;
  white-space: nowrap;
}

.one-line-title-wide {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}


/* Lightweight product dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-35%);
  width: min(760px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(22, 18, 45, 0.1);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(24, 12, 56, 0.16);
  padding: 24px;
  display: none;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 22px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
}

.dropdown-label {
  margin: 0 0 10px;
  color: #8a7b9b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}

.dropdown-item:hover {
  background: rgba(122, 62, 255, 0.08);
}

.dropdown-item strong {
  display: block;
  color: #21113f;
  font-size: 14px;
  margin-bottom: 3px;
}

.dropdown-item span {
  display: block;
  color: #6c6178;
  font-size: 12px;
  line-height: 1.45;
}

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

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border-radius: 16px;
    grid-template-columns: 1fr;
    margin-top: 8px;
  }
}




/* ===== Chinese typography: conservative stable rules ===== */

/* Do not globally force huge Chinese headings into narrow widths */
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
  hyphens: none;
}

/* Homepage hero only */
html[lang="zh-CN"] .zh-hero-title {
  max-width: 860px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

/* Large Chinese section titles: allow natural 2-line wrapping */
html[lang="zh-CN"] .zh-long-title {
  max-width: 980px;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

/* Arrow workflow titles: center as a full block, not max-content */
html[lang="zh-CN"] .zh-flow-title,
html[lang="zh-CN"] .workflow-title-zh {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  white-space: normal;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

/* Keep VRM flow on one line only on wide desktop */
@media (min-width: 1280px) {
  html[lang="zh-CN"] .workflow-title-zh {
    white-space: nowrap;
  }
}

/* Center paragraph immediately below flow title */
html[lang="zh-CN"] .zh-flow-title + p,
html[lang="zh-CN"] .workflow-title-zh + p {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Mobile: let Chinese wrap naturally */
@media (max-width: 900px) {
  html[lang="zh-CN"] .zh-hero-title {
    max-width: 100%;
    font-size: clamp(38px, 10vw, 56px);
  }

  html[lang="zh-CN"] .zh-long-title,
  html[lang="zh-CN"] .zh-flow-title,
  html[lang="zh-CN"] .workflow-title-zh {
    max-width: 100%;
    font-size: clamp(28px, 7.5vw, 42px);
    white-space: normal;
  }
}

/* Chinese short headings that should stay on one line on desktop */
@media (min-width: 1024px) {
  html[lang="zh-CN"] .zh-one-line {
    white-space: nowrap;
    max-width: none;
    width: 100%;
    text-align: center;
  }
}

/* ===== VRM Chinese page targeted layout fixes ===== */

/* Keep this short VRM heading from breaking after one character */
html[lang="zh-CN"] .vrm-onboarding-title-zh {
  max-width: 680px;
}

@media (min-width: 1024px) {
  html[lang="zh-CN"] .vrm-onboarding-title-zh {
    white-space: nowrap;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.16;
  }
}

/* Center VRM workflow title against the content/card area, not the entire page */
html[lang="zh-CN"] .vrm-workflow-title-zh {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

@media (min-width: 1280px) {
  html[lang="zh-CN"] .vrm-workflow-title-zh {
    white-space: nowrap;
  }
}

html[lang="zh-CN"] .vrm-workflow-title-zh + p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* VRM Chinese reply title: avoid last word wrapping alone */
html[lang="zh-CN"] .vrm-reply-title-zh {
  max-width: 720px;
}

@media (min-width: 1024px) {
  html[lang="zh-CN"] .vrm-reply-title-zh {
    white-space: nowrap;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.16;
  }
}

/* VRM workflow block: align heading center with the four cards below */
html[lang="zh-CN"] section:has(.vrm-workflow-title-zh) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

html[lang="zh-CN"] section:has(.vrm-workflow-title-zh) .vrm-workflow-title-zh {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  transform: none;
  left: auto;
}

html[lang="zh-CN"] section:has(.vrm-workflow-title-zh) .vrm-workflow-title-zh + p {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Final VRM workflow title alignment */
@media (min-width: 1024px) {
  html[lang="zh-CN"] .vrm-workflow-title-zh {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(34px, 3.45vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    transform: translateX(-52px);
  }

  html[lang="zh-CN"] .vrm-workflow-title-zh + p {
    max-width: 1120px;
    text-align: center;
    transform: translateX(-52px);
  }
}

/* Cleanfy Chinese verify title: avoid orphan last character */
@media (min-width: 1024px) {
  html[lang="zh-CN"] .cleanfy-verify-title-zh {
    max-width: 760px;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.035em;
  }
}

/* Language switch */
.language-switch {
  font-weight: 700;
  opacity: 0.85;
}

.language-switch:hover {
  opacity: 1;
}

/* Language switch */
.language-switch {
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
}

.language-switch:hover {
  opacity: 1;
}

/* ===== Auth pages: login / signup ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 112, 24, 0.10), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(124, 42, 103, 0.10), transparent 30%),
    #faf9f7;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(32, 22, 48, 0.10);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 28px 80px rgba(32, 22, 48, 0.12);
}

.auth-card-wide {
  max-width: 560px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: #20162f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0 0 12px;
  color: #17121f;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 0 0 28px;
  color: #625a6d;
  font-size: 16px;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  color: #20162f;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(32, 22, 48, 0.16);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: #20162f;
  font: inherit;
  outline: none;
}

.auth-form textarea {
  resize: vertical;
  min-height: 104px;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: #ff6b18;
  box-shadow: 0 0 0 4px rgba(255, 107, 24, 0.12);
}

.auth-primary-btn,
.email-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  margin-top: 8px;
  background: linear-gradient(135deg, #ff6b18, #ff8a2a);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(255, 107, 24, 0.28);
}

.auth-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-switch {
  margin: 22px 0 0;
  color: #625a6d;
  font-size: 14px;
  text-align: center;
}

.auth-switch a {
  color: #ff6b18;
  font-weight: 800;
  text-decoration: none;
}

.auth-success {
  color: #167c3b;
  background: rgba(22, 124, 59, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.auth-error {
  color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 40px 16px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 22px;
  }
}

/* ===== Dashboard placeholder pages ===== */
.dashboard-page {
  min-height: 100vh;
  padding: 32px 24px 80px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 112, 24, 0.10), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(124, 42, 103, 0.10), transparent 34%),
    #faf9f7;
  color: #17121f;
}

.dashboard-nav {
  max-width: 1160px;
  margin: 0 auto 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-brand {
  color: #17121f;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.dashboard-nav a:last-child {
  color: #ff6b18;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-hero {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.dashboard-hero .eyebrow {
  margin: 0 0 12px;
  color: #ff6b18;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 0 0 18px;
  color: #17121f;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #625a6d;
  font-size: 18px;
  line-height: 1.7;
}

.dashboard-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid rgba(32, 22, 48, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(32, 22, 48, 0.08);
}

.dashboard-card h3 {
  margin: 0 0 12px;
  color: #17121f;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dashboard-card p {
  margin: 0;
  color: #625a6d;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .dashboard-nav {
    margin-bottom: 48px;
  }

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

  .dashboard-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
}

/* ===== May Madness campaign ===== */
.may-madness-bar {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 24px;
  background: linear-gradient(90deg, #4d0d58, #ff6b18);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.may-madness-bar span {
  color: #fff7d6;
}

.may-madness-bar a {
  color: #fff;
  margin-left: 10px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.may-madness-card-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 107, 24, 0.12);
  color: #ff6b18;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.may-madness-price-note {
  margin: 10px 0 20px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 24, 0.12), rgba(124, 42, 103, 0.08));
  color: #24133f;
  font-size: 15px;
  line-height: 1.45;
}

.may-madness-price-note strong {
  color: #ff6b18;
}

.may-madness-benefit {
  color: #24133f;
  font-weight: 800;
}

.may-madness-benefit i {
  color: #ff6b18 !important;
}

.may-madness-section {
  padding: 72px 24px;
  background: #fff;
}

.may-madness-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 38px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 107, 24, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(124, 42, 103, 0.12), transparent 30%),
    #faf9f7;
  border: 1px solid rgba(32, 22, 48, 0.10);
  box-shadow: 0 24px 70px rgba(32, 22, 48, 0.10);
  text-align: center;
}

.may-madness-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ff6b18;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.may-madness-panel h2 {
  margin: 0 0 14px;
  color: #17121f;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.may-madness-panel p {
  max-width: 760px;
  margin: 0 auto 20px;
  color: #625a6d;
  font-size: 18px;
  line-height: 1.65;
}

.may-madness-panel ul {
  max-width: 680px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #3c3347;
  font-size: 15px;
  line-height: 1.55;
}

.may-madness-panel li::before {
  content: "✓";
  color: #ff6b18;
  font-weight: 900;
  margin-right: 8px;
}

@media (max-width: 720px) {
  .may-madness-bar {
    font-size: 12px;
    line-height: 1.45;
  }

  .may-madness-bar a {
    display: inline-block;
    margin-left: 4px;
  }

  .may-madness-panel {
    padding: 28px 20px;
  }
}

/* ===== May Madness visual boost ===== */

/* Animated campaign bar */
.may-madness-bar {
  position: relative;
  overflow: hidden;
  padding: 14px 24px;
  background: linear-gradient(90deg, #3b0648, #ff5f14, #ff9d2e, #4d0d58);
  background-size: 300% 100%;
  animation: mayMadnessGradient 7s ease-in-out infinite;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 107, 24, 0.22);
}

.may-madness-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 28%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  animation: mayMadnessShine 3.2s ease-in-out infinite;
}

.may-madness-bar strong {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.may-madness-bar span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7c2;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.may-madness-bar a {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 950;
}

@keyframes mayMadnessGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes mayMadnessShine {
  0% { left: -35%; }
  55% { left: 120%; }
  100% { left: 120%; }
}

/* Stronger campaign badge inside pricing cards */
.may-madness-card-badge {
  padding: 9px 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ff5f14, #ff9d2e);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 28px rgba(255, 107, 24, 0.28);
  animation: mayMadnessPulse 2.4s ease-in-out infinite;
}

@keyframes mayMadnessPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 12px 28px rgba(255, 107, 24, 0.24);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(255, 107, 24, 0.36);
  }
}

/* Make FREE FOR LIFE / 终身免费 very visible */
.may-madness-price-note {
  margin: 16px 0 24px;
  padding: 18px 18px;
  border: 1px solid rgba(255, 107, 24, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.75), transparent 26%),
    linear-gradient(135deg, rgba(255, 107, 24, 0.18), rgba(124, 42, 103, 0.10));
  color: #24133f;
  font-size: 17px;
  line-height: 1.45;
  box-shadow: 0 16px 38px rgba(255, 107, 24, 0.16);
}

.may-madness-price-note strong {
  display: block;
  margin-bottom: 4px;
  color: #ff5f14;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

/* Make the standalone May Madness section louder */
.may-madness-kicker {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5f14, #ff9d2e);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 32px rgba(255, 107, 24, 0.28);
}

.may-madness-panel h2 {
  font-size: clamp(46px, 7vw, 86px);
  letter-spacing: -0.07em;
}

.may-madness-panel p strong {
  color: #ff5f14;
  font-size: 1.18em;
  font-weight: 950;
}

@media (max-width: 720px) {
  .may-madness-bar {
    padding: 12px 14px;
    font-size: 13px;
  }

  .may-madness-bar strong {
    font-size: 16px;
  }

  .may-madness-bar span {
    font-size: 14px;
  }

  .may-madness-price-note strong {
    font-size: 28px;
  }
}

/* ===== May Madness note tuning ===== */
.may-madness-price-note {
  margin: 16px 0 24px;
  padding: 18px 18px;
  border: 1px solid rgba(255, 107, 24, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.75), transparent 26%),
    linear-gradient(135deg, rgba(255, 107, 24, 0.18), rgba(124, 42, 103, 0.10));
  color: #24133f;
  box-shadow: 0 16px 38px rgba(255, 107, 24, 0.16);
}

.may-madness-price-note strong {
  display: block;
  margin-bottom: 8px;
  color: #ff5f14;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.may-madness-subnote {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #4e4460;
  font-weight: 600;
}

@media (max-width: 720px) {
  .may-madness-price-note strong {
    font-size: 22px;
    white-space: normal;
  }

  .may-madness-subnote {
    font-size: 12px;
  }
}

/* May Madness section: keep free-for-life offer on one line */
.may-madness-free-line {
  display: inline-block;
  white-space: nowrap;
  color: #ff5f14;
  font-weight: 950;
}

@media (max-width: 720px) {
  .may-madness-free-line {
    white-space: normal;
  }
}

/* ===== May Madness pricing cleanup ===== */

/* keep the campaign badge, but not too dominant */
.may-madness-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a1a, #ff9b35);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(255, 107, 24, 0.18);
  animation: none;
}

/* compact promo strip instead of giant orange block */
.may-madness-price-note {
  margin: 16px 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 107, 24, 0.22);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 24, 0.08),
    rgba(255, 107, 24, 0.03)
  );
  box-shadow: none;
}

/* headline on one line, visually strong but not oversized */
.may-madness-price-note strong,
.may-madness-free-line {
  display: block;
  margin-bottom: 4px;
  color: #ff5f14;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* small sub line */
.may-madness-subnote {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #5f5674;
  font-weight: 600;
}

/* keep pricing card rhythm closer to original */
.pricing-card .may-madness-price-note + ul,
.pricing-card .may-madness-price-note + .plan-list {
  margin-top: 18px;
}

/* prevent giant wrap on narrower screens */
@media (max-width: 1200px) {
  .may-madness-price-note strong,
  .may-madness-free-line {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .may-madness-card-badge {
    font-size: 12px;
    padding: 7px 12px;
  }

  .may-madness-price-note {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .may-madness-price-note strong,
  .may-madness-free-line {
    font-size: 18px;
  }

  .may-madness-subnote {
    font-size: 11px;
  }
}

/* ===== May Madness pricing card, conservative layout ===== */
.may-madness-card-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a1a, #ff9b35);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(255, 107, 24, 0.18);
}

.may-madness-price-note {
  margin: 16px 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 107, 24, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 24, 0.08), rgba(255, 107, 24, 0.03));
  box-shadow: none;
}

.may-madness-price-note strong {
  display: block;
  margin-bottom: 4px;
  color: #ff5f14;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.may-madness-subnote {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #5f5674;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .may-madness-price-note strong {
    white-space: normal;
  }
}

/* ===== May Madness card promo placement fix ===== */
.may-madness-price-note {
  margin: 16px 0 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 107, 24, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 24, 0.09), rgba(124, 42, 103, 0.04));
  box-shadow: none;
}

.may-madness-price-note strong {
  display: block;
  margin: 0 0 6px;
  color: #ff5f14;
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.035em;
  white-space: normal;
  text-transform: uppercase;
}

.may-madness-subnote {
  display: block;
  color: #4e4460;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

/* Hero orange emphasis */
.hero-orange-hit {
  display: inline;
  color: #ff5f14;
  text-shadow:
    0 0 18px rgba(255, 95, 20, 0.22),
    0 10px 36px rgba(255, 95, 20, 0.18);
  background: linear-gradient(90deg, #ff5f14, #ff8a24, #ff5f14);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroOrangeGlow 4.5s ease-in-out infinite;
}

@keyframes heroOrangeGlow {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 0 rgba(255, 95, 20, 0));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 10px rgba(255, 95, 20, 0.22));
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 0 rgba(255, 95, 20, 0));
  }
}

/* ===== May Madness card polish ===== */
.promo-price-old {
  position: relative;
  display: inline-block;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  color: rgba(19, 18, 35, 0.72);
  margin-right: 10px;
  vertical-align: baseline;
}

.promo-price-old::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 4px;
  background: #131223;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-7deg);
}

.promo-price-free {
  display: inline-block;
  font-size: 78px;
  font-weight: 900;
  line-height: 0.92;
  color: #ff6a1a;
  margin-right: 8px;
  vertical-align: baseline;
  text-shadow: 0 8px 24px rgba(255, 106, 26, 0.16);
}

.offer-kicker {
  display: block;
  font-size: 18px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ff5a14;
}

.offer-main {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ff5a14;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .promo-price-old {
    font-size: 46px;
  }

  .promo-price-free {
    font-size: 64px;
  }

  .offer-kicker {
    font-size: 15px;
  }

  .offer-main {
    font-size: 28px;
  }
}

/* ===== May Madness price + offer hierarchy fix ===== */
.promo-price-old {
  font-size: 58px !important;
  line-height: 1 !important;
}

.promo-price-free {
  font-size: 58px !important;
  line-height: 1 !important;
  font-weight: 900;
  color: #ff6a1a;
  margin-right: 8px;
  vertical-align: baseline;
  text-shadow: 0 8px 24px rgba(255, 106, 26, 0.14);
}

.offer-kicker {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #ff5a14 !important;
}

.offer-main {
  display: block !important;
  margin-top: 4px !important;
  font-size: 34px !important;
  line-height: 0.96 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
  color: #ff5a14 !important;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .promo-price-old,
  .promo-price-free {
    font-size: 46px !important;
  }

  .offer-kicker {
    font-size: 13px !important;
  }

  .offer-main {
    font-size: 28px !important;
  }
}

/* ===== Chinese May Madness pricing hierarchy ===== */
html[lang="zh-CN"] .promo-price-old {
  font-size: 58px !important;
  line-height: 1 !important;
}

html[lang="zh-CN"] .promo-price-free {
  font-size: 58px !important;
  line-height: 1 !important;
  font-weight: 900;
  color: #ff6a1a;
  margin-right: 8px;
  vertical-align: baseline;
  text-shadow: 0 8px 24px rgba(255, 106, 26, 0.14);
}

html[lang="zh-CN"] .offer-kicker {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #ff5a14 !important;
}

html[lang="zh-CN"] .offer-main {
  display: block !important;
  margin-top: 4px !important;
  font-size: 34px !important;
  line-height: 0.96 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
  color: #ff5a14 !important;
}

@media (max-width: 768px) {
  html[lang="zh-CN"] .promo-price-old,
  html[lang="zh-CN"] .promo-price-free {
    font-size: 46px !important;
  }

  html[lang="zh-CN"] .offer-kicker {
    font-size: 13px !important;
  }

  html[lang="zh-CN"] .offer-main {
    font-size: 28px !important;
  }
}

/* Custom Vesta nav logo */
.nav-logo-img {
  display: block;
  width: 150px;
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-logo-img {
    width: 132px;
    max-width: 132px;
  }
}

/* ===== Channel logo wall upgrade ===== */
.logo-cloud,
.channel-row,
.partners-row {
  align-items: center;
}

.logo-cloud span,
.channel-row span,
.partners-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 22, 48, 0.06);
  box-shadow: 0 10px 28px rgba(32, 22, 48, 0.04);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
  opacity: 1;
  filter: none;
}

/* Brand-inspired text lockups, not official marks */
.logo-cloud span:nth-child(1),
.channel-row span:nth-child(1),
.partners-row span:nth-child(1) {
  color: #ff5a5f;
}

.logo-cloud span:nth-child(2),
.channel-row span:nth-child(2),
.partners-row span:nth-child(2) {
  color: #003b95;
}

.logo-cloud span:nth-child(3),
.channel-row span:nth-child(3),
.partners-row span:nth-child(3) {
  color: #1f4e79;
}

.logo-cloud span:nth-child(4),
.channel-row span:nth-child(4),
.partners-row span:nth-child(4) {
  color: #245abc;
}

.logo-cloud span:nth-child(5),
.channel-row span:nth-child(5),
.partners-row span:nth-child(5) {
  color: #635bff;
}

.logo-cloud span:nth-child(6),
.channel-row span:nth-child(6),
.partners-row span:nth-child(6) {
  color: #5f6368;
}

.logo-cloud span:hover,
.channel-row span:hover,
.partners-row span:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(32, 22, 48, 0.08);
}

@media (max-width: 760px) {
  .logo-cloud span,
  .channel-row span,
  .partners-row span {
    min-width: 96px;
    height: 38px;
    font-size: 18px;
  }
}

/* ===== Official Airbnb partner highlight ===== */
.logo-cloud span:first-child,
.channel-row span:first-child,
.partners-row span:first-child {
  position: relative;
  min-width: 170px;
  height: 58px;
  flex-direction: column;
  gap: 2px;
  color: #ff5a5f !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(255, 107, 24, 0.08));
  border: 1px solid rgba(255, 90, 95, 0.22);
  box-shadow: 0 16px 36px rgba(255, 90, 95, 0.12);
}

.logo-cloud span:first-child::after,
.channel-row span:first-child::after,
.partners-row span:first-child::after {
  content: "Official Partner";
  display: block;
  margin-top: 1px;
  color: #7b2b35;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .logo-cloud span:first-child::after,
html[lang="zh-CN"] .channel-row span:first-child::after,
html[lang="zh-CN"] .partners-row span:first-child::after {
  content: "已签约合作伙伴";
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.logo-cloud span:first-child::before,
.channel-row span:first-child::before,
.partners-row span:first-child::before {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff5a5f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 90, 95, 0.24);
}

@media (max-width: 760px) {
  .logo-cloud span:first-child,
  .channel-row span:first-child,
  .partners-row span:first-child {
    min-width: 140px;
    height: 54px;
  }
}

/* ===== Channel logo wall base styling ===== */
.logo-cloud,
.channel-row,
.partners-row {
  align-items: center;
}

.logo-cloud span,
.channel-row span,
.partners-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 22, 48, 0.06);
  box-shadow: 0 10px 28px rgba(32, 22, 48, 0.04);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
  opacity: 1;
}

/* ===== Homepage channel logo wall ===== */
.channel-logo-wall {
  padding: 38px 24px 42px;
  border-top: 1px solid rgba(32, 22, 48, 0.08);
  border-bottom: 1px solid rgba(32, 22, 48, 0.08);
  background: #fff;
  text-align: center;
}

.channel-logo-eyebrow {
  margin-bottom: 24px;
  color: #5f5b66;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.channel-logo-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}

.channel-logo-card {
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(32, 22, 48, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(32, 22, 48, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d8d8d;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.channel-logo-card.airbnb-official {
  position: relative;
  flex-direction: column;
  gap: 3px;
  color: #ff5a5f;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.95), transparent 30%),
    linear-gradient(135deg, rgba(255, 90, 95, 0.13), rgba(255, 107, 24, 0.08));
  border-color: rgba(255, 90, 95, 0.28);
  box-shadow: 0 18px 42px rgba(255, 90, 95, 0.14);
}

.channel-logo-card.airbnb-official::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff5a5f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255, 90, 95, 0.24);
}

.channel-logo-name {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.channel-logo-sub {
  color: #7b2b35;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .channel-logo-sub {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.channel-logo-card.booking { color: #003b95; }
.channel-logo-card.expedia { color: #1f4e79; }
.channel-logo-card.vrbo { color: #245abc; }
.channel-logo-card.stripe { color: #635bff; }
.channel-logo-card.google { color: #5f6368; }

.channel-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(32, 22, 48, 0.09);
}

@media (max-width: 900px) {
  .channel-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-logo-card {
    font-size: 19px;
  }
}

/* Add Ctrip to channel logo wall */
.channel-logo-grid {
  grid-template-columns: 1.35fr repeat(6, 1fr);
}

.channel-logo-card.ctrip {
  color: #2577e3;
}

@media (max-width: 1100px) {
  .channel-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .channel-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Multiple official partner highlights ===== */
.channel-logo-card.official-partner {
  position: relative;
  flex-direction: column;
  gap: 3px;
  min-height: 58px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.95), transparent 30%),
    linear-gradient(135deg, rgba(255, 107, 24, 0.10), rgba(124, 42, 103, 0.06));
  border-color: rgba(255, 107, 24, 0.22);
  box-shadow: 0 18px 42px rgba(32, 22, 48, 0.08);
}

.channel-logo-card.official-partner::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff6a1a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255, 106, 26, 0.24);
}

.channel-logo-card.booking.official-partner {
  color: #003b95;
  border-color: rgba(0, 59, 149, 0.20);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.95), transparent 30%),
    linear-gradient(135deg, rgba(0, 59, 149, 0.10), rgba(0, 113, 206, 0.06));
}

.channel-logo-card.booking.official-partner::after {
  background: #003b95;
  box-shadow: 0 10px 22px rgba(0, 59, 149, 0.22);
}

.channel-logo-card.ctrip.official-partner {
  color: #2577e3;
  border-color: rgba(37, 119, 227, 0.22);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.95), transparent 30%),
    linear-gradient(135deg, rgba(37, 119, 227, 0.11), rgba(37, 119, 227, 0.05));
}

.channel-logo-card.ctrip.official-partner::after {
  background: #2577e3;
  box-shadow: 0 10px 22px rgba(37, 119, 227, 0.22);
}

/* ===== VRM app download block ===== */
.vrm-app-download {
  max-width: 1040px;
  margin: -28px auto 72px;
  padding: 28px 32px;
  border-radius: 28px;
  border: 1px solid rgba(32, 22, 48, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 24, 0.12), transparent 30%),
    #fff;
  box-shadow: 0 22px 60px rgba(32, 22, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.vrm-app-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ff5f14;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vrm-app-download h3 {
  margin: 0 0 8px;
  color: #17121f;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.vrm-app-download p {
  margin: 0;
  color: #625a6d;
  font-size: 16px;
  line-height: 1.5;
}

.vrm-app-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.store-button {
  min-width: 156px;
  height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  background: #17121f;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(23, 18, 31, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23, 18, 31, 0.24);
}

.store-button i {
  font-size: 22px;
}

.store-button span {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.05;
}

.store-button small {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 2px;
}

@media (max-width: 820px) {
  .vrm-app-download {
    margin: 24px 18px 56px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .vrm-app-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }
}

/* VRM app download block bottom placement */
.vrm-app-section {
  padding: 32px 24px 88px;
  background: #fff;
}

.vrm-app-section .vrm-app-download {
  margin: 0 auto;
}

/* Cleanfy app download bottom block */
.cleanfy-app-section .vrm-app-download {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 24, 0.12), transparent 30%),
    #fff;
}

/* WeChat / WeCom social icons */
.social a.social-wechat,
.social a.social-wecom {
  color: #07C160;
}

.social a.social-wechat:hover,
.social a.social-wecom:hover {
  color: #06ad56;
}

/* Keep footer at the bottom of short pages without making it sticky */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer,
.footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Mobile responsive refinements */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }

  .container,
  .section,
  .section-inner,
  main,
  section {
    max-width: 100%;
  }

  .hero-grid,
  .product-grid,
  .feature-grid,
  .pricing-grid,
  .stats-grid,
  .team-grid,
  .footer-grid,
  .two-col,
  .case-card,
  .cta-banner,
  .workflow,
  .compare-row {
    grid-template-columns: 1fr !important;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1,
  .hero h1 {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  h2,
  .section-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.12;
  }

  p,
  .lead,
  .section-subtitle {
    font-size: 16px;
    line-height: 1.55;
  }

  .card,
  .feature-card,
  .pricing-card,
  .product-card {
    width: 100%;
    max-width: 100%;
  }

  .site-header,
  .navbar,
  .nav {
    max-width: 100%;
  }

  .logo img,
  .brand img,
  .site-logo img {
    max-height: 36px;
    width: auto;
  }

  .social {
    flex-wrap: wrap;
  }
}

.two-up-mobile-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.two-up-mobile-stack.compact-gap {
  gap: 16px;
}

@media (max-width: 768px) {
  .two-up-mobile-stack {
    grid-template-columns: 1fr !important;
  }
}

/* Strong mobile overflow fixes for homepage hero and channel blocks */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  .hero,
  .hero-grid,
  .hero-inner,
  .hero-content,
  .hero-copy,
  .hero-visual,
  .section,
  .section-inner,
  .container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .hero-grid,
  .hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hero h1,
  .hero-title,
  .t-h1,
  h1 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: clamp(42px, 13vw, 64px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
  }

  .hero h1 span,
  .hero-title span,
  .t-h1 span,
  h1 span {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hero p,
  .hero .lead,
  .hero-subtitle,
  .t-lead {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .hero-actions,
  .cta-row,
  .button-row,
  .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-actions a,
  .cta-row a,
  .button-row a,
  .actions a,
  .btn {
    max-width: 100% !important;
    white-space: normal !important;
  }

  .hero-visual {
    margin-top: 28px !important;
    transform: none !important;
  }

  .hero-visual > *,
  .hero-card,
  .dashboard-card,
  .phone-card,
  .floating-card,
  .mockup,
  .mockup-card {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .channel-grid,
  .partner-grid,
  .logo-grid,
  .integration-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 16px !important;
  }

  .channel-card,
  .partner-card,
  .logo-card,
  .integration-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Mobile hero typography correction */
@media (max-width: 768px) {
  .hero {
    padding-top: 44px !important;
  }

  .hero h1,
  .hero-title,
  .t-h1,
  h1 {
    font-size: clamp(38px, 10vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .hero h1 span,
  .hero-title span,
  .t-h1 span,
  h1 span {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .hero p,
  .hero .lead,
  .hero-subtitle,
  .t-lead {
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .hero-actions,
  .cta-row,
  .button-row,
  .actions {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .hero-actions .btn,
  .cta-row .btn,
  .button-row .btn,
  .actions .btn,
  .btn {
    width: auto !important;
    min-width: 0 !important;
  }
}

/* Chinese mobile typography correction */
@media (max-width: 768px) {
  html[lang^="zh"] .t-hero,
  html[lang^="zh"] .zh-hero-title {
    font-size: clamp(40px, 10.5vw, 48px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  html[lang^="zh"] .t-h1,
  html[lang^="zh"] .t-h2,
  html[lang^="zh"] .zh-long-title,
  html[lang^="zh"] .zh-one-line,
  html[lang^="zh"] h1,
  html[lang^="zh"] h2 {
    font-size: clamp(30px, 8vw, 40px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.018em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  html[lang^="zh"] .t-lead,
  html[lang^="zh"] .lead,
  html[lang^="zh"] p {
    font-size: 16px !important;
    line-height: 1.72 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  html[lang^="zh"] .one-line-title,
  html[lang^="zh"] .zh-one-line {
    white-space: normal !important;
  }
}

.social a.social-xhs {
  color: #ff2442;
}

.social a.social-xhs:hover {
  color: #ff2442;
  opacity: 0.85;
}

.social a.social-youtube {
  color: #ff0000;
}

.social a.social-youtube:hover {
  color: #ff0000;
  opacity: 0.85;
}

.social a.social-xhs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.social a.social-xhs:hover .social-icon-img {
  opacity: 0.85;
}

/* Legal pages */
.legal-hero {
  padding: 96px 0 40px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 105, 24, 0.10), transparent 32%),
    linear-gradient(180deg, #fff, #fafafa);
}

.legal-hero .t-h1 {
  margin-top: 16px;
  max-width: 880px;
}

.legal-content {
  padding: 28px 0 96px;
}

.legal-container {
  max-width: 880px;
}

.legal-block {
  padding: 28px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-block h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-block p {
  color: #5f6673;
  font-size: 17px;
  line-height: 1.75;
}

.legal-note {
  border-bottom: 0;
  background: rgba(255, 105, 24, 0.06);
  border-radius: 24px;
  padding: 24px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 64px 0 24px;
  }

  .legal-content {
    padding: 8px 0 72px;
  }

  .legal-block {
    padding: 24px 0;
  }

  .legal-block h2 {
    font-size: 21px;
  }

  .legal-block p {
    font-size: 16px;
    line-height: 1.68;
  }
}

/* Resource document pages */
.resource-doc {
  max-width: 960px;
}

.resource-section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.resource-section:first-child {
  padding-top: 0;
}

.resource-section:last-child {
  border-bottom: 0;
}

.resource-section h2 {
  margin-bottom: 16px;
}

.resource-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 14px;
}

@media (max-width: 768px) {
  .resource-doc {
    max-width: 100%;
  }

  .resource-section {
    padding: 28px 0;
  }

  .resource-section p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* How it works page */
.how-doc {
  max-width: 980px;
}

.how-step h2 {
  color: var(--ink);
}

.how-step p {
  max-width: 820px;
}

@media (max-width: 768px) {
  .how-doc {
    max-width: 100%;
  }
}

.nav-languages {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-languages .language-switch {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .nav-languages {
    gap: 8px;
    flex-wrap: nowrap;
  }
}

/* Language dropdown */
.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.language-toggle i {
  font-size: 11px;
  opacity: 0.7;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 50;
}

.language-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.language-menu a:hover {
  background: rgba(245, 124, 32, 0.10);
  color: var(--brand);
}

.language-dropdown:hover .language-menu,
.language-dropdown:focus-within .language-menu {
  display: block;
}

@media (max-width: 768px) {
  .language-toggle {
    font-size: 14px;
  }

  .language-menu {
    right: 0;
    min-width: 140px;
  }
}

/* Spanish landing page refinements */
.es-page .t-hero {
  max-width: 980px;
  font-size: clamp(54px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.es-page .hero-copy {
  min-width: 0;
}

.es-page .t-lead {
  max-width: 780px;
}

.es-page .feature-card h3,
.es-page .workflow-step h3 {
  line-height: 1.18;
}

.es-page .feature-card p,
.es-page .workflow-step p {
  line-height: 1.58;
}

.es-page .cta-banner {
  align-items: center;
}

.es-page .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .es-page .hero-grid {
    grid-template-columns: 1fr;
  }

  .es-page .hero-visual {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .es-page .hero {
    padding-top: 44px;
  }

  .es-page .t-hero {
    font-size: clamp(36px, 10vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .es-page .t-lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .es-page .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .es-page .hero-actions .btn,
  .es-page .cta-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .es-page .feature-grid,
  .es-page .workflow {
    grid-template-columns: 1fr !important;
  }

  .es-page .cta-banner {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .es-page .cta-actions {
    width: 100%;
    flex-direction: column;
  }
}

/* Spanish landing page: simplify hero visual */
.es-page .hero-grid {
  grid-template-columns: 1fr !important;
}

.es-page .hero-copy {
  max-width: 900px;
}

.es-page .hero-visual {
  display: none !important;
}

.es-page .t-hero {
  max-width: 900px;
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.es-page .hero .t-lead {
  max-width: 720px;
}

@media (max-width: 768px) {
  .es-page .t-hero {
    font-size: clamp(38px, 10vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
  }
}

/* Mobile-safe language dropdown */
.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-dropdown summary {
  list-style: none;
}

.language-dropdown summary::-webkit-details-marker {
  display: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.language-toggle i {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.language-dropdown[open] .language-toggle i {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 156px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 999;
}

.language-dropdown[open] .language-menu {
  display: block;
}

.language-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.language-menu a:hover {
  background: rgba(245, 124, 32, 0.10);
  color: var(--brand);
}

@media (max-width: 768px) {
  .language-dropdown {
    position: relative;
  }

  .language-toggle {
    font-size: 14px;
    padding: 8px 0;
  }

  .language-menu {
    right: 0;
    min-width: 148px;
    max-width: calc(100vw - 32px);
  }
}

/* Mobile nav layout refinement */
@media (max-width: 768px) {
  .nav-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "brand spacer menu"
      "lang cta cta";
    align-items: center;
    gap: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .nav-menu-toggle,
  .mobile-menu-toggle,
  .menu-toggle {
    grid-area: menu;
    justify-self: end;
  }

  .language-dropdown {
    grid-area: lang;
    justify-self: start;
    z-index: 1000;
  }

  .nav-cta,
  .nav-actions .btn,
  .nav-inner > .btn {
    grid-area: cta;
    justify-self: end;
  }

  .language-menu {
    left: 0;
    right: auto;
    top: calc(100% + 8px);
  }

  .language-toggle {
    font-size: 14px;
  }
}

/* Footer language selector */
.footer-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-language span {
  font-weight: 700;
  color: var(--ink);
}

.footer-language a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-language a:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .footer-language {
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 18px;
  }
}

/* Mobile nav after moving language selector to footer */
@media (max-width: 768px) {
  .nav-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    grid-template-areas: "brand spacer cta menu";
    align-items: center;
    gap: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .nav-inner > .btn,
  .nav-cta,
  .nav-actions .btn {
    grid-area: cta;
    justify-self: end;
  }

  .nav-menu-toggle,
  .mobile-menu-toggle,
  .menu-toggle {
    grid-area: menu;
    justify-self: end;
  }
}

/* Footer language up-menu */
.footer-language {
  position: relative;
  display: inline-block;
  margin: 18px 0 16px;
}

.footer-language summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.footer-language summary::-webkit-details-marker {
  display: none;
}

.footer-language summary span {
  color: var(--ink);
  font-weight: 700;
}

.footer-language summary strong {
  color: var(--muted);
  font-weight: 600;
}

.footer-language summary i {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.footer-language[open] summary i {
  transform: rotate(180deg);
}

.footer-language-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  min-width: 170px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 999;
}

.footer-language[open] .footer-language-menu {
  display: block;
}

.footer-language-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.footer-language-menu a:hover {
  background: rgba(245, 124, 32, 0.10);
  color: var(--brand);
}

@media (max-width: 768px) {
  .footer-language {
    width: 100%;
    margin: 22px 0 18px;
  }

  .footer-language summary {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
  }

  .footer-language-menu {
    width: 100%;
    min-width: 0;
  }
}

/* Mobile footer: compact two-column layout */
@media (max-width: 768px) {
  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 22px !important;
    text-align: left !important;
  }

  .footer-grid > div {
    min-width: 0;
  }

  .footer-grid h4,
  .footer-grid h3,
  .footer-title {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .footer-grid ul,
  .footer-grid li {
    margin: 0;
    padding: 0;
  }

  .footer-grid li {
    margin-bottom: 10px;
  }

  .footer-grid a {
    font-size: 14px;
    line-height: 1.35;
  }

  .footer-language {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 18px;
  }

  .footer .social,
  footer .social {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
  }

  .footer-bottom,
  .footer-meta,
  .copyright {
    text-align: left !important;
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 18px !important;
  }

  .footer-grid a {
    font-size: 13.5px;
  }
}

/* Product demo page */
.demo-hero .t-lead {
  max-width: 900px;
}

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

.demo-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.demo-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.demo-tag {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.demo-card h2 {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0;
}

.demo-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.demo-flow {
  display: grid;
  gap: 10px;
}

.demo-row {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.demo-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

@media (max-width: 980px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .demo-card {
    padding: 22px;
    border-radius: 24px;
  }

  .demo-card h2 {
    font-size: 21px;
  }

  .demo-desc {
    font-size: 15px;
  }

  .demo-row {
    padding: 13px;
  }
}
