/*
 * Homepage (templates/home/index.html.twig).
 * Every class is prefixed "ah-" so nothing here touches other pages.
 * Colours come from the tokens defined in theme.css.
 */

.ah {
  --ah-gutter: clamp(4.5rem, 9vw, 8rem);
  background: var(--ayw-cream);
  color: var(--gray-700);
}

.ah em {
  font-style: italic;
  color: var(--ayw-terracotta);
}

/* ---------- Shared bits ---------- */
.ah-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ayw-terracotta);
  margin: 0 0 1.25rem;
}
.ah-eyebrow--light { color: var(--ayw-terracotta-light); }

.ah-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ayw-ink);
  margin: 0;
  max-width: 22ch;
}

.ah-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 1.25rem 0 0;
  max-width: 52ch;
}

.ah-prose p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 1.25rem;
}
.ah-prose p:last-child { margin-bottom: 0; }
.ah-prose strong { color: var(--ayw-ink); font-weight: 600; }

.ah-section { padding: var(--ah-gutter) 0; }
.ah-section--paper {
  background: var(--ayw-paper);
  border-top: 1px solid var(--ayw-hairline);
  border-bottom: 1px solid var(--ayw-hairline);
}

.ah-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ah-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

/* Buttons & links */
.ah-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--ayw-ink);
  color: var(--ayw-paper);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.ah-btn:hover { background: var(--ayw-ink-soft); color: var(--ayw-paper); }
.ah-btn span { transition: transform .2s ease; }
.ah-btn:hover span { transform: translateX(3px); }
.ah-btn--light { background: var(--ayw-paper); color: var(--ayw-ink); }
.ah-btn--light:hover { background: #fff; color: var(--ayw-ink); }

.ah-link {
  color: var(--ayw-ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.ah-link:hover { color: var(--ayw-terracotta); }
.ah-link--light { color: rgba(250, 248, 243, 0.85); }
.ah-link--light:hover { color: #fff; }

/* Label / value rows */
.ah-rows { margin: 0; }
.ah-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ayw-hairline);
}
.ah-row:last-child { border-bottom: 1px solid var(--ayw-hairline); }
.ah-row dt {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gray-500);
  flex-shrink: 0;
}
.ah-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ayw-ink);
  text-align: right;
}

/* ---------- Hero ---------- */
.ah-hero {
  --ah-hero-image: none;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28, 36, 32, 0.92) 0%, rgba(28, 36, 32, 0.7) 60%, rgba(28, 36, 32, 0.55) 100%),
    var(--ah-hero-image) center / cover no-repeat,
    radial-gradient(ellipse 55% 70% at 88% 20%, rgba(168, 90, 56, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(94, 107, 85, 0.30) 0%, transparent 70%),
    var(--ayw-ink);
  color: var(--ayw-paper);
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4.5rem, 8vw, 7rem);
}

.ah-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.ah-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 5vw + 1rem, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ayw-paper);
  margin: 0 0 1.75rem;
  max-width: 14ch;
}
.ah-hero__title em { color: var(--ayw-terracotta-light); }

.ah-hero__lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(250, 248, 243, 0.75);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

.ah-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.ah-hero__facts {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 3.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 248, 243, 0.14);
  max-width: 34rem;
}
.ah-hero__facts dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--ayw-paper);
  line-height: 1;
}
.ah-hero__facts dd {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.55);
}

/* Sample result card */
.ah-result {
  background: var(--ayw-paper);
  color: var(--gray-700);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  transform: rotate(1.2deg);
}
.ah-result__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ayw-terracotta);
  margin: 0 0 1rem;
}
.ah-result__type {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--ayw-ink);
  margin: 0 0 0.75rem;
}
.ah-result__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0 0 1.5rem;
}

/* ---------- Why ---------- */
.ah-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* ---------- Programme ---------- */
.ah-layers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.ah-layer {
  background: var(--ayw-cream);
  border: 1px solid var(--ayw-hairline);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.ah-layer:hover { border-color: var(--gray-300); transform: translateY(-2px); }
.ah-layer__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ayw-terracotta);
  margin-bottom: 2.5rem;
}
.ah-layer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ayw-ink);
  margin: 0 0 0.75rem;
}
.ah-layer__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0 0 1.5rem;
}

.ah-ticks {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}
.ah-ticks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-top: 1px solid var(--ayw-hairline);
  font-size: 0.875rem;
  color: var(--gray-700);
}
.ah-ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ayw-terracotta);
}

/* ---------- Money types ---------- */
.ah-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ayw-hairline);
  border-left: 1px solid var(--ayw-hairline);
}
.ah-type {
  padding: 1.75rem 1.5rem 2rem;
  border-right: 1px solid var(--ayw-hairline);
  border-bottom: 1px solid var(--ayw-hairline);
  transition: background-color .2s ease;
}
.ah-type:hover { background: var(--ayw-paper); }
.ah-type__num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}
.ah-type__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ayw-ink);
  margin: 0 0 0.6rem;
}
.ah-type__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--gray-600);
  margin: 0;
}

/* ---------- Book ---------- */
.ah-book {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.ah-book__visual {
  background: var(--ayw-cream);
  border: 1px solid var(--ayw-hairline);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  justify-content: center;
}
.ah-book__cover {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 2px 4px rgba(28, 36, 32, 0.1), 0 24px 48px rgba(28, 36, 32, 0.22);
}
.ah-book__cover--type {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(168, 90, 56, 0.35) 0%, transparent 70%),
    var(--ayw-ink);
  color: var(--ayw-paper);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ah-book__cover-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.6);
}
.ah-book__cover-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ah-book__cover-title em { color: var(--ayw-terracotta-light); }

