/* ============================================================
   Pinbloom marketing site: design tokens
   Palette: deep espresso ground, warm cork + aged-paper surfaces,
   ochre/forest/rust accents pulled from the app's own pin colors.
   Type: Playfair Display (the app's real display face) for
   headlines, Figtree for body, and Kalam, the app's original
   display font before it switched to Playfair, repurposed here
   as the handwritten caption voice on pinned notes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Figtree:wght@400;500;600;700&family=Kalam:wght@400;700&display=swap');

:root {
  --ink: #241b14;
  --ink-soft: #3a2d21;
  --paper: #ece2cc;
  --paper-dim: #d8cbad;
  --cork: #b2824e;
  --cork-dark: #8f6539;
  --ochre: #c6922f;
  --ochre-bright: #e0ab45;
  --forest: #45614a;
  --rust: #a9452c;
  --cream-ink: #2a2015;
  --line: rgba(236, 226, 204, 0.14);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Kalam", "Comic Sans MS", cursive;

  color-scheme: dark;
}

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }

a { color: var(--ochre-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(36, 27, 20, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--paper);
}

.brand .pin-mark {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ochre-bright), var(--rust) 75%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--paper-dim);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--paper); text-decoration: none; }
.nav-links a.active { color: var(--ochre-bright); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--ochre);
  color: #1c140d;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--cork-dark);
  transition: transform 0.12s ease;
}
.btn:hover { background: var(--ochre-bright); text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper-dim);
  box-shadow: none;
}
.btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ---------------- Hero ---------------- */
.hero {
  padding-block: 64px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  font-family: var(--font-hand);
  color: var(--ochre-bright);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 6px;
  transform: rotate(-1.5deg);
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--ochre-bright);
}

.hero-copy p.lede {
  color: var(--paper-dim);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- The corkboard panel ---------------- */
.cork-frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 6px;
  padding: 10px;
  background: var(--cork-dark);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.hero-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.cork-surface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--cork);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.10) 0, transparent 3%),
    radial-gradient(circle at 70% 8%, rgba(0,0,0,0.14) 0, transparent 3%),
    radial-gradient(circle at 35% 55%, rgba(255,255,255,0.08) 0, transparent 2.5%),
    radial-gradient(circle at 85% 40%, rgba(0,0,0,0.12) 0, transparent 3%),
    radial-gradient(circle at 55% 80%, rgba(255,255,255,0.09) 0, transparent 2.5%),
    radial-gradient(circle at 20% 85%, rgba(0,0,0,0.13) 0, transparent 3%),
    radial-gradient(circle at 90% 75%, rgba(255,255,255,0.07) 0, transparent 2.5%);
  background-size: 140px 140px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.35);
}

.pinned {
  position: absolute;
  box-shadow: 0 10px 18px rgba(0,0,0,0.4);
}

.pinned::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 13px; height: 13px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #fff, var(--pin-color, var(--rust)) 60%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.55);
  z-index: 2;
}

.polaroid {
  background: var(--paper);
  padding: 8px 8px 30px;
  width: 42%;
  border-radius: 2px;
}

.polaroid .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1px;
}

.polaroid figcaption {
  font-family: var(--font-hand);
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 6px;
}

.sticky {
  background: var(--ochre-bright);
  color: var(--ink);
  padding: 14px;
  width: 34%;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  line-height: 1.3;
  border-radius: 1px;
}

.sticky.alt { background: #e8c468; }

.index-note {
  background: var(--paper);
  color: var(--ink-soft);
  width: 38%;
  padding: 10px 12px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 17px, rgba(36,27,20,0.08) 18px
  );
}

.index-note .tag {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--forest);
  display: block;
  margin-bottom: 3px;
}

.index-note p {
  margin: 0;
  font-size: 0.82rem;
}

.washi {
  position: absolute;
  width: 70px;
  height: 22px;
  background: repeating-linear-gradient(
    45deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55) 6px,
    rgba(201,146,47,0.55) 6px, rgba(201,146,47,0.55) 12px
  );
  opacity: 0.85;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* photo placeholders (gradients standing in for real screenshots) */
