/* ============================================================
   Payless Cellular — Apple-vibe design system
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-card: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.04);
  --accent: #0066FF;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 102, 255, 0.08);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --font: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding-block: clamp(72px, 10vw, 144px); }
section.tight { padding-block: clamp(48px, 6vw, 88px); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow.accent { color: var(--accent); }

.h-display {
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0;
}
.h-1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
}
.h-2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
}
.h-3 {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
}
.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  margin: 0;
}
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.accent-ink { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, black); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(0,0,0,0.18); background: rgba(0,0,0,0.02); }

.btn-link {
  background: transparent;
  color: var(--accent);
  height: auto;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

.chev {
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(0);
  margin-left: 4px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.022em;
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--ink);
  flex: 1;
}
.nav-links a { opacity: 0.85; transition: opacity 0.15s ease; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
}
.card-flat {
  background: var(--bg-alt);
  border-radius: var(--r-xl);
  padding: 28px;
  border: none;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-2);
  padding-block: 56px 32px;
  font-size: 13px;
  color: var(--ink-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.foot h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a:hover { color: var(--ink); }
.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ---------- Utilities ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.gap-lg { gap: 24px; }
.row.gap-xl { gap: 40px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--line); width: 100%; }
.pad-top-0 { padding-top: 0; }
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* ---------- Pill / Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.chip-neutral {
  background: rgba(0,0,0,0.04);
  color: var(--ink-2);
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---------- Grid helpers ---------- */
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ---------- Hero specifics ---------- */
.hero {
  padding-block: clamp(80px, 12vw, 160px) clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-stage {
  margin-top: 64px;
  position: relative;
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, #f5f5f7 0%, #ececef 100%);
  aspect-ratio: 16/8.4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Device placeholder (svg styled) ---------- */
.device-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Repair card grid ---------- */
.repair-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.repair-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.14);
}
.repair-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.repair-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
}
.repair-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.repair-card .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.repair-card .price {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* ---------- Process strip ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.process-step {
  background: var(--bg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0;
}
.process-step h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
}
.process-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

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

/* ---------- Locations ---------- */
.loc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}
.loc-card:hover { border-color: rgba(0,0,0,0.14); }
.loc-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 180, 99, 0.1);
  color: #00854a;
  font-size: 11px;
  font-weight: 500;
}
.loc-card h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.loc-card .addr { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.loc-card .hours { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.loc-card .actions { display: flex; gap: 8px; margin-top: 4px; }

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stat-row .stat .num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat-row .stat .lbl {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---------- Map mock ---------- */
.map-mock {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-mock svg { width: 100%; height: 100%; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-q .plus {
  width: 24px; height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .plus { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding-top: 12px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal[data-delay="1"] { animation-delay: 0.05s; }
.reveal[data-delay="2"] { animation-delay: 0.12s; }
.reveal[data-delay="3"] { animation-delay: 0.2s; }
.reveal[data-delay="4"] { animation-delay: 0.28s; }

/* ---------- Tweak: layout variants ---------- */
body.layout-split .hero-stage { display: none; }
body.layout-split .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
body.layout-split .hero-art {
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, #f5f5f7 0%, #ececef 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
body:not(.layout-split) .hero-art { display: none; }

@media (max-width: 800px) {
  body.layout-split .hero-inner { grid-template-columns: 1fr; }
}

body.layout-centered .hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
body.layout-centered .hero-eyebrow-row { justify-content: center; }
body.layout-centered .hero-cta-row { justify-content: center; }
body.layout-centered .hero-art { display: none; }

.hero-inner { }
.hero-cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Density tweaks */
body.density-compact section { padding-block: clamp(48px, 6vw, 96px); }
body.density-compact .hero { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px); }
