/* AOE Systems — shared stylesheet */

:root {
  --cream: #f6f4f1;
  --cream-alt: #efebe4;
  --black: #0a0a0a;
  --gray: #6b6b6b;
  --gray-light: #d9d6d0;
  --max-width: 1120px;

  /* consistent spacing scale — every section uses --space-7 vertically */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 32px;
}

.nav__logo img { height: 22px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  color: var(--black);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.nav__links a:hover { opacity: 1; }

.nav__cta {
  background: var(--black);
  color: var(--cream) !important;
  opacity: 1 !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
}

/* Hero — same vertical rhythm as every other section */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 760px;
}

.hero__sub {
  margin-top: var(--space-3);
  font-size: 18px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.6;
}

.hero__position {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-light);
  max-width: 560px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: var(--black);
}

.hero__actions {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.hero__urgency {
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.82; }

.btn--primary {
  background: var(--black);
  color: var(--cream);
}

.btn--ghost {
  border: 1px solid var(--black);
  color: var(--black);
}

/* Section rhythm — one padding value, used everywhere */
section, .section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.section__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 640px;
  line-height: 1.15;
}

/* Band — full-bleed tinted sections, replaces hr dividers */
.band {
  background: var(--cream-alt);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.band--alt { background: var(--black); color: var(--cream); }
.band--alt .band__label { color: rgba(246,244,241,0.55); }
.band--alt .band__text { color: rgba(246,244,241,0.85); }

.band__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.band__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  white-space: nowrap;
  padding-top: 4px;
  flex-shrink: 0;
}

.band__heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.band__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  max-width: 620px;
}

/* Icon grid — "what's included" */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4) var(--space-3);
  margin-top: var(--space-5);
}

.icon-grid__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.icon-grid__icon {
  width: 22px;
  height: 22px;
  color: var(--black);
}

.icon-grid__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.section__note {
  margin-top: var(--space-5);
  font-size: 15px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.6;
}

/* Plain list — compact, minimal markers */
.list-plain {
  list-style: none;
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1) var(--space-4);
  max-width: 620px;
}

.list-plain li {
  font-size: 15px;
  color: var(--black);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.list-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--black);
}

.band--alt .list-plain li { color: var(--cream); }
.band--alt .list-plain li::before { background: var(--cream); }

/* Card grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  align-items: stretch;
}

.card {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: var(--space-4);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
}

.card h3 { font-size: 20px; font-weight: 800; margin-top: 2px; }

.card p { color: var(--gray); font-size: 15px; line-height: 1.55; flex-grow: 1; }

.card__link {
  margin-top: var(--space-1);
  font-size: 14px;
  font-weight: 700;
}

/* Footer — intentionally more compact than the section rhythm */
footer {
  border-top: 1px solid var(--gray-light);
  padding: var(--space-5) 0;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__logo img { height: 16px; }

.footer__tagline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.footer__meta {
  font-size: 13px;
  color: var(--gray);
}

.footer__links { display: flex; gap: var(--space-3); list-style: none; }
.footer__links a { font-size: 13px; color: var(--gray); }
.footer__links a:hover { color: var(--black); }

.footer__contact {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-light);
  font-size: 13px;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.footer__contact a { color: var(--gray); font-weight: 600; }
.footer__contact a:hover { color: var(--black); }
.footer__contact__sep { color: var(--gray-light); }

/* Breadcrumb (sub-pages) */
.breadcrumb {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--black); }

/* Subhero — smaller hero used at the top of interior pages */
.subhero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.subhero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 720px;
}

.subhero__sub {
  margin-top: var(--space-3);
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.6;
}

/* Hub nav — pill links to sub-pages from a hub page */
.hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hub-nav__item {
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hub-nav__item:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--cream);
}

/* Two-column layout — text + diagram/visual */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

/* Diagram box — container for inline SVG diagrams */
.diagram-box {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: #fff;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-box svg { width: 100%; height: auto; }

/* Device mockup row — desktop + mobile frames for case study screenshots */
.mockup-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.mockup-desktop {
  flex: 1;
  min-width: 280px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.mockup-desktop__bar {
  background: var(--cream-alt);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--gray-light);
}

.mockup-desktop__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-light);
}

.mockup-desktop__body {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3);
  text-align: center;
}

.mockup-mobile {
  width: 140px;
  flex-shrink: 0;
  border: 1px solid var(--gray-light);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  padding: 10px 6px;
}

.mockup-mobile__body {
  aspect-ratio: 9/17;
  background: var(--cream-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-2);
  text-align: center;
}

.mockup-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Flow gallery — real step-by-step screenshots for case studies */
.flow-gallery {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scroll-snap-type: x proximity;
}

.flow-step {
  flex-shrink: 0;
  width: 190px;
  scroll-snap-align: start;
}

.flow-step__frame {
  border: 1px solid var(--gray-light);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  padding: 8px;
}

.flow-step__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.flow-step__caption {
  margin-top: var(--space-2);
  text-align: center;
}

.flow-step__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
}

.flow-step__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

