/* Crosspost Design System (landing-page-design + ui-ux-pro-max) */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
}

:root {
  /* Color system - Dark first (approved values: #000000, #181818, #1F1F1F, #272727, #313131) */
  --bg: #000000;
  --surface: #181818;
  --surface-elevated: #1f1f1f;
  --surface-highlight: #272727;
  --border: #313131;
  --border-subtle: #272727;

  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-dim: #78716c;

  /* Accent & status */
  --accent: #ff6b2c;
  --accent-hover: #ff7e47;
  --accent-contrast: #0c0a09;

  --ok: #34d399;
  --ok-bg: #064e3b;
  --warn: #fbbf24;
  --warn-bg: #78350f;
  --err: #f87171;
  --err-bg: #7f1d1d;

  /* Button monochrome tokens */
  --btn-primary-bg: #fafaf9;
  --btn-primary-text: #0c0a09;
  --btn-primary-hover: #e7e5e4;

  --btn-secondary-bg: #1f1f1f;
  --btn-secondary-border: #313131;
  --btn-secondary-text: #fafaf9;
  --btn-secondary-hover: #272727;

  /* Typography scale */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: 12px;
  --lh-xs: 16px;
  --text-sm: 14px;
  --lh-sm: 20px;
  --text-base: 16px;
  --lh-base: 24px;
  --text-lg: 18px;
  --lh-lg: 28px;
  --text-xl: 20px;
  --lh-xl: 28px;
  --text-2xl: 24px;
  --lh-2xl: 32px;
  --text-3xl: 30px;
  --lh-3xl: 36px;
  --text-4xl: 36px;
  --lh-4xl: 40px;
  --text-5xl: 48px;
  --lh-5xl: 1;
  --text-6xl: 60px;
  --lh-6xl: 1;

  /* Spacing tokens: 0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96 */
  --sp-0: 0px;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 150ms;
  --dur-normal: 300ms;
  --dur-slow: 700ms;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f4;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-highlight: #f5f5f4;
    --border: #e7e5e4;
    --border-subtle: #f5f5f4;

    --text: #0c0a09;
    --text-muted: #57534e;
    --text-dim: #78716c;

    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-contrast: #ffffff;

    --ok: #059669;
    --ok-bg: #d1fae5;
    --warn: #d97706;
    --warn-bg: #fef3c7;
    --err: #dc2626;
    --err-bg: #fee2e2;

    --btn-primary-bg: #0c0a09;
    --btn-primary-text: #fafaf9;
    --btn-primary-hover: #292524;

    --btn-secondary-bg: #ffffff;
    --btn-secondary-border: #e7e5e4;
    --btn-secondary-text: #0c0a09;
    --btn-secondary-hover: #f5f5f4;
  }
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-900);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
}

/* Typography rules (B1): no italics, no ultra bold, text-wrap */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p,
li,
blockquote {
  text-wrap: pretty;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-fluid);
}

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

a.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Skip link (B10) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-200);
  background: var(--text);
  color: var(--bg);
  padding: var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
  font-weight: 600;
  z-index: 100;
  transition: top var(--dur-fast) var(--ease-fluid);
}

.skip-link:focus-visible {
  top: var(--sp-200);
  outline: 2px solid var(--accent);
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--sp-300);
}

.container-narrow {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--sp-300);
}

main {
  flex: 1;
  padding-top: var(--sp-900);
  padding-bottom: var(--sp-800);
}

/* Fluid Island Nav (B7) */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-top: var(--sp-200);
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-300);
  padding: var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: calc(100vw - 32px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  padding: var(--sp-50) var(--sp-75);
}

.nav-brand-mark {
  width: 24px;
  height: 24px;
  border-radius: var(--r-md);
  background: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-200);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-full);
  transition: all var(--dur-fast) var(--ease-fluid);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
}

