/* ===== Tokens (from Figma "1440w light") ===== */
:root {
  --header-h: 80px;
  --bg: #fcfcfc;
  --surface: #f5f5f5;
  --border: #e5e5e5;
  --border-soft: rgba(229, 229, 229, 0.4);
  --ink: #171717;
  --ink-strong: #0a0a0a;
  --text: #404040;
  --text-2: #525252;
  --muted: #737373;
  --faint: #a1a1a1;
  --nav-ink: #1c2024;
  --black: #000;
  --white: #fff;

  --font-display: "Satoshi", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --r-card: 18px;
  --r-img: 12px;
  --r-hero: 20px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ===== Shared ===== */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -2.4px;
  color: var(--ink);
}
.lead {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.1px;
  color: var(--text);
  max-width: 697px;
}
.lead--narrow { max-width: 441px; }
.muted { font-size: 14px; line-height: 20px; color: var(--muted); }
.dark { color: var(--ink); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 360px;
  max-width: 100%;
  height: 60px;
  border-radius: var(--r-pill);
  background: var(--black);
  border: 1px solid rgba(251, 250, 247, 0.1);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:active { transform: scale(.98); }

.stars { display: inline-flex; gap: 2px; }
.stars i {
  width: 16px; height: 16px;
  background: url("assets/star.svg") center / 83% no-repeat;
}
.stars--sm i { width: 14px; height: 14px; background-image: url("assets/star-small.svg"); }

.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating__badge {
  height: 22px;
  padding: 0 6px;
  display: inline-flex; align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px; font-weight: 500; line-height: 16px;
  color: rgba(10, 10, 10, 0.7);
}

.section-head { text-align: center; display: grid; gap: 12px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: var(--ink-strong);
}
.section-head p { font-size: 18px; line-height: 28px; color: var(--text-2); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: var(--black);
}

/* ===== Nav ===== */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--black); color: var(--white); font-size: 14px; font-weight: 500;
}
/* fully hidden until a keyboard user tabs to it */
.skip-link:not(:focus) {
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Header: transparent at the top of the page. Scrolling down fades it out;
   scrolling up fades it back in with a frosted near-white background so the
   links keep full contrast over photos. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  padding: 20px 24px;
  background: rgba(252, 252, 252, 0);
  border-bottom: 1px solid transparent;
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s,
              background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;                 /* hidden links can't be clicked by accident */
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s,
              background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav.is-hidden { transform: none; }
}
.nav.is-scrolled {
  background: rgba(252, 252, 252, 0.94);
  border-bottom-color: rgba(229, 229, 229, 0.7);
  box-shadow: 0 1px 12px rgba(10, 10, 10, 0.04);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-scrolled {
    background: rgba(252, 252, 252, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav a:focus-visible, .btn-primary:focus-visible, .design__dots button:focus-visible, .footer a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px;
}
.btn-join:focus-visible, .btn-primary:focus-visible { border-radius: var(--r-pill); }
.nav__inner {
  max-width: 1156px;
  margin: 0 auto;
  height: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav__links { display: flex; gap: 24px; font-size: 14px; line-height: 21px; color: var(--nav-ink); }
.nav__links a { padding: 4px 0; transition: opacity .2s ease; }
.nav__links a:hover { opacity: .6; }
.btn-join {
  justify-self: end;
  height: 40px;
  padding: 0 16px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-pill);
  background: var(--black);
  color: var(--white);
  font-size: 15px; font-weight: 500;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 24px 0;               /* 80px below the 60px nav line */
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero .display { margin-top: 12px; }   /* stars -> heading */
.hero .lead { margin-top: 16px; }      /* heading -> paragraph */
.hero .btn-primary { margin-top: 64px; }

.hero-meta {
  max-width: 1296px;
  margin: 141px auto 0;
  padding: 0 24px;
  box-sizing: content-box;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14px; line-height: 20px; color: var(--muted);
}
.hero-image {
  max-width: 1296px;
  margin: 61px auto 0;
  padding: 0 24px;
  box-sizing: content-box;
}
/* Hero media: a photo wall that bleeds off the edges (Figma "image" 1296x729).
   Sizes use --u (1% of the box width) so the whole wall scales with the page. */
.hero-media {
  --u: 1cqw;
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 1296 / 729;
  overflow: hidden;
  border-radius: var(--r-hero);
  background: var(--white);
}
.hero-media__grid {
  position: absolute;
  left: calc(-3.318 * var(--u));      /* -43px at 1296 */
  top: calc(-11.65 * var(--u));       /* -151px */
  display: flex;
  align-items: flex-start;
  gap: calc(2.469 * var(--u));        /* 32px */
}
.hero-media__col {
  flex: none;
  width: calc(19.506 * var(--u));     /* 252.8px */
  display: grid;
  gap: calc(2.469 * var(--u));
}
.hero-media__col img {
  width: 100%;
  object-fit: cover;
  border-radius: max(8px, calc(0.926 * var(--u)));   /* 12px */
  background: #ececec;
}
.hero-media__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===== Feature slider (scroll-locked) =====
   The section is tall; its inner "pin" sticks to the viewport while you scroll
   through it. script.js turns scroll position into the active slide (0–3). */
.features-scroll {
  --step: 90vh;                       /* scroll distance per slide */
  position: relative;
  margin-top: 60px;
  height: calc(100vh + (var(--slides) - 1) * var(--step));
}
.features-scroll__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--header-h) 24px 0;     /* keep slides clear of the fixed header */
}
.design {
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr);
  grid-template-areas: "dots phone copy";
  align-items: center;
}
.design__dots { grid-area: dots; display: grid; gap: 16px; }
.design__dots button {
  width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.design__dots button:hover { transform: scale(1.15); }
.design__dots button.is-active { background: var(--black); }

.design__phones { grid-area: phone; display: grid; margin-left: 137px; }
.design__phone {
  grid-area: 1 / 1;
  height: min(785px, calc(100svh - var(--header-h) - 48px));
  width: auto;
  aspect-ratio: 361 / 785;
  object-fit: contain;
}
.design__copy {
  grid-area: copy;
  margin-left: 90px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.design__slides { display: grid; width: 100%; justify-items: center; }
.design__slide { grid-area: 1 / 1; align-self: center; display: flex; flex-direction: column; align-items: center; }

/* slide animation: current one in place, earlier ones exit up, later ones wait below */
.design__phone, .design__slide {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.design__phone.is-past, .design__slide.is-past { transform: translateY(-48px); }
.design__phone.is-active, .design__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.design__phone { transform: translateY(80px) scale(.97); }
.design__phone.is-past { transform: translateY(-80px) scale(.97); }
.design__phone.is-active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .design__phone, .design__slide { transition: opacity .2s linear; transform: none !important; }
}
.features {
  list-style: none; margin: 0;
  width: 350px; max-width: 100%;
  padding: 24px;
  display: grid; gap: 16px;
  background: var(--surface);
  border-radius: var(--r-card);
  text-align: left;
}
.features li {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px; line-height: 1;
  letter-spacing: -0.56px;
  color: rgba(0, 0, 0, 0.8);
}
.design .display { margin-top: 40px; }
.design .lead { margin-top: 32px; }
.design .btn-primary { margin-top: 64px; }

/* ===== Features list (tablet/phone, Figma "Features-Mobile-Section") ===== */
.anchor { display: block; height: 0; }
.features-mobile {
  display: none;
  margin-top: 100px;
  padding: 0 20px;
  justify-items: center;
  row-gap: 100px;                        /* card bottom -> next phone */
}
.fm__item { width: 100%; max-width: 350px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fm__phone { width: 224px; max-width: 64%; aspect-ratio: 224 / 486; height: auto; object-fit: contain; }
.fm__title {
  margin-top: 64px;
  max-width: 340px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px; line-height: 1.1; letter-spacing: -1.6px;
  color: var(--ink);
}
.fm__text {
  margin-top: 24px;
  max-width: 340px;
  font-size: 18px; line-height: 30px; letter-spacing: -0.1px;
  color: var(--text);
}
.fm__item .btn-primary { margin-top: 40px; width: 340px; }
.fm__item .features { margin-top: 32px; width: 100%; padding: 16px 24px; }

/* ===== Trust / reviews ===== */
.trust {
  margin-top: 220px;                    /* 160px section gap in Figma, measured from the phone */
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.trust__icon { width: 64px; height: 64px; }
.trust .rating { margin-top: 22px; }
.trust .display { margin-top: 12px; }
.trust .muted { margin-top: 32px; }

.reviews {
  position: relative;
  width: 100%;
  max-width: 1104px;
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: left;
}
.review {
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex; flex-direction: column;
}
.review p {
  margin-top: 14px;
  font-size: 14px; line-height: 22.75px;
  color: var(--text-2);
  flex: 1;
}
.review footer { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.review footer img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}
.review footer div { display: grid; }
.review strong { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--ink); }
.review footer span { font-size: 12px; line-height: 16px; color: var(--muted); }
/* Fade panel over the last row (Figma "Gradient", no blur) */
.reviews__fade {
  position: absolute;
  left: 0; right: 0; bottom: -12.5px;
  height: 153px;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, var(--surface) 25%, rgba(245, 245, 245, 0.9) 50%, rgba(245, 245, 245, 0.9) 100%);
}

/* ===== Inspiration ===== */
.inspo {
  margin-top: 172px;
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center;
}
.inspo__head { text-align: center; display: grid; gap: 32px; justify-items: center; }
.inspo__head p { font-size: 20px; line-height: 20px; color: var(--muted); }
.inspo__wall { position: relative; width: 100%; max-width: 1392px; margin-top: 100px; }
.masonry {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: start;
}
.masonry__col { display: grid; gap: 32px; }
.masonry img {
  width: 100%;
  height: auto;               /* width/height attrs are only for layout hints; aspect-ratio sets the shape */
  object-fit: cover;
  border-radius: var(--r-img);
  background: #ececec;
}
/* Soft blurred fade over the bottom of the wall, with the CTA sitting on it */
.inspo__fade {
  position: absolute;
  left: -15px; right: -15px; bottom: -4px;
  height: 356px;
  pointer-events: none;
  opacity: .8;
  background: linear-gradient(to top, var(--bg) 50%, rgba(252, 252, 252, 0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 45%, transparent 100%);
}
.inspo__cta {
  position: absolute;
  left: 50%; bottom: 37px;
  transform: translateX(-50%);
}
.inspo__cta:active { transform: translateX(-50%) scale(.98); }

/* ===== FAQ ===== */
.faq {
  margin-top: 204px;                    /* 200px below the inspiration fade */
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center;
}
.faq__grid {
  width: 100%;
  max-width: 1302px;
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.faq__card {
  min-height: 248px;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--surface);
  border-radius: var(--r-card);
}
.faq__num {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; line-height: 16px;
  letter-spacing: 0.3px;
  color: var(--faint);
}
.faq__card h3 {
  margin-top: 16px;
  font-size: 15px; font-weight: 500; line-height: 22.5px;
  color: var(--ink);
}
.faq__card p {
  margin-top: 10px;
  max-width: 360px;
  font-size: 14px; line-height: 22.75px;
  color: var(--muted);
}

/* ===== Footer ===== */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--border-soft);
  padding: 64px 24px 124px;
}
.footer__inner { max-width: 1104px; margin: 0 auto; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 195px);
  column-gap: 32px;
}
.footer__cols nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer__cols h4 {
  font-size: 11px; font-weight: 600; line-height: 16.5px;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: rgba(10, 10, 10, 0.5);
  margin-bottom: 19px;
}
.footer__cols a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; line-height: 20px;
  color: rgba(10, 10, 10, 0.7);
  margin-bottom: 14px;
}
.footer__cols a:hover { color: var(--ink-strong); }
.footer__cols a.dim { color: rgba(10, 10, 10, 0.4); }
.count {
  min-width: 20px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 500; line-height: 10px;
  color: rgba(10, 10, 10, 0.6);
}
.footer__brand {
  margin-top: 43px;
  border-top: 1px solid var(--border-soft);
  padding: 24px 0 20px;
}
.footer__brand p {
  margin-top: 24px;
  font-size: 14px; line-height: 22.75px;
  color: rgba(10, 10, 10, 0.6);
}
.footer__legal {
  border-top: 1px solid var(--border-soft);
  padding-top: 23px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 12px; line-height: 12px;
  color: rgba(10, 10, 10, 0.5);
}
.footer__legal a:hover { color: var(--ink-strong); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .design__phones { margin-left: 48px; }
  .design__copy { margin-left: 48px; }
  .masonry { gap: 20px; }
  .masonry__col { gap: 20px; }
}