/* Booking frame — branded wrapper around the embedded calendar */
.booking-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  margin-top: var(--space-4);
  background: #fff;
}

.booking-frame__header {
  background: var(--black);
  color: var(--cream);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}

.booking-frame__header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Founder photo frame */
.founder-photo {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tier meta — timeline / price / retainer grid on package pages */
.tier-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-light);
  max-width: 720px;
}

.tier-meta__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 6px;
}

.tier-meta__value {
  font-size: 16px;
  font-weight: 700;
}

/* Step list — numbered process stages (How It Works hub) */
.step-list {
  display: flex;
  flex-direction: column;
}

.step-list__item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-light);
}

.step-list__item:first-child { padding-top: 0; }
.step-list__item:last-child { border-bottom: none; }

.step-list__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  flex-shrink: 0;
  width: 32px;
  padding-top: 3px;
}

.step-list__body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-list__body p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

.step-list__body a {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 14px;
  font-weight: 700;
}

/* FAQ — native details/summary accordion */
.faq {
  margin-top: var(--space-4);
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--gray-light);
  padding: var(--space-3) 0;
}

.faq__item:first-child { padding-top: 0; }

.faq__item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

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

.faq__item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--gray);
  flex-shrink: 0;
}

.faq__item[open] summary::after { content: "−"; }

.faq__item p {
  margin-top: var(--space-2);
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
}

/* CTA band — centered call-to-action variant of .band */
.cta-band {
  text-align: center;
}

.cta-band .band__heading {
  max-width: none;
  margin: 0 auto var(--space-4);
}

.cta-band .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Problem list — operational problems with direct consequences */
.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.problem-item {
  padding: var(--space-4);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: #fff;
}

.problem-item h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.problem-item p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.problem-item p.consequence {
  color: var(--black);
  font-weight: 600;
  margin-top: 10px;
}

/* Before / after comparison */
/* Market benchmark table */
.benchmark {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  font-size: 15px;
}

.benchmark th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--gray-light);
}

.benchmark th:last-child,
.benchmark td:last-child { text-align: right; white-space: nowrap; }

.benchmark td {
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-light);
  line-height: 1.45;
}

.benchmark tr:last-child td { border-bottom: none; }

.benchmark tr.benchmark--ours td {
  font-weight: 700;
  color: var(--black);
}

.benchmark tr.benchmark--ours td:first-child::before {
  content: "AOE";
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--black);
  color: var(--cream);
  padding: 3px 7px;
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: 1px;
}

@media (max-width: 640px) {
  .benchmark { font-size: 14px; }
  .benchmark td { padding: 11px 0; }
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.compare__col {
  padding: var(--space-4);
  border-radius: 8px;
}

.compare__col--before {
  background: var(--cream-alt);
  border: 1px solid var(--gray-light);
}

.compare__col--after {
  background: var(--black);
  color: var(--cream);
}

.compare__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.compare__col--before .compare__label { color: var(--gray); }
.compare__col--after .compare__label { color: rgba(246,244,241,0.55); }

.compare__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare__col li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.compare__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--black);
}

.compare__col--after li::before { background: var(--cream); }

/* Metric placeholders — case study stats not yet populated */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.metric-placeholder {
  padding: var(--space-3);
  border: 1px dashed var(--gray-light);
  border-radius: 8px;
  text-align: center;
}

.metric-placeholder__value {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
}

.metric-placeholder__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  margin-top: 6px;
}

/* System level summary cards (homepage) */
.level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  align-items: stretch;
}

.level-card {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: var(--space-4);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
}

.level-card h3 { font-size: 20px; font-weight: 800; }

.level-card__outcome {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.level-card p.desc {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
  flex-grow: 1;
}

.level-card__link {
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}

/* Founding partner box */
.founding-box {
  border: 1px solid rgba(246,244,241,0.25);
  border-radius: 8px;
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.founding-box dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
}

.founding-box dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,244,241,0.55);
  font-weight: 700;
  margin-bottom: 4px;
}

.founding-box dd {
  font-size: 15px;
  font-weight: 600;
}

/* Economic argument list */
.economic-list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 720px;
}

.economic-list li {
  font-size: 16px;
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.economic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--black);
}

/* Nav collapses earlier than the layout grid — the labels are long */
@media (max-width: 1080px) {
  .nav__links { gap: var(--space-3); }
  .nav__links a { font-size: 13px; }
  .nav__cta { padding: 9px 16px; }
}

@media (max-width: 940px) {
  .nav { position: relative; flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: var(--space-3);
    padding-bottom: var(--space-2);
  }
  .nav__links a { font-size: 15px; }
  .nav__links.is-open { display: flex; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .list-plain { grid-template-columns: 1fr; }
  .band__row { gap: var(--space-2); }
  .two-col { grid-template-columns: 1fr; gap: var(--space-4); }
  .tier-meta { grid-template-columns: 1fr; gap: var(--space-3); }
  .problem-list { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .level-cards { grid-template-columns: 1fr; }
  .founding-box dl { grid-template-columns: 1fr; }
}
