/* Stillpost — posters. Neutral white/black base with a natural green accent. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --fg-muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #2d6a4f; /* natural green */
  --accent-hover: #2f7d55;
  --on-accent: #fff;
  --error: #b3261e;
  --nav-bg: #fffffff5;

  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + .5vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + .45vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --max: 61.25rem;
  --max-wide: 80rem;
  --gutter: clamp(1rem, 5vw, 2.75rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 18px;
  --pill: 980px;
  --nav-h: 3.25rem;

  --dur: .3s;
  --ease: cubic-bezier(.28, .11, .32, 1);

  /* Poster set */
  --chalk: #fbf3e8;

  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.47;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); letter-spacing: -.025em; line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .15em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--pill);
  font-weight: 500;
}
.skip-link:focus { top: .5rem; color: var(--on-accent); text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(var(--max-wide) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; margin-inline: auto; max-width: 40rem; }

.kicker {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: .5rem;
}
.lead { font-size: var(--fs-lead); color: var(--fg-muted); line-height: 1.38; }
.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-small); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  min-height: 2.75rem;
  padding: .7rem 1.4rem;
  border-radius: var(--pill);
  border: 1px solid var(--accent);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--accent); }
.btn--secondary:hover { background: var(--accent); color: var(--on-accent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.btn-row--center { justify-content: center; }

.link-more { font-weight: 500; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--fg);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  margin-right: auto;
  white-space: nowrap;
}
.logo-mark { color: var(--accent); flex: none; }
.nav__brand:hover { color: var(--fg); text-decoration: none; }
.nav__links {
  display: flex;
  gap: clamp(.75rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--fg);
  font-size: var(--fs-small);
  opacity: .85;
}
.nav__links a:hover { opacity: 1; text-decoration: none; color: var(--accent); }
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }

.nav__tools { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .5rem;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 1.125rem; height: 1.125rem; }
.nav__menu-btn { display: none; }

