/* =================================================================
   AI Business Workflows — styles.css
   Plain CSS, no build step. Edit the variables below to adjust
   colours, fonts and spacing across the whole site.
   ================================================================= */

:root {
  /* Brand colours */
  --paper:   #F4F3EF;  /* warm paper */
  --navy:    #16213A;  /* ink navy */
  --orange:  #E4572E;  /* orange accent */
  --graphite:#1F2430;  /* body text */
  --panel:   #F6F5F1;  /* soft panel */
  --stone:   #5B6270;  /* muted stone */
  --white:   #FFFFFF;

  /* Derived tones */
  --line:        #DDDAD1;   /* subtle borders on paper */
  --line-soft:   #E8E6DF;
  --orange-dark: #C8431D;   /* hover / small text on light bg (AA contrast) */
  --navy-soft:   #2A3757;

  /* Type — system fonts only, nothing downloaded */
  --font-serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 72rem;
  --gutter: 1.25rem;
  --radius: 6px;
  --radius-lg: 10px;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --shadow: 0 1px 2px rgba(22,33,58,.04), 0 8px 24px -12px rgba(22,33,58,.14);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
code { font-family: var(--font-mono); font-size: .9em; }
em { font-style: italic; }

a { color: var(--navy); text-underline-offset: .2em; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}
[tabindex="-1"]:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.line { display: block; }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--orange);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.section-lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: var(--stone);
  font-size: 1.125rem;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 46rem; }
.section-head--center { text-align: center; margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

.note {
  font-size: .95rem;
  color: var(--stone);
}
.note--center { text-align: center; margin-top: 2rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; }
.note--rule {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  max-width: 40rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3.5rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px -8px rgba(228,87,46,.6);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn span[aria-hidden] { transition: transform .15s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.005em;
}
.wordmark__mark {
  width: 1.375rem; height: 1.375rem;
  border-radius: 4px;
  background: var(--navy);
  position: relative;
  flex: none;
}
.wordmark__mark::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 7px; height: 7px;
  border-radius: 1px;
  background: var(--orange);
}
.header-link {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: .55rem .9rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.header-link:hover { background: var(--navy); color: var(--white); }
@media (max-width: 22rem) { .header-link { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.75rem, 7vw, 5.5rem);
  padding-bottom: var(--section-pad);
}
.hero__intro { max-width: 62rem; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(2.6rem, 8.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__title em, .statement em, .final-cta__title em {
  font-style: italic;
  color: var(--orange);
}
.hero__lede {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--graphite);
}

.hero__grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 2rem;
  align-items: start;
}
/* Mobile: put the form first so X/Threads visitors see it immediately */
.offer-card { order: -1; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .offer-card { order: 0; }
}

/* Product image */
.product-visual {
  position: relative;
  border-radius: var(--radius-lg);
}
.product-visual__img {
  width: 100%;
  border-radius: var(--radius-lg);
}
.product-visual__placeholder { display: none; }
.product-visual.is-missing .product-visual__img { display: none; }
.product-visual.is-missing .product-visual__placeholder {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 6 / 5;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(22,33,58,.045) 31px 32px),
    var(--panel);
  border: 1px dashed #C9C5BA;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.placeholder-sheet {
  position: absolute;
  width: 46%;
  aspect-ratio: 3 / 4;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.placeholder-sheet--back { transform: translate(-22%, -4%) rotate(-7deg); background: #FBFAF7; }
.placeholder-sheet--mid  { transform: translate(18%, 2%) rotate(5deg); background: #FDFCFA; }
.placeholder-sheet--front {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 12% 10%;
}
.placeholder-sheet__rule { width: 28%; height: 3px; background: var(--orange); }
.placeholder-sheet__line { height: 8px; background: var(--line-soft); border-radius: 2px; }
.placeholder-sheet__line--short { width: 60%; }
.placeholder-sheet__note {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.5;
  color: var(--stone);
}
.placeholder-sheet__note code { font-size: 1em; color: var(--navy); word-break: break-all; }

/* Offer card + form */
.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  scroll-margin-top: 1.5rem;
}
.offer-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -.01em;
}

.check-list {
  margin-top: 1.25rem;
  display: grid;
  gap: .75rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .1em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--navy);
  -webkit-mask: none;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: .42rem; top: .38em;
  width: .38rem; height: .68rem;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* The Systeme.io form is injected here. min-height prevents layout jump. */
.form-slot {
  margin-top: 1.75rem;
  min-height: 12rem;
}
.form-slot iframe,
.form-slot form { max-width: 100%; }

.form-placeholder {
  min-height: 12rem;
  display: grid;
  align-content: center;
  gap: .5rem;
  padding: 1.25rem;
  text-align: center;
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #FFF6F2 0 12px, #FFFFFF 12px 24px);
}
.form-placeholder__tag {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange-dark);
  padding: .2rem .55rem;
  border-radius: 3px;
}
.form-placeholder__title { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.form-placeholder__text { font-size: .85rem; color: var(--stone); line-height: 1.5; }
.form-slot.has-form { min-height: 0; }
.form-slot.has-form .form-placeholder { display: none; }

.reassurance {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--stone);
  text-align: center;
}
.reassurance--light { color: #B9C0CF; margin-top: 1.25rem; }

/* ---------- Section 2: comparison ---------- */
.statement {
  margin-top: 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  line-height: 1.35;
  color: var(--graphite);
}

.compare {
  display: grid;
  gap: 1.25rem;
  max-width: 62rem;
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .compare { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-card--prompt {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  color: var(--stone);
}
.compare-card--workflow {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  box-shadow: var(--shadow);
}
.card-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.card-label--accent { color: var(--orange-dark); }
.compare-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.6rem);
  line-height: 1.2;
  color: var(--navy);
}
.compare-card__title--quote {
  font-style: italic;
  font-weight: 500;
  color: var(--graphite);
}
.compare-card__answer { font-weight: 600; color: var(--graphite); }

.step-list {
  counter-reset: s;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.step-list li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.4;
}
.step-list li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange-dark);
}
.compare-card__close {
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 600;
  color: var(--navy);
}

