/**
 * AMHLink Shared First-Party CSS (studio.css)
 * Zero external CDNs / Zero tracking / First-party same-origin
 */

:root {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --card-bg: #FFFFFF;
  --border: #E6E4DD;
  --card-border: #E6E4DD;
  --border-subtle: rgba(17, 24, 39, 0.05);
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text: #111827;
  --accent: #0D9488;
  --accent-hover: #0F766E;
  --accent-sotto: #0D9488;
  --accent-textvoyager: #8B5CF6;
  --accent-sky: #06B6D4;
  --accent-flock: #06B6D4;
  --accent-flock-hover: #0891B2;
  --accent-tally: #F59E0B;
  --accent-tally-hover: #D97706;
  --accent-snaplane: #0284C7;
  --accent-snaplane-hover: #0369A1;
  --accent-soft: rgba(13, 148, 136, 0.08);
  --accent-border: rgba(13, 148, 136, 0.25);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius: 12px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography & Base Elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  opacity: 0.85;
}

code, pre {
  font-family: var(--font-mono);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.2s ease;
  min-height: 44px;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(17, 24, 39, 0.04);
}

/* Common Card & Button Primitives */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  opacity: 0.95;
}

.btn-muted {
  background: rgba(17, 24, 39, 0.04);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-muted:hover {
  background: rgba(17, 24, 39, 0.08);
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer & Statutory Notice */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: auto;
}

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

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

.statutory {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.statutory a {
  color: var(--text-muted);
  text-decoration: none;
}

.statutory a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Shared Support & Documentation Primitives */
.page-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 22%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.page-header .header-text h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-header .tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.02);
}

.faq-question {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.faq-answer {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-answer strong {
  color: var(--text-primary);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.03);
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.disclaimer-card {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
