/* =========================================
   WordShuttle — Global Stylesheet
   Copyright (c) 2026 FlyDaddyDevelopments
   ========================================= */

:root {
  /* ── Brand palette (sourced directly from WordShuttle Assets.xcassets) ── */
  --primary:     #C71F24;   /* WS.Crimson — THE primary action color */
  --primary-dark:#a01a1f;
  --teal:        #0FB881;   /* WS.KeyEnter — secondary accent */
  --accent:      #F59E0B;   /* WS.TargetTileConfirmed — amber/window highlight */
  --correct:     #22C55E;   /* WS.FeedbackCorrect — green */
  --present:     #D49419;   /* WS.Amber — present/wrong-position */
  --hard:        #FB9330;   /* WS.HardBadge — orange */
  --absent:      #2D2A40;   /* WS.FeedbackAbsent dark */

  /* ── Backgrounds & surfaces (WS dark-mode values) ── */
  --bg:          #121020;   /* WS.Linen dark */
  --surface:     #1C192A;   /* WS.Card dark */
  --surface-2:   #1E1A2D;   /* WS.Navy light */
  --header-bg:   #253A60;   /* WS.Header dark */
  --border:      #2A2640;   /* WS.WarmBorder dark */

  /* ── Text (WS.Linen light = warm cream, not cold white) ── */
  --text:        #F5EFDF;
  --text-muted:  #9CA3AC;   /* WS.KeyDisabledText light */

  /* ── Woven texture overlay (loom-shuttle motif) ── */
  --weave-color: rgba(245, 239, 223, 0.022);
  --weave-size:  18px;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.7);
  --transition:  0.2s ease;
  --max-width:   1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  /* Loom weave texture — vertical and horizontal "threads" */
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent calc(var(--weave-size) - 1px),
      var(--weave-color) calc(var(--weave-size) - 1px),
      var(--weave-color) var(--weave-size)
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent calc(var(--weave-size) - 1px),
      var(--weave-color) calc(var(--weave-size) - 1px),
      var(--weave-color) var(--weave-size)
    );
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ─────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }
a  { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── Layout Helpers ─────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
main { flex: 1; }

/* ── Navigation ─────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,16,32,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo .logo-tiles {
  display: flex;
  gap: 3px;
}
.logo-tile {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.logo-tile.c { background: var(--correct); }
.logo-tile.p { background: var(--primary); }
.logo-tile.a { background: var(--absent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: rgba(18,16,32,0.97);
}
.mobile-menu a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--text); background: var(--surface-2); }
.mobile-menu .nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  text-align: center;
  margin-top: 4px;
}
.mobile-menu.open { display: flex; }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,141,217,0.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { background: #d4880a; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ── Card ───────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-hover { transition: all var(--transition); }
.card-hover:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Letter Tiles ───────────────────────── */
.tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
}
.tile.correct { background: var(--correct); }
.tile.present { background: var(--present); }
.tile.absent  { background: var(--absent); border: 2px solid #555; }
.tile.empty   { background: transparent; border: 2px solid var(--border); }
.tile.sm { width: 38px; height: 38px; font-size: 1rem; border-radius: 6px; }
.tile.lg { width: 64px; height: 64px; font-size: 1.75rem; border-radius: 10px; }

/* ── Hero ───────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(199,31,36,0.10) 0%, rgba(245,158,11,0.04) 50%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.app-store-btn:hover { background: var(--accent); color: #111; transform: translateY(-1px); }
.app-store-btn svg { flex-shrink: 0; }
.app-store-label { display: flex; flex-direction: column; text-align: left; }
.app-store-label small { font-size: 0.65rem; font-weight: 500; opacity: 0.7; line-height: 1; }
.app-store-label strong { font-size: 1rem; line-height: 1.2; }

/* ── Hero Tile Demo ─────────────────────── */
.hero-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.tile-row {
  display: flex;
  gap: 8px;
  position: relative;
}
/* Loom shuttle bar that slides across the active row */
.tile-row.shuttle-track {
  overflow: visible;
}
.tile-row.shuttle-track::after {
  content: '';
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  box-shadow: 0 0 12px rgba(245,158,11,0.7), 0 0 4px rgba(15,184,129,0.5);
  animation: shuttle 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
  opacity: 0;
}
.tile-row.shuttle-track.ready::after {
  opacity: 1;
}

/* ── Features Grid ──────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ── Mode Cards ─────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.mode-card {
  position: relative;
  overflow: hidden;
}
.mode-card .mode-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.mode-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.mode-badge.free { background: rgba(34,197,94,0.15); color: var(--correct); }
.mode-badge.premium { background: rgba(245,158,11,0.15); color: var(--accent); }

/* ── Section Headers ────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Comparison Table ───────────────────── */
.table-wrap { overflow-x: auto; margin-top: 40px; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.cmp-table th, .cmp-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.cmp-table th { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { color: var(--text); }
.check { color: var(--correct); font-size: 1.1rem; }
.cross { color: #e05c5c; font-size: 1.1rem; }

/* ── How to Play ────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 32px; margin-top: 48px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 6px; }

/* ── Score Guide ────────────────────────── */
.score-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.score-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.score-pts {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.score-label { font-size: 0.85rem; color: var(--text-muted); }

/* ── FAQ / Accordion ────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--surface-2); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Forms ──────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
input[type="text"],
input[type="email"],
select,
textarea {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  padding: 12px 16px;
  transition: border-color var(--transition);
  font-family: inherit;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}
textarea { resize: vertical; min-height: 140px; }
select option { background: var(--surface); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); }
.form-success {
  background: rgba(106,170,100,0.1);
  border: 1px solid var(--correct);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--correct);
  font-weight: 600;
  display: none;
}

/* ── Legal Pages ────────────────────────── */
.legal-hero { padding: 64px 0 48px; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 80px;
}
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 12px; color: var(--text); }
.legal-content h3 { font-size: 1.1rem; margin: 28px 0 8px; color: var(--text); }
.legal-content p  { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc h4 { margin-bottom: 12px; color: var(--text); }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { margin-bottom: 4px; }
.legal-toc a { color: var(--primary); font-size: 0.9rem; }

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--text); }

/* ── Divider ────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Thread Divider (loom stitch motif) ─── */
/* Matches the decorative dashed separator lines in the WordShuttle app */
.thread-divider {
  border: none;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--primary)  0px,  var(--primary)  9px,
    transparent     9px,  transparent     11px,
    var(--accent)   11px, var(--accent)   20px,
    transparent     20px, transparent     22px
  );
  opacity: 0.65;
  margin: 0;
}

/* ── Shifting Board Demo ────────────────── */
/* Shows the "shuttle" window moving across the hidden word like a loom */
.shifting-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;   /* tile rows anchor from left of the grid */
  width: 352px;              /* exactly 6 tiles × 52px + 5 gaps × 8px  */
  max-width: 100%;           /* don't overflow on narrow screens         */
  margin: 8px auto 0;        /* center the whole board in the hero       */
}
.shifting-demo .tile-row {
  position: relative;
  transition: margin-left 0.4s ease;
}
.shift-1 { margin-left: 0px; }
.shift-2 { margin-left: 60px; }
.shift-3 { margin-left: 180px; }
.shift-win { margin-left: 0px; }