.ah-book__author {
  margin: 0.75rem 0 1.5rem;
  color: var(--gray-500);
  font-size: 0.95rem;
}
.ah-book__desc { margin-bottom: 2rem; }

.ah-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 2rem 0 1.75rem;
}
.ah-price__amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--ayw-ink);
}
.ah-price__was {
  font-size: 1.1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.ah-price__note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}
.ah-book__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* ---------- How it works ---------- */
.ah-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: none;
}
.ah-step {
  border-top: 1px solid var(--ayw-ink);
  padding-top: 1.5rem;
}
.ah-step__when {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ayw-terracotta);
  margin-bottom: 1rem;
}
.ah-step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ayw-ink);
  margin: 0 0 0.6rem;
}
.ah-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
}

/* ---------- Readers ---------- */
.ah-rating { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; }
.ah-rating__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ayw-ink);
}
.ah-rating__of { font-size: 0.9rem; color: var(--gray-500); }

.ah-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.ah-quote {
  margin: 0;
  background: var(--ayw-cream);
  border: 1px solid var(--ayw-hairline);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.ah-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ayw-ink);
}
.ah-quote figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.ah-quote__name { font-weight: 500; color: var(--ayw-ink); font-size: 0.95rem; }
.ah-quote__meta { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- Closing CTA ---------- */
.ah-cta {
  background:
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(168, 90, 56, 0.25) 0%, transparent 70%),
    var(--ayw-ink);
  color: var(--ayw-paper);
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.ah-cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw + 1rem, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ayw-paper);
  margin: 0 auto 2.5rem;
}
.ah-cta__title em { color: var(--ayw-terracotta-light); }
.ah-cta__actions { justify-content: center; }
.ah-cta__trust {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 243, 0.55);
}
.ah-cta__trust li + li::before {
  content: '·';
  margin-right: 2rem;
  margin-left: -1rem;
  color: rgba(250, 248, 243, 0.3);
}

/* The dark CTA sits directly on the dark footer: separate them with a hairline. */
.ah + .modern-footer,
main:has(.ah) + .modern-footer { border-top: 1px solid rgba(250, 248, 243, 0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ah-layers,
  .ah-types,
  .ah-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ah-hero__grid,
  .ah-split,
  .ah-book { grid-template-columns: 1fr; }
  .ah-result { transform: none; max-width: 30rem; }
}

@media (max-width: 600px) {
  .ah-layers,
  .ah-types,
  .ah-steps { grid-template-columns: 1fr; }
  .ah-hero__facts { gap: 1.25rem; }
  .ah-hero__facts dt { font-size: 1.4rem; }
  .ah-btn { white-space: normal; }
  .ah-head--row .ah-btn { width: 100%; justify-content: center; }
  .ah-cta__trust li + li::before { display: none; }
}

/* ---------- Social proof & numbers ---------- */
.ah-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(250, 248, 243, 0.75);
}
.ah-proof strong { color: var(--ayw-paper); font-weight: 500; }
.ah-proof__stars { color: var(--ayw-terracotta-light); letter-spacing: 0.12em; }

.ah-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
}
.ah-badges li {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 243, 0.8);
  border: 1px solid rgba(250, 248, 243, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.ah-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ayw-hairline);
  border-left: 1px solid var(--ayw-hairline);
}
.ah-number {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--ayw-hairline);
  border-bottom: 1px solid var(--ayw-hairline);
}
.ah-number dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 3vw + 1.25rem, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ayw-ink);
}
.ah-number:nth-child(-n+3) dt { color: var(--ayw-terracotta); }
.ah-number dd {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  max-width: 22ch;
}

.ah-price__save {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: var(--ayw-terracotta);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  align-self: center;
}

.ah-cta__lead {
  font-size: 1.1rem;
  color: rgba(250, 248, 243, 0.7);
  max-width: 46ch;
  margin: -1rem auto 2.5rem;
}

@media (max-width: 600px) {
  .ah-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-number { padding: 1.5rem 1.1rem 1.75rem; }
  .ah-hero__facts { display: none; }
}

/* Mobile first fold: headline, one line of copy, quiz button and proof all visible. */
@media (max-width: 600px) {
  .ah-hero { padding: 2.25rem 0 3.5rem; }
  .ah-hero .ah-eyebrow { font-size: 0.68rem; margin-bottom: 0.9rem; }
  .ah-hero__title { font-size: 2.6rem; margin-bottom: 1rem; }
  .ah-hero__lead { font-size: 1.02rem; line-height: 1.55; margin-bottom: 1.5rem; }
  .ah-hero__actions { gap: 1rem 1.5rem; }
  .ah-hero .ah-btn--light { width: 100%; justify-content: center; padding: 1.05rem 1.5rem; font-size: 1rem; }
  .ah-proof { margin-top: 1.1rem; font-size: 0.82rem; }
}
@media (max-width: 600px) {
  .ah-number dt { font-size: 2.1rem; }
}

/* Review cards: stars + initial avatar */
.ah-quote__stars { color: var(--gray-300); letter-spacing: 0.15em; font-size: 0.95rem; }
.ah-quote__stars .on { color: var(--ayw-terracotta); }
.ah-quote { gap: 1.25rem; }
.ah-quote blockquote { flex: 1; }
.ah-quote figcaption { flex-direction: row; align-items: center; gap: 0.85rem; }
.ah-quote__avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ayw-ink);
  color: var(--ayw-paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.ah-quote__who { display: flex; flex-direction: column; gap: 0.15rem; }
