/*
 * Paw Grove marketing site.
 *
 * Tokens mirror mobile/src/theme.ts, so the page and the app agree about the
 * brand. Self-hosted fonts and no external requests: the origin's CSP allows
 * 'self' only, and the site has no business phoning anywhere else.
 */

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --lavender: #6E51E0;
  --lavender-light: #7458E8;
  --deep: #6A4FE0;
  --mint: #136E4F;
  --ink: #2C2740;
  --body: #4A4360;
  --muted: #6A6484;
  --line: #E3DCF2;
  --canvas: #FCFBF8;
  --lilac: #F5F1FC;
  --card: #FFFFFF;
  --tint: #F1ECFF;
  --shadow: 0 10px 30px rgba(130, 110, 220, 0.14);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lavender: #B8A6FF;
    --lavender-light: #C9BBFF;
    --deep: #A48CFF;
    --mint: #5FDCA6;
    --ink: #F3F0FF;
    --body: #CFC9E4;
    --muted: #A49DBE;
    --line: #332C4A;
    --canvas: #16131F;
    --lilac: #1A1626;
    --card: #1E1A2B;
    --tint: #241F36;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --lavender: #B8A6FF;
  --lavender-light: #C9BBFF;
  --deep: #A48CFF;
  --mint: #5FDCA6;
  --ink: #F3F0FF;
  --body: #CFC9E4;
  --muted: #A49DBE;
  --line: #332C4A;
  --canvas: #16131F;
  --lilac: #1A1626;
  --card: #1E1A2B;
  --tint: #241F36;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand span {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  letter-spacing: -0.4px;
}

a { color: var(--lavender); }

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 12px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* ---- header / footer ---- */

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { font-size: 19px; font-weight: 700; }
.bar nav { display: flex; gap: 22px; }
.bar nav a, .foot nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.bar nav a:hover, .foot nav a:hover { color: var(--lavender); }

footer.site { border-top: 1px solid var(--line); background: var(--lilac); }
.foot { padding: 34px 22px 46px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.by { color: var(--muted); font-size: 14.5px; margin: 0; }

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

.hero {
  background:
    radial-gradient(1100px 460px at 12% -12%, var(--tint), transparent 70%),
    var(--canvas);
  padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 4vw, 40px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--deep);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 54px); line-height: 1.1; margin: 0 0 18px; }
.lede { font-size: clamp(17px, 2vw, 19.5px); margin: 0 0 26px; max-width: 34em; }
.fineprint { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.cta-row.center { justify-content: center; }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lavender-light), var(--deep));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost {
  background: var(--card);
  color: var(--deep);
  border: 2px solid var(--line);
  box-shadow: none;
}

.phone {
  border-radius: 34px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 320px;
  margin-inline: auto;
}
.phone img { border-radius: 26px; }

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

.band { padding: clamp(46px, 7vw, 86px) 0; }
.band.alt { background: var(--lilac); }
.band h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; }
.section-lede { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 46em; }
.center .section-lede { margin-inline: auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 18.5px; margin: 14px 0 8px; }
.card p { margin: 0; font-size: 16px; }
.ico {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--deep);
  align-items: center;
  justify-content: center;
}
.ico svg { width: 24px; height: 24px; }

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

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  /* Room for the caption text under each panel without cropping it. */
  align-items: start;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.shots figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* ---- privacy ---- */

ul.plain { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
ul.plain li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--deep);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 16.5px;
}
ul.plain strong { color: var(--ink); }

.closing { background: var(--lilac); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .phone { max-width: 260px; }
  .bar nav { gap: 16px; }
  .bar nav a { font-size: 15px; }
}

@media (max-width: 420px) {
  .bar nav a[href="#screens"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
