/* ============================================================
   Anchor — /support page styles
   ============================================================
   Short contact-focused page. Mirrors tokens from privacy/style.css
   so the support page drops into the same visual language.
   ============================================================ */

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

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/_site/fonts/dm-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/_site/fonts/dm-sans-italic-variable.woff2") format("woff2");
}

:root {
  --font-body: system-ui, -apple-system, sans-serif;
  --font-display: "DM Sans", sans-serif;

  --color-bg: #eae6ec;
  --color-text: #1a1523;
  --color-text-light: #1a152394;
  --color-surface: #ffffff;
  --color-border: #dedae1;

  --content-width: 760px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--color-text);
  color: var(--color-surface);
  text-decoration: none;
  border-radius: 0 0 6px 0;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* --- Header ---
   Matches the main app's PlatformHeader: 48px height, logo + sign-in.
*/
.site-header {
  height: 48px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav-inner {
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  height: 17px;
  width: auto;
  margin-left: 4px;
}

.logo-wordmark {
  height: 18px;
  width: auto;
  margin-left: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link[aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Supported Agents dropdown ---
   Pure CSS: reveals on :hover and :focus-within for keyboard users. */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-chevron {
  color: currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow:
    0 1px 3px rgba(26, 21, 35, 0.06),
    0 12px 28px -8px rgba(26, 21, 35, 0.18);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s 0.15s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s 0s;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
}

.nav-dropdown-menu a:hover {
  background: #14011e0a;
}

.nav-dropdown-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.nav-dropdown-all svg {
  margin-left: auto;
}

.nav-dropdown-divider {
  height: 1px;
  margin: 4px 8px;
  background: var(--color-border);
}

.nav-dropdown-all {
  color: var(--color-text-light) !important;
  font-weight: 500 !important;
}

.nav-dropdown-all:hover {
  color: var(--color-text) !important;
}

.btn-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  height: 28px;
  margin-left: 24px;
  background: rgba(26, 21, 35, 0.07);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-sign-in:hover {
  text-decoration: none;
  background: rgba(26, 21, 35, 0.12);
}

/* --- Support article layout --- */
.support {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 72px 24px 120px;
}

/* --- Hero section --- */
.support-hero {
  text-align: center;
  margin-bottom: 32px;
}

.support-headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.support-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Section spacing --- */
.support section {
  margin-bottom: 28px;
}

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

.support-section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 6px;
  scroll-margin-top: 64px;
}

.support-section-lede {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.support p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
}

.support a {
  color: var(--color-text);
}

/* --- Primary CTA (dark box, like /docs closing CTA) --- */
.support-cta {
  padding: 44px 32px;
  background: var(--color-text);
  color: #ffffff;
  border-radius: 16px;
  text-align: center;
}

.support-cta-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eae6ec88;
  margin-bottom: 10px;
}

.support-cta-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 22px;
}

.support-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--color-surface);
  color: var(--color-text) !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.support-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.15);
}

.support-cta-sub {
  margin-top: 16px;
  font-size: 13px;
  color: #eae6ecb0;
}

/* --- Tips (side-by-side white cards) --- */
.support-tip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.support-tip {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.support-tip-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}

.support-tip-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-light);
}

.support-tip-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.support-tip-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.support-tip-links a:hover {
  border-color: var(--color-text);
  background: #ffffff;
}

/* --- "What to include" (white box with bulleted list) --- */
.support-include {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.support-include .support-section-heading {
  font-size: 18px;
}

.support-include-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.support-include-list li {
  font-size: 14.5px;
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
  color: var(--color-text);
}

.support-include-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text);
}

/* --- Other inboxes (small definition cards) --- */
.support-other .support-section-heading {
  font-size: 18px;
}

.support-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.support-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.support-contact dt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.support-contact dd {
  font-size: 14px;
  margin: 0;
}

.support-contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(26, 21, 35, 0.3);
}

.support-contact a:hover {
  text-decoration-color: var(--color-text);
}

/* --- Hamburger menu (hidden on desktop) --- */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* --- Mobile nav: hamburger menu --- */
  .nav-hamburger {
    display: flex;
  }

  .site-header {
    position: relative;
    z-index: 100;
  }

  .nav-actions {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px -8px rgba(26, 21, 35, 0.12);
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
    z-index: 99;
  }

  .nav-actions.is-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: 6px;
    display: block;
  }

  .nav-link:hover {
    background: rgba(26, 21, 35, 0.04);
  }

  .btn-sign-in {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    height: 40px;
  }

  .nav-dropdown-menu {
    display: none !important;
  }

  .nav-dropdown-chevron {
    display: none;
  }

  .nav-dropdown-trigger {
    padding: 10px 12px;
    border-radius: 6px;
    display: block;
  }
}

@media (max-width: 640px) {
  .support {
    padding: 48px 20px 80px;
  }

  .support-hero {
    margin-bottom: 24px;
  }

  .support-headline {
    font-size: 40px;
  }

  .support-lede {
    font-size: 16px;
  }

  .support-cta {
    padding: 36px 22px;
  }

  .support-cta-title {
    font-size: 22px;
  }

  .support-section-heading {
    font-size: 20px;
  }

  .support-tip-grid {
    grid-template-columns: 1fr;
  }

  .support-contacts {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Site footer
   ============================================================ */

.site-footer {
  background: var(--color-text);
  color: #eae6ec;
  padding: 64px 24px 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 64px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo-icon {
  height: 18px;
  width: auto;
  filter: invert(1);
}

.footer-logo-wordmark {
  height: 19px;
  width: auto;
  filter: invert(1);
}

.footer-address {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  color: #eae6eccc;
  line-height: 1.6;
  margin-top: 4px;
}

.footer-email {
  font-family: var(--font-body);
  font-size: 13px;
  color: #eae6ec;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #eae6ec44;
  align-self: flex-start;
}

.footer-email:hover {
  text-decoration-color: #eae6ec;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eae6ec88;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: var(--font-body);
  font-size: 14px;
  color: #eae6ec;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #eae6ec18;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: #eae6ec66;
}

@media (max-width: 840px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-cols {
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 48px 20px 24px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Supported Agents dropdown ---
   Pure CSS: reveals on :hover and :focus-within for keyboard users.
   Duplicated from hello/style.css since each page is self-contained. */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-chevron {
  color: currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow:
    0 1px 3px rgba(26, 21, 35, 0.06),
    0 12px 28px -8px rgba(26, 21, 35, 0.18);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s 0.15s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0s 0s;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 4px;
}

.nav-dropdown-menu a:hover {
  background: #14011e0a;
}

.nav-dropdown-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.nav-dropdown-all svg {
  margin-left: auto;
}

.nav-dropdown-divider {
  height: 1px;
  margin: 4px 8px;
  background: var(--color-border);
}

.nav-dropdown-all {
  color: var(--color-text-light) !important;
  font-weight: 500 !important;
}

.nav-dropdown-all:hover {
  color: var(--color-text) !important;
}
