:root {
  color-scheme: dark;
  --bg: #1B1614;
  --bg-elevated: #161210;
  --surface: #251E1B;
  --surface-hover: #2E2622;
  --border: #352C27;
  --text: #F2EAE1;
  --muted: #A6998E;
  --dim: #7C7067;
  --accent: #D89B62;
  --accent-hover: #E2A973;
  --sage: #84A98C;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 780px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.16s ease, opacity 0.16s ease;
}

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

code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--text);
}

/* Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 22, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-link:hover {
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

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

.nav-links a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: rgba(216, 155, 98, 0.12);
}

/* Main Content */
.page-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 20px 64px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 20px 12px 34px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(216, 155, 98, 0.12);
  border: 1px solid rgba(216, 155, 98, 0.28);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
}

.page-header {
  margin-bottom: 26px;
}

.page-header .page-subtitle {
  margin: 0;
}

.meta-line {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 13.5px;
}

/* Cards & Grid */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 10px;
}

.card p:last-child,
.card ul:last-child,
.card li:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 20px;
  margin: 0 0 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}

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

/* Buttons */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.actions-left {
  justify-content: flex-start;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
}

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

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1B1614;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #4A3E37;
  color: var(--text);
  text-decoration: none;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 15px 18px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14.5px;
}

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

/* Support Helper Form (100% client-side mailto builder) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.helper-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dim);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid rgba(132, 169, 140, 0.45);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .nav-inner {
    padding: 12px 16px;
  }

  .card {
    padding: 18px 18px;
  }
}
