/* Pluck — landing pages stylesheet
   Brand: #289D54 (logo green). Mobile-first, single CSS file, no JS.
*/

:root {
  --primary: #289d54;
  --primary-light: #34b864;
  --primary-dark: #1e7a40;
  --accent: #2aae5c;
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --border: #e5e7eb;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow:    0 4px 14px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.08);

  --max-w: 1120px;
  --content-w: 760px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(40, 157, 84, 0.08);
  border: 1px solid rgba(40, 157, 84, 0.18);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--primary);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text);
}
.hero h1 .accent { color: var(--primary); }
.hero p.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.app-store-badge {
  height: 48px;
  display: inline-block;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-3);
}
.hero-meta strong { color: var(--text); font-weight: 600; }

/* Phone mock */
.phone-mock {
  margin: 56px auto 0;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px 18px;
  position: relative;
  overflow: hidden;
}
.phone-mock::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 12px;
  background: #111827;
}
.mock-app {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mock-flag { font-size: 20px; }
.mock-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.mock-count {
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  background: rgba(40, 157, 84, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.mock-row.muted .mock-name { color: var(--text-3); font-weight: 500; }

/* ===== Section base ===== */
section {
  padding: 72px 0;
}
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
h2.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.15;
}
p.section-lede {
  color: var(--text-2);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 40px;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(40, 157, 84, 0.1);
  color: var(--primary);
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 6px;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -14px; left: 22px;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid; place-items: center;
}
.step h3 {
  font-size: 16px; font-weight: 700;
  margin: 4px 0 6px;
}
.step p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ===== Privacy callout ===== */
.privacy-card {
  background: linear-gradient(135deg, #1e7a40 0%, #289d54 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.privacy-card .eyebrow { color: #d4f0e0; }
.privacy-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.privacy-card p { margin: 0; opacity: 0.92; max-width: 600px; }
.privacy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.privacy-point {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}
.privacy-point strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== FAQ ===== */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-3);
  font-weight: 400;
  transition: transform 120ms ease;
}
.faq details[open] summary::after { content: '−'; }
.faq .a {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* ===== Legal pages ===== */
.legal {
  padding: 56px 0 64px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.legal .effective {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 6px;
}
.legal p, .legal ul {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 600; }

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0 32px;
}
.legal-toc strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.legal-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.legal-toc a { color: var(--text-2); font-weight: 500; font-size: 14.5px; }

.placeholder {
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 4px;
  padding: 1px 6px;
  color: #92400e;
  font-weight: 600;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ===== Blog index ===== */
.blog-hero {
  padding: 56px 0 24px;
}
.blog-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.blog-hero p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 600px;
  margin: 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 120ms ease, box-shadow 120ms ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.blog-card .meta {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.blog-card h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
}
.blog-card p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}
.blog-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-card .tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: rgba(40, 157, 84, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ===== Blog post (article) ===== */
.post {
  padding: 48px 0 64px;
}
.post-header {
  margin-bottom: 32px;
}
.post-header .crumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.post-header .crumb a { color: var(--text-3); }
.post-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.post-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}
.post-header .meta .dot { color: var(--border); }

.post article {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.post article p { margin: 0 0 18px; }
.post article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.post article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
}
.post article ul, .post article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.post article li { margin-bottom: 6px; }
.post article a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post article code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.post article pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.post article pre code { background: none; padding: 0; font-size: inherit; }
.post article blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
  margin: 0 0 18px;
  color: var(--text-2);
  font-style: italic;
}
.post article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14.5px;
}
.post article table th, .post article table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.post article table th {
  background: var(--surface-2);
  font-weight: 700;
}

.post-cta {
  margin: 40px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #1e7a40 0%, #289d54 100%);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.post-cta strong { font-size: 16px; }
.post-cta p { margin: 4px 0 0; opacity: 0.92; font-size: 14px; }
.post-cta .btn-primary { background: #fff; color: var(--primary-dark); }
.post-cta .btn-primary:hover { background: rgba(255,255,255,0.92); }

.post-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-related h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 0 0 16px;
}

@media (max-width: 520px) {
  .post article { font-size: 16px; }
  .post-cta { flex-direction: column; align-items: flex-start; }
}

/* ===== Cookie consent banner ===== */
#consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  animation: consent-pop 220ms ease-out;
}
@keyframes consent-pop {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.consent-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.consent-text a { color: var(--primary-dark); font-weight: 600; }
.consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-actions .btn { padding: 9px 16px; font-size: 14px; }

@media (max-width: 520px) {
  #consent-banner { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* ===== Responsive ===== */
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .privacy-card {
    padding: 56px;
  }
  .legal-toc ol { columns: 2; }
}

@media (max-width: 520px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 32px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .nav-links a.btn { display: none; } /* Hide CTA in nav on tiny screens */
  .legal-toc ol { columns: 1; }
}
