/* PickleLink — palette and type mirror app/src/constants/theme.ts so the site
   and the app read as one product. Barlow is self-hosted (subset to Latin) so
   no third-party font CDN sees a visitor's IP. */

@font-face {
  font-family: 'Barlow';
  src: url('/assets/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('/assets/fonts/barlow-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow SC';
  src: url('/assets/fonts/barlowsc-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow SC';
  src: url('/assets/fonts/barlowsc-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --text: #0B1B2B;
  --text-secondary: #5B6772;
  --bg: #F7F8F6;
  --card: #FFFFFF;
  --border: #E5E8E3;
  --primary: #16A34A;
  --primary-deep: #0F7A37;
  --on-primary: #FFFFFF;
  --accent: #D8F26E;
  --on-accent: #1A2E05;
  --muted: #EEF1EC;
  --shadow: 0 1px 2px rgba(11, 27, 43, .06), 0 12px 32px rgba(11, 27, 43, .07);
  --radius: 20px;
  --maxw: 1080px;
  --display: 'Barlow SC', 'Barlow', system-ui, -apple-system, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #F2F5F1;
    --text-secondary: #9AA5AE;
    --bg: #0E1411;
    --card: #171F1A;
    --border: #26302A;
    --primary: #22C55E;
    --primary-deep: #16A34A;
    --on-primary: #08130B;
    --accent: #B5E352;
    --on-accent: #141F02;
    --muted: #1D2620;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }

a { color: var(--primary-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--primary); } }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(150%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
/* the hero column is centred so the two store buttons sit under the middle of
   the headline rather than hanging off its left edge */
.hero-text { text-align: center; }
.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-secondary);
  margin: 20px auto 0; max-width: 36ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .95rem; color: var(--text-secondary); }

/* ---------- device frame around real screenshots ---------- */
.device {
  width: min(300px, 78vw); margin-inline: auto;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #2A3630, #0D1310);
  box-shadow: var(--shadow);
}
.device img {
  display: block; width: 100%; height: auto;
  border-radius: 31px;
}
.hero-device { width: min(320px, 80vw); }

/* inside a step card the phone is smaller and the copy sits under it */
.shot-card { padding-top: 22px; }
.shot-card .device { width: min(232px, 62vw); margin: 4px auto 24px; border-radius: 32px; padding: 8px; }
.shot-card .device img { border-radius: 25px; }

.split { display: grid; gap: clamp(32px, 6vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }

/* ---------- phone illustration ---------- */
.phone {
  width: min(320px, 82vw); margin-inline: auto;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2A3630, #131A16);
  box-shadow: var(--shadow);
}
.phone-screen {
  background: var(--bg); border-radius: 32px; overflow: hidden;
  border: 1px solid var(--border);
}
.phone-top {
  background: var(--primary); color: var(--on-primary);
  padding: 22px 18px 18px;
}
.phone-top .k { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.phone-top .s { font-size: .9rem; opacity: .9; }
.phone-body { padding: 14px; display: grid; gap: 10px; }
.mini {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
}
.mini .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini .t { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.mini .m { font-size: .86rem; color: var(--text-secondary); }
.pill {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.pill-open { background: var(--accent); color: var(--on-accent); }
.pill-count { background: var(--primary); color: var(--on-primary); }
.pill-full { background: var(--muted); color: var(--text-secondary); }
.dots { display: flex; gap: 4px; margin-top: 8px; }
.dots i { width: 22px; height: 22px; border-radius: 999px; background: var(--muted); border: 2px solid var(--card); margin-left: -6px; }
.dots i:first-child { margin-left: 0; }

/* ---------- sections ---------- */
section { padding: clamp(52px, 8vw, 92px) 0; }
/* the header is sticky, so an anchor jump would otherwise land under it */
section[id] { scroll-margin-top: 76px; }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--text-secondary); margin-top: 14px; font-size: 1.1rem; max-width: 62ch; }

.band { background: var(--card); border-block: 1px solid var(--border); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.band .card { background: var(--bg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 1rem; }
.card .num {
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  width: 38px; height: 38px; border-radius: 999px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
}

.pull {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15;
  max-width: 22ch;
}
.pull em { font-style: normal; color: var(--primary); }

.stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px); margin-top: 36px; }
.stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1;
}
.stat span { color: var(--text-secondary); font-size: .98rem; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.stores.centred { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 17px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  text-decoration: none; transition: transform .12s ease, filter .12s ease;
}
.store:hover { transform: translateY(-1px); filter: brightness(1.1); }
.store span {
  display: flex; flex-direction: column; line-height: 1.15;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
}
.store small {
  font-family: var(--body); font-weight: 500; font-size: .7rem;
  letter-spacing: .04em; text-transform: uppercase; opacity: .75;
}
/* on the green panel the buttons need their own light ground */
.stores.on-dark .store { background: var(--on-primary); color: var(--primary-deep); }

/* before launch the buttons are not links: muted, no hover, no pointer */
.stores.unlaunched .store {
  background: transparent; color: var(--text-secondary);
  border: 1px dashed var(--border); cursor: default;
}
.stores.unlaunched .store:hover { transform: none; filter: none; }
.stores.on-dark.unlaunched .store {
  background: transparent; color: var(--on-primary);
  border-color: color-mix(in srgb, var(--on-primary) 45%, transparent);
}

/* on a narrow phone the two buttons shrink rather than stacking */
@media (max-width: 460px) {
  .stores { flex-wrap: nowrap; gap: 8px; }
  .store { flex: 1 1 0; min-width: 0; padding: 9px 12px; gap: 8px; justify-content: flex-start; }
  .store svg { width: 21px; height: 21px; flex: none; }
  .store span { font-size: 1rem; min-width: 0; }
  .store small { font-size: .6rem; letter-spacing: .02em; }
}

/* ---------- notify ---------- */
.notify { background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: clamp(30px, 5vw, 52px); }
.notify h2 { color: var(--on-primary); }
.notify p { color: color-mix(in srgb, var(--on-primary) 82%, transparent); margin-top: 12px; max-width: 48ch; }
.notify form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.notify input {
  flex: 1 1 260px; min-width: 0; font-family: var(--body); font-size: 1.02rem;
  padding: 14px 18px; border-radius: 999px; border: none; background: #fff; color: #0B1B2B;
}
.notify input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.notify .btn-primary { background: var(--on-primary); color: var(--primary-deep); }
.notify .msg { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }

/* ---------- prose (legal, support) ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.45rem; margin-top: 44px; margin-bottom: 12px; }
.prose p { margin-top: 14px; color: var(--text-secondary); }
.prose p.meta { color: var(--text-secondary); font-size: .95rem; }
.prose ul { color: var(--text-secondary); padding-left: 1.2em; }
.prose li { margin-top: 10px; }
.prose strong { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.fine { color: var(--text-secondary); font-size: .88rem; margin-top: 26px; max-width: 70ch; }
.fine a { color: var(--text-secondary); }

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

/* ---------- deep-link page ---------- */
.link-page { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.link-page .card { max-width: 420px; }
.link-page img.mark { width: 76px; margin: 0 auto 20px; }
