/* ============================================
   SnapTools — site-wide styles
   Light theme + brand blue (#014bd7) + light tints
   ============================================ */

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #014bd7;
  --accent-light: #e8eefc;
  --accent-soft: rgba(1, 75, 215, 0.12);
  --accent-hover: #0139a8;
  --border: #dfe6f2;
  --shadow: 0 8px 30px rgba(1, 75, 215, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Poppins", system-ui, sans-serif;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo-link:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav-main a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-play {
  background: var(--accent);
  color: #ffffff;
}

.btn-play:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-play svg {
  flex-shrink: 0;
}

/* Inline Play Store icon next to primary button */
.play-icon-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.15s;
}

.play-icon-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
}

.play-icon-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 1rem;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo-wrap {
  width: min(220px, 70vw);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--surface);
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: min(100%, 48ch);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--accent-light);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Screenshots grid ---------- */
.shots-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .shots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.shot-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
  height: auto;
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(1, 75, 215, 0.14);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact-panel {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: var(--accent-light);
  border: 1px solid rgba(1, 75, 215, 0.22);
  border-radius: var(--radius);
}

.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.contact-panel p {
  margin: 0;
  color: var(--text-muted);
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
}

/* ---------- Privacy page ---------- */
.page-main {
  padding: 2.5rem 0 4rem;
}

.page-main h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.page-meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-weight: 600;
}

.footer-copy {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-hover);
}
