/* ──────────────────────────────────────────────────────────────────────────
   PostCraft — landing-page styles.

   Palette is a 1:1 mirror of `mobile/src/theme/colors.ts`. Type is `Inter`
   for UI + `Fraunces` for the editorial display moments (matches the
   stylish-serif feel the in-app flyer mockups use).
   ────────────────────────────────────────────────────────────────────── */

:root {
  --cream: #faf6ed;
  --cream-soft: #fffaf0;
  --gold: #c89b3c;
  --gold-soft: #f4e7c2;
  --deep-green: #1f6b3a;
  --deep-green-soft: #d8ebde;
  --whatsapp: #25d366;
  --charcoal: #1f1f1f;
  --charcoal-soft: #3a3a3a;
  --muted: #7a7466;
  --muted-light: #a6a094;
  --border: #e8dfd0;
  --white: #ffffff;
  --danger: #c0392b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 2px 8px rgba(31, 31, 31, 0.06);
  --shadow-lift: 0 16px 40px rgba(31, 31, 31, 0.12);
}

/* ── Reset & base ──────────────────────────────────────────────────── */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--deep-green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  color: var(--charcoal-soft);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-green);
}

.under {
  background-image: linear-gradient(transparent 70%, var(--gold-soft) 70%);
  background-repeat: no-repeat;
  padding: 0 4px;
}

h1 em {
  font-style: italic;
  color: var(--deep-green);
}

/* ── Layout helpers ────────────────────────────────────────────────── */

.nav,
.hero,
.strip,
.features,
.how,
.pricing,
.faq,
.cta,
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section {
  scroll-margin-top: 80px;
}

.section-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 640px;
}

.section-head h2 {
  margin-top: 8px;
}

/* ── Brand wordmark ────────────────────────────────────────────────── */

.brand-post {
  color: var(--deep-green);
  font-weight: 800;
}

.brand-craft {
  color: var(--gold);
  font-weight: 800;
}

.leaf {
  flex: none;
}

/* ── Nav ───────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  position: sticky;
  top: 0;
  background: rgba(250, 246, 237, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  color: var(--charcoal);
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  color: var(--charcoal-soft);
}

.nav__links a:hover {
  color: var(--deep-green);
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--deep-green);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: #195b30;
  box-shadow: var(--shadow-lift);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
}

.btn--ghost:hover {
  background: var(--cream-soft);
}

.btn--outline {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--charcoal);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}

.btn--xl {
  padding: 16px 32px;
  font-size: 16px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(48px, 8vw, 96px);
}

.hero__copy h1 {
  margin: 12px 0 20px;
}

.hero__copy .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__meta .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__phone {
  display: flex;
  justify-content: center;
}

.hero__phone svg {
  width: min(320px, 100%);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(31, 31, 31, 0.18));
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__phone {
    order: -1;
  }
  .hero__phone svg {
    width: min(260px, 80%);
  }
}

/* ── Trust strip ───────────────────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.strip p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  padding: 0;
}

.strip li {
  font-size: 14px;
  color: var(--charcoal-soft);
  font-weight: 500;
}

.strip li + li::before {
  content: '·';
  margin-right: 22px;
  color: var(--muted-light);
}

/* The bullet styling above puts a `·` before every-other li; reset the
   first child since flex-gap already separates them visually. */
.strip li::before {
  content: '';
  margin-right: 0;
}

/* ── Features ──────────────────────────────────────────────────────── */

.features,
.how,
.pricing,
.faq {
  padding-block: clamp(56px, 8vw, 96px);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--deep-green-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
}

.feature p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ── How it works ──────────────────────────────────────────────────── */

.how {
  background: linear-gradient(180deg, transparent, var(--cream-soft));
  border-radius: 36px;
  margin-block: 24px;
}

.how__steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.how__steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--deep-green);
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.how__steps h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  margin-bottom: 8px;
}

.how__steps p {
  font-size: 14.5px;
  color: var(--muted);
}

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

/* ── Pricing ───────────────────────────────────────────────────────── */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.plan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.plan h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plan--pro {
  background: linear-gradient(180deg, var(--cream-soft), var(--gold-soft));
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(200, 155, 60, 0.18);
}

.plan--pro h3 {
  color: var(--deep-green);
}

.plan__price {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.plan__price span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.plan ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: 4px 20px;
  flex: 1;
}

.plan li {
  font-size: 14.5px;
  color: var(--charcoal-soft);
  padding-left: 26px;
  position: relative;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--deep-green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%231F6B3A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

.plan--pro li::before {
  background-color: var(--white);
}

.badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

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

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  transition: box-shadow 0.18s ease;
}

.faq details[open] {
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--deep-green);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '–';
  transform: rotate(180deg);
}

.faq details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── Final CTA ─────────────────────────────────────────────────────── */

.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--cream-soft), var(--gold-soft));
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 64px);
  margin-block: 48px;
}

.cta h2 {
  max-width: 720px;
  margin: 0 auto 12px;
}

.cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.cta__small {
  font-size: 13px;
  color: var(--muted-light);
}

/* ── Footer ────────────────────────────────────────────────────────── */

.foot {
  padding-block: 32px 48px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot nav a {
  color: var(--charcoal-soft);
}

.foot nav a:hover {
  color: var(--deep-green);
}

/* ── Legal pages (Privacy / Terms) ─────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 80px);
  /* Long-form reading text — wider line-height, looser tracking */
  line-height: 1.7;
}

.legal__head {
  text-align: left;
  margin-bottom: 40px;
}

.legal__head h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 8px 0 12px;
}

.legal__meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.legal section + section {
  margin-top: 32px;
}

.legal h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.legal p,
.legal li {
  color: var(--charcoal-soft);
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.legal ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.legal li {
  margin: 4px 0;
}

.legal strong {
  color: var(--charcoal);
  font-weight: 700;
}

.legal em {
  color: var(--deep-green);
  font-style: normal;
  font-weight: 600;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The "short version" callout — bordered, cream-soft, like a pull quote. */
.legal__tldr {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--deep-green);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0 32px;
}

.legal__tldr h2 {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-green);
}

.legal__tldr ul {
  margin: 0;
}

/* Processors table on the Privacy page — scrolls horizontally if it has to. */
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.legal__table thead {
  background: var(--cream-soft);
}

.legal__table th,
.legal__table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--charcoal-soft);
}

.legal__table th {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Reduce motion ─────────────────────────────────────────────────── */

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