/*
 * UpCurve Consulting — site stylesheet.
 *
 * Built from the October one-page draft (client-documents/originals/index.html),
 * rewritten mobile-first. Brand tokens and contrast rules: PROJECT_MEMORY.md → Brand.
 * Keep everything here: the CSP allows no inline style attributes.
 */

/* ── Font (self-hosted, SIL OFL: assets/fonts/OFL.txt) ── */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ── */
:root {
  --black: #000000;
  --ink: #111111;
  --charcoal: #4E4E4E;
  --accent: #1A73E8;
  --accent-text: #1462CF; /* small text on light backgrounds: #1A73E8 fails on the tints */
  --accent-on-dark: #6FA8F5; /* dark backgrounds only */
  --accent-tint: #EEF4FD;
  --light: #F7F7F7;
  --white: #FFFFFF;
  --border: #E2E2E2;
  --field-border: #858585;
  --panel-dark: #1E1E1E;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-height: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ── Focus and helpers ── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.section-cta :focus-visible {
  outline-color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Netlify honeypot: hidden from everyone, so only bots fill it in. */
.form-honeypot {
  display: none;
}

/* Visually hidden until focused, so keyboard users can jump past the header. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 64px 0;
}

/* ── Typography ── */
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
  color: var(--charcoal);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

.on-dark p,
.on-dark li {
  color: rgba(255, 255, 255, 0.75);
}

.on-dark .label {
  color: var(--accent-on-dark);
}

.tick-list {
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.tick-list li:last-child {
  margin-bottom: 0;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.on-dark .tick-list li::before {
  border-color: var(--accent-on-dark);
}

.text-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-text);
  border-bottom: 2px solid currentColor;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--black);
}

.on-dark .text-link {
  color: var(--accent-on-dark);
}

.on-dark .text-link:hover {
  color: var(--white);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  width: 100%;
  min-height: 44px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  opacity: 1;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  border-color: var(--white);
  opacity: 1;
}

.btn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ── Header and navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 90px;
  height: 90px;
  margin-top: -8px;
}

.nav-links {
  display: none;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  color: var(--black);
  text-decoration: underline 2px var(--accent);
  text-underline-offset: 6px;
}

.nav-links .nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 0 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  background: var(--accent);
  color: var(--white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu, opened by assets/js/site.js. */
.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 99;
  gap: 4px;
  padding: 16px 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-links.open a {
  font-size: 1rem;
}

.nav-links.open .nav-cta {
  margin-top: 8px;
}

/* ── Hero (homepage) ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content .lead {
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-note {
  max-width: 520px;
  margin-top: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--black);
}

/* Cut-out headshot of Aaron, standing on the bottom edge of the hero so his shoulders
   run into the black section below, with the enlarged logo mark behind him.
   The supplied cut-out ends in a straight line at its right edge, so the photo sits
   flush with the right edge of the screen, which hides that cut. */
.hero-photo {
  position: relative;
  max-width: 420px;
  margin: 0 -20px 0 auto;
}

.hero-mark {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 125%;
  max-width: none;
}

.hero-portrait {
  position: relative;
  width: 100%;
}

.photo-caption {
  position: absolute;
  left: 0;
  bottom: 28px;
  padding: 10px 16px;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

/* Seated photo of Aaron on a drawn step. The SVG set shares the photo's pixel space,
   so these offsets come from its viewBox (-150 -40 830 780) and the photo (531 by 703). */
.seated-scene {
  position: relative;
  aspect-ratio: 830 / 780;
  overflow: hidden;
  border-radius: 12px;
}

.seated-set {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.seated-scene img {
  position: absolute;
  left: 18.072%;
  top: 5.128%;
  width: 63.976%;
}

.story-photo {
  margin-top: 32px;
}

/* Standing photo of Aaron on the white page, with a faint logo mark behind him
   and a soft shadow at his feet. The ChopHouse logo has white lettering, so it
   sits on its own grey tile. */
.standing-scene {
  position: relative;
  aspect-ratio: 1;
}

.standing-scene::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3%;
  width: 76%;
  height: 94%;
  background: url("../images/upcurve-mark.svg") no-repeat right bottom / contain;
  opacity: 0.7;
}

.standing-scene::after {
  content: "";
  position: absolute;
  right: 11%;
  bottom: 1%;
  width: 32%;
  height: 5%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
}

.standing-logo {
  position: absolute;
  left: 0;
  top: 22%;
  width: 46%;
  padding: 8.5%;
  border-radius: 12px;
  background: #686868;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.22);
}

.standing-aaron {
  position: absolute;
  z-index: 1;
  right: 14%;
  bottom: 3%;
  width: auto;
  height: 91%;
  filter: drop-shadow(6px 8px 10px rgba(0, 0, 0, 0.16));
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero .lead {
  max-width: 640px;
}

.page-hero .btn-actions {
  margin-top: 32px;
}

/* ── Who this is for ── */
.section-audience {
  background: var(--black);
}

.audience-inner {
  display: grid;
  gap: 40px;
  align-items: start;
}

.audience-list {
  list-style: none;
}

.audience-list li {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.audience-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.audience-list h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.audience-list p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Services ── */
.section-header {
  max-width: 660px;
  margin-bottom: 48px;
}

.service-feature {
  display: grid;
  gap: 40px;
  background: var(--accent-tint);
  border-radius: 12px;
  padding: 28px 20px;
  margin-bottom: 48px;
}

.section-services .service-feature:last-child {
  margin-bottom: 0;
}

/* The homepage card title is an h3; on /services/ each card is its own h2 section. */
.service-feature h2,
.service-feature h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.service-feature p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 18px;
}

.service-feature .tick-list {
  align-self: start;
  background: var(--white);
  border-radius: 8px;
  padding: 22px 18px;
}

.services-list {
  list-style: none;
  display: grid;
  gap: 0 56px;
}

.services-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.service-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.services-list h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.services-list p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* A short aside under a service card's main text. */
.services-list .service-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.6;
}

.section-more {
  margin-top: 32px;
}

/* ── Why me ── */
.story-inner {
  display: grid;
  gap: 40px;
  align-items: start;
}

.story-statement {
  margin-top: 32px;
  padding: 28px;
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.6;
}

.story-body p {
  font-size: 0.97rem;
  line-height: 1.8;
}

/* /about/ splits the story into short h2 chapters. */
.story-body h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

.story-body .label + h2 {
  margin-top: 0;
}

.story-body .tick-list {
  margin: 8px 0 28px;
}

/* ── How it works ── */
.section-process {
  background: var(--accent-tint);
}

.process-steps {
  display: grid;
  list-style: none;
  position: relative;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  padding-bottom: 28px;
}

/* Vertical line joining the steps on narrow screens. */
.process-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: rgba(26, 115, 232, 0.3);
}

.process-step:last-child::before {
  display: none;
}

.step-number {
  grid-row: span 2;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--accent-tint);
}