.window-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: block;
  margin-top: 2px;
  margin-left: 2px;
}
.window-label.win { color: var(--teal); font-weight: 700; letter-spacing: 0.06em; }

/* In-window tile highlight — amber border like the app */
.tile.in-window {
  box-shadow: 0 0 0 2.5px var(--accent);
}

/* Ellipsis separator between displayed rows and the final guess row */
.demo-ellipsis {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 2px;
  padding: 4px 0;
  opacity: 0.6;
}
.demo-ellipsis-dots {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .shift-2 { margin-left: 50px; }
  .shift-3 { margin-left: 150px; }
}

/* ── Animations ─────────────────────────── */
@keyframes shuttle {
  0%   { left: -8px; }
  45%  { left: calc(100% + 8px); }
  50%  { left: calc(100% + 8px); }
  95%  { left: -8px; }
  100% { left: -8px; }
}
@keyframes flipIn {
  0%   { transform: rotateX(-90deg) scale(0.8); opacity: 0; }
  60%  { transform: rotateX(10deg) scale(1.05); }
  100% { transform: rotateX(0deg) scale(1); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.tile.flip { animation: flipIn 0.4s ease forwards; }
.hero h1   { animation: slideUp 0.6s ease 0.1s both; }
.hero-sub  { animation: slideUp 0.6s ease 0.2s both; }
.hero-actions { animation: slideUp 0.6s ease 0.3s both; }
.hero-demo    { animation: slideUp 0.6s ease 0.5s both; }

/* ── Page-specific ──────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(15,184,129,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(15,184,129,0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 72px 0 64px; }
  .section { padding: 60px 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .step { grid-template-columns: 40px 1fr; gap: 16px; }

  h1 { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tile { width: 42px; height: 42px; font-size: 1.1rem; }
  .tile.lg { width: 52px; height: 52px; font-size: 1.4rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