@media (max-width: 47.99rem) {
  .nav__menu-btn { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: .75rem 0; font-size: var(--fs-body); border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lead { max-width: 36rem; margin: 1.25rem auto 2rem; }

/* ---------- Filter ---------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding: 0;
  list-style: none;
}
.pill {
  min-height: 2.5rem;
  padding: .5rem 1.1rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 36rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.card[hidden] { display: none; }
.card__link { display: block; color: var(--fg); }
.card__link:hover { color: var(--fg); text-decoration: none; }
.card__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur) var(--ease); }
.card__link:hover .card__frame img { opacity: .92; }
.card__title { margin-top: 1rem; font-size: var(--fs-h3); }
.card__link:hover .card__title { color: var(--accent); }
.card__blurb { margin-top: .35rem; color: var(--fg-muted); }
.ai-label { margin-top: .5rem; font-size: var(--fs-small); color: var(--fg-muted); }

.gallery-empty { text-align: center; color: var(--fg-muted); padding-block: 2rem; }

/* Coming soon tile — a poster-shaped placeholder in the poster's colour */
.tile {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7% 7% 6%;
  background: var(--c, #6e6e73);
  color: var(--on, #fff);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tile__top, .tile__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(.625rem, .55rem + .25vw, .75rem);
}
.tile__bottom { border-top: 1px solid currentColor; padding-top: .75em; }
.tile__headline {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  line-height: .9;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.tile--large .tile__headline { font-size: clamp(2.75rem, 1.8rem + 4vw, 5.5rem); }
.tile__soon {
  align-self: flex-start;
  padding: .45em .9em;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  font-size: clamp(.6875rem, .6rem + .25vw, .8125rem);
  letter-spacing: .08em;
}

/* ---------- Before / after ---------- */

.compare {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  --pos: 50%;
  touch-action: pan-y;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1f;
}
.compare__handle svg { width: 1.25rem; height: 1.25rem; }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare__tag {
  position: absolute;
  bottom: 13%;
  padding: .3rem .75rem;
  border-radius: var(--pill);
  background: #000000b3;
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  pointer-events: none;
}
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; }
.compare-note { margin-top: 1rem; text-align: center; }

/* Mock layers, shown until real images are in place. The bottle sits in the same spot on both sides. */
.mock-photo, .mock-poster { position: absolute; inset: 0; container-type: inline-size; }
.mock-photo { background: #e8e8ea; }
.mock-bottle {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 26%;
  transform: translateX(-50%);
}
.mock-poster {
  padding: 7% 7% 6%;
  background: var(--chalk);
  color: #2e7fb8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mock-poster__top, .mock-poster__bottom {
  position: absolute;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  font-size: max(.625rem, 3cqi);
}
.mock-poster__top { top: 5%; }
.mock-poster__bottom { bottom: 5%; border-top: 1px solid currentColor; padding-top: .75em; }
.mock-poster__headline {
  position: absolute;
  top: 13%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 30cqi;
  line-height: .86;
  letter-spacing: -.03em;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  counter-increment: step;
}
.section--alt .step { background: var(--bg); }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-weight: 600;
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: .5rem; color: var(--fg-muted); }

/* ---------- Pricing ---------- */

.packages {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  justify-content: center;
  align-items: start;
}
.package {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 30rem;
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.package__price { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.package__period { font-size: var(--fs-body); font-weight: 400; color: var(--fg-muted); letter-spacing: 0; }
.package ul { margin: 0; padding: 0; list-style: none; }
.package li { padding: .6rem 0; border-top: 1px solid var(--line); }
.package li:first-child { border-top: 0; }
.package .btn { align-self: flex-start; margin-top: .5rem; }
.package--soon { background: var(--bg); border-style: dashed; }
.badge {
  display: inline-block;
  padding: .35rem .9rem;
  border: 1px solid var(--accent);
  border-radius: var(--pill);
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
}
.trial {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--fg-muted);
}

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.1875rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding-bottom: 1.25rem; color: var(--fg-muted); max-width: 40rem; }

/* ---------- Contact ---------- */

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  margin-inline: auto;
}
@media (min-width: 40rem) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field input {
  min-height: 3rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  transition: border-color var(--dur) var(--ease);
}
.field input:hover { border-color: var(--fg-muted); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: var(--fs-small); min-height: 0; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form__status { font-size: var(--fs-small); }
.form__status[data-state="error"] { color: var(--error); }
.privacy { color: var(--fg-muted); font-size: var(--fs-small); }

/* ---------- Footer ---------- */

.footer {
  padding-block: 2.5rem;
  background: var(--bg-alt);
  color: var(--fg-muted);
  font-size: .8125rem;
  line-height: 1.6;
}
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--fg); }
.footer__note { width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Detail page ---------- */

.detail { padding-block: clamp(2rem, 6vw, 4.5rem) var(--section); }
.detail__back { display: inline-block; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); font-size: var(--fs-small); }
.detail__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 52rem) { .detail__grid { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); } }
.detail__poster {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}
.detail__poster img { width: 100%; height: 100%; object-fit: cover; }
.detail__info h1 { font-size: var(--fs-h2); }
.detail__info .lead { margin-top: 1rem; }
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .75rem 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}
.facts dt { color: var(--fg-muted); }
.facts dd { margin: 0; font-weight: 500; }
.swatch {
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-right: .4em;
  border-radius: 50%;
  vertical-align: -.1em;
  background: var(--c);
  box-shadow: inset 0 0 0 1px #0000001f;
}
.detail__why h2 { font-size: var(--fs-h3); }
.detail__why p { margin-top: .5rem; color: var(--fg-muted); }
.detail__actions { margin-top: 2rem; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.pager a { display: flex; flex-direction: column; gap: .2rem; max-width: 48%; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager .small { color: var(--fg-muted); }

.not-found { text-align: center; padding-block: var(--section); }
.not-found .btn-row { margin-top: 2rem; }

/* ---------- Legal page ---------- */

.legal { padding-block: clamp(2.5rem, 7vw, 5rem) var(--section); }
.legal article { max-width: 44rem; }
.legal h1 { font-size: var(--fs-h2); }
.legal .lead { margin-top: 1rem; }
.legal h2 { font-size: var(--fs-h3); margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.legal h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.legal p, .legal ul { margin-top: .75rem; color: var(--fg); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .4rem; }
.legal .facts { margin-bottom: 1rem; }
.trial.small { margin-top: .5rem; }

/* ---------- Motion ---------- */

.fade-in { animation: fade var(--dur) var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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