/* =========================================================================
   [FÖRETAGSNAMN] — agency site
   Palette: Gran (spruce ink) · Kalk (limewash bg) · Papper (raised panel)
            Ockra (sparing warm accent) · Dimma (sage-grey secondary)
   Type:    Bricolage Grotesque (display) + Public Sans (body)
   ========================================================================= */

:root {
  /* --- colour --- */
  --gran: #1c2b26;          /* primary ink, dark surfaces, the one CTA */
  --gran-raise: #2a3d36;    /* hover on dark */
  --kalk: #e9eae4;          /* page background */
  --papper: #f4f5f1;        /* raised panels / cards */
  --ockra: #b26a28;         /* sparing accent: rules, ticks, focus, active */
  --dimma: #565c56;         /* secondary / meta text (>=4.5:1 on kalk) */
  --border: #cfd1c9;        /* hairline derived from dimma */
  --on-dark: #eef0ea;       /* text on gran */
  --on-dark-dim: #a9b0a8;   /* secondary text on gran */

  /* --- type --- */
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: 1rem;                                        /* body 16px */
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);        /* h3 */
  --step-3: clamp(1.7rem, 1.35rem + 1.75vw, 2.4rem);     /* h2 */
  --step-4: clamp(2.15rem, 1.6rem + 2.75vw, 3.4rem);     /* h1 */

  /* --- spacing (spacious) --- */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3.25rem, 7vw, 6rem);

  --radius: 6px;
  --measure: 62ch;
  --container: 1440px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--gran);
  background-color: var(--kalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fine limewash/paper grain — a fixed, barely-there noise layer over the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='180'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='180'%20height='180'%20filter='url(%23n)'%20opacity='0.07'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 600; }
p { max-width: var(--measure); }

/* ---- layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dimma);
  margin-bottom: var(--s2);
}
.lead { font-size: var(--step-1); color: var(--gran); max-width: var(--measure); }
.muted { color: var(--dimma); }

/* ---- signature element: the spec-plate ("typskylten") ----
   A ruled plate that only ever holds concrete, checkable facts.
   One short ockra tab stamped on the top edge. */
.plate {
  position: relative;
  background: var(--papper);
  border: 1.5px solid var(--gran);
  border-radius: var(--radius);
  padding: var(--s4);
}
.plate::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: var(--s4);
  width: 2.75rem;
  height: 4px;
  background: var(--ockra);
  border-radius: 0 0 2px 2px;
}

/* ---- buttons: ONE call to action ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  background: var(--gran);
  color: var(--on-dark);
  border: 1.5px solid var(--gran);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.btn:hover { background: var(--gran-raise); border-color: var(--gran-raise); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1.15rem 2rem; font-size: var(--step-1); }
.btn--block { display: flex; width: 100%; }

/* focus visible everywhere */
:focus-visible {
  outline: 2px solid var(--ockra);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ockra) 22%, transparent);
  transition: box-shadow 160ms ease, outline-offset 160ms ease;
}

/* text links (ockra used only as an underline, never body colour) */
.link {
  color: var(--gran);
  text-decoration: underline;
  text-decoration-color: var(--ockra);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 150ms ease, text-underline-offset 150ms ease;
}
.link:hover { text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--kalk) 92%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}
/* Lifts off the page once the reader scrolls (toggled in reveal.js). */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--kalk) 97%, transparent);
  box-shadow: 0 6px 20px rgba(28, 43, 38, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: 0.7rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--gran);
}
.header-cta { padding: 0.7rem 1.15rem; min-height: 42px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) var(--section-y); text-align: center; position: relative; }
/* Faint grid behind the hero, masked so it dissolves toward the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(28, 43, 38, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 43, 38, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 40%, transparent 78%);
          mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 40%, transparent 78%);
}
.hero__text { max-width: 46rem; margin-inline: auto; }
.hero h1 {
  font-size: var(--step-4);
  max-width: 20ch;
  margin-inline: auto;
}
/* Off by default — desktop/tablet keep their natural wrap. */
.hero__break, .mobile-break { display: none; }
/* Accent-coloured word (e.g. the highlighted headline word). */
.text-accent { color: var(--ockra); }
.hero .lead { margin-top: var(--s3); max-width: 48ch; margin-inline: auto; }
.hero__trades {
  margin-top: var(--s2);
  color: var(--dimma);
  font-weight: 500;
  max-width: 44ch;
  margin-inline: auto;
}
.hero__price {
  margin-top: var(--s5);
  max-width: 22rem;
  margin-inline: auto;
}
/* Centered hero → centre the plate's accent tab too. */
.hero__price.plate::before { left: 50%; transform: translateX(-50%); }
.price-plate__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-plate__meta {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--dimma);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero__cta { margin-top: var(--s4); max-width: 22rem; margin-inline: auto; }
.hero__reassure { margin-top: var(--s2); font-size: var(--step--1); color: var(--dimma); }
/* Centre the reassure line's capped box within the centered hero (contact keeps left). */
.hero .hero__reassure { margin-inline: auto; }