.process-step h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

.process-note {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.process-note span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-note span::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Recent work ── */
.section-work {
  background: var(--black);
}

.work-card {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Homepage cards use h3; on /work/ each entry is its own h2. */
.work-card h2,
.work-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.work-card + .work-card {
  margin-top: 48px;
}

.work-card p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.work-card .tick-list {
  margin: 4px 0 20px;
}

.work-card .tick-list li {
  font-size: 0.88rem;
}

.section-work .work-meta {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Client case: desktop screenshot in a browser frame with an overlapping phone. */
.case-row {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

.showcase {
  position: relative;
  margin: 0;
}

.showcase-desktop {
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
}

.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.showcase-mobile {
  position: relative;
  width: 46%;
  max-width: 200px;
  margin: -32px auto 0;
  overflow: hidden;
  border: 5px solid var(--panel-dark);
  border-radius: 20px;
  background: var(--panel-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.case-details h2,
.case-details h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.case-details p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.case-details .tick-list {
  margin: 4px 0 24px;
}

.case-details .tick-list li {
  font-size: 0.88rem;
}

/* Social media stories: three phones fanned out, the middle one in front. */
.story-fan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 16px 0 0;
}

.story-phone {
  flex: 0 0 34%;
  max-width: 180px;
  overflow: hidden;
  border: 5px solid var(--panel-dark);
  border-radius: 20px;
  background: var(--panel-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* The same fan with plain photo cards instead of phone frames. */
.story-photo-card {
  flex: 0 0 34%;
  max-width: 180px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.story-photo-card:nth-child(2) {
  position: relative;
  z-index: 1;
  flex-basis: 38%;
  max-width: 200px;
}

.story-photo-card:nth-child(1) {
  margin-right: -8%;
  transform: rotate(-8deg) translateY(12px);
}

.story-photo-card:nth-child(3) {
  margin-left: -8%;
  transform: rotate(8deg) translateY(12px);
}

.story-photo-card img {
  display: block;
  width: 100%;
}

.story-phone:nth-child(1) {
  margin-right: -8%;
  transform: rotate(-8deg) translateY(12px);
}

.story-phone:nth-child(2) {
  position: relative;
  z-index: 1;
  flex-basis: 38%;
  max-width: 200px;
}

.story-phone:nth-child(3) {
  margin-left: -8%;
  transform: rotate(8deg) translateY(12px);
}

.story-caption {
  flex-basis: 100%;
  margin-top: 28px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

/* Client logos above a work entry's label. */
.work-logo {
  display: block;
  width: auto;
  height: 96px;
  margin-bottom: 20px;
}

/* Story-sized brand photos. On phones a swipeable row: site.js marks the photo in the
   middle as active so it shows full size. On wider screens a fan that enlarges on hover. */
.brand-fan {
  margin: 8px -20px 0;
  padding: 16px calc(50% - 100px) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.brand-fan ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-fan li {
  flex: 0 0 200px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

/* Phones with JavaScript: a stacked deck. site.js sets each photo's place in the
   pile (data-deck 0 is on top) and adds the Next photo button and counter. */
.brand-fan.is-deck {
  margin: 8px 0 0;
  padding: 24px 0 8px;
  overflow: visible;
}

.brand-fan.is-deck ul {
  display: grid;
  justify-content: center;
  touch-action: pan-y;
}

.brand-fan.is-deck li {
  grid-area: 1 / 1;
  width: 170px;
  cursor: pointer;
  transform: rotate(var(--deck-turn, 0deg)) translateX(var(--deck-shift, 0px));
  transition: transform 0.35s ease;
  user-select: none;
}

.brand-fan.is-deck li[data-deck="0"] { z-index: 5; }
.brand-fan.is-deck li[data-deck="1"] { --deck-turn: 6deg; --deck-shift: 20px; z-index: 4; }
.brand-fan.is-deck li[data-deck="2"] { --deck-turn: -6deg; --deck-shift: -20px; z-index: 3; }
.brand-fan.is-deck li[data-deck="3"] { --deck-turn: 10deg; --deck-shift: 28px; z-index: 2; }
.brand-fan.is-deck li[data-deck="4"] { --deck-turn: -10deg; --deck-shift: -28px; z-index: 1; }

.brand-fan.is-deck img {
  -webkit-user-drag: none;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.deck-controls[hidden] {
  display: none;
}

.deck-controls .btn {
  width: auto;
  padding: 10px 24px;
}

.deck-count {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.brand-fan img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* Short bordered note: a service's real example, or the pricing terms. */
.aside-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  line-height: 1.7;
}

.aside-note strong {
  color: var(--black);
}

/* ── Prices ── */
.price-list {
  list-style: none;
  display: grid;
  gap: 24px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.price-card h3 {
  margin-bottom: 12px;
}

.price-card p {
  font-size: 0.92rem;
}

.price-card .price-amount {
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
}

.price-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.price-card .text-link {
  margin-top: auto;
}

/* A card with two links keeps them together at the bottom. */
.price-card .price-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: auto 0 0;
}

.price-card .price-links .text-link {
  margin-top: 0;
}

.price-extra {
  margin-top: 24px;
  font-size: 0.92rem;
}

.section-header-spaced {
  margin-top: 72px;
}

/* ── Jargon buster ── */
.glossary {
  max-width: 760px;
}

.glossary-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.glossary-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.glossary dt {
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

.glossary dd {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Privacy and cookie policies ── */
.policy-text {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.policy-text h2 {
  margin-top: 48px;
}

.policy-text h2:first-child {
  margin-top: 0;
}

.policy-text ul {
  margin: 0 0 16px 20px;
}

.policy-text li {
  margin-bottom: 8px;
  color: var(--charcoal);
}

.policy-text .glossary {
  margin-bottom: 16px;
}

/* ── What I don't do ── */
.section-limits {
  background: var(--white);
}

.limits-inner {
  display: grid;
  gap: 40px;
  align-items: start;
}

.benefits {
  list-style: none;
  display: grid;
  gap: 20px;
}

.benefits li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.benefits h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.benefits p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Call to action band ── */
.section-cta {
  background: var(--accent);
  text-align: center;
  padding: 72px 0;
}

.section-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.section-cta p {
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

.section-cta .btn-actions {
  justify-content: center;
}

/* ── Contact ── */
.contact-inner {
  display: grid;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-details {
  margin-top: 28px;
}

.contact-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.contact-detail-label {
  min-width: 52px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.contact-detail a {
  display: inline-block;
  padding: 10px 0;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--accent-text);
}

.contact-next {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contact-next h2 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.contact-form {
  background: var(--light);
  border-radius: 12px;
  padding: 28px 20px;
}

.contact-form h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-intro {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-optional {
  font-weight: 500;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* Native arrow is removed by appearance: none, so draw one. */
.form-group select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover {
  opacity: 0.88;
}

.form-note {
  margin-top: 16px;
  font-size: 0.82rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 16px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: background 0.2s;
}

.social-links a:hover {
  background: var(--accent-text);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--charcoal);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.78rem;
  margin: 0;
}

.footer-bottom a {
  font-weight: 600;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--accent-text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-size: 0.78rem;
  list-style: none;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ── Wider screens ── */
@media (min-width: 601px) {
  .container {
    padding: 0 24px;
  }

  section {
    padding: 80px 0;
  }

  .btn {
    width: auto;
  }

  .service-feature,
  .contact-form {
    padding: 40px;
  }

  .price-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-feature .tick-list {
    padding: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero-photo {
    margin-right: -24px;
  }

  .showcase {
    padding: 0 18% 14% 0;
  }

  .showcase-mobile {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 26%;
    max-width: none;
    margin: 0;
  }

  .is-reversed .showcase {
    padding: 0 0 14% 18%;
  }

  .is-reversed .showcase-mobile {
    right: auto;
    left: 0;
  }
}

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

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
  }

  .process-step {
    display: block;
    padding-bottom: 0;
  }

  .process-step::before {
    display: none;
  }

  .step-number {
    margin-bottom: 20px;
  }
}

@media (min-width: 861px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 901px) {
  section {
    padding: 96px 0;
  }

  .hero {
    padding: 72px 0 0;
  }

  /* The headline is long, so the text column gets the extra width and a smaller size,
     keeping it to four lines with the button above the fold at 1280x800. */
  .hero-inner {
    grid-template-columns: 1.6fr 0.8fr;
    gap: 56px;
    align-items: end;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 32px 0 96px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 3.4vw, 2.75rem);
  }

  /* Pinned to the bottom right of the hero, flush with the screen edge. */
  .hero-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(40vw, 600px);
    max-width: none;
    margin: 0;
  }

  .page-hero {
    padding: 88px 0 72px;
  }

  .audience-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .service-feature {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 48px;
  }

  .story-inner {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }

  .brand-fan {
    margin: 0;
    /* Room for a hovered photo, which grows to 1.4 times its size. */
    padding: 88px 0 72px;
    overflow: visible;
  }

  .brand-fan ul {
    justify-content: center;
    gap: 0;
  }

  .brand-fan li {
    position: relative;
    flex-basis: 180px;
    margin: 0 -18px;
    transform: rotate(var(--fan-turn, 0deg)) translateY(var(--fan-drop, 0px));
  }

  .brand-fan li:nth-child(1) { --fan-turn: -12deg; --fan-drop: 28px; z-index: 1; }
  .brand-fan li:nth-child(2) { --fan-turn: -6deg; --fan-drop: 7px; z-index: 2; }
  .brand-fan li:nth-child(3) { z-index: 3; }
  .brand-fan li:nth-child(4) { --fan-turn: 6deg; --fan-drop: 7px; z-index: 2; }
  .brand-fan li:nth-child(5) { --fan-turn: 12deg; --fan-drop: 28px; z-index: 1; }

  .case-row {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }

  .case-row.is-reversed {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .is-reversed .showcase,
  .is-reversed .story-fan {
    order: 2;
  }

  .limits-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .contact-inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 961px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  /* Horizontal line joining the steps. */
  .process-steps::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: rgba(26, 115, 232, 0.3);
  }
}

@media (min-width: 901px) and (hover: hover) {
  .brand-fan li:hover {
    z-index: 10;
    transform: translateY(-16px) scale(1.4);
  }
}

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

  .btn:hover {
    transform: none;
  }
}

/* ── Cookie banner (assets/js/consent.js) ──
   consent.js adds the banner as the last element in <body>. Sticky rather than
   fixed: it stays in view while reading, but at the end of the page it sits below
   the footer, so it never covers the footer links or the Cookie settings button. */
.cookie-banner {
  position: sticky;
  bottom: 16px;
  z-index: 50; /* above page content (fan cards reach 10), below the header (100) so an open mobile menu stays on top */
  width: calc(100% - 32px);
  max-width: 40rem;
  margin: 0 auto 16px;
  padding: 20px;
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.18);
}

/* Keeps a focused element from scrolling in behind the banner. */
html:has(.cookie-banner) {
  scroll-padding-bottom: 260px;
}

.cookie-banner__text {
  margin-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.cookie-banner__text a {
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--black);
}

/* Accept and Reject share one style so neither is pushed. */
.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cookie-banner__btn {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.cookie-banner__btn:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

.cookie-banner__options {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.cookie-banner__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  margin-top: 8px;
}

.cookie-banner__option span {
  grid-column: 2;
}

/* Footer "Cookie settings" button: looks like the Privacy and Cookie policy links beside it. */
.cookie-settings-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: var(--accent-text);
}
