/* Tokens aligned with src/styles/global.css (landing-only tweaks) */
:root {
  --color-accent: #39bdc7;
  --color-accent-hover: #4cced6;
  --color-accent-rgb: 57, 189, 199;
  --color-border-accent: rgba(57, 189, 199, 0.18);
  --color-bg-main: #171719;
  --color-bg-elevated: rgba(255, 255, 255, 0.06);
  --color-text-primary: #ffffff;
  /* Slightly brighter than app shell for long-form readability on the web */
  --color-text-secondary: #b8bac4;
  --color-text-tertiary: rgba(255, 255, 255, 0.45);
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text-primary);
  background: var(--color-bg-main);
  background-image:
    radial-gradient(ellipse 90% 70% at 50% -30%, rgba(var(--color-accent-rgb), 0.12), transparent 55%),
    linear-gradient(180deg, #1a1b1f 0%, var(--color-bg-main) 38%, #141518 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 85% 90%, rgba(var(--color-accent-rgb), 0.07), transparent 50%);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(23, 23, 25, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

.brand:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.brand-logo {
  width: 44px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.brand-name {
  max-width: 220px;
  line-height: 1.25;
}

@media (min-width: 480px) {
  .brand-name {
    max-width: none;
  }
}

.main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 3.5rem;
}

.hero {
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero--landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  min-height: min(52vh, 28rem);
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-bg-main);
  background: var(--color-accent);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(var(--color-accent-rgb), 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
}

.store-btn:hover {
  background: var(--color-accent-hover);
}

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

.store-btn:active {
  transform: translateY(1px);
}

.store-btn-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  object-fit: contain;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.step-figure {
  margin: 1.35rem 0 0;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.step-figure--onboarding {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 0 auto;
  max-width: 44em;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-tertiary);
}

.site-footer > p:first-child {
  margin-bottom: 0.75rem;
}

.site-footer-version {
  margin: 0 auto !important;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.02em;
}

/* Version is only in data-welcome-version; no visible text in this node */
.site-footer-version:empty {
  display: none;
}
