:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-accent: #eff6ff;
  --bg-accent-strong: #dbeafe;
  --surface: #ffffff;
  --fg: #0f172a;
  --fg-secondary: #334155;
  --sub: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --cell: #f1f5f9;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(37, 99, 235, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* =========================================
   Sticky Header (Icon-first on mobile, never overlaps Hero)
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.header-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--fg);
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

.brand-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-accent);
  border: 1px solid var(--bg-accent-strong);
  padding: 2px 8px;
  border-radius: 999px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
}

.lang-btn:hover {
  color: var(--fg);
  text-decoration: none;
}

.lang-btn.active,
.lang-btn.active:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tooltip for icon buttons */
.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #ffffff;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1010;
}

.icon-btn[data-tooltip]:hover::after,
.icon-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-label {
  display: inline;
}

@media (max-width: 768px) {
  .brand-badge {
    display: none;
  }
  .nav-label {
    display: none;
  }
  .icon-btn {
    padding: 0;
    width: 40px;
    height: 40px;
  }
}

/* =========================================
   Layout Containers (With Safe Header Offset)
   ========================================= */
.page-main {
  padding-top: calc(var(--header-h) + 16px);
}

main:not(.page-main) {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) 16px 72px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-accent);
  border: 1px solid var(--bg-accent-strong);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.section-desc {
  font-size: 16px;
  color: var(--sub);
  margin: 0;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 28px 0 64px;
  background: radial-gradient(circle at 85% 10%, #eff6ff 0%, #ffffff 55%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-accent);
  color: var(--accent-hover);
  border: 1px solid var(--bg-accent-strong);
}

.trust-pill.green {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a7f3d0;
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--fg);
}

.hero-title .highlight {
  color: var(--accent);
  background: linear-gradient(transparent 68%, #dbeafe 68%);
}

.hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-secondary);
  margin: 0 0 28px;
}

/* Prominent Action Buttons (User Rule: Large, unmistakable CTAs) */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 26px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-cta-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-cta-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-cta-secondary {
  background: #ffffff;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn-cta-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-subtext {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.2;
}

.btn-maintext {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--sub);
  margin-top: 8px;
}

.hero-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Interactive Hero Visual Catch Card */
.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.visual-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.visual-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Demo Scene Switcher Tabs */
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-soft);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.demo-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.demo-tab:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.7);
}

.demo-tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Interactive Photo Mockup Card */
.interactive-photo-box {
  background: #ffffff;
  border: 2px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.photo-preview-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #0f172a;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.focus-peaking-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.interactive-photo-box.has-peaking .focus-peaking-canvas {
  opacity: 1;
}

.scan-hud-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.hud-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hud-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.focus-target-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.interactive-photo-box.has-peaking .focus-target-box {
  border-color: #10b981;
  border-style: solid;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

.photo-tap-hint {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 12px;
  background: var(--bg-accent);
  border-top: 1px solid var(--line);
}

.photo-status-caption {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-accent);
  color: var(--fg-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

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

/* =========================================
   Problem Cards (Why Existing Cleaners Fail)
   ========================================= */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.risk-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.risk-card h3 {
  font-size: 18px;
  margin: 0;
  color: var(--fg);
}

.risk-card p {
  font-size: 15px;
  color: var(--sub);
  margin: 0;
}

/* =========================================
   App Screen Showcase (3 High-res Mockups)
   ========================================= */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screen-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.screen-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--fg);
}

.screen-card p {
  font-size: 15px;
  color: var(--sub);
  margin: 0 0 18px;
}

.phone-frame {
  width: 100%;
  max-width: 270px;
  background: #ffffff;
  border: 6px solid #cbd5e1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: auto;
}

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

/* =========================================
   Interactive Recommendation Engine (回遊性強化)
   ========================================= */