/* -------- hero carousel: auto-scrolling strip of work placeholders -------- */
.hero-carousel {
  margin-top: clamp(var(--s5), 6vw, var(--s7));
  overflow: hidden;
  /* Purely decorative — ignore all pointer input (no hover pause, no lift). */
  pointer-events: none;
  /* Fade the two edges so items ease in and out of view. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.hero-carousel__track {
  display: flex;
  width: max-content;
}
.hero-carousel__item {
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 360px);
  aspect-ratio: 3 / 2;
  margin-right: var(--s3);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--papper);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.hero-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Muted placeholder glyph — only shows if a card has no image. */
.hero-carousel__item:has(img)::before { display: none; }
.hero-carousel__item::before {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--dimma);
  opacity: 0.35;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='3'%20width='18'%20height='18'%20rx='2'/%3E%3Ccircle%20cx='8.5'%20cy='8.5'%20r='1.5'/%3E%3Cpath%20d='M21%2015l-5-5L5%2021'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='3'%20width='18'%20height='18'%20rx='2'/%3E%3Ccircle%20cx='8.5'%20cy='8.5'%20r='1.5'/%3E%3Cpath%20d='M21%2015l-5-5L5%2021'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   OFFER — the five named components
   ========================================================================= */
.offer-list {
  list-style: none;
  padding: 0;
  margin-top: var(--s5);
  display: grid;
  gap: var(--s3);
}
.offer-card {
  background: var(--papper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
}
.offer-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: var(--s2);
}
.offer-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--ockra);
  line-height: 1;
  flex: none;
}
.offer-card h3 { font-size: var(--step-2); }
/* Inline star for "Fem ★ reviews". Uses the brand accent, self-hosted SVG. */
.star-icon {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin: 0 0.18em;
  vertical-align: -0.08em;
  fill: var(--ockra);
}
.offer-card__points {
  list-style: none;
  padding: 0;
  margin-top: var(--s2);
  display: grid;
  gap: 0.6rem;
}
.offer-card__points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--gran);
  max-width: 52ch;
}
.offer-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 2px;
  background: var(--ockra);
}

/* =========================================================================
   STEPS — the one earned sequence
   ========================================================================= */
.steps {
  list-style: none;
  padding: 0;
  margin-top: var(--s5);
  display: grid;
  gap: var(--s3);
  counter-reset: step;
}
.step { counter-increment: step; }
.step .plate { height: 100%; }
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1;
}
.step__num::before { content: counter(step); }
.step h3 { margin-top: var(--s2); font-size: var(--step-2); }
.step__time {
  display: inline-block;
  margin-top: var(--s2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ockra);
}
.step p { margin-top: 0.6rem; color: var(--gran); }

/* =========================================================================
   TRADES
   ========================================================================= */
.trades {
  list-style: none;
  padding: 0;
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
}
.trades li {
  border: 1px solid var(--border);
  background: var(--papper);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* =========================================================================
   CASES
   ========================================================================= */
.case-grid {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s4);
  /* One example per row, full container width. */
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--papper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  text-decoration: none;
  color: inherit;
  min-height: 9rem;
  transition: border-color 180ms ease, transform 180ms ease;
}
.case-card--link:hover { border-color: var(--gran); transform: translateY(-2px); }
.case-card__trade { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.case-card__town { color: var(--dimma); }
.case-card__status {
  margin-top: auto;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ockra);
}
.case-placeholder {
  border-style: dashed;
  border-color: var(--border);
  background: transparent;
}

