/* SakuraCat Mirror — sakuracat-1.org */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');

:root {
  --primary:     #dc2626;
  --primary-dark:#b91c1c;
  --surface:     #fef2f2;
  --surface-2:   #f9fafb;
  --header-bg:   #ffffff;
  --bg:          #ffffff;
  --text:        #111827;
  --text-muted:  #6b7280;
  --green:       #16a34a;
  --red:         #dc2626;
  --border:      #e5e7eb;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   999px;
  --shadow-card: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.10);
  --transition:  0.15s ease;
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    48px;
  --space-xl:    80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'Noto Sans TC', sans-serif;
       font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ─── HEADER ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 var(--space-sm);
  height: 64px; gap: var(--space-sm);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 38px; width: auto; max-width: 160px; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center; list-style: none;
}
.nav-links > li > a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.nav-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; margin-left: auto;
}
.mobile-lang { display: none; }

/* ─── DROPDOWN / LANGUAGE SWITCHER ─── */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 160px; z-index: 1000;
}
.dropdown-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); padding: 6px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn i { font-size: 11px; }

/* Nav dropdown trigger for language */
.nav-lang-item { position: relative; }
.lang-trigger {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  padding: 6px 10px; cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color var(--transition), border-color var(--transition);
}
.lang-trigger:hover { color: var(--primary); border-color: var(--primary); }
.globe-icon { font-size: 14px; }
.lang-caret { font-size: 10px; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 140px; z-index: 1001;
  display: none; padding: 6px;
}
.lang-dropdown::before {
  content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 6px;
}
.nav-lang-item:hover .lang-dropdown,
.nav-lang-item:focus-within .lang-dropdown { display: block; }
.lang-dropdown li a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
  transition: background var(--transition); white-space: nowrap;
}
.lang-dropdown li a:hover { background: var(--surface-2); text-decoration: none; }
.lang-dropdown li a.active { color: var(--primary); font-weight: 600; background: var(--surface); }

/* ─── NAV BUTTONS ─── */
.btn-login {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: color var(--transition); white-space: nowrap;
}
.btn-login:hover { color: var(--text); text-decoration: none; }

.btn-cta {
  background: var(--primary); color: #fff;
  padding: 8px 18px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap; display: inline-block;
  box-shadow: 0 2px 8px rgba(220,38,38,.25);
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(220,38,38,.35); }

.btn-cta-lg {
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-xl);
  font-size: 17px; font-weight: 700;
  display: inline-block;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(220,38,38,.30);
}
.btn-cta-lg:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,.40); }

.btn-outline {
  border: 2px solid var(--border); color: var(--text-muted);
  padding: 10px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600; display: inline-block;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; background: var(--surface); }

.btn-primary {
  background: var(--primary); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; display: inline-block;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(220,38,38,.25);
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(220,38,38,.35); }

.btn-secondary {
  border: 2px solid var(--border); color: var(--text);
  padding: 10px 22px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; display: inline-block;
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 22px; padding: 6px;
  order: 99;
}

