/* ===========================================================================
   Profit Calc — Marketing styles
   Aligned with the app / onboarding aesthetic:
   soft grey canvas, white dashboard-style cards, dark slate controls,
   muted greens reserved for profit / status accents only.
   =========================================================================== */

:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --muted-soft: #6c757d;
  --line: #dfe4e8;
  --line-strong: #d6dae2;
  --accent: #212529;
  --accent-hover: #111111;
  --accent-soft: #f3f4f6;
  --highlight: #f7f7f7;
  --positive: #4f8f6d;
  --positive-deep: #3f7459;
  --positive-soft: #e6f5ed;
  --positive-border: #b7ddd0;
  --warm: #f0a830;
  --slate: #343a40;
  --slate-border: #393e44;
  --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 28px rgba(17, 17, 17, 0.10);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  letter-spacing: -0.02em;
}

/* ----- Shell ----------------------------------------------------------- */

.marketing-shell {
  width: min(1200px, calc(100% - 36px));
  margin: 20px auto 56px;
}

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

.marketing-header {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 170px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.top-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.86rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.top-nav a:hover {
  background: var(--accent-soft);
  border-color: var(--line-strong);
}

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

.hero-section,
.content-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-section {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  padding: 36px;
  background: linear-gradient(168deg, #ffffff 0%, #f5f7f9 100%);
  overflow: hidden;
  position: relative;
}

.hero-content h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.08rem;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 800;
  transition: background 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 10px 20px rgba(33, 37, 41, 0.16);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.22);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.top-nav a:focus-visible,
.brand-link:focus-visible,
.link-card:focus-visible,
.proof-link:focus-visible,
.faq-item summary:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(79, 143, 109, 0.45);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.content-section .btn-secondary,
.price-card .btn-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.trust-line,
.proof-line {
  margin: 14px 0 0;
  color: var(--muted-soft);
  font-size: 0.92rem;
}

/* ----- Hero panel (dashboard-style insight card) ----------------------- */

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.hero-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.hero-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.metrics,
.bullet-list,
.step-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.metrics li {
  margin: 9px 0;
  color: var(--ink);
  position: relative;
  list-style: none;
  padding-left: 26px;
  font-weight: 600;
}

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

.bullet-list li,
.step-list li,
.small-bullets li {
  margin: 7px 0;
  color: var(--muted);
}

.hero-panel-points {
  padding-left: 0;
}

.hero-panel-points li {
  list-style: none;
  padding-left: 26px;
}

.hero-shot {
  width: 100%;
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ----- Content sections ------------------------------------------------ */

.content-section {
  margin-top: 18px;
  padding: 32px;
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.18;
  font-weight: 800;
}

.section-intro {
  margin-top: 0;
  color: var(--muted);
}

/* ----- Proof banner ---------------------------------------------------- */

.proof-banner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
  background: var(--panel);
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-badge {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  background: #ffffff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-value {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.05;
}

.stat-label {
  display: block;
  margin-top: 5px;
  color: var(--muted-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-copy p {
  margin: 0;
  font-size: 1.02rem;
}

.proof-link {
  margin-top: 8px;
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--positive);
  padding-bottom: 1px;
}

.proof-link:hover {
  color: var(--accent-hover);
}

/* ----- Grids & cards --------------------------------------------------- */

.card-grid,
.pricing-grid,
.quote-grid,
.link-grid,
.split-grid,
.image-grid {
  display: grid;
  gap: 14px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.quote-grid,
.link-grid,
.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.money-row-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.money-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
}

.money-row + .money-row {
  border-top: 1px solid var(--line);
}

.money-row:first-child {
  background: var(--highlight);
}

.money-row:last-child {
  background: var(--positive-soft);
}

.money-row h3,
.info-card h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.money-row p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card h3 + p {
  margin-top: 8px;
}

.money-image-grid {
  grid-template-columns: minmax(0, 1fr);
}

.image-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.image-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.image-card:hover img {
  transform: scale(1.02);
}

.image-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card,
.price-card,
.quote-card,
.link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease;
}

.info-card:hover,
.quote-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.link-title {
  display: block;
  color: var(--ink);
  font-size: 1.07rem;
}

.link-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 40ch;
}

.quote-stars {
  color: var(--warm);
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.quote-card p {
  margin: 0;
  font-size: 1.03rem;
  color: var(--ink);
}

.quote-card cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.quote-card small {
  color: var(--muted-soft);
}

/* ----- Pills ----------------------------------------------------------- */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

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

.price {
  margin: 12px 0 6px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.limit,
.trial {
  margin: 0;
  color: var(--muted);
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card h3 {
  font-weight: 800;
  color: var(--ink);
}

.small-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
}

.small-bullets li {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card .btn-secondary {
  margin-top: auto;
}

.pricing-footer {
  margin-top: 16px;
}

/* ----- FAQ ------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.faq-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
}

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

.faq-item summary::before {
  content: '';
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ----- Comparison table ------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
}

.compare-table thead th {
  background: var(--slate);
  border-color: var(--slate-border);
  color: #ffffff;
  font-weight: 800;
}

.compare-table tbody tr:nth-child(even) td {
  background: var(--highlight);
}

.money-example caption {
  text-align: left;
  font-weight: 800;
  padding-bottom: 12px;
}

.money-example td {
  text-align: right;
  white-space: nowrap;
}

/* ----- Final CTA ------------------------------------------------------- */

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(79, 143, 109, 0.08), transparent 58%),
    #ffffff;
}

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

.marketing-footer {
  margin-top: 22px;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

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

/* ----- Reveal animations ----------------------------------------------- */

.has-reveal .reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.has-reveal .reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ------------------------------------------------------ */

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .proof-banner {
    grid-template-columns: 1fr;
  }

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

  .money-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

@media (max-width: 700px) {
  .marketing-header {
    position: sticky;
    top: 8px;
    z-index: 30;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .marketing-shell {
    width: calc(100% - 20px);
    margin: 12px auto 34px;
  }

  .marketing-header {
    padding: 10px 12px;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 12px;
  }

  .brand-logo {
    width: 142px;
    height: auto;
  }

  .hero-section,
  .content-section {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .hero-section {
    gap: 16px;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .top-nav {
    width: 100%;
    gap: 8px;
  }

  .top-nav a {
    padding: 7px 11px;
    font-size: 0.8rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .cta-row {
    gap: 9px;
    margin-top: 16px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }

  .trust-line,
  .proof-line {
    margin-top: 10px;
    font-size: 0.88rem;
  }

  .proof-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-badge {
    padding: 11px 9px;
  }

  .content-section {
    margin-top: 12px;
  }

  .content-section h2 {
    margin-bottom: 10px;
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  .card-grid,
  .pricing-grid,
  .quote-grid,
  .link-grid,
  .split-grid,
  .image-grid {
    gap: 10px;
  }

  .info-card,
  .price-card,
  .quote-card,
  .link-card {
    padding: 15px;
    border-radius: var(--radius-md);
  }

  .link-card {
    min-height: 88px;
    justify-content: center;
  }

  .pill-grid {
    gap: 8px;
  }

  .pill {
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .image-card figcaption {
    padding: 10px 11px;
    font-size: 0.84rem;
  }

  .faq-item {
    padding: 11px 12px;
    border-radius: 8px;
  }

  .faq-item summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .proof-link {
    margin-top: 8px;
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .price-card .btn-secondary {
    min-height: 48px;
    width: 100%;
  }

  .pricing-footer {
    display: flex;
    justify-content: center;
  }

  .pricing-footer .btn-primary,
  .content-section.final-cta .btn-primary {
    max-width: 340px;
    margin: 0 auto;
  }

  .marketing-footer {
    margin-top: 16px;
    justify-content: flex-start;
  }

  .footer-links {
    width: 100%;
    gap: 8px;
  }

  .footer-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal-ready,
  .btn-primary,
  .btn-secondary,
  .image-card img,
  .link-card {
    transition: none !important;
  }

  .has-reveal .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
}