/* Example designs: bare title above the screenshot, no card box. */
.case-example {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.case-example__img {
  display: block;
  width: 100%;
  aspect-ratio: 1603 / 1080;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
.placeholder-note {
  margin-top: var(--s3);
  font-size: var(--step--1);
  color: var(--dimma);
}

/* =========================================================================
   PRICE — the offer, lifted onto the dark spruce ground for light→dark rhythm
   ========================================================================= */
.price-section {
  background: var(--gran);
  color: var(--on-dark);
  border-top: none;
}
.price-section .eyebrow { color: var(--ockra); }
.price-section h2 { color: var(--on-dark); }
/* The section after a dark one shouldn't carry a light hairline seam. */
.price-section + .section { border-top: none; }
/* The plate is a light card on the dark section — keep its own text dark. */
.price-section .plate { max-width: 40rem; margin-top: var(--s5); color: var(--gran); }
.price-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-vat { color: var(--dimma); font-weight: 500; margin-top: 0.4rem; }
.price-includes {
  list-style: none;
  padding: 0;
  margin: var(--s4) 0;
  display: grid;
  gap: 0.7rem;
}
.price-includes li {
  position: relative;
  padding-left: 1.9rem;
}
/* Checkmark: a box with two borders, rotated 45° to form a tick. */
.price-includes li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.15em;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--ockra);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* =========================================================================
   FAQ — native <details>, no JS
   ========================================================================= */
.faq { margin-top: var(--s5); max-width: 52rem; }
.faq__item {
  border-top: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  padding: var(--s3) 2.5rem var(--s3) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
/* Marker: two ockra bars forming a "+"; the vertical bar rotates flat to a "−". */
.faq__q::before,
.faq__q::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.85rem;
  height: 2px;
  background: var(--ockra);
  border-radius: 2px;
  transition: transform 240ms ease;
}
.faq__q::after { transform: translateY(-50%); }
.faq__q::before { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__q::before { transform: translateY(-50%) rotate(0deg); }
.faq__a { padding-bottom: var(--s3); }
.faq__a p + p { margin-top: var(--s2); }
.faq__item[open] .faq__a { animation: faq-open 260ms ease; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================================
   OM OSS
   ========================================================================= */
.about p { margin-top: var(--s3); max-width: var(--measure); }
.about__person {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.about__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.about__role { color: var(--dimma); }

/* =========================================================================
   CONTACT
   ========================================================================= */
/* Repeated booking CTA placed at natural decision points between sections. */
.section-cta {
  margin-top: var(--s5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.section-cta p {
  font-size: var(--step-1);
  color: var(--gran);
  max-width: var(--measure);
}

/* -------------------------------------------------------------------------
   Centered focal sections — Yrken, Pris, Kontakt (Hero is centered on its own).
   Short, focal "moments"; the dense content sections stay flush-left.
   ------------------------------------------------------------------------- */
.section--center { text-align: center; }
.section--center p { margin-inline: auto; }          /* centre capped text boxes */
.section--center .trades { justify-content: center; }
.section--center .plate { margin-inline: auto; }
.section--center .plate::before { left: 50%; transform: translateX(-50%); }
.section--center .price-includes {
  display: inline-grid;   /* shrink-wrap so the checklist centres as a block… */
  text-align: left;       /* …while its items stay flush-left for reading */
}
.section--center .price-cta { margin-inline: auto; }
.section--center .contact__form { margin-inline: auto; }
/* Repeated CTA blocks centre with their section. */
.section--center .section-cta { align-items: center; }
/* Cards with bullet lists must keep their text flush-left to read correctly. */
.section--center .offer-card { text-align: left; }
.section--center .offer-card p { margin-inline: 0; }
/* Centre the FAQ accordion as a block on the page. */
.section--center .faq { margin-inline: auto; }

.price-cta { margin-top: var(--s4); max-width: 22rem; }

/* Inline GHL booking form. */
.contact__form { margin-top: var(--s4); max-width: 34rem; }
.contact__form iframe { width: 100%; min-height: 400px; display: block; }

/* =========================================================================
   BOOKING MODAL — GHL form in a popup, opened by any booking CTA
   ========================================================================= */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
}
.booking-modal[hidden] { display: none; }
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 22, 0.55);
  /* Fades in each time the modal is un-hidden. */
  animation: modal-backdrop-in 200ms ease;
}
.booking-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  background: var(--papper);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modal-dialog-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.booking-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gran);
  background: var(--papper);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.booking-modal__head {
  padding: var(--s4) 3rem var(--s2) var(--s4);
}
.booking-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.booking-modal__sub {
  margin-top: 0.4rem;
  color: var(--dimma);
  font-size: var(--step--1);
}
.booking-modal__dialog iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
}

/* =========================================================================
   FOOTER — facts, not marketing
   ========================================================================= */
.site-footer {
  background: var(--gran);
  color: var(--on-dark);
  padding-block: var(--s6);
}
.site-footer a { color: var(--on-dark); }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}
.footer-facts {
  margin-top: var(--s3);
  display: grid;
  gap: 0.4rem;
  color: var(--on-dark-dim);
  font-size: var(--step--1);
}
.footer-facts a { color: var(--on-dark); text-underline-offset: 3px; }
.footer-legal {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--on-dark-dim);
  font-size: var(--step--1);
}

