/* ==========================================================================
   Hushue Official Website — Self-Hosted Design System & Stylesheet
   Tokens mirror ColorGame/Core/Theme/AppColor.swift & AppFont.swift
   ========================================================================== */

/* --- 1. Self-Hosted Brand Fonts (copied from iOS App bundle) --- */
@font-face {
  font-family: "HushueDisplay";
  src: url("../fonts/brand_display_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HushueDisplay";
  src: url("../fonts/brand_display_regularitalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "HushueDisplay";
  src: url("../fonts/brand_display_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HushueDisplay";
  src: url("../fonts/brand_display_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HushueSans";
  src: url("../fonts/brand_sans_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HushueSans";
  src: url("../fonts/brand_sans_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HushueSans";
  src: url("../fonts/brand_sans_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HushueSans";
  src: url("../fonts/brand_sans_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- 2. Semantic Theme Tokens --- */
:root {
  --bg: #F3EDE4;
  --surface: #FFFCF7;
  --surface-elevated: #FFFDF9;
  --fill-muted: #EBE2D6;
  --ink: #1E1A17;
  --muted: #6E675F;
  --brand: #C4553A;
  --brand-hover: #AE472E;
  --brand-soft: #F6DED4;
  --pine: #2F5D50;
  --pine-soft: rgba(47, 93, 80, 0.11);
  --separator: #E4D9CC;
  --hairline: rgba(91, 70, 54, 0.11);
  --header-bg: rgba(243, 237, 228, 0.86);
  --shadow-sm: 0 4px 16px rgba(91, 70, 54, 0.06);
  --shadow-md: 0 14px 40px rgba(91, 70, 54, 0.10);
  --shadow-lg: 0 28px 70px rgba(45, 32, 22, 0.16);
  --bezel: #1F1B18;
  --bezel-ring: rgba(255, 255, 255, 0.14);

  /* App Icon Tile Palette */
  --tile-terracotta: #CF6548;
  --tile-pine: #3E7867;
  --tile-amber: #D3923A;
  --tile-plum: #95598A;
  --tile-sky: #4A88B8;
  --tile-rose: #C9566F;
  --tile-slate: #5A7088;

  /* Typography & Radii */
  --font-display: "HushueDisplay", Georgia, "Times New Roman", serif;
  --font-sans: "HushueSans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1120px;
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #171410;
  --surface: #241F1B;
  --surface-elevated: #2B2521;
  --fill-muted: #2A2420;
  --ink: #F3EDE4;
  --muted: #B7AFA4;
  --brand: #E07A62;
  --brand-hover: #EB8B74;
  --brand-soft: #4A2C22;
  --pine: #8FB9A8;
  --pine-soft: rgba(143, 185, 168, 0.15);
  --separator: #3A342E;
  --hairline: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(23, 20, 16, 0.86);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.62);
  --bezel: #0E0C0A;
  --bezel-ring: rgba(255, 255, 255, 0.12);
}

/* --- 3. Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(196, 85, 58, 0.10), transparent 60%),
    radial-gradient(760px 480px at -10% 22%, rgba(47, 93, 80, 0.08), transparent 60%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* --- 4. Sticky Header & Mobile Drawer --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
}
.brand-mark-dark { display: none; }
[data-theme="dark"] .brand-mark-light { display: none; }
[data-theme="dark"] .brand-mark-dark { display: block; }

.brand-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.desktop-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.desktop-nav a:hover {
  color: var(--ink);
  background: var(--fill-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: var(--fill-muted); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 19px; height: 19px; }

.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

.btn.header-cta {
  display: none;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: 12px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-menu a:hover { background: var(--fill-muted); }

@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .btn.header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* --- 5. Buttons & Badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(196, 85, 58, 0.26);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 12px 28px rgba(196, 85, 58, 0.34);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--separator);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--fill-muted);
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* --- 6. Hero Section --- */
.hero {
  padding: 40px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.hero-title {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 7.5vw, 58px);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
.hero-desc {
  margin: 0 0 28px;
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--muted);
  line-height: 1.68;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-check {
  color: var(--pine);
  font-weight: 700;
}

/* Sculpted iPhone Mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 85, 58, 0.22), rgba(211, 146, 58, 0.10) 45%, transparent 72%);
  filter: blur(22px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(306px, 84vw);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 46px;
  background: var(--bezel);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px var(--bezel-ring);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #171410;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-screen-dark { display: none; }
[data-theme="dark"] .hero-screen-light { display: none; }
[data-theme="dark"] .hero-screen-dark { display: block; }

.floating-chip {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
}
.floating-chip img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.floating-chip span { color: var(--muted); font-weight: 500; }

@media (min-width: 900px) {
  .hero { padding: 68px 0 84px; }
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
  }
  .phone-frame { width: 320px; }
}

/* --- 7. Shared Section Framing --- */
.section {
  padding: 68px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section-header {
  max-width: 660px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-title {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.section-sub {
  margin: 0;
  font-size: 16.5px;
  color: var(--muted);
}

/* --- 8. Interactive Mini Color-by-Number Studio --- */
.studio-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.canvas-stage {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(91, 70, 54, 0.12);
  padding: 14px;
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(30, 26, 23, 0.06);
  overflow: hidden;
}
.demo-svg {
  width: 100%;
  height: 100%;
  user-select: none;
  touch-action: manipulation;
}
.paint-region {
  fill: #FAF8F5;
  stroke: #2A2521;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  cursor: pointer;
  transition: fill 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease, stroke-width 0.2s ease;
}
.paint-region.is-target {
  fill: #EFE9E0;
}
.paint-region:hover:not(.is-filled) {
  filter: brightness(0.95);
}
.paint-region.is-filled {
  cursor: default;
  stroke: #1E1A17;
  stroke-width: 2.1;
}
.paint-region.hint-pulse {
  animation: hintPulse 0.9s ease-in-out 3;
}
@keyframes hintPulse {
  0%, 100% { filter: brightness(1); stroke: #C4553A; stroke-width: 2.6; }
  50% { filter: brightness(0.84); stroke: #C4553A; stroke-width: 5.5; }
}
.paint-num {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  fill: #5B524B;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.paint-num.hidden-num { opacity: 0; }

.canvas-celebrate {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.studio-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--fill-muted);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--tile-amber));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.studio-feedback {
  min-height: 24px;
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}
.studio-feedback.is-done {
  color: var(--pine);
  font-weight: 700;
}
.studio-feedback.is-warn {
  color: var(--brand);
  font-weight: 600;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1.5px solid var(--hairline);
  background: var(--surface-elevated);
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.swatch-btn:hover { background: var(--fill-muted); }
.swatch-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.swatch-btn.completed {
  opacity: 0.62;
}
.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}
.swatch-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.swatch-btn.active .swatch-label { color: var(--ink); }

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-actions .btn {
  flex: 1 1 130px;
}

@media (min-width: 820px) {
  .studio-card {
    grid-template-columns: 1fr 1fr;
    padding: 34px;
    gap: 40px;
  }
  .swatch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* --- 9. Features Bento Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-tile img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
.tile-terracotta { background: var(--tile-terracotta); }
.tile-pine { background: var(--tile-pine); }
.tile-amber { background: var(--tile-amber); }
.tile-plum { background: var(--tile-plum); }
.tile-sky { background: var(--tile-sky); }
.tile-rose { background: var(--tile-rose); }

.feature-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.feature-card p {
  margin: 0;
  font-size: 14.8px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* --- 10. Interactive App Screen Preview --- */
.preview-shell {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
}
.preview-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.preview-tabs::-webkit-scrollbar { display: none; }

.tab-pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s ease;
}
.tab-pill:hover { color: var(--ink); background: var(--fill-muted); }
.tab-pill[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.preview-device-wrap {
  display: flex;
  justify-content: center;
}
.preview-device-wrap .phone-frame {
  width: min(286px, 80vw);
}
.preview-copy h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}
.preview-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}
.preview-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.preview-points li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

@media (min-width: 820px) {
  .preview-shell { padding: 34px 36px; }
  .preview-tabs { justify-content: center; }
  .preview-body {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 44px;
  }
  .preview-device-wrap .phone-frame { width: 300px; }
}

/* --- 11. Privacy & Global Languages Band --- */
.privacy-band {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.privacy-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-box {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}
.lang-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fill-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 860px) {
  .privacy-band {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 40px;
    align-items: center;
  }
}

/* --- 12. FAQ Accordion --- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.faq-body a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

/* --- 13. Download / CTA Banner --- */
.cta-card {
  background: linear-gradient(135deg, #27211C 0%, #3A261E 55%, #243630 100%);
  color: #F6EFE6;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 98, 0.26), transparent 70%);
  top: -160px;
  right: -100px;
  pointer-events: none;
}
.cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  margin: 0 auto 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.cta-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
}
.cta-card p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: rgba(246, 239, 230, 0.80);
  font-size: 16px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(246, 239, 230, 0.62);
}

/* --- 14. Footer --- */
.site-footer {
  border-top: 1px solid var(--separator);
  padding: 40px 0 calc(36px + env(safe-area-inset-bottom));
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand p {
  margin: 10px 0 0;
  max-width: 320px;
  font-size: 14px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* --- 15. Scroll Reveal & Back to Top --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .paint-region.hint-pulse { animation: none; }
}

.back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--separator);
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: 18px;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
.back-top.show { display: inline-flex; }