/* Mobile Hamburger (B7 morphing) */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  padding: var(--sp-75);
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  border-radius: var(--r-full);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  position: absolute;
  width: 18px;
  height: 2px;
  background-color: var(--text);
  border-radius: var(--r-full);
  transition:
    transform var(--dur-normal) var(--ease-fluid),
    opacity var(--dur-normal) var(--ease-fluid);
}

.nav-toggle-bar:nth-child(1) {
  transform: translateY(-4px);
}

.nav-toggle-bar:nth-child(2) {
  transform: translateY(4px);
}

html.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

html.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile Nav Drawer Overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-fluid);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-300);
  padding: var(--sp-300);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-fluid);
}

.nav-drawer a,
.nav-drawer button {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text);
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease-fluid),
    opacity var(--dur-slow) var(--ease-fluid);
}

html.nav-open .nav-backdrop {
  opacity: 0.95;
  pointer-events: auto;
}

html.nav-open .nav-drawer {
  opacity: 1;
  pointer-events: auto;
}

html.nav-open .nav-drawer a:nth-child(1) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 100ms;
}
html.nav-open .nav-drawer a:nth-child(2) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 150ms;
}
html.nav-open .nav-drawer a:nth-child(3) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 200ms;
}
html.nav-open .nav-drawer a:nth-child(4) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 250ms;
}
html.nav-open .nav-drawer a:nth-child(5) {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 300ms;
}
html.nav-open .nav-drawer form {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 350ms;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-toggle-btn {
    display: flex;
  }
  .nav-backdrop,
  .nav-drawer {
    display: flex;
  }
}

/* Button system (B1 & B2: 8px vertical, 12px horizontal, min-height 44px for touch) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  min-height: 44px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-fluid);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

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

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

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

.btn-sm {
  padding: var(--sp-50) var(--sp-100);
  min-height: 36px;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.btn-danger {
  background-color: transparent;
  color: var(--err);
  border-color: var(--border);
}

.btn-danger:hover {
  background-color: var(--err-bg);
  color: #fff;
  border-color: var(--err);
}

.btn-link {
  background: transparent;
  border: none;
  padding: 0;
  min-height: auto;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-link.danger {
  color: var(--err);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Form controls */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-50);
}

.form-label {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-hint {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  transition: border-color var(--dur-fast) var(--ease-fluid);
}

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

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--text);
  cursor: pointer;
  padding: var(--sp-50) var(--sp-75);
  border-radius: var(--r-md);
  transition: background-color var(--dur-fast);
}

.form-checkbox-label:hover {
  background-color: var(--surface-highlight);
}

.form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Card system (B4: borders all around, flat background) */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--sp-300);
}

.card-grid > * {
  min-width: 0;
}
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-50);
  padding: var(--sp-25) var(--sp-75);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background-color: currentColor;
}

.badge.published,
.badge.active {
  color: var(--ok);
  background-color: var(--ok-bg);
  border-color: var(--ok);
}

.badge.queued,
.badge.running,
.badge.pending,
.badge.trialing {
  color: var(--warn);
  background-color: var(--warn-bg);
  border-color: var(--warn);
}

.badge.failed,
.badge.error {
  color: var(--err);
  background-color: var(--err-bg);
  border-color: var(--err);
}

/* Flash alerts */
[hidden],
.flash[hidden] {
  display: none;
}

.flash {
  padding: var(--sp-100) var(--sp-200);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  border: 1px solid transparent;
}

.flash.error {
  background-color: var(--err-bg);
  color: #fff;
  border-color: var(--err);
}

.flash.notice {
  background-color: var(--surface-elevated);
  color: var(--text);
  border-color: var(--border);
}