/* =========================================================================
   CASE DETAIL (template page)
   ========================================================================= */
.example-banner {
  background: var(--gran);
  color: var(--on-dark);
  font-size: var(--step--1);
}
.example-banner .container { padding-block: 0.7rem; }
.back-link {
  display: inline-block;
  margin-bottom: var(--s3);
  font-weight: 600;
  color: var(--dimma);
  text-decoration: none;
}
.back-link:hover { color: var(--gran); }
.case-detail h1 { font-size: var(--step-4); max-width: 18ch; }
.case-detail__meta { margin-top: var(--s2); color: var(--dimma); font-weight: 500; }
.beforeafter {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s3);
}
.ba-card { text-align: left; }
.ba-card__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dimma);
}
.ba-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem);
  line-height: 1;
  margin-top: 0.4rem;
}
.ba-card--after .ba-card__num { color: var(--gran); }
.ba-card__sub { margin-top: 0.4rem; color: var(--dimma); font-size: var(--step--1); }
.case-changes { margin-top: var(--s5); }
.case-changes ul { margin-top: var(--s3); padding-left: 0; list-style: none; display: grid; gap: 0.7rem; }
.case-changes li { position: relative; padding-left: 1.6rem; max-width: 52ch; }
.case-changes li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 0.7rem; height: 2px; background: var(--ockra);
}
.case-site { margin-top: var(--s5); }
.case-cta { margin-top: var(--s6); max-width: 22rem; }
@media (min-width: 700px) {
  .beforeafter { grid-template-columns: 1fr 1fr; }
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gran);
  color: var(--on-dark);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   PREMIUM DETAILS — icons, depth, dividers, framing, form skeleton
   ========================================================================= */

/* ---- feature & step line-icons (ockra stroke, drawn inline) ---- */
.offer-card__icon,
.step__icon { display: block; }
.offer-card__icon { margin-bottom: var(--s2); }
.step__icon { margin-bottom: var(--s1); }
.offer-card__icon svg,
.step__icon svg {
  width: 1.85rem;
  height: 1.85rem;
  stroke: var(--ockra);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* With an icon present, the step number becomes a quieter marker. */
.step__icon + .step__num { font-size: var(--step-1); color: var(--dimma); }

/* ---- arrow that slides on the CTA ---- */
.btn::after {
  content: "\2192"; /* → */
  font-family: var(--font-body);
  transition: transform 220ms ease;
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(4px); }

/* ---- soft, layered depth on cards ---- */
.offer-card,
.plate {
  box-shadow:
    0 1px 2px rgba(28, 43, 38, 0.04),
    0 6px 16px rgba(28, 43, 38, 0.05),
    0 16px 40px rgba(28, 43, 38, 0.045);
}

/* ---- section dividers: a small ockra tab centred on the seam ---- */
.section + .section { position: relative; }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.75rem;
  height: 4px;
  background: var(--ockra);
  border-radius: 0 0 2px 2px;
}
/* No seam-tab where the dark price section removes the border. */
.price-section + .section::before { display: none; }

/* ---- technical corner brackets framing the price plate ---- */
.price-section .plate {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%3E%3Cpath%20d='M13%201H1V13'%20fill='none'%20stroke='%23b26a28'%20stroke-width='1.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%3E%3Cpath%20d='M1%201H13V13'%20fill='none'%20stroke='%23b26a28'%20stroke-width='1.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%3E%3Cpath%20d='M13%2013H1V1'%20fill='none'%20stroke='%23b26a28'%20stroke-width='1.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%3E%3Cpath%20d='M1%2013H13V1'%20fill='none'%20stroke='%23b26a28'%20stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: 9px 9px, right 9px top 9px, left 9px bottom 9px, right 9px bottom 9px;
  background-repeat: no-repeat;
}

