/* ==========================================================================
   Zema Consultancy - www.zemaconsultancy.com
   Design: "Zema Homepage" design doc (Claude Design), on the locked
   "Zema Identity" palette and type.
   Flat and rectangular throughout: no radius, no shadows, no gradients.
   Depth comes from 1px hairlines and solid colour blocks. Full bleed,
   left-aligned, ragged right.
   ========================================================================== */

:root{
  color-scheme: light;

  /* Palette - Zema Identity, light mode */
  --ground:     #F2F1EC;
  --ground-2:   #DCE0D8;
  --rule:       #6C7570;  /* hairlines and borders ONLY - 4.2:1, never text */
  --accent:     #1F5138;
  --ink:        #14201A;
  --soft:       #3A453E;
  --accent-ink: #4E9C72;  /* accent on an ink ground */

  /* Type */
  --display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans:    'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Page gutter - the design runs full bleed with a fluid edge margin */
  --gutter: clamp(20px, 5vw, 88px);
}

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

html{
  background: var(--ground);
  scroll-behavior: smooth;
}

body{
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }
ol, ul{ list-style: none; }

/* Sticky nav is ~62px, so anchored sections must clear it. */
[id]{ scroll-margin-top: 78px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,
  *::before,
  *::after{
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Focus - visible, rectangular, no glow
   -------------------------------------------------------------------------- */

:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

.nav__cta:focus-visible,
.btn:focus-visible,
.final :focus-visible{
  outline-color: var(--ground);
}

.btn--onAcc:focus-visible{
  outline-color: var(--ink);
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
}

.skip-link:focus{ left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn{
  display: inline-block;
  align-self: start;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 34px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ground);
  transition: background-color 120ms linear, border-color 120ms linear, color 120ms linear;
}

.btn:hover{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.btn--onAcc{
  background: var(--ground);
  border-color: var(--ground);
  color: var(--ink);
}

.btn--onAcc:hover{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

/* --------------------------------------------------------------------------
   Nav - CTA bleeds to the right edge
   -------------------------------------------------------------------------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.nav__mark{
  display: flex;
  align-items: center;
  padding: 20px var(--gutter);
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.nav__mark span,
.footer__mark span{ color: var(--accent); }

.nav__cta{
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 clamp(24px, 4vw, 56px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ground);
  background: var(--accent);
  border-left: 1px solid var(--accent);
  transition: background-color 120ms linear, border-color 120ms linear;
}

.nav__cta:hover{
  background: var(--ink);
  border-left-color: var(--ink);
}

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

.hero{
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
}

.hero__eyebrow{
  background: var(--ground-2);
  border-bottom: 1px solid var(--rule);
  padding: 20px var(--gutter);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title{
  padding: clamp(48px, 8vh, 108px) var(--gutter) clamp(48px, 9vh, 128px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 9.6vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: pretty;
}

.hero__title span{ color: var(--accent); }

.hero .btn{
  margin: 0 var(--gutter) clamp(52px, 8vh, 104px);
}

/* --------------------------------------------------------------------------
   Tool marquee
   -------------------------------------------------------------------------- */

.marquee{
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  padding: clamp(22px, 3vh, 34px) 0;
}

.marquee__track{
  display: flex;
  width: max-content;
  animation: zema-marquee 34s linear infinite;
}

.marquee__list{
  display: flex;
  flex-shrink: 0;
}

.marquee__list li{
  padding: 0 clamp(28px, 4vw, 68px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.03em;
  color: var(--ground);
  white-space: nowrap;
}

@keyframes zema-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Reduced motion: freeze the band and centre the first track. */
@media (prefers-reduced-motion: reduce){
  .marquee__track{ transform: none; }
}

/* --------------------------------------------------------------------------
   Offer
   -------------------------------------------------------------------------- */

.offer__head{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: end;
  background: var(--accent);
}

.offer__headText{
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 26px);
  padding: clamp(36px, 5.5vh, 72px) var(--gutter) clamp(38px, 5vh, 66px);
}

.offer__eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ground-2);
}

.offer__title{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ground);
  max-width: 18ch;
  text-wrap: pretty;
}

.offer__note{
  padding: 0 var(--gutter) clamp(40px, 5vh, 70px);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ground-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.steps{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.step{
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 40px) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--rule);
}

.step__n{
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.step__title{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.step__body{
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft);
  max-width: 32ch;
  text-wrap: pretty;
}

.step--one{
  background: var(--ground);
}
.step--one .step__n{ border-bottom: 1px solid var(--ground-2); }

.step--two{
  background: var(--ground-2);
  border-left: 1px solid var(--rule);
}
.step--two .step__n{ border-bottom: 1px solid var(--rule); }

.step--three{
  background: var(--ink);
  border-bottom-color: var(--ink);
  color: var(--ground);
}
.step--three .step__n{
  color: var(--accent-ink);
  border-bottom: 1px solid var(--soft);
}
.step--three .step__body{ color: var(--ground-2); }

/* First gutter alignment: cell 01 sits flush with the page edge margin. */
@media (min-width: 920px){
  .step--one{ padding-left: var(--gutter); }
  .step--three{ padding-right: var(--gutter); }
}

/* --------------------------------------------------------------------------
   Final call to action
   -------------------------------------------------------------------------- */

.final{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  background: var(--accent);
  color: var(--ground);
}

.final__lead{
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.8vw, 34px);
  padding: clamp(48px, 8vh, 108px) var(--gutter) clamp(48px, 7vh, 92px);
}

.final__eyebrow{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ground-2);
}

.final__title{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: pretty;
}

.final__aside{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(26px, 4vw, 40px);
  padding: clamp(0px, 4vh, 140px) var(--gutter) clamp(56px, 8vh, 92px);
}

.final__body{
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.66;
  color: var(--ground-2);
  max-width: 40ch;
  text-wrap: pretty;
  border-top: 1px solid var(--accent-ink);
  padding-top: clamp(20px, 3vw, 30px);
}

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

.footer{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--rule);
  padding: 24px var(--gutter) 30px;
}

.footer__mark{
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.footer__meta{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--soft);
  white-space: nowrap;
}

.footer__meta a{ text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer__meta a:hover{ color: var(--accent); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 700px){
  body{ font-size: 16px; }

  .nav{ flex-wrap: nowrap; gap: 0; }
  .nav__mark{ padding-right: 12px; }

  .hero__title{ max-width: none; }

  .step--two{ border-left: none; }

  .footer{ gap: 10px; }
  .footer__meta{ white-space: normal; }
}