.photo.p1 { background: linear-gradient(135deg, #7d9a7f, #3f5c43); }
.photo.p2 { background: linear-gradient(135deg, #c98b5a, #8a4e2c); }

/* ---------------- Sections ---------------- */
section { padding-block: 60px; }

.section-head {
  max-width: 540px;
  margin-bottom: 44px;
}

.section-head .eyebrow {
  font-family: var(--font-hand);
  color: var(--ochre-bright);
  font-size: 1.05rem;
  transform: rotate(-1deg);
  display: inline-block;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p { color: var(--paper-dim); margin-top: 10px; }

/* ---------------- Feature index cards ---------------- */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  padding: 26px 22px 24px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 21px, rgba(36,27,20,0.07) 22px
  );
}

.feature-card:nth-child(odd) { transform: rotate(-1.1deg); }
.feature-card:nth-child(even) { transform: rotate(1.1deg); }

.feature-card::before {
  content: "";
  position: absolute;
  top: -8px; left: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pin, var(--ochre)) 60%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.45);
}

.feature-card:nth-child(1) { --pin: var(--rust); }
.feature-card:nth-child(2) { --pin: var(--forest); }
.feature-card:nth-child(3) { --pin: var(--ochre); }
.feature-card:nth-child(4) { --pin: var(--forest); }
.feature-card:nth-child(5) { --pin: var(--rust); }
.feature-card:nth-child(6) { --pin: var(--ochre); }

.feature-card svg {
  width: 30px; height: 30px;
  stroke: var(--ink-soft);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.feature-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------------- Final CTA ---------------- */
.cta-panel {
  background: var(--ink-soft);
  border-radius: 6px;
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--line);
}

.cta-panel h2 { margin-bottom: 10px; }
.cta-panel p { color: var(--paper-dim); margin-bottom: 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  margin-top: 32px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--paper-dim);
  font-size: 0.88rem;
}

footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .footer-links a { color: var(--paper-dim); }
footer .footer-links a:hover { color: var(--ochre-bright); }

/* ---------------- Pricing ---------------- */
.toggle-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.save-pill {
  background: var(--forest);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 34px 28px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.38);
}

.price-card::before {
  content: "";
  position: absolute;
  top: -8px; left: 32px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pin, var(--forest)) 60%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.45);
}

.price-card.highlight::before { --pin: var(--ochre); }
.price-card:first-child { transform: rotate(-0.8deg); }
.price-card.highlight { transform: rotate(0.8deg); }

.badge {
  position: absolute;
  top: 18px; right: 20px;
  background: var(--ochre);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.price-card h3 { font-family: var(--font-display); font-style: italic; margin-bottom: 4px; font-size: 1.3rem; }
.price-card .tier-sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 22px; }

.price-amount { font-size: 2.3rem; font-weight: 700; font-family: var(--font-body); margin-bottom: 2px; }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-period { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 24px; }

.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 0.93rem; align-items: flex-start; }
.price-card li .check { color: var(--forest); font-weight: 700; flex-shrink: 0; }

/* ---------------- Legal pages ---------------- */
.legal-page {
  padding-block: 48px 90px;
}

.legal-sheet {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 48px clamp(24px, 6vw, 64px) 64px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.legal-sheet h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin-bottom: 4px;
}

.legal-sheet .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.legal-sheet .intro-note {
  background: rgba(169, 69, 43, 0.08);
  border-left: 4px solid var(--rust);
  border-radius: 2px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 28px 0 36px;
}

.legal-sheet h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 38px;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(36,27,20,0.12);
}

.legal-sheet h2:first-of-type { border-top: none; padding-top: 0; }

.legal-sheet h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-sheet p, .legal-sheet li { color: var(--ink-soft); font-size: 0.97rem; }
.legal-sheet ul { padding-left: 20px; }
.legal-sheet li { margin-bottom: 6px; }
.legal-sheet a { color: var(--cork-dark); font-weight: 600; }
.legal-sheet strong { color: var(--ink); }

.legal-sheet .table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid rgba(36,27,20,0.14);
  border-radius: 3px;
}

.legal-sheet table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 0.88rem;
}

.legal-sheet th, .legal-sheet td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(36,27,20,0.1);
  vertical-align: top;
}

.legal-sheet th {
  background: rgba(36,27,20,0.05);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
}

.legal-sheet tr:last-child td { border-bottom: none; }

.legal-toc {
  margin: 24px 0 8px;
  padding: 18px 20px;
  background: rgba(36,27,20,0.05);
  border-radius: 3px;
  font-size: 0.88rem;
  columns: 2;
  column-gap: 24px;
}
.legal-toc a { display: block; color: var(--cork-dark); margin-bottom: 6px; break-inside: avoid; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cork-frame { max-width: 440px; margin: 0 auto; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features-row { grid-template-columns: 1fr; }
  .nav-links { width: 100%; justify-content: center; order: 3; }
  .legal-toc { columns: 1; }
  .pricing-grid { grid-template-columns: 1fr; }
}