/* ---- hand-drawn ockra underline under the accent word ---- */
.text-accent { position: relative; }
.text-accent::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.16em;
  height: 0.22em;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2014'%20preserveAspectRatio='none'%3E%3Cpath%20d='M3%209C40%204%2075%2011%20110%206S180%205%20197%208'%20fill='none'%20stroke='%23b26a28'%20stroke-width='4'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---- form loading skeleton (hidden once the iframe fires 'load') ---- */
.form-embed { position: relative; }
.form-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2; /* sit above the iframe until the form has loaded */
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  background: var(--gran);
  border-radius: 8px;
  transition: opacity 400ms ease;
}
.form-embed.is-loaded .form-skeleton { opacity: 0; visibility: hidden; }
.form-skeleton__line,
.form-skeleton__btn { border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.form-skeleton__line { height: 2.6rem; }
.form-skeleton__btn { height: 2.8rem; margin-top: auto; background: color-mix(in srgb, var(--ockra) 55%, transparent); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* Mobile: header CTA wraps to two lines — center the wrapped text. */
@media (max-width: 699px) {
  .header-cta { text-align: center; }
  /* Hide the trades line on mobile only (kept on desktop). */
  .hero__trades { display: none; }
  /* Force the headline's line breaks so every phone width wraps identically. */
  .hero__break, .mobile-break { display: inline; }
}
@media (min-width: 700px) {
  .offer-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .header-cta { padding: 0.75rem 1.35rem; }
  /* The lone 5th feature spans the full row so it reads as a rectangle,
     not a half-card with an empty slot beside it. The whole card is
     centre-aligned (the one exception among the left-aligned cards). */
  .offer-card:nth-child(5) { grid-column: 1 / -1; text-align: center; }
  .offer-card:nth-child(5) .offer-card__icon svg { margin-inline: auto; }
  .offer-card:nth-child(5) .offer-card__head { justify-content: center; }
  .offer-card:nth-child(5) > p { margin-inline: auto; }
  .offer-card:nth-child(5) .offer-card__points {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s4);
  }
  .offer-card:nth-child(5) .offer-card__points li {
    padding-left: 0;
    max-width: none;
  }
  .offer-card:nth-child(5) .offer-card__points li::before {
    position: static;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
  }
}

/* =========================================================================
   MOTION — subtle, and fully disabled on request
   ========================================================================= */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* -------- Hero entrance: a clean, staggered rise on first load -------- */
  .site-header { animation: header-in 600ms ease both; }
  .hero__text > *,
  .hero-carousel {
    animation: rise-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero__text > *:nth-child(1) { animation-delay: 80ms; }
  .hero__text > *:nth-child(2) { animation-delay: 170ms; }
  .hero__text > *:nth-child(3) { animation-delay: 260ms; }
  .hero__text > *:nth-child(4) { animation-delay: 350ms; }
  .hero__text > *:nth-child(5) { animation-delay: 440ms; }
  .hero__text > *:nth-child(6) { animation-delay: 530ms; }
  .hero-carousel { animation-delay: 640ms; }

  /* Stagger the cards within a revealed section so they settle in one by one. */
  .reveal .offer-card,
  .reveal .step {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms ease;
  }
  .reveal.is-visible .offer-card,
  .reveal.is-visible .step { opacity: 1; transform: none; }
  .reveal.is-visible .offer-card:nth-child(2),
  .reveal.is-visible .step:nth-child(2) { transition-delay: 80ms; }
  .reveal.is-visible .offer-card:nth-child(3),
  .reveal.is-visible .step:nth-child(3) { transition-delay: 160ms; }
  .reveal.is-visible .offer-card:nth-child(4) { transition-delay: 240ms; }
  .reveal.is-visible .offer-card:nth-child(5) { transition-delay: 320ms; }

  /* Marquee only animates when motion is welcome; otherwise the strip is static. */
  .hero-carousel__track { animation: hero-marquee 45s linear infinite; }

  /* The ockra plate tab "draws in" as its section reveals. */
  .reveal .plate::before { width: 0; transition: width 550ms cubic-bezier(0.22, 1, 0.36, 1) 250ms; }
  .reveal.is-visible .plate::before { width: 2.75rem; }

  /* Skeleton fields pulse gently while the form loads. */
  .form-skeleton__line,
  .form-skeleton__btn { animation: skeleton-pulse 1.4s ease-in-out infinite; }
  @keyframes skeleton-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
