/* Static Pages Stylesheet
 * Design: Boldness & Clarity + Warmth
 * Following design-principles skill guidelines
 */

/* Reset & Base - 4px grid system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cool slate foundation */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);

  /* Four-level contrast hierarchy */
  --fg: #0f172a;
  --fg-secondary: #334155;
  --fg-muted: #64748b;
  --fg-faint: #94a3b8;

  /* Orange accent for energy */
  --accent: #f97316;
  --accent-hover: #ea580c;

  /* Single shadow approach */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  /* Typography scale */
  --text-xs: 0.6875rem;   /* 11px */
  --text-sm: 0.75rem;     /* 12px */
  --text-base: 0.875rem;  /* 14px */
  --text-lg: 1rem;        /* 16px */
  --text-xl: 1.125rem;    /* 18px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 2rem;       /* 32px */

  /* Spacing scale - 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--fg-secondary);
  background: var(--bg);
  min-height: 100vh;
}

/* Main content container */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

/* Page header with app icon */
.page-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.header-image {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* Content card */
.content-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: var(--space-8);
}

/* Typography */
h1 {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: var(--space-2);
}

h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

h2:first-of-type {
  margin-top: var(--space-6);
}

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

/* Italics for "last updated" */
em:first-child,
p:first-of-type > em:only-child {
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--fg-muted);
  display: block;
  margin-bottom: var(--space-6);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Lists */
ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

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

li::marker {
  color: var(--fg-faint);
}

/* Inline elements */
strong {
  font-weight: 600;
  color: var(--fg);
}

code {
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

pre {
  background: var(--bg);
  padding: var(--space-4);
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

pre code {
  background: none;
  padding: 0;
}

/* Download Section - Bold & Unmistakable */
.download-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

@media (max-width: 600px) {
  .download-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.download-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 200ms cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 200ms cubic-bezier(0.25, 1, 0.5, 1);
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Subtle gradient accent on hover */
.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.download-card:hover::before {
  opacity: 1;
}

/* Store label - crystal clear which is which */
.download-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Store badge wrapper */
.download-card__badge {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card__badge img {
  height: 44px;
  width: auto;
  transition: opacity 150ms ease;
}

.download-card__badge:hover img {
  opacity: 0.85;
}

/* Divider line */
.download-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--space-2) 0;
}

/* QR code section */
.download-card__qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.download-card__qr-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.download-card__qr {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  display: block;
  line-height: 0;
}

.download-card__qr img {
  width: 140px;
  height: 140px;
  display: block;
}

/* iOS specific accent */
.download-card--ios::before {
  background: linear-gradient(90deg, #007AFF 0%, #5856D6 100%);
}

/* Android specific accent */
.download-card--android::before {
  background: linear-gradient(90deg, #34A853 0%, #4285F4 100%);
}

/* Footer */
.page-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.page-footer a {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: 0 var(--space-3);
}

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