/* ============================================================
   5sync.com — "Warm Stone" Light Theme Design System
   ============================================================ */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fafaf9;
  color: #57534e;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Variables --- */
:root {
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f4;
  --bg-card: #ffffff;
  --border: #e7e5e4;
  --border-hover: #d6d3d1;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --accent: #059669;
  --accent-hover: #10b981;
  --accent-subtle: rgba(5, 150, 105, 0.08);
  --accent-border: rgba(5, 150, 105, 0.2);
  --dark: #1c1917;
  --dark-hover: #292524;
  --success: #16a34a;
  --error: #dc2626;
  --max-width: 1120px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
}

/* ============================================================
   Typography
   ============================================================ */

h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

p {
  margin-bottom: 16px;
}

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

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

code {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-primary);
}

small {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Utilities
   ============================================================ */

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

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.accent {
  color: var(--accent);
}

/* ============================================================
   Accent Bar (top of page)
   ============================================================ */

.accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
  z-index: 1001;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: sticky;
  top: 3px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(250, 250, 249, 0.85);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.navbar-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.navbar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.navbar-links {
  display: flex;
  gap: 32px;
  margin-left: 48px;
}

.navbar-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.navbar-mobile {
  display: none;
}

.navbar-mobile.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 8px;
}

.navbar-mobile a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.navbar-mobile a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-column h4 {
  color: var(--text-primary);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

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

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

.btn-dark:hover {
  background-color: var(--dark-hover);
  color: #ffffff;
}

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

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.pricing-card {
  text-align: center;
  padding: 32px;
}

.pricing-card.featured {
  border-color: var(--accent-border);
  position: relative;
}

.pricing-card .price {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-card .period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .plan-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card .plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ============================================================
   Badges
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.badge-accent {
  background-color: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge-featured {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: #ffffff;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

/* ============================================================
   Trust Pills
   ============================================================ */

.trust-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   Forms
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8a29e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-checkbox {
  accent-color: var(--accent);
}

.form-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background-color: var(--border);
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
  width: 0;
}

/* ============================================================
   Accordion
   ============================================================ */

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.accordion-icon {
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.3s;
  font-weight: 300;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-content p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   Code Blocks (dark on light page for contrast)
   ============================================================ */

.code-block {
  background-color: #1c1917;
  border: 1px solid #292524;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  color: #d6d3d1;
}

.code-keyword {
  color: #10b981;
}

.code-string {
  color: #fbbf24;
}

.code-comment {
  color: #78716c;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.code-header + .code-block {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ============================================================
   Tables
   ============================================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  position: sticky;
  top: 64px;
  background-color: #ffffff;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background-color: var(--bg-secondary);
}

.check {
  color: var(--accent);
  font-weight: 700;
}

.dash {
  color: var(--text-muted);
}

.params-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  margin: 16px 0;
}

.params-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.params-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.params-table .required {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  color: var(--text-primary);
  font-size: 14px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero h1 {
  max-width: 680px;
  margin: 0 auto 16px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.hero-visual {
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Sync Mockup (light card with file list)
   ============================================================ */

.sync-mockup {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sync-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.sync-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-secondary);
  gap: 12px;
}

.sync-item:last-child {
  border-bottom: none;
}

.sync-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.sync-icon.doc {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.sync-icon.img {
  background-color: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.sync-icon.pdf {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.sync-icon.folder {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.sync-icon.zip {
  background-color: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.sync-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.sync-size {
  font-size: 13px;
  color: var(--text-muted);
}

.sync-status {
  width: 20px;
  text-align: center;
}

.sync-status.synced {
  color: var(--accent);
}

.sync-status.syncing {
  color: #f59e0b;
}

/* ============================================================
   Features Grid
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Instrument Sans', sans-serif;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Auth Pages
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg-secondary);
}

.auth-card {
  max-width: 420px;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--accent);
}

.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Instrument Sans', sans-serif;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.code-input:focus {
  border-color: var(--accent);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--success);
}

/* ============================================================
   API Layout
   ============================================================ */

.api-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height) - 3px);
}

.api-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 3px);
  height: calc(100vh - var(--nav-height) - 3px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  background-color: #ffffff;
}

.api-sidebar-section {
  margin-bottom: 8px;
}

.api-sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 24px;
  font-weight: 600;
}

.api-sidebar a {
  display: block;
  padding: 6px 24px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  border-left: 2px solid transparent;
}

.api-sidebar a:hover {
  color: var(--text-secondary);
}

.api-sidebar a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background-color: var(--accent-subtle);
}

.api-content {
  padding: 48px;
  max-width: 800px;
}

.api-content section {
  margin-bottom: 64px;
}

.method-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.method-get {
  background-color: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.method-put {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.method-post {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.method-delete {
  background-color: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.endpoint-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--text-primary);
  margin-left: 8px;
}

.api-mobile-toggle {
  display: none;
}

/* ============================================================
   Legal Pages
   ============================================================ */

.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 19px);
  max-height: calc(100vh - var(--nav-height) - 35px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--text-primary);
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-header {
  margin-bottom: 32px;
}

.legal-header h1 {
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.quick-help-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.mini-faq h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
  margin-top: 20px;
}

.mini-faq p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Trust Badges
   ============================================================ */

.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   Scroll Animations
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Spinner
   ============================================================ */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(5, 150, 105, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-white {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Responsive — 1024px
   ============================================================ */

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

  .steps {
    gap: 24px;
  }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-actions {
    display: none;
  }

  .navbar-burger {
    display: flex;
    margin-left: auto;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .api-layout {
    grid-template-columns: 1fr;
  }

  .api-sidebar {
    display: none;
  }

  .api-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    gap: 12px;
  }

  .trust-pills {
    flex-direction: column;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 80px 0 48px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* ============================================================
   Responsive — 640px
   ============================================================ */

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .trust-badges {
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }

  .code-inputs {
    gap: 4px;
  }

  .code-input {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }

  .auth-card {
    padding: 24px;
  }
}
