/* Postgalo — shared styles for every page */

:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-alt: #f4eee6;
  --ink: #1c1917;
  --muted: #5c5650;
  --line: #e7dfd5;
  --accent: #c43d22;
  --accent-hover: #a8331b;
  --accent-soft: #fbe9e2;
  --ok: #2f7d4b;
  --radius: 18px;
  --max: 1100px;
  --gutter: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

svg {
  display: block;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 244, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }
}

/* ---------- Cards and grids ---------- */

.grid-2,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.card p {
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 104px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero .pill {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-promise {
  max-width: 32em;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Illustrative "post ready to approve" card. Decorative only. */

.mock {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: center;
}

.mock-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 40px 70px -36px rgba(80, 36, 12, 0.4),
    0 10px 24px -14px rgba(80, 36, 12, 0.2);
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-tag {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-type {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.mock-title {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mock-source {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.mock-slides {
  display: grid;
  grid-template-columns: 1fr 0.45fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 210px;
  margin-top: 16px;
}

.slide {
  border-radius: 14px;
}

.slide-main {
  grid-row: span 2;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(160deg, #f0a58b 0%, #c43d22 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
}

.slide-b {
  background: linear-gradient(160deg, #f7d9c8, #e8a487);
}

.slide-c {
  background: linear-gradient(160deg, #efe4d6, #d6bd9f);
}

.mock-lines span {
  display: block;
  height: 9px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--surface-alt);
}

.mock-lines span:first-child {
  margin-top: 16px;
}

.mock-lines span:last-child {
  width: 64%;
}

.mock-approve {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.mock-chip {
  position: absolute;
  top: -16px;
  left: -22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 24px -14px rgba(80, 36, 12, 0.35);
  font-size: 0.86rem;
  font-weight: 650;
}

.mock-chip .check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
}

.mock-chip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .mock-chip {
    left: 12px;
  }
}

/* ---------- Problem ---------- */

.cost {
  margin-top: 20px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.cost-label {
  margin-bottom: 18px;
  color: #f4a891;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 650;
}

.chain li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chain li + li::before {
  content: "→";
  color: #f4a891;
}

.chain li:last-child {
  font-style: italic;
}

.cost-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
  .cost {
    padding: 24px;
  }

  .chain {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .chain li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .chain li + li::before {
    content: "↓";
  }
}

/* ---------- How it works ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
}

.step:last-child .step-num {
  background: var(--accent);
}

/* ---------- Who it's for ---------- */

.segment-examples {
  margin-bottom: 20px;
}

.segment dl {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.segment dt {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 750;
}

.segment dd {
  margin: 2px 0 16px;
  color: var(--muted);
}

.segment dd:last-child {
  margin-bottom: 0;
}

.note {
  max-width: 680px;
  margin-top: 32px;
  color: var(--muted);
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.price-amount {
  color: var(--ink);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-period {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c43d22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.pilot-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pilot-card .pill {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4a891;
}

.pilot-card h3 {
  font-size: 1.6rem;
}

.pilot-card p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.pilot-card .btn {
  margin-top: auto;
}

@media (max-width: 760px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
}

.contact .section-head {
  margin: 0 auto;
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--accent-hover);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-inner .logo {
  color: var(--ink);
}

.footer-operator {
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 32px;
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 12px 0 36px;
  color: var(--muted);
}

.legal-summary {
  margin: 0 0 28px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.prose .legal-summary h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 1.4rem;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-hover);
}

.legal-summary ul {
  margin-bottom: 0;
}

.legal-summary li:last-child {
  margin-bottom: 0;
}

.option {
  margin: 20px 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.option h2 {
  margin-top: 0;
}

.option > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .legal {
    padding: 44px 0 72px;
  }

  .option {
    padding: 20px;
  }
}
