/* Joqr Apps — site styles
   Palette drawn from the Paw101 icon: pastel blue + pink paw, white heart.
   Text/accent tones are darkened versions of the icon colors for contrast. */

:root {
  --paper: #FCFBF9;
  --ink: #22303F;
  --muted: #5D6B7A;
  --accent: #2878AE;
  --accent-dark: #1E5E8C;
  --pink: #E56A87;
  --pink-dark: #A83553;
  --pink-tint: #FBE9EE;
  --tint: #E9F3FA;
  --line: #E6E7E9;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.site-header {
  padding: 1.5rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

.brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

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

.hero {
  position: relative;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

/* decorative squircle cluster, hidden from AT and small screens */
.hero-squircles {
  position: absolute;
  right: -2rem;
  top: 3rem;
  width: 22rem;
  pointer-events: none;
}
.hero-squircles svg { position: absolute; }
.hero-squircles .sq-a { width: 11rem; right: 2rem; top: 0; color: var(--tint); }
.hero-squircles .sq-b { width: 6.5rem; right: 12.5rem; top: 7rem; color: var(--pink); opacity: 0.3; }
.hero-squircles .sq-c { width: 4rem; right: 5rem; top: 11.5rem; color: var(--accent-dark); opacity: 0.25; }

@media (max-width: 56rem) {
  .hero-squircles { display: none; }
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 14px;
  transition: background 150ms ease;
}
.button:hover { background: var(--accent-dark); color: var(--paper); }

/* ---------- sections ---------- */

.section {
  border-top: 1px solid var(--line);
  padding: 4rem 0;
}

.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}

.app-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}

.app-card .icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.app-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.app-card p { color: var(--muted); max-width: 38rem; }

.badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-dark);
  background: var(--pink-tint);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

@media (max-width: 40rem) {
  .app-card { flex-direction: column; }
}

/* ---------- prose pages (support, privacy) ---------- */

.page {
  padding: 3.5rem 0 5rem;
}

.page-narrow { max-width: 42rem; }

.page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.page h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
}

.page p, .page ul { margin-bottom: 1rem; color: var(--ink); }
.page ul { padding-left: 1.4rem; }
.page li { margin-bottom: 0.4rem; }

.contact-card {
  background: var(--tint);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.contact-card strong { font-family: var(--display); font-size: 1.1rem; }
.contact-card p { margin: 0.35rem 0 0; color: var(--ink); }
.contact-card address { font-style: normal; margin-top: 0.35rem; color: var(--ink); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.5rem; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero p, .hero .button {
    animation: rise 600ms ease both;
  }
  .hero h1 { animation-delay: 60ms; }
  .hero p { animation-delay: 120ms; }
  .hero .button { animation-delay: 180ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