.recommender-box {
  background: #ffffff;
  border: 2px solid var(--bg-accent-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.rec-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.rec-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.rec-tab-btn:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.rec-tab-btn.active {
  border-color: var(--accent);
  background: var(--bg-accent);
  color: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.rec-panel {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.rec-panel.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.rec-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rec-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.rec-panel h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.rec-panel p {
  font-size: 15px;
  color: var(--fg-secondary);
  margin: 0 0 16px;
}

.rec-visual-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

@media (max-width: 768px) {
  .recommender-box {
    padding: 20px 16px;
  }
  .rec-panel.active {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Unsplash Visual Catch Cards (Use Cases)
   ========================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.usecase-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.usecase-thumb {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--bg-soft);
}

.usecase-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.usecase-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.usecase-body h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--fg);
}

.usecase-body p {
  font-size: 14px;
  color: var(--sub);
  margin: 0 0 14px;
  flex: 1;
}

.usecase-link {
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================
   Free vs Pro Table
   ========================================= */
.pricing-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0;
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
}

.pricing-table th {
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--fg);
}

.pricing-table th.pro-col,
.pricing-table td.pro-col {
  background: var(--bg-accent);
  font-weight: 700;
}

.check-yes {
  color: var(--success);
  font-weight: 800;
}

/* =========================================
   FAQ Cards & Related Recommendation Links
   ========================================= */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.faq-item strong {
  display: block;
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 6px;
}

.faq-item p {
  margin: 0;
  font-size: 15px;
  color: var(--sub);
}

/* Share & Next-step Circulation Section */
.share-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid var(--bg-accent-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-share:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.related-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.related-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.related-nav-card:hover {
  border-color: var(--accent);
  background: var(--bg-accent);
  color: var(--accent-hover);
}

/* Sister App Banner */
.sister-app-banner {
  background: #ffffff;
  border: 2px solid var(--bg-accent-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.sister-app-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sister-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* Subpages Table */
table:not(.pricing-table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}

table:not(.pricing-table) th,
table:not(.pricing-table) td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

table:not(.pricing-table) th {
  background: var(--cell);
  font-weight: 700;
}

.meta {
  color: var(--sub);
  font-size: 14px;
  margin-top: 0;
}

.lead {
  font-size: 18px;
  color: var(--sub);
}

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  font-size: 14px;
  color: var(--sub);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  color: var(--fg);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 2000;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* =========================================
   Accessibility helpers
   ========================================= */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 3000;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================
   App store buttons
   ========================================= */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  min-width: 180px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  line-height: 1.15;
}

.store-btn:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.store-btn strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.store-btn.is-pending {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--line-strong);
  box-shadow: none;
  cursor: default;
}

.store-btn.is-pending:hover {
  transform: none;
}

@media (max-width: 480px) {
  .store-btn {
    flex: 1 1 150px;
    min-width: 0;
    padding: 8px 12px;
  }
  .store-btn strong {
    font-size: 16px;
  }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.text-link {
  font-weight: 700;
  font-size: 15px;
}

/* =========================================
   Demo card details
   ========================================= */
.btn-peaking {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 13px;
}

.btn-peaking[aria-pressed="true"] strong {
  color: var(--success);
}

.btn-peaking[aria-pressed="false"] strong {
  color: var(--muted);
}

.hud-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.interactive-photo-box[data-level="warning"] .hud-dot {
  background: var(--warning);
}

.interactive-photo-box[data-level="success"] .hud-dot {
  background: var(--success);
}

.verdict-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.verdict-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.verdict-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.photo-status-caption {
  margin-bottom: 0;
}

.demo-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .demo-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .scan-hud-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =========================================
   Misc. components (moved from inline styles)
   ========================================= */
.btn-cta-sm {
  min-height: 48px;
  padding: 10px 20px;
  font-size: 15px;
}

.rec-panel[hidden] {
  display: none;
}

.pricing-table .col-feature {
  width: 44%;
}

.pricing-table .col-plan {
  width: 28%;
}

.pricing-table tbody th {
  background: transparent;
  font-weight: 400;
}

.pricing-table tbody th strong {
  font-weight: 700;
}

.pricing-wrap {
  overflow-x: auto;
}

.pricing-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.download-box {
  text-align: center;
  max-width: 720px;
}

.download-icon {
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.download-box .section-desc {
  margin-bottom: 24px;
}

.download-box .store-buttons {
  justify-content: center;
  margin-bottom: 0;
}

details.faq-item summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  list-style: none;
  position: relative;
  padding-right: 28px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--accent);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 8px;
}

.sister-app-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.sister-app-desc {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}

.sister-app-banner .btn-share {
  flex-shrink: 0;
}

.share-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.share-desc {
  margin: 0;
  font-size: 15px;
  color: var(--sub);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-desc {
  font-size: 15px;
  color: var(--sub);
}

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-tagline {
  margin: 6px 0 0;
  font-size: 14px;
}

.footer-copy {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.legal-container {
  max-width: 860px;
  padding-bottom: 72px;
}

.legal-title {
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
}

.legal-container table {
  display: block;
  overflow-x: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 560px) {
  .header-nav .nav-section {
    display: none;
  }
}