/* ─── HERO ─── */
.hero {
  background: var(--bg);
  padding: var(--space-xl) var(--space-sm);
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(220,38,38,.06) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid #fecaca;
  color: var(--primary); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: var(--space-md);
  animation: badge-in 0.5s ease both;
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px); font-weight: 800;
  margin-bottom: var(--space-sm); color: var(--text);
  animation: hero-title 0.6s 0.1s ease both;
}
.hero h1 em { color: var(--primary); font-style: normal; }
@keyframes hero-title {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted);
  margin-bottom: var(--space-lg); max-width: 640px; margin-left: auto; margin-right: auto;
  animation: hero-sub 0.6s 0.2s ease both;
}
@keyframes hero-sub {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-cta-group {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: hero-cta 0.6s 0.3s ease both;
}
@keyframes hero-cta {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-price { margin-top: var(--space-md); font-size: 14px; color: var(--text-muted); }

/* Hero with side image (home page) */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; text-align: left; max-width: 1120px; margin: 0 auto; }
.hero-split .hero-cta-group { justify-content: flex-start; }
.hero-split .hero-price { text-align: left; }
.hero-visual { position: relative; }
.hero-image-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: hero-img 0.7s 0.25s ease both;
}
@keyframes hero-img {
  from { opacity: 0; transform: scale(0.97) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-image-wrap img { width: 100%; height: 340px; object-fit: cover; }
.hero-cat {
  position: absolute; bottom: -16px; right: -16px;
  width: 80px; height: 80px; object-fit: contain;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-sm);
}
.trust-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num { font-size: 28px; font-weight: 800; color: var(--primary); display: block; line-height: 1; }
.trust-label { font-size: 12px; color: var(--text-muted); letter-spacing: .5px; margin-top: 6px; display: block; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { padding: var(--space-xl) var(--space-sm); }
.section-alt { background: var(--surface-2); }
.section-red { background: var(--surface); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: var(--space-xs);
}
.section-title { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin-bottom: var(--space-sm); }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── EYEBROW / MODULE INDEX ─── */
.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 10px;
}
.module-index {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px;
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--space-sm); color: var(--primary);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ─── USE CASE TILES ─── */
.use-module { padding: var(--space-xl) var(--space-sm); }
.use-module__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.service-grid { display: grid; gap: 10px; }
.service-grid--4 { grid-template-columns: repeat(4, 1fr); }
.service-grid--3 { grid-template-columns: repeat(3, 1fr); }
.service-grid--2 { grid-template-columns: repeat(2, 1fr); }
.service-tile {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-tile:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.tile-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; }
.tile-name { font-size: 13px; font-weight: 600; }
.tile-desc { font-size: 11px; color: var(--text-muted); }

/* ─── SPLIT ROW ─── */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 300px; object-fit: cover; }
.split-content .section-title { font-size: clamp(22px, 3vw, 34px); }
.check-list { margin: var(--space-sm) 0 var(--space-md); }
.check-list li { padding: 7px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list li::before { content: '\2713'; color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── STATS / COVERAGE FACTS ─── */
.stats-bar { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-lg) var(--space-sm); }
.stats-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); text-align: center; }
.stat-item {}
.stat-count { font-size: 36px; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ─── COVERAGE / HERO FACTS ─── */
.coverage-facts { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-lg); }
.coverage-fact { text-align: center; }
.fact-value { font-size: 28px; font-weight: 800; color: var(--primary); display: block; }
.fact-label { font-size: 12px; color: var(--text-muted); }

/* ─── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.pricing-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-md);
  position: relative; transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card.popular { border-color: var(--primary); border-width: 2px; }
.pricing-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pricing-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: var(--space-xs); }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price sup { font-size: 22px; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); margin-top: 6px; }
.pricing-divider { height: 1px; background: var(--border); margin: var(--space-sm) 0; }
.pricing-features li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '\2715'; color: var(--border); }
.pricing-cta { width: 100%; padding: 13px; border-radius: var(--radius-xl); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: var(--space-sm); display: block; text-align: center; transition: all var(--transition); background: var(--primary); color: #fff; border: none; box-shadow: 0 2px 8px rgba(220,38,38,.25); }
.pricing-cta:hover { background: var(--primary-dark); text-decoration: none; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
/* plan cards (sitegen naming) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-md); position: relative; transition: box-shadow var(--transition), transform var(--transition); }
.plan-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.plan-card--featured { border-color: var(--primary); border-width: 2px; }
.plan-card--free { background: var(--surface-2); }
.plan-family-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.plan-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; }
.plan-price .unit { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-allowance { font-size: 13px; color: var(--text-muted); margin: 8px 0 var(--space-sm); }
.plan-features { margin-bottom: var(--space-sm); }
.plan-features li { font-size: 14px; padding: 4px 0; display: flex; align-items: center; gap: 7px; }
.plan-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.plan-card a.btn-primary { display: block; text-align: center; width: 100%; margin-top: 4px; }

/* ─── IMAGE STRIP ─── */
.image-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.image-strip-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── PROTOCOLS ─── */
.proto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-sm); }
.proto-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: box-shadow var(--transition), transform var(--transition); }
.proto-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.proto-name { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.proto-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── HONEST / CTA BLOCK ─── */
.honest-block { padding: var(--space-xl) var(--space-sm); }
.honest-inner { max-width: 760px; margin: 0 auto; }
.honest-inner h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 800; margin-bottom: var(--space-sm); }
.honest-inner p { color: var(--text-muted); margin-bottom: var(--space-sm); line-height: 1.75; }
.honest-list li { padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.honest-list li i { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ─── MIRROR BADGE ─── */
.mirror-notice {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid #fecaca;
  border-radius: var(--radius-md); padding: 10px 16px;
  font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-md);
}
.mirror-notice strong { color: var(--primary); }

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); transition: color var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-section { padding: var(--space-xl) var(--space-sm); }
.section-head { text-align: center; margin-bottom: var(--space-lg); }
.section-head h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.page-container { max-width: 1120px; margin: 0 auto; padding: var(--space-xl) var(--space-sm); }

