/* Profit AI Blueprint — profitaiblueprint.pro */
:root {
  --navy: #1E3A5F;
  --mint: #5EEAD4;
  --ivory: #FFFBEB;
  --amber: #D97706;
  --mint-bg: #F0FDFA;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-width: 72rem;
  --grid-line: rgba(30, 58, 95, 0.12);
  --transition: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

a:hover { color: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }

/* Surfaces */
.surface-dark {
  background: var(--navy);
  color: var(--ivory);
}

.surface-light {
  background: var(--ivory);
  color: var(--navy);
}

.surface-accent {
  background: var(--amber);
  color: var(--ivory);
}

.surface-mint {
  background: var(--mint-bg);
  color: var(--navy);
}

/* Grid background pattern */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

.surface-dark.grid-bg {
  --grid-line: rgba(255, 251, 235, 0.08);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--mint);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--grid-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--mint);
  color: inherit;
}

.surface-dark .main-nav a[aria-current="page"] { border-bottom-color: var(--mint); }
.surface-light .main-nav a[aria-current="page"] { border-bottom-color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid currentColor;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: inherit;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--grid-line);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header { position: relative; }
}

/* Hero Pattern A — Editorial Spotlight */
.hero-editorial {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem clamp(1.5rem, 5vw, 4rem);
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--mint);
}

.hero-serial {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  opacity: 0.75;
}

.hero-content h1 { margin-bottom: 1.25rem; }

.hero-lead {
  font-size: 1.15rem;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.hero-caption {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  opacity: 0.85;
}

.hero-divider { display: none; }

.disclaimer-box {
  border-left: 4px solid var(--amber);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  border-radius: 0 4px 4px 0;
}

.method-steps { margin: 1rem 0 0 1.25rem; }
.method-steps li { margin-bottom: 0.5rem; }

.hero-portrait {
  position: relative;
  border-left: 3px solid var(--mint);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-portrait {
    border-left: none;
    border-top: 3px solid var(--mint);
    min-height: 50vh;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--mint);
  color: var(--navy);
  border-color: var(--mint);
}

.btn-primary:hover {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--ivory);
}

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-outline:hover {
  background: var(--mint);
  color: var(--navy);
  border-color: var(--mint);
}

/* Blueprint sheet cards */
.sheet-card {
  border: 1px solid var(--grid-line);
  padding: 1.75rem;
  position: relative;
  background: var(--ivory);
}

.surface-dark .sheet-card {
  background: rgba(255, 251, 235, 0.06);
  border-color: rgba(255, 251, 235, 0.15);
}

.sheet-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.module-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.75rem;
}

.surface-light .module-label { color: var(--navy); opacity: 0.7; }

.sheet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--amber));
}

/* Layout sections */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.section-serial {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--grid-line);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 { margin-bottom: 0.75rem; }

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.breadcrumb a { text-decoration: none; }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  border-bottom: 1px solid var(--grid-line);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after { content: "−"; }

.faq-answer {
  padding: 0 0 1.25rem;
  display: none;
}

.faq-item.is-open .faq-answer { display: block; }

/* Forms — light surface only */
.form-surface {
  background: var(--ivory);
  color: var(--navy);
  padding: 2rem;
  border: 1px solid var(--grid-line);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--grid-line);
  background: #fff;
  color: var(--navy);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.form-check input { width: auto; margin-top: 0.25rem; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* Contact info block */
.contact-block {
  padding: 1.5rem;
  border-left: 3px solid var(--amber);
}

.contact-block dt {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

.contact-block dt:first-child { margin-top: 0; }

.contact-block dd {
  margin: 0.25rem 0 0;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--grid-line);
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li { margin-bottom: 0.4rem; }

.footer-nav a { text-decoration: none; }

.footer-disclaimer {
  font-size: 0.82rem;
  opacity: 0.85;
  border-top: 1px solid var(--grid-line);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Legal prose */
.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--grid-line);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-content th { background: var(--mint-bg); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Thanks page */
.thanks-box {
  max-width: 32rem;
  margin: 4rem auto;
  padding: 2.5rem;
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 1.5rem;
  border-top: 2px solid var(--mint);
  box-shadow: 0 -4px 24px rgba(30, 58, 95, 0.15);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-text { flex: 1; min-width: 220px; font-size: 0.92rem; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.cookie-panel {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--grid-line);
  margin-top: 0.5rem;
}

.cookie-panel[hidden] { display: none !important; }

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Reveal animation — only with .js class */
.js .reveal {
  transform: translateY(1.25rem);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Program detail */
.program-card h3 { margin-bottom: 0.5rem; }

.program-meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tag-list li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--grid-line);
  letter-spacing: 0.04em;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
}

.stat-item span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