/* Scroll reveal (B7) */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(48px);
    filter: blur(6px);
    transition:
      opacity var(--dur-slow) var(--ease-fluid),
      transform var(--dur-slow) var(--ease-fluid),
      filter var(--dur-slow) var(--ease-fluid);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .tagline-word {
    opacity: 1;
  }
}
/* Hero Section (B5) */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-600) 0 var(--sp-800);
  gap: var(--sp-300);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.hero-h1 {
  font-size: clamp(36px, 6vw, var(--text-6xl));
  line-height: 1.08;
  max-width: 680px;
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: light) {
  .hero-h1 {
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  color: var(--text-muted);
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-100);
}

.hero-risk {
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Hero product mock visual */
.hero-mock-wrap {
  width: 100%;
  max-width: 860px;
  margin-top: var(--sp-400);
}

.hero-mock {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  padding: var(--sp-300);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-300);
  text-align: left;
}

@media (max-width: 768px) {
  .hero-mock {
    grid-template-columns: 1fr;
  }
}

.mock-composer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.mock-deliveries {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  background-color: var(--surface-highlight);
  border-radius: var(--r-xl);
  padding: var(--sp-200);
  border: 1px solid var(--border-subtle);
}

.mock-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: var(--text-xs);
}

.mock-delivery-id {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  font-weight: 500;
}

/* Proof strip (A2) */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-300);
  padding: var(--sp-300) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Tagline Reveal Section (B11 mandatory) */
.tagline-section {
  padding: var(--sp-900) 0;
  text-align: center;
}

.tagline-h2 {
  font-size: clamp(30px, 4.5vw, var(--text-5xl));
  line-height: 1.15;
  max-width: 680px;
  margin: 0 auto;
}

.tagline-word {
  opacity: 0.28;
  color: var(--text-muted);
  transition:
    opacity var(--dur-slow) var(--ease-fluid),
    color var(--dur-slow) var(--ease-fluid);
}

.tagline-word.is-lit {
  opacity: 1;
  color: var(--text);
}

/* Feature / Benefits Section (A2) */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-600);
}

.section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-100);
}

.section-h2 {
  font-size: var(--text-3xl);
  line-height: var(--lh-3xl);
  margin-bottom: var(--sp-100);
}

.section-p {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* How it works 3-step grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-300);
}

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

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.step-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-50);
}

/* FAQ Details (A2 & A7) */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-200) var(--sp-300);
  transition: background-color var(--dur-fast);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.faq-content {
  padding-top: var(--sp-200);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--text-muted);
}

/* Pricing Card */
.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  padding: var(--sp-500);
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
}

.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

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

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  text-align: left;
}

.pricing-feature-row {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  font-size: var(--text-sm);
  color: var(--text);
}

/* Final CTA Section (A2) */
.final-cta {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  padding: var(--sp-700) var(--sp-400);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-300);
  margin-top: var(--sp-800);
}

/* Footer (B10) */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-500) 0;
  margin-top: auto;
  background-color: var(--bg);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-200);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--sp-300);
}

/* Dashboard 2-column layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: var(--sp-400);
  align-items: start;
}

.dashboard-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Compose counter chips */
.compose-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
}

.compose-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-50);
  padding: var(--sp-25) var(--sp-75);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  background-color: var(--surface-highlight);
  border: 1px solid var(--border);
  color: var(--text-muted);
  opacity: 0.5;
  transition: all var(--dur-fast);
}

.compose-chip.is-active-target {
  opacity: 1;
  color: var(--text);
}

.compose-chip.is-over {
  background-color: var(--err-bg);
  color: #fff;
  border-color: var(--err);
}

/* Posts timeline */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.post-deliveries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-75);
}

.post-delivery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-100);
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--surface-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  font-size: var(--text-xs);
  min-width: 0;
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-200);
  }
  .card {
    padding: var(--sp-200);
  }
}
/* Prose layout (Privacy, Terms) */
.prose {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
}

.prose h1 {
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
}

.prose h2 {
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  margin-top: var(--sp-400);
}

.prose p,
.prose li {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--text);
}

.prose ul {
  padding-left: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

/* Icon utility */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
