:root {
  --bg: #f7fafa;
  --surface: #ffffff;
  --ink: #1a2e2c;
  --muted: #5b6b69;
  --accent: #14b8a6;
  --accent-dark: #0f8a82;
  --accent-soft: #e6faf7;
  --border: #e3eceb;
  --shadow: 0 8px 24px rgba(20, 50, 47, 0.08);
  --shadow-raised: 0 16px 36px rgba(20, 50, 47, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.nav-links { display: flex; gap: 22px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #e6faf7 0%, #d4f1ec 100%);
  padding-bottom: 80px;
}
.hero-inner {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 28px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero .accent { color: var(--accent-dark); }
.lede {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: white !important;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
}
.cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.sub {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav-page { margin-bottom: 24px; }
.brand { text-decoration: none !important; }
.eyebrow {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Grid */
.grid, .how {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 28px;
}
.grid h2, .how h2 {
  font-size: 28px;
  margin-bottom: 32px;
  font-weight: 700;
  text-align: center;
}
.grid-sub {
  text-align: center;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: 32px;
  font-size: 15px;
}
.grid-cta {
  text-align: center;
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
}
.deal-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.deal-filter {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
}
.deal-filter span {
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 13px;
  min-width: 24px;
  padding: 2px 6px;
}
.deal-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.deal-filter.active span { background: rgba(255, 255, 255, 0.16); color: #fff; }
.deal-filter:hover { border-color: var(--accent); }
.deal-filter:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.grid-actions, .history-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  font-weight: 600;
}
.quiet-button, .deal-button {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
}
.quiet-button:hover, .deal-button:hover {
  background: #254844;
  transform: translateY(-1px);
}
.quiet-button:focus-visible, .deal-button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}
.deals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.deal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.deal-live { overflow: hidden; padding: 0; transition: box-shadow 0.15s, transform 0.15s; }
.deal-live:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.deal-photo {
  aspect-ratio: 4 / 3;
  background: #dceeed;
  display: block;
  object-fit: cover;
  width: 100%;
}
.deal-photo-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
}
.deal-copy { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.deal-copy h3 { min-height: 64px; }
.deal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.deal-link { font-weight: 600; }
.deal-status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 24px;
  padding: 16px;
  text-align: center;
}
.deal-status[data-kind="ready"] { background: var(--accent-soft); color: var(--ink); }
.deal-status[data-kind="error"] { background: #fff2ec; color: #8d3d18; }
.deal-status[data-kind="empty"] { background: #fff8e7; color: #725117; }
.load-more {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 700;
  margin: 32px auto 0;
  min-height: 48px;
  padding: 12px 20px;
}
.load-more:hover { background: #254844; }
.load-more:disabled { background: #b6c4c2; cursor: not-allowed; }
.load-more:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.deal-emoji { font-size: 36px; margin-bottom: 10px; }
.deal h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
  min-height: 42px;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.price .now {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.price .was {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}
.price .off {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}
.source-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* How it works */
.how ol {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  counter-reset: steps;
}
.how li {
  counter-increment: steps;
  padding: 16px 0 16px 60px;
  position: relative;
  font-size: 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.how li:last-child { border-bottom: none; }
.how li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.how strong { color: var(--ink); }

.subscribe-band {
  align-items: center;
  background: #1a2e2c;
  color: #fff;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin: 0 auto 80px;
  max-width: 1100px;
  padding: 40px;
}
.subscribe-band .eyebrow { color: #7fe1d6; margin-bottom: 8px; }
.subscribe-band h2 { font-size: 28px; line-height: 1.2; max-width: 680px; }
.history-head {
  margin: 48px auto 0;
  max-width: 900px;
  padding: 0 28px;
  text-align: center;
}
.history-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  margin: 12px auto 16px;
  max-width: 820px;
}
.history-head > p:last-of-type { color: var(--muted); font-size: 18px; }
.history-grid { margin-top: 48px; }

/* Documents (privacy/terms/about) */
.doc {
  max-width: 720px;
  margin: 40px auto 80px;
  padding: 0 28px;
}
.doc h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.doc h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}
.doc p, .doc ul, .doc ol {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 16px;
}
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.doc .back { margin-top: 40px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
}
footer p { margin-bottom: 6px; }
footer a { color: var(--muted); margin: 0 6px; }


/* Pinterest landing page */
.join-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e7fbf5 0%, #fff8e9 100%);
}

.join-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 760px;
  min-height: 100vh;
  padding: 32px 24px;
  text-align: center;
}

.join-brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 40px;
}

.join-hero h1 {
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 900;
  line-height: 1;
  margin: 12px 0 22px;
  max-width: 720px;
}

.join-lede {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 620px;
}

.join-cta {
  border-radius: 8px;
  font-size: 20px;
  min-height: 56px;
}

.join-proof {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 44px;
  width: min(100%, 620px);
}

.join-proof div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 12px;
}

.join-proof strong {
  color: var(--ink);
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.join-proof span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .join-proof { grid-template-columns: 1fr; }
  .join-hero { justify-content: flex-start; padding-top: 44px; }
}


@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .hero-inner { margin-top: 24px; }
  .deal-copy h3 { min-height: 0; }
}

@media (max-width: 900px) {
  .deal-filters { justify-content: flex-start; }
  .deals { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .subscribe-band { align-items: flex-start; flex-direction: column; margin-bottom: 64px; padding: 28px 20px; }
  .subscribe-band h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
