/* Payahead — getpayahead.com
   Brand: navy #14304F, teal #1F6F5C, gold #F2A33A, cream #FBF7EF */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14304F;
  --teal: #1F6F5C;
  --teal-dark: #165A4B;
  --teal-soft: #E7F2EE;
  --gold: #F2A33A;
  --gold-soft: #FDF0DC;
  --cream: #FBF7EF;
  --cream-2: #F1EBE0;
  --white: #ffffff;
  --text: #14304F;
  --muted: #3E4C59;
  --line: rgba(20, 48, 79, 0.12);
  --shadow: 0 12px 36px rgba(20, 48, 79, 0.10);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --radius: 16px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }

a:hover { color: var(--teal-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--cream);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Promo banner */
.promo {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.promo p { margin: 0; }

.promo-code {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.05em 0.5em;
  border-radius: 4px;
  white-space: nowrap;
}

.promo-code-inline {
  padding: 0.02em 0.4em;
  font-size: 0.9em;
  vertical-align: 1px;
}

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

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

.nav-shop {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
}

.nav-shop:hover { background: var(--teal-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(20, 48, 79, 0.04);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #e39428;
  border-color: #e39428;
  color: var(--navy);
}

.gold-rule {
  width: 3.5rem;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 1.15rem;
}

/* Hero */
.hero {
  padding: 3.25rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-logo {
  height: 72px;
  width: auto;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-cover-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-cover { width: 100%; }

/* Free planner */
.planner {
  background: var(--teal-soft);
  padding: 4.25rem 0;
  border-block: 1px solid rgba(31, 111, 92, 0.12);
}

.planner-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.planner-art img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.01em;
}

.pill-free {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.planner h2,
.templates h2,
.about h2,
.faq h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
}

.planner-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.planner-copy .btn { margin: 0.35rem 0 0.25rem; }

.beehiiv-slot {
  margin-top: 1.6rem;
  padding: 1.1rem 1.2rem;
  border: 2px dashed var(--teal);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.beehiiv-label {
  margin: 0 0 0.35rem !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark) !important;
}

.beehiiv-note {
  margin: 0 !important;
  font-size: 0.9375rem;
}

/* Templates */
.templates { padding: 4.5rem 0 4.75rem; }

.section-head { max-width: 40rem; margin-bottom: 2.25rem; }

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20, 48, 79, 0.05);
}

.card-image { position: relative; background: var(--cream); }

.card-image img { width: 100%; }

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20, 48, 79, 0.12);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.2rem 1.35rem 1.4rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.5;
}

.card-cta {
  margin-top: auto;
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}

.was {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 0.3rem;
}

/* About */
.about {
  background: var(--white);
  padding: 4.25rem 0;
  border-block: 1px solid var(--line);
}

.about-inner { max-width: 42rem; }

.about-blurb {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.bio {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}

.bio p {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-weight: 600;
}

.bio p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { padding: 4.25rem 0 4.75rem; }

.faq-inner { max-width: 44rem; }

.faq-list { margin-top: 0.5rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  padding: 0.95rem 1.75rem 0.95rem 0;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  padding-right: 1.5rem;
}

.faq code {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95em;
  background: var(--cream-2);
  padding: 0.05em 0.4em;
  border-radius: 4px;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #E8E4DC;
  padding: 3.25rem 0 2.75rem;
  text-align: center;
}

.footer-inner { max-width: 36rem; }

.footer-brand {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-inline: auto;
}

.site-footer p { margin: 0.35rem 0; }

.footer-byline {
  margin-top: 1.15rem !important;
  font-weight: 700;
  color: var(--cream);
  font-size: 1.05rem;
}

.site-footer a {
  color: #A8D5C8;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover { color: var(--gold); }

.footer-disclaimer {
  margin-top: 0.85rem !important;
  font-size: 0.9375rem;
  color: #C9C3B8;
}

.footer-copy {
  margin-top: 0.85rem !important;
  font-size: 0.875rem;
  color: #A39C90;
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid,
  .planner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero { padding: 2.25rem 0 3rem; }

  .hero-logo { height: 58px; margin-bottom: 1.15rem; }

  .hero-art { order: 0; }
  /* keep copy first in source; art below on mobile — default order is fine */

  .cards { grid-template-columns: 1fr; }

  .planner, .templates, .about, .faq {
    padding-block: 3.25rem;
  }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--wrap), calc(100% - 1.75rem)); }

  .promo { font-size: 0.8125rem; padding: 0.65rem 0.9rem; }

  .brand img { height: 38px; }

  .nav { gap: 0.15rem 0.85rem; }

  .nav a { font-size: 0.875rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .hero-actions .btn { width: 100%; }

  .card-cta { flex-direction: column; align-items: stretch; }

  .card-cta .btn { width: 100%; }

  .planner-copy .btn { width: 100%; }
}

@media (min-width: 881px) {
  /* On desktop, make the Bundle the lead card spanning the row
     so the remaining three sit evenly below. */
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  .card-featured .card-body {
    padding: 1.75rem 1.85rem;
    justify-content: center;
  }

  .card-featured h3 { font-size: 1.5rem; }

  .card-featured .card-body > p { font-size: 1.05rem; }

  .card-featured .card-cta { margin-top: 1.5rem; }
}