.section-foot {
  max-width: 44rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
  display: grid;
  gap: 1rem;
  color: var(--stone);
}
.section-foot__strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--navy);
}

/* ---------- Section 3: five areas ---------- */
.areas {
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  /* 3 on the first row, 2 centred on the second */
  .areas { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .area-card { grid-column: span 2; }
  .area-card:nth-child(4) { grid-column: 2 / span 2; }
  .area-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .area-card:nth-child(5) { grid-column: 1 / -1; }
}
.area-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color .15s ease, transform .15s ease;
}
.area-card:hover { border-color: var(--navy); }
.area-card__index {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: .1em;
}
.area-card__name {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.area-card__name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.area-card__name::before {
  content: "";
  width: .55rem; height: .55rem;
  background: var(--orange);
  border-radius: 1px;
  flex: none;
}
.area-card p:last-child { color: var(--stone); line-height: 1.55; }

.cta-block {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}
.cta-block__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.3;
  color: var(--navy);
}
.cta-block__text .line + .line { color: var(--stone); }

/* ---------- Section 4: steps ---------- */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 2rem; }
}
.step {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .6rem;
  align-content: start;
}
@media (min-width: 52rem) {
  .step { border-bottom: 0; border-top: 2px solid var(--navy); padding: 1.5rem 0 0; }
}
.step__num {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: .08em;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--navy);
}
.step p:last-child { color: var(--stone); }

/* ---------- Section 5: final CTA ---------- */
.final-cta {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--section-pad);
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 3rem; height: 3px;
  transform: translateX(-50%);
  background: var(--orange);
}
.final-cta__inner {
  text-align: center;
  display: grid;
  justify-items: center;
  max-width: 48rem;
}
.final-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
}
.final-cta__title em { color: #F07A55; }
.final-cta__text {
  margin: 1.5rem 0 2.25rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: #D5DAE4;
}
.final-cta :focus-visible { outline-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: .9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}
.footer-links a {
  color: var(--stone);
  text-decoration: none;
  padding: .25rem 0;
}
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(244,243,239,.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 3.25rem; font-size: .875rem; }
@media (min-width: 48rem) { .sticky-cta { display: none !important; } }

/* =================================================================
   THANK-YOU PAGE + SIMPLE PAGES
   ================================================================= */
.ty {
  padding-block: clamp(3rem, 8vw, 6rem) var(--section-pad);
}
.ty__card {
  max-width: 44rem;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}
.ty__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
}
.ty__text {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--graphite);
}
.ty__download {
  margin-top: 2rem;
  display: grid;
  gap: .9rem;
}
@media (min-width: 36rem) { .ty__download { justify-items: start; } }
.ty__hint { color: var(--stone); }

.ty__steps {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line-soft);
  counter-reset: t;
}
.ty__steps li {
  counter-increment: t;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.ty__steps li::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange-dark);
}
.ty__inbox {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}
.ty__back { margin-top: 2rem; text-align: center; font-size: .9rem; }
.ty__back a { color: var(--stone); }

/* Dev-only notice when the ZIP file hasn't been uploaded yet */
.dev-notice {
  margin-top: .5rem;
  padding: .75rem 1rem;
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
  background: #FFF6F2;
  font-size: .85rem;
  color: var(--graphite);
}
.dev-notice code { color: var(--orange-dark); word-break: break-all; }

/* Legal placeholder pages */
.prose {
  max-width: 44rem;
  margin-inline: auto;
}
.prose h1 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.prose p + p { margin-top: 1rem; }