/* ─── CLOSING CTA BLOCK ─── */
.closing-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center;
  padding: var(--space-xl) var(--space-sm); margin: 0;
}
.closing-block h2 { font-size: clamp(22px, 4vw, 36px); margin-bottom: var(--space-sm); color: #fff; }
.closing-block p { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }
.closing-block .btn-cta-lg { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.closing-block .btn-cta-lg:hover { background: #f9fafb; transform: translateY(-2px); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--surface); border-bottom: 1px solid var(--border);
  color: var(--text); text-align: center;
  padding: 64px var(--space-sm) var(--space-xl);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: var(--space-sm); color: var(--text); }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.page-hero-inner { max-width: 760px; margin: 0 auto; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 14px 32px; border-radius: var(--radius-xl); font-size: 16px; font-weight: 700;
  transition: background var(--transition), box-shadow var(--transition);
}
.form-submit:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(220,38,38,.35); }

/* ─── PROSE (privacy/terms) ─── */
.prose { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; color: var(--text); }
.prose h3 { font-size: 17px; margin-top: 28px; color: var(--text); }
.prose p { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 12px 0 16px 24px; list-style: disc; }
.prose ul li { color: var(--text-muted); margin-bottom: 6px; }

/* ─── FOOTER ─── */
.site-footer {
  background: #111827; color: rgba(255,255,255,.65);
  padding: var(--space-xl) var(--space-sm) var(--space-md);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
.footer-brand .logo-footer { height: 36px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h3 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-sm);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; }

/* ─── DEVICE GRID (download page) ─── */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); }
.device-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md); display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.device-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.device-icon { font-size: 36px; color: var(--primary); }
.device-card h3 { margin: 0; font-size: 20px; }
.device-card h3 a { color: inherit; }
.device-card ul { padding-left: 18px; list-style: disc; }
.device-card li { font-size: 14px; color: var(--text-muted); margin: 2px 0; }
.device-card .btn-primary { margin-top: auto; align-self: flex-start; }

/* ─── PAYMENT METHODS ─── */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-md); }
.payment-methods li { list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 600; background: #fff; }

/* ─── COMPARE TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.compare-table .highlight { background: var(--surface); font-weight: 700; }
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin: 6px 0; }
.small-note { font-size: 13px; color: var(--text-muted); }
.small-note a { color: var(--primary); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }  /* M7: ≥16px edge gap */
  .nav-links {
    display: none;
    position: absolute; top: 100%;
    left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 8px 0 16px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    display: block; width: 100%; padding: 13px 20px;
    font-size: 16px; color: var(--text); text-align: left;
    border-radius: 0;
  }
  .nav-links > li > a:hover { background: var(--surface-2); }

  .nav-right .lang-btn { display: none; }
  .nav-right .nav-lang-item { display: none; }
  .nav-right .btn-login { display: none; }
  .nav-right .btn-cta { display: none; }
  .nav-toggle { display: block; }

  /* Mobile lang inside menu */
  .mobile-lang {
    display: flex; justify-content: center; gap: 8px;
    padding: 12px 20px; border-top: 1px solid var(--border);
    width: 100%;
  }
  .mobile-lang a {
    display: inline-block; padding: 6px 14px;
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    white-space: nowrap;
  }
  .mobile-lang a.active { color: var(--primary); border-color: var(--primary); background: var(--surface); font-weight: 700; }

  /* Mobile CTA in menu */
  .mobile-cta-li { padding: 12px 20px 4px; }
  .mobile-cta-li .btn-primary { display: block; text-align: center; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-cta-group { justify-content: center; }
  .hero-split .hero-price { text-align: center; }
  .hero-visual { display: none; }
  .hero-inner { text-align: center; }
  .hero h1, .hero p { text-align: center; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group a { width: max-content; max-width: 90%; text-align: center; }

  .use-module__grid { grid-template-columns: 1fr; }
  .service-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .service-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }  /* M21 */
  .footer-brand { grid-column: 1 / -1; }
  .trust-divider { display: none; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .coverage-facts { justify-content: center; }
  .plan-grid { grid-template-columns: 1fr; }
  .proto-grid { grid-template-columns: repeat(2, 1fr); }

  .btn-cta-lg, .hero-cta-group .btn-cta-lg { display: block; width: max-content; max-width: 90%; margin: 0 auto; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }  /* M21: stays 2 columns */
  .proto-grid { grid-template-columns: 1fr; }
  .service-grid--4, .service-grid--3 { grid-template-columns: 1fr; }
}

/* ═══ M-RULES (website-quality-standards.md §26) ═══ */
/* M9 sticky header */
.site-header { position: sticky; top: 0; z-index: 1000; }
/* M3/M4/M8 nav dropdown */
.dropdown.open > .dropdown-panel { display: block; }
.nav-links .dropdown-panel { left: 0; right: auto; }
.dropdown-toggle {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--text-muted); font-size: 14px; font-weight: 500; padding: 7px 13px;
}
.dropdown-toggle::after { content: " ▾"; font-size: .8em; }
/* footer headings not h-tags (M17) */
.footer-heading { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: .5px; }
