/* Swatchr landing — palette taken from the App Store screenshots:
   deep navy ground, royal blue, yellow accent. */

:root {
  --navy-900: #0b1631;
  --navy-800: #0f1e43;
  --navy-700: #16296b;
  --blue: #2f6bf0;
  --blue-dark: #1c4bc4;
  --yellow: #ffd60a;
  --ink: #10162b;
  --ink-soft: #4a5470;
  --line: #dfe3ee;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --radius: 14px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--blue-dark); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0 0 1rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.4rem; }

/* ------------------------------------------------------------- chrome */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { border-radius: 9px; }

.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--blue-dark); }

.site-foot {
  max-width: var(--maxw);
  margin: 4rem auto 0;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.75rem; }
.site-foot nav a { color: inherit; }

/* --------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 1.25rem 3rem;
}
.hero > * { max-width: var(--maxw); }
.hero-copy { justify-self: end; width: min(100%, 34rem); }
.hero-shot { justify-self: start; width: min(100%, 22rem); }
.hero-icon { border-radius: 20px; margin-bottom: 1.25rem; }
.hero h1 { color: #fff; }
.lede { font-size: 1.12rem; color: #ccd6f0; margin: 0 0 1.75rem; }
.hero-note { font-size: 0.88rem; color: #9fb0d6; margin: 0.9rem 0 0; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--yellow);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
}
.store-badge:hover { background: #ffe14d; }
.store-badge--sm { font-size: 0.9rem; padding: 0.62rem 1.15rem; }

/* -------------------------------------------------------------- bands */

.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 0;
}
.band-lede { color: var(--ink-soft); max-width: 42rem; margin: -0.4rem 0 1.75rem; }

.feature-grid, .steps, .guide-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps li { padding-top: 0.4rem; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* -------------------------------------------------------- screenshots */

.shot figure, .shot { margin: 0; }
.shot img {
  border-radius: 18px;
  border: 1px solid var(--line);
  width: 100%;
}
.shot figcaption {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
.hero-shot .shot img { border-color: rgba(255, 255, 255, 0.18); }
.hero-shot .shot figcaption { color: #9fb0d6; }

.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1.5rem;
}

/* ------------------------------------------------------------- guides */

.guide-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}
.guide-card:hover { border-color: var(--blue); }
.guide-card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-card-body { padding: 1rem 1.15rem 1.25rem; }
.guide-card-body p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.guide-card-more { color: var(--blue-dark); font-size: 0.9rem; font-weight: 600; }

/* ---------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line); max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.95rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: " +"; color: var(--blue); }
.faq-item[open] summary::after { content: " –"; }
.faq-answer { padding-bottom: 0.9rem; }
.faq-answer p { margin: 0 0 0.5rem; color: var(--ink-soft); }

/* ------------------------------------------------------------ article */

.article-wrap { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.article-wrap .band { padding-left: 0; padding-right: 0; }

.crumbs { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 0.4rem; }

.article section { margin-top: 2.25rem; }
.article p { margin: 0 0 1rem; }
.intro { font-size: 1.12rem; color: var(--ink); }

.feature-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.75rem;
}

.article ol, .article ul { padding-left: 1.4rem; list-style: revert; }
.article li { margin-bottom: 0.6rem; }

.howto ol li strong { color: var(--ink); }

.article .shot { margin: 1.75rem 0; max-width: 20rem; }

.cta-callout {
  background: var(--surface-2);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
}
.cta-callout p { margin: 0 0 0.9rem; font-weight: 600; }

.guide-faq .faq-item:first-of-type { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ CTA band */

.cta-band {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem 1.75rem;
  margin-top: 3.25rem;
  max-width: var(--maxw);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ccd6f0; max-width: 38rem; margin: 0 0 1.5rem; }
.cta-band.inline { margin-top: 3rem; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 2.5rem;
  }
  .hero-copy, .hero-shot { justify-self: stretch; width: 100%; }
  .hero-shot { max-width: 17rem; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .site-nav { gap: 0.9rem; font-size: 0.9rem; }
  .cta-band { padding: 1.75rem 1.25rem; border-radius: 16px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf5;
    --ink-soft: #a2acc6;
    --line: #29304a;
    --surface: #0d1226;
    --surface-2: #151c36;
  }
  a { color: #8fb4ff; }
  .brand { color: var(--ink); }
  .guide-card { background: var(--surface-2); }
  .guide-card-more { color: #8fb4ff; }
}
