/* Profit AI Vertex — V16 Design System */
:root {
  --forest-ink: #0D2818;
  --copper-rose: #C17C5D;
  --parchment: #FAF6F1;
  --pine: #2D5A42;
  --pine-dark: #1a3d2e;
  --pine-light: #3d7a5a;
  --rose-light: #d4a088;
  --ink-muted: #4a6354;
  --card-radius: 16px;
  --border-rose: 3px solid var(--copper-rose);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--forest-ink);
  background: var(--parchment);
}

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

a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--copper-rose); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--forest-ink);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

/* Surface System */
.surface-dark {
  background: var(--forest-ink);
  color: var(--parchment);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: var(--parchment); }
.surface-dark a { color: var(--rose-light); }

.surface-light {
  background: var(--parchment);
  color: var(--forest-ink);
}

.surface-accent {
  background: var(--pine-dark);
  color: #fff;
}
.surface-accent h1, .surface-accent h2, .surface-accent h3 { color: #fff; }
.surface-accent p { color: #fff; }
.surface-accent a { color: var(--rose-light); }

.surface-accent .card {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
.surface-accent .card h3,
.surface-accent .card p { color: #fff; }

.surface-accent .btn--primary {
  color: #fff;
  border-color: #fff;
}
.surface-accent .btn--primary:hover {
  background: #fff;
  color: var(--forest-ink);
}
.surface-accent .btn--secondary {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.surface-accent .btn--secondary:hover {
  background: #fff;
  color: var(--forest-ink);
}

.surface-soft {
  background: #f0ebe4;
  color: var(--forest-ink);
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section { padding: 4rem 0; }
.section--compact { padding: 2.5rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest-ink);
  border-bottom: 2px solid var(--copper-rose);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--parchment);
}

.logo img { width: 36px; height: 36px; border-radius: 4px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--rose-light);
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--copper-rose);
  color: var(--parchment);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--pine);
  color: var(--parchment);
}

/* Hero Pattern D — Stacked Layered */
.hero-stacked {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.hero-stacked__text {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  background: var(--forest-ink);
  color: var(--parchment);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-stacked__text h1 { color: #fff; margin-bottom: 1rem; }
.hero-stacked__text p { color: #fff; font-size: 1.125rem; max-width: 38rem; }

.hero-stacked__text .hero-serial {
  color: #fff;
  border-color: #fff;
}

.hero-stacked__text .btn--primary {
  color: #fff;
  border-color: #fff;
}
.hero-stacked__text .btn--primary:hover {
  background: #fff;
  color: var(--forest-ink);
}

.hero-stacked__text .btn--secondary {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.hero-stacked__text .btn--secondary:hover {
  background: #fff;
  color: var(--forest-ink);
}

.hero-serial {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-rose);
  margin-bottom: 1rem;
  border: 1px solid var(--copper-rose);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

.hero-stacked__photo {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  max-height: 340px;
}

.hero-stacked__photo img {
  width: 100%;
  height: 340px;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
}

.hero-trust-card {
  position: absolute;
  bottom: 0.5rem;
  right: clamp(1rem, 5vw, 4rem);
  background: var(--parchment);
  color: var(--forest-ink);
  padding: 1.25rem 1.5rem;
  border-radius: var(--card-radius);
  border-top: var(--border-rose);
  box-shadow: 0 12px 40px rgba(13, 40, 24, 0.25);
  max-width: 320px;
  z-index: 10;
}

.hero-trust-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--pine);
  margin-bottom: 0.25rem;
}

.hero-trust-card span {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Page Hero (inner pages) */
.page-hero {
  background: var(--forest-ink);
  color: var(--parchment);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 3px solid var(--copper-rose);
}

.page-hero h1 { color: var(--parchment); margin-bottom: 0.75rem; }
.page-hero p { color: #c8d5ce; max-width: 42rem; font-size: 1.1rem; }

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--rose-light);
}
.breadcrumb a { color: var(--rose-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero .breadcrumb,
.page-hero .breadcrumb a {
  color: #fff;
}
.page-hero .breadcrumb a:hover {
  color: var(--parchment);
}

/* Buttons / CTA */
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--copper-rose);
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: transparent;
  color: var(--copper-rose);
}
.btn--primary:hover {
  background: var(--copper-rose);
  color: var(--parchment);
}

.btn--secondary {
  background: var(--copper-rose);
  color: var(--parchment);
  border-color: var(--copper-rose);
}
.btn--secondary:hover {
  background: #a86a4e;
  border-color: #a86a4e;
}

.surface-dark .btn--primary {
  color: #fff;
  border-color: #fff;
}
.surface-dark .btn--primary:hover {
  background: #fff;
  color: var(--forest-ink);
}

.surface-dark .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.surface-dark .btn--secondary:hover {
  background: #fff;
  color: var(--forest-ink);
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--card-radius);
  border-top: var(--border-rose);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(13, 40, 24, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card img {
  border-radius: 10px;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.card h3 { color: var(--pine); }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__img {
  border-radius: var(--card-radius);
  overflow: hidden;
  border-top: var(--border-rose);
}

.split__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--copper-rose);
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.surface-dark .stat-item strong,
.surface-dark .stat-item span { color: #fff; }

/* Sprint list */
.sprint-list { list-style: none; padding: 0; }

.sprint-list li {
  background: #fff;
  border-radius: var(--card-radius);
  border-top: var(--border-rose);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.sprint-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--copper-rose);
  line-height: 1;
  min-width: 2.5rem;
}

/* FAQ side rail */
.faq-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.faq-rail {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  border-left: 3px solid var(--copper-rose);
  padding-left: 1.25rem;
}

.faq-rail h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-rose);
  margin-bottom: 1rem;
}

.faq-rail ol {
  list-style: none;
  padding: 0;
  counter-reset: faq-nav;
}

.faq-rail ol li {
  counter-increment: faq-nav;
  margin-bottom: 0.5rem;
}

.faq-rail ol li a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
}

.faq-rail ol li a::before {
  content: counter(faq-nav, decimal-leading-zero) ". ";
  color: var(--copper-rose);
  font-weight: 600;
}

.faq-rail ol li a:hover { color: var(--pine); }

.faq-list {
  list-style: none;
  padding: 0;
  counter-reset: faq;
}

.faq-list > li {
  counter-increment: faq;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd5cb;
}

.faq-list > li:last-child { border-bottom: none; }

.faq-list > li h3::before {
  content: counter(faq, decimal-leading-zero) ". ";
  color: var(--copper-rose);
}

.faq-visual {
  border-radius: var(--card-radius);
  overflow: hidden;
  border-top: var(--border-rose);
  margin-bottom: 2rem;
}

.faq-visual img {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: cover;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-visual {
  border-radius: var(--card-radius);
  overflow: hidden;
  border-top: var(--border-rose);
}

.contact-visual img {
  width: 100%;
  height: 380px;
  max-height: 380px;
  object-fit: cover;
  object-position: center top;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d4cdc4;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pine);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert--success {
  background: #e8f5ee;
  border: 2px solid var(--pine);
  color: var(--pine);
}

.alert--error {
  background: #fdf0ec;
  border: 2px solid var(--copper-rose);
  color: #8b4a32;
}

/* Legal prose */
.legal-prose h2 { margin-top: 2.5rem; }
.legal-prose h3 { margin-top: 1.75rem; color: var(--pine); }
.legal-prose ul { margin-left: 1.25rem; }

.toc {
  background: #fff;
  border-radius: var(--card-radius);
  border-top: var(--border-rose);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.toc ol { margin-bottom: 0; }

.meta-line {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.95rem;
  color: var(--ink-muted);
  border-left: 3px solid var(--copper-rose);
  padding: 1rem 1.25rem;
  background: rgba(193, 124, 93, 0.08);
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.surface-dark .disclaimer {
  color: #b8ccc0;
  background: rgba(193, 124, 93, 0.15);
}

/* Footer */
.site-footer {
  background: var(--forest-ink);
  color: #c8d5ce;
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--copper-rose);
  display: inline-block;
}

.footer-col p,
.footer-col li {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: var(--rose-light);
  text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

.footer-legal {
  border-top: 1px solid var(--pine);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8fa89a;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  color: #8fa89a;
  text-decoration: none;
}

.footer-legal a:hover { color: var(--rose-light); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--forest-ink);
  color: var(--parchment);
  padding: 1.25rem;
  z-index: 200;
  border-top: 3px solid var(--copper-rose);
  transform: translateY(0);
  transition: transform 0.3s;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: min(100% - 2rem, var(--max-width));
}

.cookie-inner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 240px;
}

.cookie-inner a { color: var(--rose-light); }

.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }

.btn-cookie-accept {
  background: var(--copper-rose);
  color: var(--parchment);
  border: 2px solid var(--copper-rose);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  min-height: 44px;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--parchment);
  border: 2px solid var(--parchment);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  min-height: 44px;
}

.btn-cookie-customise {
  background: transparent;
  color: var(--copper-rose);
  border: 2px solid var(--copper-rose);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  min-height: 44px;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--copper-rose);
  margin-bottom: 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1;
  opacity: 0.3;
}

/* Reveal — visible by default, animated only with JS */
.reveal {
  transform: translateY(0);
}

.js .reveal {
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .contact-layout,
  .faq-layout { grid-template-columns: 1fr; }

  .faq-rail { position: static; }

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

  .hero-trust-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -1.5rem auto 0;
    max-width: 100%;
  }

  .hero-stacked { min-height: auto; }
  .hero-stacked__text { flex: none; padding: 2.5rem 0 1.5rem; }
  .hero-stacked__photo { flex: none; max-height: 240px; }
  .hero-stacked__photo img { height: 240px; max-height: 240px; }

  .faq-visual img { height: 200px; max-height: 200px; }
  .contact-visual img { height: 300px; max-height: 300px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--forest-ink);
    border-bottom: 2px solid var(--copper-rose);
    padding: 1rem;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a { padding: 0.75rem 1rem; }
}
