/* =========================================================
   SNAPACK — minimal landing page + legal pages
   Edit copy in index.html, colors/feel here.
   ========================================================= */

:root {
  --cream:      #F3F4F6;   /* clean light grey background */
  --cream-2:    #E9EBEF;   /* secondary surface */
  --paper:      #FFFFFF;   /* card paper */
  --ink:        #1E2A26;   /* deep ink text */
  --ink-soft:   #4A5A53;   /* muted body text */
  --ink-faint:  #8A968F;   /* captions */

  --accent:     #14897B;   /* warm teal — reserved for the CTA */
  --accent-dk:  #0E6D62;
  --accent-tint:#D7ECE7;
  --terracotta: #E98A5B;

  /* one font everywhere — Figtree */
  --text:    "Figtree", system-ui, -apple-system, sans-serif;
  --display: var(--text);

  --wrap: 1100px;
  --gut: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--text); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---- Brand / nav ---- */
.nav { padding-block: 18px; }
.nav__inner { display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__word { font-family: var(--text); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }

/* ---- CTA badge (the one action) ---- */
.badge { display: inline-block; border-radius: 10px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.badge:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 24px -10px rgba(20,137,123,.6); }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.badge img { height: 54px; width: auto; display: block; }

/* ============================ HERO ============================ */
.hero { position: relative; padding-block: clamp(36px, 7vw, 84px) clamp(48px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* subtle neutral glow for depth — no colored blobs */
  background: radial-gradient(70% 60% at 75% 0%, #FFFFFF, transparent 60%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start;
}
.hero__copy { padding-top: clamp(8px, 4vw, 56px); }
.hero__title {
  font-family: var(--text); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--ink-soft); max-width: 42ch; margin: 0 0 .9rem; }
.hero__close { font-size: clamp(1.05rem, 2.1vw, 1.2rem); font-weight: 600; color: var(--ink); max-width: 42ch; margin: 0 0 2rem; }
.hero__trust { font-size: .9rem; color: var(--ink-faint); margin: 14px 0 0; }
.hero__visual { justify-self: center; }

/* The app visual (assets/hero.png). drop-shadow follows the transparent edges. */
.shot { width: clamp(250px, 32vw, 340px); height: auto; filter: drop-shadow(0 30px 50px rgba(30,42,38,.3)); }

/* ============================ FOOTER ============================ */
.foot { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot__copy { color: var(--ink-faint); font-size: .9rem; }
.foot__links { display: flex; gap: 22px; }
.foot__links a { color: var(--ink-soft); font-size: .95rem; }
.foot__links a:hover { color: var(--accent-dk); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero__grid { grid-template-columns: 1fr; }
  /* centered hero on mobile — copy + CTA */
  .hero__copy { text-align: center; }
  .hero__sub, .hero__close { max-width: 48ch; margin-inline: auto; }
  .hero__visual { margin-top: 8px; }
}
@media (max-width: 520px) {
  :root { --gut: 20px; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Accessibility ---- */
:where(a, summary, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =========================================================
   LEGAL PAGES (privacy.html, terms.html)
   ========================================================= */
.legal-top { border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.legal-top a.back { color: var(--accent-dk); font-weight: 600; font-size: .95rem; }
.legal-top a.back:hover { color: var(--accent); }

.legal { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 88px) var(--gut) clamp(56px, 8vw, 96px); }
.legal__title { font-family: var(--text); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5rem; }
.legal__updated { color: var(--ink-faint); font-size: .95rem; margin: 0 0 2.4rem; }
.legal h2 { font-family: var(--text); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.01em; margin: 2.6rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal strong { color: var(--ink); }

.legal__note { background: var(--cream-2); border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 14px; padding: 16px 18px; font-size: .92rem; color: var(--ink-soft); margin: 0 0 2.4rem; }
.legal__note strong { color: var(--ink); }

.legal table { width: 100%; border-collapse: collapse; margin: .4rem 0 1.4rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink-soft); vertical-align: top; }
.legal th { font-family: var(--text); font-weight: 700; color: var(--ink); }
.legal tr:first-child th { border-bottom-width: 2px; }
