/* InsidePics site styles. Brand tokens mirror the app's design system
   (packages/ui styles). No build step — plain CSS, linked from every page. */

:root {
  --bg: #ffffff;
  --bg-raised: #fafafa;
  --fg: #181d27; /* gray-900 */
  --muted: #535862; /* gray-600 */
  --faint: #717680; /* gray-500 */
  --hairline: #e9eaeb; /* gray-200 */
  --accent: #181d27;
  --accent-fg: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080c14; /* gray-950 */
    --bg-raised: #0e131c;
    --fg: #fafafa; /* gray-50 */
    --muted: #a4a7ae; /* gray-400 */
    --faint: #94979e;
    --hairline: #252b37; /* gray-800 */
    --accent: #fafafa;
    --accent-fg: #080c14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: inline-block;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--fg);
}

@media (max-width: 720px) {
  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
  .site-nav .hide-sm {
    display: none;
  }
}

/* ---------- typography ---------- */

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
}

h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

section {
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 1px solid var(--hairline);
  /* clears the sticky header when jumping to an #anchor */
  scroll-margin-top: 64px;
}

section:first-of-type {
  border-top: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  margin-bottom: 0;
}

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

.hero {
  padding-top: clamp(48px, 8vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  margin-bottom: 28px;
  max-width: 34em;
}

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

.shot {
  border-radius: 20px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
  background: var(--bg-raised);
}

.shot img {
  display: block;
  width: 100%;
}

/* ---------- buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--hairline);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--bg-raised);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- numbered steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 32px 28px;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step h3 {
  margin-bottom: 10px;
}

.step h3::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  vertical-align: 2px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

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

.faq {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--faint);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  color: var(--muted);
  font-size: 15px;
  margin: 14px 0 0;
  max-width: 62ch;
}

/* ---------- legal / prose pages ---------- */

.prose {
  padding: clamp(48px, 7vw, 80px) 0;
}

.prose h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin-bottom: 12px;
}

.prose .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15.5px;
}

.prose ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 48px;
  background: var(--bg-raised);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-content: start;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--faint);
}

.footer-legal p {
  margin: 0 0 6px;
}

.footer-legal a {
  color: var(--muted);
}
