/* ============================================================
   MINTED — Design System
   All hex values live here. Never hardcode a colour elsewhere.
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Satoshi';
  src: url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');
  font-display: swap;
}

/* --- Variables --- */
:root {
  /* Brand colours */
  --cream:     #ecebe4;
  --paper:     #f9f7f6;
  --paper-2:   #f4f2ef;
  --ink:       #111011;
  --ink-75:    rgba(17,16,17,0.75);
  --ink-55:    rgba(17,16,17,0.55);
  --ink-12:    rgba(17,16,17,0.12);
  --ink-06:    rgba(17,16,17,0.06);

  --mint:      #7ac78f;
  --mint-deep: #4f9a68;
  --mint-tint: #e6f7ea;
  --mint-line: #75f0a0;

  /* Pastel card palette */
  --c-mint:  #e6f7ea;
  --c-teal:  #ebfffd;
  --c-cyan:  #9de4eb;
  --c-lilac: #d7c8e8;
  --c-blush: #f7f0f7;
  --c-sage:  #d2e8c8;
  --c-sand:  #fae4d0;
  --c-slate: #dce4ea;

  /* Type stacks */
  --display: 'Crimson Pro', Georgia, serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --numeric: 'Satoshi', 'Inter', sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-w: 1120px;
  --nav-h: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms var(--ease);
  --t-mid:  300ms var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* --- Typography scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--ink-75);
  max-width: 65ch;
}

.label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.stat-number {
  font-family: var(--numeric);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ink);
  line-height: 1;
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

section {
  padding-block: var(--space-xl);
}

@media (min-width: 768px) {
  section { padding-block: var(--space-2xl); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--mint-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-12);
}
.btn-secondary:hover {
  border-color: var(--mint);
  color: var(--mint-deep);
  transform: translateY(-1px);
}

.btn-mint {
  background: var(--mint);
  color: var(--ink);
}
.btn-mint:hover {
  background: var(--mint-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(249,247,246,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-06);
  transition: box-shadow var(--t-fast);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(17,16,17,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav__links {
  display: none;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-75);
  transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: var(--space-sm); }

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--t-fast);
}
@media (min-width: 768px) {
  .nav__hamburger { display: none; }
}

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.2rem;
  font-weight: 500;
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--ink-06);
}

/* Anchor scroll offset so sticky nav doesn't cover headings */
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* --- Hero --- */
.hero {
  background: var(--cream);
  padding-block: var(--space-2xl);
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--mint-tint);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mint-deep);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  color: var(--mint-deep);
}

.hero__stat {
  display: inline-block;
  font-family: var(--numeric);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-12);
  border-radius: 100px;
  padding: 0.5rem 1.4rem;
  margin-block: var(--space-md);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

/* --- Case study cards --- */
.card {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card__before-after {
  font-family: var(--numeric);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.card__attribution {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mint-deep);
}

.card__bullets {
  margin-top: var(--space-xs);
}
.card__bullets li {
  font-size: 0.85rem;
  color: var(--ink-75);
  padding-block: 0.2rem;
  padding-left: 1rem;
  position: relative;
}
.card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

/* --- Process steps --- */
.process__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .process__grid { grid-template-columns: repeat(3, 1fr); }
}

.process__step {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.process__icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-md);
}

.process__step h3 {
  margin-bottom: var(--space-xs);
}

.process__step p {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.process__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.process__bullets li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-75);
  padding-left: 1rem;
  position: relative;
}
.process__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

/* --- Metrics --- */
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .metrics__grid { grid-template-columns: repeat(3, 1fr); }
}

.metric {
  background: var(--paper);
  padding: var(--space-lg);
  text-align: center;
}

.metric__value {
  font-family: var(--numeric);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric__label {
  font-size: 0.8rem;
  color: var(--ink-55);
  font-weight: 500;
}

/* --- FAQ accordion --- */
.faq__item {
  border-bottom: 1px solid var(--ink-12);
}

.faq__question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  background: none;
  border: none;
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-fast);
  color: var(--ink-55);
  font-size: 1.1rem;
  line-height: 1;
}

.faq__item.open .faq__icon {
  background: var(--mint-tint);
  border-color: var(--mint);
  color: var(--mint-deep);
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding-bottom: var(--space-md);
}
.faq__answer p {
  font-size: 0.95rem;
}
.faq__item.open .faq__answer { display: block; }

/* --- Logo carousel --- */
.carousel {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.carousel__track {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  animation: scroll-logos 38s linear infinite;
  width: max-content;
}

.carousel__track:hover { animation-play-state: paused; }

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

.carousel__logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: var(--t-fast);
  flex-shrink: 0;
}
.carousel__logo:hover {
  opacity: 1;
  filter: none;
}

/* --- Email gallery --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--ink-06);
  cursor: zoom-in;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17,16,17,0.12);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Gallery lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,16,17,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 90vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(249,247,246,0.15);
  color: var(--paper);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox__close:hover { background: rgba(249,247,246,0.25); }

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  max-width: 540px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  z-index: 150;
  font-size: 0.875rem;
  box-shadow: 0 8px 32px rgba(17,16,17,0.24);
}

.cookie-banner p {
  color: rgba(249,247,246,0.8);
  font-size: 0.875rem;
  max-width: none;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a { color: var(--mint); text-decoration: underline; }

.cookie-banner__btns {
  display: flex;
  gap: var(--space-xs);
}

.cookie-accept {
  background: var(--mint);
  color: var(--ink);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast);
}
.cookie-accept:hover { background: var(--mint-deep); color: var(--paper); }

.cookie-decline {
  background: transparent;
  color: rgba(249,247,246,0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(249,247,246,0.2);
  transition: border-color var(--t-fast);
}
.cookie-decline:hover { border-color: rgba(249,247,246,0.5); }

/* --- Section dividers --- */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-12);
}

/* --- Footer --- */
.footer {
  background: var(--cream);
  color: var(--ink);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--ink-12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand img {
  height: 28px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--ink-55);
  max-width: 240px;
  line-height: 1.5;
  margin: 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.25rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--ink-75);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink-12);
  padding-block: 1.25rem;
  font-size: 0.78rem;
  color: var(--ink-55);
}

/* keep old .footer__copy working if referenced elsewhere */
.footer__copy {
  font-size: 0.8rem;
  color: var(--ink-55);
  max-width: none;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.text-mint { color: var(--mint-deep); }

.section-intro {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-intro h2 { margin-bottom: var(--space-sm); }
