/* ==========================================
   AROUNDSA — Modern Brand Identity System
   Covers: index.html, legal.html, support.html
   Palette extracted from the official logo.
   ========================================== */

:root {
  /* Brand Colors (from logo) */
  --brand-primary: #02c7f0;
  --brand-primary-dark: #0180d8;
  --brand-primary-light: #7be7ff;
  --brand-secondary: #0f172a;
  --brand-accent: #f59e0b;
  --brand-success: #10b981;
  --brand-warning: #f59e0b;
  --brand-danger: #ef4444;

  /* Surfaces */
  --surface-bg: #ffffff;
  --surface-panel: #f8fafc;
  --surface-hover: #f1f5f9;
  --surface-disabled: #f3f4f6;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Lines */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #02c7f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Typography */
  --font-body: 'Alexandria', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Alexandria', 'Segoe UI', system-ui, -apple-system, sans-serif;

  color-scheme: light;
}

/* Dark theme */
[data-theme="dark"] {
  --surface-bg: #0f172a;
  --surface-panel: #1e293b;
  --surface-hover: #334155;
  --surface-disabled: #475569;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-light: #334155;
  --border-medium: #475569;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.3);
}

/* Alexandria — self-hosted official font */
@font-face {
  font-family: 'Alexandria';
  src: url('Alexandria.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgb(2 199 240 / 0.28);
}

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

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

a:hover {
  color: var(--brand-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] { display: none !important; }

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: var(--space-5); }
h2 { font-size: clamp(24px, 4vw, 40px); margin-bottom: var(--space-4); }
h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: var(--space-3); }
h4 { font-size: clamp(18px, 2.5vw, 22px); margin-bottom: var(--space-3); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

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

/* Layout */
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--surface-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-medium);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Cards */
.card {
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow);
}

/* Inputs & Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgb(2 199 240 / 0.1);
}

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

.select, textarea.form-control {
  min-height: 48px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-success {
  background: rgb(16 185 129 / 0.1);
  color: var(--brand-success);
}

.badge-warning {
  background: rgb(245 158 11 / 0.1);
  color: var(--brand-warning);
}

.badge-danger {
  background: rgb(239 68 68 / 0.1);
  color: var(--brand-danger);
}

.badge-info {
  background: rgb(2 199 240 / 0.1);
  color: var(--brand-primary);
}

.badge-default {
  background: var(--surface-hover);
  color: var(--text-muted);
}

/* Header — sticky glass with full-bleed backdrop */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid transparent;
  margin-bottom: var(--space-8);
  position: sticky;
  top: 0;
  z-index: 50;
  opacity: 0;
  animation: header-in 500ms var(--ease-out) 100ms forwards;
}

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

@supports (backdrop-filter: blur(12px)) {
  header.site {
    background: rgb(255 255 255 / 0.72);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--border-light);
  }

  [data-theme="dark"] header.site {
    background: rgb(15 23 42 / 0.72);
  }

  header.site::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: inherit;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

nav.site {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

nav.site a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
}

nav.site a::after {
  content: "";
  position: absolute;
  inset-inline: 50% 50%;
  bottom: -6px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  opacity: 0;
  transition: inset var(--transition), opacity var(--transition);
}

nav.site a:hover::after,
nav.site a[aria-current="page"]::after {
  inset-inline: 0 0;
  opacity: 1;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--brand-primary);
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--surface-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 11px;
  font-weight: 700;
  padding: 0;
}

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

/* Hero Section */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: var(--space-12) 0;
  position: relative;
  isolation: isolate;
}

.landing-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 90%, rgb(2 199 240 / 0.15), transparent 60%),
              radial-gradient(ellipse 50% 60% at 90% 10%, rgb(1 128 216 / 0.1), transparent 50%);
}

.hero-copy h1 {
  margin-bottom: var(--space-4);
}

.hero-copy h1 span {
  display: block;
  color: var(--brand-primary);
}

