/* ========================================
   Pace & Plates Design System
   ======================================== */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Colors - Light Mode */
  --color-bg-primary: #f8f9fb;
  --color-bg-secondary: #ffffff;
  --color-bg-gradient-start: #fef7f0;
  --color-bg-gradient-end: #f0f7fe;

  --color-text-primary: #1a1a2e;
  --color-text-secondary: #4a4a68;
  --color-text-tertiary: #7a7a98;

  --color-accent: #ff6b35;
  --color-accent-hover: #e55a2b;
  --color-accent-light: #fff0eb;

  --color-pace: #3b82f6;
  --color-pace-light: #eff6ff;
  --color-plates: #f97316;
  --color-plates-light: #fff7ed;
  --color-success: #22c55e;
  --color-success-light: #f0fdf4;

  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-strong: rgba(0, 0, 0, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, 'Cascadia Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg-primary: #0d0d14;
  --color-bg-secondary: #1a1a28;
  --color-bg-gradient-start: #14100d;
  --color-bg-gradient-end: #0d1014;

  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a1a1b5;
  --color-text-tertiary: #6b6b85;

  --color-accent: #ff7f50;
  --color-accent-hover: #ff9166;
  --color-accent-light: #2a1a14;

  --color-pace-light: #1a2540;
  --color-plates-light: #2a1a10;
  --color-success-light: #0a1f10;

  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-system);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

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

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

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ========================================
   Layout Components
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section--hero {
  padding: var(--space-16) 0 var(--space-24);
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .nav {
  background: rgba(26, 26, 40, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .nav__brand span {
    font-size: var(--text-sm);
  }

  .nav__brand {
    gap: var(--space-2);
  }

  .nav__logo {
    width: 30px;
    height: 30px;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  flex: 1;
  min-width: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 5px auto;
  transition: all var(--transition-fast);
}

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

  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
  }

  [data-theme="dark"] .nav--open .nav__links {
    background: #1a1a28;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-system);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.btn--secondary {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

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

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--app-store {
  background: #000;
  color: #fff;
  padding: var(--space-3) var(--space-5);
  gap: var(--space-3);
}

.btn--app-store:hover {
  background: #1a1a1a;
  color: #fff;
}

[data-theme="dark"] .btn--app-store {
  background: #fff;
  color: #000;
}

[data-theme="dark"] .btn--app-store:hover {
  background: #f0f0f0;
  color: #000;
}

.btn--app-store svg {
  width: 24px;
  height: 24px;
}

.btn--app-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 400;
  font-size: var(--text-xs);
  line-height: 1.2;
}

.btn--app-store-text strong {
  font-size: var(--text-base);
  font-weight: 600;
  color: inherit;
}

/* Coming Soon Button */
.btn--coming-soon {
  background: var(--color-bg-secondary);
  color: var(--color-text-tertiary);
  border: 1px dashed var(--color-border-strong);
  padding: var(--space-3) var(--space-6);
  gap: var(--space-3);
  cursor: default;
  font-size: var(--text-sm);
}

.btn--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.btn--coming-soon svg {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}

/* ========================================
   Cards (Floating Tiles)
   ======================================== */

.card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card--feature {
  padding: var(--space-8);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-xl);
}

.card__icon--plates {
  background: var(--color-plates-light);
  color: var(--color-plates);
}

.card__icon--pace {
  background: var(--color-pace-light);
  color: var(--color-pace);
}

.card__icon--neutral {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: 0;
  line-height: var(--leading-relaxed);
}

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

.hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-plates) 0%, var(--color-pace) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (max-width: 540px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 540px) {
  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta__actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ========================================
   Feature Grid
   ======================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

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

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

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

/* ========================================
   Screenshot Strip
   ======================================== */

.screenshots {
  overflow: hidden;
  padding: var(--space-12) 0;
}

.screenshots__inner {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--space-6);
}

.screenshot {
  width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1080px) {
  .screenshot {
    width: 200px;
  }
}

@media (max-width: 900px) {
  .screenshots__inner {
    gap: var(--space-4);
  }

  .screenshot {
    width: 170px;
  }
}

@media (max-width: 600px) {
  .screenshots__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-4);
  }

  .screenshot {
    width: 200px;
    scroll-snap-align: center;
  }
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__description {
  color: var(--color-text-tertiary);
  margin: 0;
}

/* ========================================
   Trust Section
   ======================================== */

.trust {
  text-align: center;
}

.trust__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.trust__item svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
  text-align: center;
  padding: var(--space-16);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.cta__title {
  margin-bottom: var(--space-4);
}

.cta__description {
  max-width: 500px;
  margin: 0 auto var(--space-8);
  color: var(--color-text-tertiary);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

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

.footer {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-20);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

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

.footer__copyright {
  width: 100%;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   Form Styles
   ======================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.form__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.form__label--optional::after {
  content: ' (optional)';
  font-weight: 400;
  color: var(--color-text-tertiary);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-system);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7a98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

.form__hint {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.form__error {
  font-size: var(--text-sm);
  color: #ef4444;
}

.form__actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* Form States */
.form__group--error .form__input,
.form__group--error .form__textarea,
.form__group--error .form__select {
  border-color: #ef4444;
}

.form__group--error .form__input:focus,
.form__group--error .form__textarea:focus,
.form__group--error .form__select:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Success Message */
.form-success {
  text-align: center;
  padding: var(--space-10);
}

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.form-success__icon svg {
  width: 32px;
  height: 32px;
}

.form-success__title {
  margin-bottom: var(--space-3);
}

.form-success__description {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

.form-success__ref {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ========================================
   Page-specific Styles
   ======================================== */

/* Privacy & Legal Pages */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal-content h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.legal-content__updated {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-10);
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-4);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-6);
  color: var(--color-text-secondary);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

/* Support Page */
.support-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.support-header__title {
  margin-bottom: var(--space-4);
}

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

.support-form-card {
  max-width: 600px;
  margin: 0 auto;
}

/* 404 Page */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page__code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  color: var(--color-border-strong);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page__title {
  margin-bottom: var(--space-4);
}

.error-page__description {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-8);
}

/* ========================================
   Loading States
   ======================================== */

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn--primary.btn--loading::after {
  border-top-color: white;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

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

@media (prefers-reduced-motion: no-preference) {
  .card,
  .btn,
  .screenshot {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
  }

  .fade-in {
    animation: fadeIn 0.5s ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .nav,
  .footer,
  .btn--app-store,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
