/* ==========================================================================
   Simple PnL — Marketing Site Styles
   ========================================================================== */

:root {
  --color-green: #1B3A2D;
  --color-green-dark: #142B21;
  --color-cream: #FAF8F3;
  --color-gold: #D4930A;
  --color-gold-dark: #B67C08;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-muted: #6E6B62;

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-width: 1160px;
  --radius: 12px;
  --shadow-card: 0 2px 6px rgba(27, 58, 45, 0.06), 0 1px 2px rgba(27, 58, 45, 0.05);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-green-dark);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-green-dark);
  box-shadow: 0 4px 14px rgba(212, 147, 10, 0.35);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 147, 10, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-disabled {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
  pointer-events: none;
}

/* ---- Wordmark ---- */
.wordmark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--color-white);
}
.wordmark-accent {
  color: var(--color-gold);
}
.wordmark-footer {
  color: var(--color-white);
  font-size: 1.4rem;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.nav-toggle-bar {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: var(--header-height, 64px);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height, 64px));
  z-index: 120;
  background: var(--color-green);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.primary-nav a {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-gold);
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    flex-direction: row;
    height: auto;
    overflow: visible;
    background: transparent;
    gap: 2rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    transition: none;
  }
  .primary-nav a {
    padding: 0;
    border-top: none;
  }
}

/* ---- Hero ---- */
.hero {
  background: var(--color-green);
  padding-block: 4.5rem 5rem;
}
.hero-inner {
  max-width: 760px;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-sub {
  color: rgba(250, 248, 243, 0.85);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  max-width: 620px;
}
.hero .btn {
  margin-top: 2.25rem;
}
.hero-note {
  color: rgba(250, 248, 243, 0.65);
  font-size: 0.9rem;
  margin-top: 0.9rem;
}

/* ---- Why I built this ---- */
.why-built {
  background: var(--color-white);
  padding-block: 4.5rem;
  border-bottom: 1px solid rgba(27, 58, 45, 0.08);
}
.why-built-inner {
  max-width: 700px;
}
.why-built h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.why-built p {
  color: var(--color-muted);
  font-size: 1.05rem;
}
.why-built p + p {
  margin-top: 1.25rem;
}

/* ---- Features ---- */
.features {
  padding-block: 5rem;
}
.features h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 620px;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
}
.feature-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.features-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 1rem;
}

/* ---- How it works ---- */
.how-it-works {
  background: var(--color-white);
  padding-block: 5rem;
}
.how-it-works h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  text-align: center;
  padding-inline: 0.5rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-gold);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 320px;
  margin-inline: auto;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--color-cream);
  padding-block: 5rem;
  border-top: 1px solid rgba(27, 58, 45, 0.08);
}
.cta-band-inner {
  text-align: center;
  max-width: 560px;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cta-band p {
  color: var(--color-muted);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-green);
  padding-block: 3rem 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}
.footer-tagline {
  color: rgba(250, 248, 243, 0.7);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}
.footer-contact {
  color: var(--color-gold);
  font-weight: 700;
  align-self: flex-start;
}
.footer-contact:hover {
  color: var(--color-white);
}
.footer-contact-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-contact { align-self: center; }
}

.footer-copy {
  color: rgba(250, 248, 243, 0.55);
  font-size: 0.85rem;
}
