/*
 * Shared static site styles for all four app compliance sites.
 * Brand color is provided per app via the --brand custom property set on <html>
 * (see each page's inline style block). Everything else is shared.
 * Dependency-free: no fonts loaded, no JS. Safe on GitHub Pages / Cloudflare Pages.
 */

:root {
  --brand: #444;
  --brand-ink: #ffffff;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e6e8eb;
  --text: #1c1e21;
  --muted: #5b6570;
  --radius: 14px;
  --maxw: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand-link:hover {
  text-decoration: none;
}

/* Logo mark: a rounded brand-colored square with the app's initial glyph.
   This is a mark, not a wordmark; the product name sits beside it for clarity. */
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

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

/* Icon-only nav links. Each carries an aria-label / title for screen readers. */
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--muted);
}

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

.nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--surface);
}

.nav svg {
  width: 20px;
  height: 20px;
}

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

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero .logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 24px;
}

.hero .logo-mark svg {
  width: 40px;
  height: 40px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 20px;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 520px;
}

/* Store badge placeholders ------------------------------------------------ */

.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  cursor: default;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-badge small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
}

.store-badge strong {
  font-size: 15px;
  color: var(--text);
}

/* Features ---------------------------------------------------------------- */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: 40px 0;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature .icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

/* Landing quick links to legal/support pages */
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 8px 0 56px;
}

.doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
}

.doc-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.doc-links svg {
  width: 18px;
  height: 18px;
}

/* Document (legal / support) pages --------------------------------------- */

.doc {
  padding: 48px 0 72px;
}

.doc h1 {
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.doc .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
}

.doc h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc .lead {
  font-size: 19px;
  color: var(--muted);
}

/* Steps for account deletion */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 60px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* FAQ --------------------------------------------------------------------- */

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin-bottom: 12px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}

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

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Contact card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  margin: 24px 0;
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact-card .icon svg {
  width: 26px;
  height: 26px;
}

.callout {
  border-left: 4px solid var(--brand);
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--brand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link: hidden until focused, then pinned top-left so keyboard users can
   jump straight past the header nav to the main content. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
  outline: 3px solid var(--brand-ink);
  outline-offset: -3px;
}

/* Keep the main content region from showing a focus ring when it receives
   programmatic focus via the skip link. */
main:focus {
  outline: none;
}