.hero-copy p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* Services */
.services-band {
  background: var(--surface-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.services-band h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

/* Supports both `<div class="service-item">` and bare `<div>` markup */
.service-item,
.service-list > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.service-item:hover,
.service-list > div:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgb(2 199 240 / 0.1);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform var(--transition);
}

.service-item:hover .service-icon,
.service-list > div:hover .service-icon {
  transform: scale(1.08);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon.teal { background: rgb(2 199 240 / 0.12); color: #0180d8; }
.service-icon.amber { background: rgb(245 158 11 / 0.14); color: #b45309; }
.service-icon.coral { background: rgb(239 68 68 / 0.12); color: #b91c1c; }
.service-icon.blue { background: rgb(2 132 199 / 0.12); color: #0369a1; }
.service-icon.violet { background: rgb(124 58 237 / 0.12); color: #6d28d9; }
.service-icon.green { background: rgb(16 185 129 / 0.12); color: #047857; }

[data-theme="dark"] .service-icon.teal { color: #7be7ff; }
[data-theme="dark"] .service-icon.amber { color: #fbbf24; }
[data-theme="dark"] .service-icon.coral { color: #fca5a5; }
[data-theme="dark"] .service-icon.blue { color: #7dd3fc; }
[data-theme="dark"] .service-icon.violet { color: #c4b5fd; }
[data-theme="dark"] .service-icon.green { color: #6ee7b7; }

.service-item h4 {
  font-size: 15px;
  margin-bottom: 0;
}

.service-item p,
.service-list > div > span:last-child {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 0;
}

/* Marketplace */
.marketplace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: var(--space-10) 0;
}

.marketplace-copy h2 {
  margin-bottom: var(--space-4);
}

.marketplace-copy p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
}

.marketplace-note {
  border-inline-start: 4px solid var(--brand-primary);
  padding: var(--space-3) var(--space-5);
  background: rgb(2 199 240 / 0.07);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
}

.marketplace-preview {
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.preview-arrow {
  margin-inline-start: auto;
  font-size: 24px;
  line-height: 1;
  color: var(--brand-primary);
}

.preview-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--surface-hover);
  border-radius: var(--radius);
  padding: var(--space-1);
  margin-bottom: var(--space-4);
}

.preview-tabs span {
  flex: 1;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.preview-tabs span:first-child {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.preview-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  transition: all var(--transition-fast);
}

.preview-row:last-child {
  margin-bottom: 0;
}

.preview-row:hover {
  border-color: var(--brand-primary);
  background: var(--surface-hover);
}

.preview-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  color: var(--brand-primary);
}

.preview-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-icon.shop {
  background: rgb(2 199 240 / 0.1);
  color: var(--brand-primary-dark);
}

.preview-row strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.preview-row small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Journey (How It Works) */
.journey {
  padding: var(--space-10) 0;
}

.journey h2 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.journey-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-5);
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.journey-grid article:hover {
  border-color: var(--brand-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  inset-inline-end: var(--space-5);
  top: var(--space-4);
  font-size: 15px;
  font-weight: 900;
  color: var(--text-muted);
}

.step-symbol {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgb(2 199 240 / 0.1);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  transition: transform var(--transition);
}

.journey-grid article:hover .step-symbol {
  transform: scale(1.1);
}

.step-symbol svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-grid h3 {
  font-size: 18px;
  margin-bottom: 0;
}

.journey-grid p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Trust — supports `<div class="trust-item">` and bare `<div>` markup */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-10) 0;
}

.trust-item,
.trust > div {
  padding: var(--space-5);
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.trust-item:hover,
.trust > div:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow);
}

.trust-item span,
.trust > div > span {
  display: block;
  font-size: 24px;
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

.trust-item h3,
.trust > div h3 {
  font-size: 16px;
  margin-bottom: var(--space-2);
}

.trust-item p,
.trust > div p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Closing CTA */
.closing {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  color: var(--text-inverse);
  margin: var(--space-10) 0;
}

.closing h2 {
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
}

.closing p {
  color: #94a3b8;
  margin-bottom: var(--space-6);
}

.closing .btn {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.closing .btn:hover {
  background: var(--brand-primary-light, #7be7ff);
  color: var(--brand-secondary);
  transform: translateY(-2px);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border-light);
  padding: var(--space-8) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

footer.site nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

footer.site nav a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

footer.site p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Legal / Support pages */
main.wrap > .hero,
.hero.doc {
  padding: var(--space-6) 0 var(--space-8);
  text-align: center;
}

.hero.doc h1 {
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.9;
}

.meta {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-2);
  background: var(--surface-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.tabs a {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tabs a:hover {
  color: var(--brand-primary);
  background: var(--surface-hover);
}

.tabs a.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

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

.doc {
  background: var(--surface-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.doc h3 {
  font-size: 20px;
  margin-bottom: var(--space-3);
}

.doc p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: var(--space-3);
}

.skeleton {
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-6);
  background: var(--surface-panel);
  border-radius: var(--radius);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Scroll-reveal (progressive enhancement: only when JS is active) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  html.js .reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .landing-hero,
  .marketplace {
    grid-template-columns: minmax(0, 1fr);
    text-align: right;
  }
  .marketplace-preview {
    order: -1;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  header.site {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  .brand {
    order: 1;
  }
  nav.site {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  header.site > *:nth-child(3), header.site > *:nth-child(4) {
    order: 3;
  }
  .services-band {
    padding: var(--space-6) var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
