/* ==========================================================================
   MOPIV Capital 官方網站樣式
   ========================================================================== */

:root {
  --ink-950: #071120;
  --ink-900: #0a1628;
  --ink-800: #10223a;
  --ink-700: #1a3150;

  --text: #0f1b2d;
  --muted: #52607a;
  --line: #e2e7ef;
  --bg: #f5f7fa;
  --surface: #ffffff;

  --accent: #0b7a69;
  --accent-hover: #086253;
  --accent-bright: #34d1b0;
  --accent-bright-hover: #5fe0c4;
  --accent-soft: #e3f5f1;

  --warn-bg: #fff7e6;
  --warn-line: #f2d49b;
  --warn-text: #7a4b00;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05), 0 1px 3px rgba(15, 27, 45, 0.06);
  --shadow: 0 12px 32px -12px rgba(15, 27, 45, 0.18);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.js-only {
  display: none !important;
}

.js .js-only {
  display: inline-flex !important;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

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

.btn .icon {
  width: 18px;
  height: 18px;
}

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

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

.btn-bright {
  background: var(--accent-bright);
  color: var(--ink-900);
}

.btn-bright:hover {
  background: var(--accent-bright-hover);
  color: var(--ink-900);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.is-disabled {
  border-style: dashed;
  border-color: #c9d2df;
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
}

.btn.is-disabled:active {
  transform: none;
}

/* ---------- Badges & notices ---------- */

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-pending::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

h2 .badge-pending,
h3 .badge-pending {
  margin-left: 10px;
  position: relative;
  top: -2px;
}

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 15px;
}

.notice .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
  color: #5c3900;
  font-size: 16px;
}

.notice p {
  margin: 0;
}

.notice a {
  color: #5c3900;
}

.todo {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #c9d2df;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 15px;
}

.todo .badge-pending {
  margin-right: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand-name {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-name span {
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a.btn {
  display: inline-flex;
  margin-left: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: var(--ink-900);
}

.site-nav a.btn:hover {
  background: var(--accent-bright-hover);
  color: var(--ink-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  /* 無 JavaScript 時：導覽直接換行顯示 */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-block: 12px;
    gap: 8px 24px;
  }

  .site-nav ul {
    flex-wrap: wrap;
  }

  .site-nav a.btn {
    margin-left: 0;
  }

  /* 有 JavaScript 時：漢堡選單 */
  .js .header-inner {
    flex-wrap: nowrap;
    height: var(--header-h);
    padding-block: 0;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--ink-900);
    box-shadow: 0 20px 32px -16px rgba(0, 0, 0, 0.6);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .js .site-nav a {
    padding: 12px;
    font-size: 16px;
  }

  .js .site-nav a.btn {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 0 18px;
    min-height: 46px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 128px);
  background: var(--ink-900);
  color: #fff;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 72% 40%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(52, 209, 176, 0.2), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero-lead {
  max-width: 32em;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.6vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-art {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tight {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 104px);
}

.section-flush-top {
  padding-top: 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Cards ---------- */

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

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

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

@media (max-width: 680px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.card .card-title {
  margin-bottom: 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon .icon {
  width: 22px;
  height: 22px;
}

/* App cards */

.app-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-style: dashed;
  border-color: #cfd7e3;
  box-shadow: none;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-700));
  color: var(--accent-bright);
}

.app-icon .icon {
  width: 24px;
  height: 24px;
}

.app-head h3 {
  margin: 0;
  font-size: 18px;
}

.app-head .app-status {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* Link cards */

.link-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.link-card:hover {
  border-color: rgba(11, 122, 105, 0.45);
  box-shadow: var(--shadow);
  color: inherit;
  transform: translateY(-2px);
}

.link-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.link-card .more .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.link-card:hover .more .icon {
  transform: translateX(3px);
}

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 32px 48px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: #fff;
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(52, 209, 176, 0.18), transparent);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel .section-kicker {
  color: var(--accent-bright);
}

.contact-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.contact-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-box {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.contact-email {
  display: inline-block;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--accent-bright);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-note {
  display: flex;
  gap: 10px;
  margin-top: 20px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 14px;
}

.contact-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent-bright);
}

@media (max-width: 880px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: var(--ink-900);
  color: #fff;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: 40em;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px !important;
  color: rgba(255, 255, 255, 0.56) !important;
  font-size: 14px !important;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  margin-top: 36px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 14.5px;
}

.toc-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  line-height: 1.5;
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--accent);
  color: var(--accent);
}

.doc-body {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

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

.doc-section h2 {
  margin-bottom: 14px;
  font-size: clamp(19px, 2.2vw, 22px);
}

.doc-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
}

/* Support page */

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

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

.card-dark {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: var(--ink-900);
  color: #fff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.card-dark .card-icon {
  background: rgba(52, 209, 176, 0.14);
  color: var(--accent-bright);
}

.card-dark .contact-email {
  margin: 6px 0 22px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a69' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.info-grid {
  margin-top: 20px;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
}

.info-card h3 .icon {
  color: var(--accent);
}

.info-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.faq {
  margin-top: clamp(48px, 7vw, 72px);
}

.faq-head {
  margin-bottom: 20px;
}

.faq-head h2 {
  font-size: clamp(22px, 2.8vw, 28px);
}

.faq-head .subhead {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.related {
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 28px;
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin: 14px 0 0;
}

.footer-brand a:not(.brand) {
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand a:not(.brand):hover {
  color: #fff;
}

.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

.footer-bottom p {
  margin: 0;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