@media (max-width: 960px) {
  .display { font-size: 48px; letter-spacing: -1.8px; }
  .hero { padding-top: 128px; }
  .hero-meta, .hero-image { margin-top: 64px; }
  .hero-image { margin-top: 32px; }
  /* tablet/phone: swap the scroll-locked slider for the plain list of cards */
  .features-scroll { display: none; }
  .features-mobile { display: grid; }
  .reviews { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .inspo, .faq { margin-top: 120px; }
  .inspo__wall, .faq__grid { margin-top: 64px; }
  .inspo__head .display { font-size: 40px; letter-spacing: -1.4px; }
  .inspo__head { gap: 16px; }
  .inspo__head p { font-size: 16px; line-height: 24px; }
  .trust { margin-top: 100px; }
  .inspo__fade { height: 280px; }
  /* masonry collapses into flowing columns */
  .masonry { display: block; columns: 3; column-gap: 16px; }
  .masonry__col { display: contents; }
  .masonry img { break-inside: avoid; margin-bottom: 16px; }
  .faq__grid { grid-template-columns: repeat(2, 1fr); }
  .footer { margin-top: 120px; padding-bottom: 64px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 640px) {
  .display { font-size: 38px; letter-spacing: -1.2px; }
  .lead { font-size: 17px; line-height: 26px; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero { padding-top: 124px; }
  .hero .display { margin-top: 12px; }      /* stars -> heading */
  .hero .lead { margin-top: 16px; }         /* heading -> paragraph */
  .hero .btn-primary { margin-top: 40px; }
  .hero-meta { flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-top: 32px; }  /* button -> "55,000+ designs" */
  .hero-media { --u: 1.7cqw; aspect-ratio: 1 / 1; }
  .reviews { grid-template-columns: 1fr; }
  /* show only 4 reviews; the fade sits over the 4th */
  .review:nth-of-type(n+5) { display: none; }
  /* phone: plain fade over the 4th card, no frosted blur */
  .reviews__fade {
    height: 200px; bottom: -2px;
    background: linear-gradient(to top, var(--bg) 0%, rgba(252, 252, 252, 0.92) 35%, rgba(252, 252, 252, 0) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .masonry { columns: 2; column-gap: 12px; }
  .masonry img { margin-bottom: 12px; }
  /* half the images on mobile: keep the first 2 of each column */
  .masonry__col img:nth-child(n+3) { display: none; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__card { min-height: 0; padding: 28px 24px; }
  .section-head h2 { font-size: 30px; line-height: 36px; }
}

/* =====================================================================
   Inner pages: styles, blog, guides (generated pages share these)
   ===================================================================== */
.display--md { font-size: 48px; letter-spacing: -1.8px; }
.page { padding: 0 24px; }
.page-hero {
  max-width: 820px; margin: 0 auto;
  padding-top: 156px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.page-hero .display { margin-top: 20px; }
.page-hero .lead { margin-top: 24px; }
.page-hero .btn-primary { margin-top: 40px; }

.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.crumbs__sep { color: var(--border); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--muted);
}
.count--light { background: var(--white); }

/* image slots: filled by script.js when a file exists, otherwise a placeholder */
.ph {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #f3f3f3 0 14px, #efefef 14px 28px);
  border: 1px dashed #d9d9d9; border-radius: var(--r-img);
  color: var(--faint); font-size: 13px; text-align: center; padding: 16px;
  overflow: hidden;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { border: 0; background: #ececec; }
.ph.has-img > span { display: none; }
.ph--tile { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -.5px; color: #c4c4c4; }

/* ---- style page ---- */
.style-gallery {
  max-width: 1156px; margin: 100px auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  align-items: start;
}
.style-gallery figure { margin: 0; width: 100%; aspect-ratio: 3 / 4; }
.style-gallery figure:nth-child(even) { margin-top: 48px; }
.style-info {
  max-width: 1000px; margin: 120px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.style-info h2, .more-styles h2, .related h2 {
  font-family: var(--font-display); font-weight: 900; font-size: 28px; letter-spacing: -.8px; color: var(--ink);
}
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; line-height: 24px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.pills { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); font-size: 14px; color: var(--text); }
.callout {
  margin-top: 32px; padding: 20px 24px;
  background: var(--surface); border-radius: var(--r-card);
  font-size: 15px; line-height: 24px; color: var(--text-2);
}
.callout strong { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.callout p { margin: 0; }

.more-styles { max-width: 1000px; margin: 120px auto 0; text-align: center; }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--white); font-size: 14px; color: var(--text);
  transition: border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---- styles index ---- */
.style-grid {
  max-width: 1156px; margin: 100px auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px;
}
.style-card { display: flex; flex-direction: column; }
.style-card .ph { aspect-ratio: 3 / 4; height: auto; transition: transform .3s ease; }
.style-card:hover .ph { transform: translateY(-4px); }
.style-card h2 { margin-top: 16px; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.4px; color: var(--ink); }
.style-card p { margin-top: 6px; font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band {
  max-width: 1104px; margin: 140px auto 0;
  padding: 64px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border-radius: 28px;
}
.cta-band h2 { margin-top: 24px; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.1; letter-spacing: -1.4px; color: var(--ink); }
.cta-band p { margin-top: 16px; max-width: 520px; font-size: 18px; line-height: 28px; color: var(--text); }
.cta-band .btn-primary { margin-top: 32px; }

/* ---- blog index ---- */
.filters { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--white);
  font: 500 14px/1 var(--font-body); color: var(--text); cursor: pointer;
}
.filters button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.filters button[aria-selected="true"] .count { background: rgba(255,255,255,.18); color: var(--white); }
.blog { max-width: 1156px; margin: 80px auto 0; }
.post-feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 16px; background: var(--surface); border-radius: 28px;
}
.post-feature__media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-feature:hover img { transform: scale(1.03); }
.post-feature__body { padding: 16px 32px 16px 0; }
.post-feature h2 { margin-top: 16px; font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.1; letter-spacing: -1.4px; color: var(--ink); }
.post-feature p { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--text); }
.link-arrow { display: inline-block; margin-top: 24px; font-weight: 600; font-size: 15px; color: var(--ink); }
.post-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.post-card { display: flex; flex-direction: column; align-items: flex-start; }
.post-card[hidden], .post-feature[hidden] { display: none; }
.post-card__media { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; margin-bottom: 18px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card__media .ph { border-radius: var(--r-card); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card h3 { margin-top: 12px; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.2; letter-spacing: -.5px; color: var(--ink); }
.post-card p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--muted); }

/* ---- guide article ---- */
.article { max-width: 1104px; margin: 0 auto; }
.article__head { max-width: 760px; margin: 0 auto; padding-top: 156px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.article__head .tag { margin-top: 24px; }
.article__head .display { margin-top: 16px; }
.article__head .lead { margin-top: 20px; }
.article__meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.article__hero { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-hero); margin-top: 64px; background: var(--surface); }
.prose { max-width: 680px; margin: 64px auto 0; font-size: 17px; line-height: 29px; color: var(--text); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 48px; font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1.2; letter-spacing: -.8px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--faint); }
.prose .callout { margin-top: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.prose th { text-align: left; padding: 14px 16px; background: var(--surface); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.prose td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.prose td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.pain-bar { display: inline-flex; gap: 3px; vertical-align: middle; }
.pain-bar i { width: 14px; height: 8px; border-radius: 2px; background: var(--border); }
.pain-bar i:nth-child(-n + 5) { background: var(--border); }
.pain-bar[style*="--lvl:1"] i:nth-child(-n + 1),
.pain-bar[style*="--lvl:2"] i:nth-child(-n + 2),
.pain-bar[style*="--lvl:3"] i:nth-child(-n + 3),
.pain-bar[style*="--lvl:4"] i:nth-child(-n + 4),
.pain-bar[style*="--lvl:5"] i:nth-child(-n + 5) { background: var(--ink); }
.pain-label { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }

.trust--inner { margin-top: 140px; padding: 0; }
.trust--inner .display { margin-top: 12px; }
.reviews--static { margin-top: 56px; }
.related { max-width: 1156px; margin: 120px auto 0; }
.related .post-grid { margin-top: 32px; }

@media (max-width: 960px) {
  .page-hero, .article__head { padding-top: 120px; }
  .display--md { font-size: 38px; letter-spacing: -1.2px; }
  .style-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; gap: 12px; }
  .style-gallery figure:nth-child(even) { margin-top: 32px; }
  .style-info { grid-template-columns: 1fr; gap: 48px; margin-top: 80px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; margin-top: 64px; }
  .cta-band { margin-top: 100px; padding: 48px 24px; }
  .cta-band h2 { font-size: 32px; }
  .post-feature { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .post-feature__body { padding: 16px 12px 20px; }
  .post-feature h2 { font-size: 30px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .reviews--static { grid-template-columns: 1fr; max-width: 520px; }
  .trust--inner { margin-top: 100px; }
  .related, .more-styles { margin-top: 100px; }
}
@media (max-width: 640px) {
  .page { padding: 0 20px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16px; line-height: 27px; margin-top: 40px; }
  .article__hero { margin-top: 40px; aspect-ratio: 4 / 3; }
  .cta-band h2 { font-size: 28px; }
  .cta-band p { font-size: 16px; line-height: 24px; }
  .reviews--static .review:nth-of-type(n+5) { display: flex; }
  .prose table { font-size: 14px; line-height: 20px; }
  .prose th, .prose td { padding: 12px 10px; }
  .prose td:first-child { white-space: normal; }
}

/* ---- legal pages ---- */
.legal {
  max-width: 1000px; margin: 80px auto 0;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start;
}
.legal .prose { margin: 0; max-width: 680px; }
.legal .prose h2 { font-size: 24px; scroll-margin-top: var(--header-h); }
.legal .prose h2:first-child { margin-top: 0; }
.legal__toc { position: sticky; top: 100px; font-size: 14px; }
.legal__toc p { font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: rgba(10,10,10,.5); }
.legal__toc ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.legal__toc a { color: var(--muted); transition: color .2s ease; }
.legal__toc a:hover { color: var(--ink); }
.legal__other { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--ink) !important; }
mark.todo { background: #fff3bf; color: inherit; padding: 0 3px; border-radius: 4px; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .legal__toc { position: static; padding: 20px 24px; background: var(--surface); border-radius: var(--r-card); }
}


/* "Request a style" card on the All Styles page */
.ph--request {
  aspect-ratio: 3 / 4; height: auto;
  background: var(--white); border: 1.5px dashed #d4d4d4;
  transition: border-color .2s ease, transform .3s ease;
}
.ph--request span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--black);
}
.ph--request span img { position: static; width: 24px; height: 24px; }
.style-card--request:hover .ph--request { border-color: var(--ink); }

/* footer "Cookie settings" (only shown when analytics is configured) */
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: var(--ink-strong); }

/* cookie consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin-left: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.12);
  font-size: 14px; line-height: 21px; color: var(--text-2);
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.consent.is-in { opacity: 1; transform: none; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent__btn {
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--white);
  font: 500 14px/1 var(--font-body); color: var(--ink); cursor: pointer;
}
.consent__btn--primary { background: var(--black); border-color: var(--black); color: var(--white); }
.consent__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
