/* Shotspa — calm, warm, native, light only. Served from the root of shotspa.com; every asset path
   in the HTML is absolute (/img/...). */

/* The headline face. Self-hosted, so the page makes no request to Google —
   it says "private by design" and should behave like it. Fraunces at its
   soft setting: a warm serif with a little play in it, like the icon. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600-soft-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --peach-wash: #fbeee6;
  --bg: #f7f4ef;
  --bg-raised: #fffdf9;
  --bg-sunk: #efe9e0;
  --text: #22201c;
  --text-soft: #6b655c;
  --line: #e4ddd2;
  /* From the icon. Its coral (#db6a54) is too light to carry white text,
     so the accent is the same hue a step deeper (5.1:1 on white). */
  --accent: #b84c38;
  --accent-soft: #fbe3d8;
  /* The cucumber: small touches only, never a second accent. */
  --cucumber: #2e7d32;
  --cucumber-soft: #e6f2d8;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgb(34 32 28 / 0.06), 0 12px 32px -12px rgb(34 32 28 / 0.18);
  --radius: 14px;
  --page: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

/* No lone last word ("spa / day.") at any width. */
h1, h2, h3, .look-end-title { text-wrap: balance; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }

/* --- Nav --------------------------------------------------------------- */

/* Sticky, under the promotion strip when one runs (header.js sets --promo-h).
   Its background is a layer behind it, the full window wide (not clipped,
   so the Resources menu can hang below); once scrolled it slims down and
   gets a hairline. */
html { scroll-padding-top: calc(var(--promo-h, 0px) + 72px); overflow-x: clip; }
.nav {
  position: sticky;
  top: var(--promo-h, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  transition: padding 0.2s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}
.is-scrolled .nav { padding: 10px 0; }
.is-scrolled .nav::before { box-shadow: 0 1px 0 var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.nav a:not(.brand) {
  color: var(--text-soft);
  font-size: 15px;
  text-decoration: none;
}

.nav a:not(.brand):hover { color: var(--text); }
.nav a.nav-buy {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14px;
}
.nav a.nav-buy:hover { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
@media (max-width: 640px) {
  .nav > a:not(.brand):not(.nav-buy) { display: none; }
}
.nav a.nav-buy, .nav-more summary { white-space: nowrap; }
@media (max-width: 380px) {
  .nav { gap: 12px; }
  .nav a.nav-buy { padding: 7px 12px; }
}
/* The smallest phones (320 px): the icon alone, and the strip keeps one row
   for the price and button. */
@media (max-width: 340px) {
  .brand { font-size: 0; gap: 0; }
  .promo-was { display: none; }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgb(34 32 28 / 0.35); }
.button:active { transform: translateY(1px); box-shadow: none; }

.button-primary { background: var(--accent); color: var(--accent-text); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }

.button-quiet {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line);
}
.button-quiet:hover { border-color: var(--text-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fine { color: var(--text-soft); font-size: 14px; margin: 14px 0 0; }

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

.hero { padding: 56px 0 24px; text-align: center; }

.hero h1 {
  margin: 0 auto;
  max-width: 17ch;
  font-family: var(--display);
  font-size: clamp(44px, 7.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.hero .lede {
  max-width: 34rem;
  margin: 20px auto 30px;
  color: var(--text-soft);
  font-size: clamp(17px, 2.2vw, 20px);
}

.hero .actions { justify-content: center; }
.hero .fine.trust, .page .cta-top .fine.trust { margin-top: 6px; }

/* --- Before and after, under your own hand ---------------------------- */
/* Two stills of the same canvas, the raw one clipped to the left of the
   divider. The range input covers the picture, so it is draggable anywhere,
   by keyboard too, and it needs no script beyond writing --pos. */

.compare {
  position: relative;
  margin: 40px auto 0;
  max-width: 780px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-sunk);
  --pos: 50%;
  touch-action: pan-y;
}
.compare img { display: block; width: 100%; height: auto; }
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(34 32 28 / 0.12);
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322201c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  box-shadow: 0 2px 10px rgb(34 32 28 / 0.25);
}
.compare-label {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgb(255 253 249 / 0.88);
  color: var(--text);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.compare-label.before { left: 14px; }
.compare-label.after { right: 14px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare-range:focus-visible + .compare-handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 560px) {
  .compare-label { top: 8px; padding: 2px 8px; font-size: 11px; }
  .compare-label.before { left: 8px; }
  .compare-label.after { right: 8px; }
  .compare-handle::after { width: 32px; height: 32px; margin: -16px 0 0 -16px; background-size: 16px; }
}

/* --- Hero video: the product at work -------------------------------- */

.hero-video {
  max-width: 960px;
  margin: 44px auto 8px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--peach-wash);
}
.hero-video { position: relative; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sound-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 249 / 0.92);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgb(34 32 28 / 0.35);
  cursor: pointer;
}
.sound-button:hover { border-color: var(--text-soft); }
.sound-button[hidden] { display: none; }
@media (max-width: 560px) {
  .sound-button { right: 10px; bottom: 10px; padding: 7px 12px 7px 10px; font-size: 13px; }
}

/* --- The new middle of the page ---------------------------------------- */

.section-head h2, .row-copy h3, .closing h2, .price { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.section-head.centred { margin-left: auto; margin-right: auto; text-align: center; }

/* A warm band the full width of the window, from inside the page column. */
.band {
  background: var(--peach-wash);
  box-shadow: 0 0 0 100vmax var(--peach-wash);
  clip-path: inset(0 -100vmax);
}

/* The icon's crop marks: two corners, top-left and bottom-right. */
.crop-marks { position: relative; }
.crop-marks::before, .crop-marks::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.crop-marks::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.crop-marks::after { bottom: -14px; right: -14px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

.proof { padding-top: 24px; }

/* The chore before Shotspa: seven chips joined by arrows. */
.problem { padding-top: 24px; }
.chore {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
}
.chore li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 15px;
}
.chore span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.chore li::after { content: "→"; }
.chore li:last-child::after { content: none; }
.compare-wrap { max-width: 780px; margin: 0 auto; }
.proof .compare { margin-top: 0; }

ol.steps { list-style: none; padding: 0; margin: 0; }

/* --- Looks: one at a time, with every name --------------------------- */

.look-viewer { max-width: 720px; margin: 0 auto; }
.look-stage, .frame-stage {
  display: grid;
  /* One column that may shrink below the pictures' own width; `auto` would
     keep 1200 px images wider than a phone and crop their right side. */
  grid-template-columns: minmax(0, 1fr);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgb(34 32 28 / 0.45);
}
/* Every picture sits in the same cell, so the stage keeps its height and
   only the visible one fades in. */
.look-stage img, .frame-stage img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 380ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}
/* A look arrives with a small pop, the way a new look lands in the app. */
.look-stage img { transform: scale(0.96); }
.look-stage img.on { transform: none; }
/* The end card sits in the same cell as the looks and fades the same way. */
.look-end {
  grid-area: 1 / 1;
  /* Above the looks: they are transformed, so they would paint over the
     card and take its clicks even while invisible. */
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #fbe9dc, #f3c7b4 55%, #dbe8d4);
  color: #22201c;
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms ease, visibility 0s 380ms;
}
.look-end.on { opacity: 1; visibility: visible; transition: opacity 380ms ease; }
.look-end-title { margin: 0; font-size: clamp(22px, 4vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.look-end-text { margin: 0; max-width: 34ch; color: #5a554d; }
.look-end .actions { justify-content: center; margin-top: 6px; }
.at-end .look-caption, .at-end .look-hint { visibility: hidden; }
.look-end-hint { margin: 0; font-size: 14px; color: #5a554d; }
/* Frames cross-fade in place: the shot holds still, so the only thing
   that changes is the frame. */
.frame-names { margin-top: 14px; justify-content: center; }

/* A name over a picture: the tilt says which angle it is showing. */
.row-media.tilt { position: relative; }
.media-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.82);
  color: #22201c;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.media-chip.swap { animation: name-in 420ms cubic-bezier(.2, .8, .2, 1); }

/* The keycap beside the look's name presses when the look changes. */
.look-key {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 13px;
  vertical-align: 3px;
  box-shadow: 0 2px 0 var(--line);
}
.look-key.pressed { animation: key-press 360ms ease; }
@keyframes key-press {
  0% { transform: none; box-shadow: 0 2px 0 var(--line); }
  30% { transform: translateY(2px); box-shadow: 0 0 0 var(--line); background: var(--accent-soft); }
  100% { transform: none; box-shadow: 0 2px 0 var(--line); }
}
[data-look-name] { display: inline-block; }
[data-look-name].swap { animation: name-in 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes name-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Focus changes over with the scroll; the dim fades rather than snaps. */
.row-media.focus .row-b, .row-media.hide .row-b { transition: opacity 700ms ease; }
.look-stage img { aspect-ratio: 4 / 3; }
.look-stage img.on, .frame-stage img.on { opacity: 1; }
.look-names, .frame-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.look-names button, .frame-names button {
  font: inherit;
  font-size: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.look-names button:hover, .frame-names button:hover { color: var(--text); border-color: var(--text-soft); }
.look-names button[aria-pressed="true"], .frame-names button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.look-caption { margin: 18px 0 0; text-align: center; color: var(--text-soft); font-size: 16px; }
.look-caption strong { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 19px; }
.look-hint { margin: 8px 0 0; text-align: center; color: var(--text-soft); font-size: 14px; }
.look-grid figure, .frames figure, .range-grid figure { margin: 0; }
.look-grid img, .frames img, .range-grid img, .row-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.look-grid figcaption, .frames figcaption {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}

.rows { display: grid; gap: 88px; }
.row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.row.flip .row-media { order: 2; }
/* Each feature is shown, not told: the picture takes most of the row. */
.rows .row { grid-template-columns: 1.5fr 0.75fr; }
.rows .row.flip { grid-template-columns: 0.75fr 1.5fr; }
.row-copy h3 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; }
.row-copy p { margin: 0; color: var(--text-soft); font-size: 17px; }
.row-copy .row-hint { margin-top: 14px; font-size: 14px; color: var(--accent); }
.on-touch { display: none; }
@media (hover: none) {
  .on-hover { display: none; }
  .on-touch { display: inline; }
}

/* Two pictures in one place; hover — or a tap — shows the second. */
.row-media[data-toggle] { position: relative; cursor: pointer; }
.row-media[data-toggle] .row-b {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}
.row-media[data-toggle]:hover .row-b,
.row-media[data-toggle].on .row-b { opacity: 1; }
.row-media.focus, .row-media.hide { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -34px rgb(34 32 28 / 0.45); }

.frame-stage img { aspect-ratio: 7 / 5; }

.row-media.tilt video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 30px 70px -34px rgb(34 32 28 / 0.45);
}

/* Runs off both edges: there is more where these came from. */
.row-wide { display: grid; gap: 28px; }
.row-copy.centred { max-width: 36rem; margin: 0 auto; text-align: center; }
.palette-strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.palette-strip img { display: block; height: 104px; width: auto; max-width: none; margin: 0 auto; transform: translateX(-4%); }
@media (max-width: 560px) { .palette-strip img { height: 72px; } }

.range-grid {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: start;
}
.range-grid .range-tall { grid-row: span 2; }
/* The raw grab in the corner: what went in, beside what came out. */
.range-grid figure { position: relative; }
.range-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 30%;
  max-width: 160px;
}
.range-grid .range-tall figcaption { width: 34%; }
.range-grid figcaption img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5);
}
.range-grid figcaption span {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  color: #22201c;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.closing {
  margin: 32px 0 56px;
  padding: 72px 24px;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 20% 0%, #f8cdb9 0%, transparent 70%),
    radial-gradient(60% 80% at 90% 100%, #e3efd2 0%, transparent 70%),
    var(--peach-wash);
}
.closing-icon { display: block; margin: 0 auto 18px; border-radius: 22px; }
.closing h2 { margin: 0 auto 10px; max-width: 18ch; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
.closing p { margin: 0 0 26px; color: var(--text-soft); font-size: 18px; }
.closing .actions { justify-content: center; }

@media (max-width: 820px) {
  .row, .row.flip, .rows .row, .rows .row.flip { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .row-media { order: 0; }
  .rows { gap: 64px; }
}
@media (max-width: 560px) {
  .range-grid { grid-template-columns: 1fr; gap: 32px; }
  .range-grid .range-tall { grid-row: auto; max-width: 70%; justify-self: center; }
  /* Too small to read as a corner inset on a phone: the raw grab sits
     under the result instead, big enough to see what went in. */
  .range-grid figcaption,
  .range-grid .range-tall figcaption {
    position: static;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
  }
  .range-grid figcaption img { width: 55%; border-width: 2px; }
  .range-grid .range-tall figcaption img { width: 45%; }
  .range-grid figcaption span { margin-top: 0; background: var(--bg-raised); border: 1px solid var(--line); font-size: 13px; }
  .crop-marks::before, .crop-marks::after { width: 22px; height: 22px; }
}

/* --- Scroll reveal ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed { opacity: 1; transform: none; }

/* --- Reduced motion: a still, finished shot ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .look-stage img, .frame-stage img { transform: none; }
}

/* --- Sections ---------------------------------------------------------- */

section { padding: 64px 0; }

.section-head { max-width: 36rem; margin-bottom: 32px; }

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-head p { margin: 0; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: numbered;
}

.step {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: numbered;
  content: counter(numbered);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cucumber-soft);
  color: var(--cucumber);
  font-weight: 700;
  font-size: 14px;
}

.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-soft); font-size: 15px; }

kbd {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--bg-raised);
  font-family: inherit;
  font-size: 0.9em;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}

.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-soft); font-size: 15px; }

@media (max-width: 860px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
  /* Three steps in two columns: the last takes the whole row, not half. */
  .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
}

/* Pricing */

.price-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

/* Landing on the card from "Get it" / "Buy" (page.js): a little room under
   the sticky header, a soft glow on the card, two pulses on its Buy button. */
#buy { scroll-margin-top: 20px; }
.price-card.is-arriving { animation: card-arrive 1.6s ease-out; }
.price-card.is-arriving .button-primary { animation: buy-pulse 0.8s ease-out 0.2s 2; }
@keyframes card-arrive {
  0% { box-shadow: var(--shadow), 0 0 0 0 rgba(184, 76, 56, 0); }
  30% { box-shadow: var(--shadow), 0 0 0 6px rgba(184, 76, 56, 0.22); }
  100% { box-shadow: var(--shadow), 0 0 0 14px rgba(184, 76, 56, 0); }
}
@keyframes buy-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 76, 56, 0.45); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(184, 76, 56, 0); }
}

.price { margin: 6px 0 2px; font-size: 56px; font-weight: 700; letter-spacing: -0.04em; }
.price-note { margin: 0 0 22px; color: var(--text-soft); }
/* The regular price beside the launch one: real, struck through, quieter. */
.price-was { font-size: 0.45em; font-weight: 500; color: var(--text-soft); letter-spacing: -0.01em; vertical-align: 0.35em; }

.launch-left {
  display: inline-block;
  margin: -8px 0 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.includes {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  text-align: left;
}

.includes li {
  padding: 9px 0 9px 28px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 15px;
}

.includes li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--cucumber);
  font-weight: 700;
}

.price-card .actions { justify-content: center; }

/* Maker's note: a letter in a window, signed with a face. */

.maker .section-head { margin-bottom: 36px; }
/* The backdrop the app would give it: peach into cucumber, like the closing. */
.note-stage {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 48px;
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 15% 0%, #f8cdb9 0%, transparent 70%),
    radial-gradient(60% 80% at 90% 100%, #e3efd2 0%, transparent 70%),
    var(--peach-wash);
}
.note {
  max-width: 540px;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgb(34 32 28 / 0.06), 0 24px 48px -16px rgb(34 32 28 / 0.28);
  overflow: hidden;
}
.note-bar {
  position: relative;
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
}
.note-bar i { width: 11px; height: 11px; border-radius: 50%; }
.note-bar i:nth-child(1) { background: #f0a39a; }
.note-bar i:nth-child(2) { background: #f2cf8f; }
.note-bar i:nth-child(3) { background: #a9d4a2; }
.note-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 13px;
}
.note-body { padding: 28px 36px 8px; }
.note-body p { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--text-soft); }
.note-body mark {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.note-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 36px 30px;
}
.note-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  object-fit: cover;
}
.note-name { color: var(--text); font-size: 15px; line-height: 1.5; }
.note-role { color: var(--text-soft); }

@media (max-width: 560px) {
  .note-stage { padding: 28px 14px; border-radius: 18px; }
  .note-body { padding: 22px 22px 4px; }
  .note-body p { font-size: 17px; }
  .note-sign { padding: 10px 22px 24px; }
}

/* FAQ */

.faq { max-width: 720px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
  /* The + stays beside the question when the question wraps. */
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-soft); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-soft); }

/* --- Simple pages (thanks, comparison) --------------------------------- */

.page { max-width: 680px; padding: 56px 0 72px; }
.page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 16px; }
.page .lede { color: var(--text-soft); font-size: 19px; margin: 0 0 32px; }
.page h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 10px; letter-spacing: -0.015em; }
.page p, .page li { color: var(--text-soft); }
.page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.page strong { color: var(--text); }
.page h3 { font-size: 18px; line-height: 1.3; margin: 28px 0 6px; }
.page ul { padding-left: 22px; }
.page figure { margin: 28px 0; }
.page figure img { border-radius: 10px; }
.page figcaption { margin-top: 8px; font-size: 14px; color: var(--text-soft); text-align: center; }
.page .faq { margin-top: 8px; }

/* Guides and comparisons: a table that scrolls sideways on a phone
   instead of pushing the page wider. */
.table-scroll { overflow-x: auto; margin: 20px 0 8px; -webkit-overflow-scrolling: touch; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page table.wide { min-width: 560px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.page th { color: var(--text); font-weight: 600; background: var(--bg-sunk); }
.page td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.page .table-note { font-size: 14px; }
.page .more { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.page .more ul { list-style: none; padding: 0; }

/* Short pages: a buy row up top, numbered steps, keycaps, "pick it if"
   cards, a before/after pair and a closing call to action. */
.page table.compact td:first-child { white-space: normal; min-width: 92px; }
@media (max-width: 560px) {
  .page table.compact { font-size: 14px; }
  .page table.compact th, .page table.compact td { padding: 9px 8px; }
}
.page .cta-top { margin: -8px 0 36px; }
.page .cta-top .fine { margin-top: 12px; }
.page .lede + .ba, .page .cta-top + .ba { margin-top: 0; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 8px; }
.ba figure { margin: 0; }
.ba img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.ba figcaption { text-align: left; font-weight: 600; color: var(--text); font-size: 14px; }

.page ol.numbered { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: numbered; display: grid; gap: 12px; }
.page ol.numbered li {
  counter-increment: numbered;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.page ol.numbered li::before {
  content: counter(numbered);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.page ol.numbered strong { display: block; margin-bottom: 2px; }

.page ul.keys { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.page ul.keys li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.page ul.keys .caps { display: flex; gap: 4px; min-width: 104px; }
.page ul.keys kbd { min-width: 30px; text-align: center; padding: 3px 8px; font-size: 15px; color: var(--text); }

.page ul.points { list-style: none; padding: 0; display: grid; gap: 10px; }
.page ul.points li { margin: 0; padding-left: 26px; position: relative; }
.page ul.points li::before { content: "✓"; position: absolute; left: 2px; color: var(--cucumber); font-weight: 700; }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 0; }
.pick > div { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); }
.pick > div.us { background: var(--accent-soft); border-color: transparent; }
.page .pick h3 { margin: 0 0 8px; font-size: 17px; }
.page .pick ul { margin: 0; padding-left: 18px; }
.page .pick li { margin: 4px 0; }

.page .cta-band {
  margin: 56px 0 0;
  padding: 32px 28px;
  border-radius: 20px;
  background: var(--peach-wash);
  text-align: center;
}
.page .cta-band h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 28px; }
.page .cta-band p { margin: 0 0 20px; }
.page .cta-band .actions { justify-content: center; }

@media (max-width: 560px) {
  .pick { grid-template-columns: 1fr; }
  .ba { gap: 10px; }
  .page .cta-band { padding: 26px 18px; }
  .page .cta-band .actions .button, .page .cta-top .actions .button { flex: 1 1 auto; }
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
}

/* --- Resources menu ---------------------------------------------------- */

.nav-more { position: relative; }
.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 15px;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: 11px; }
.nav-more summary:hover, .nav-more[open] summary { color: var(--text); }
.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  display: grid;
}
/* Narrow phones: "Resources" sits mid-bar, so the menu lines up with the
   nav's right edge instead of the word's, and always stays on screen. */
@media (max-width: 420px) {
  .nav-more { position: static; }
  .nav-menu { max-width: calc(100vw - 40px); }
}
.nav .nav-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}
.nav .nav-menu a:hover { background: var(--bg-sunk); }
.nav-menu span {
  padding: 8px 10px 2px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Home page FAQ groups and comparison -------------------------------- */

.faq-group h3 { margin: 28px 0 6px; font-size: 15px; color: var(--text-soft); letter-spacing: 0.02em; }
.faq-group:first-child h3 { margin-top: 0; }

.compare-table { max-width: 880px; margin: 0 auto; }
.compare-table .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.compare-table thead th { color: var(--text); font-weight: 600; background: var(--bg-sunk); }
.compare-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
/* Columns: app, price, Macs and updates, best at, what it is (short, kept on one line). */
.compare-table td:nth-child(5), .compare-table thead th:nth-child(5) { white-space: nowrap; }
.compare-table td:nth-child(2) { width: 22%; }
.compare-table td:nth-child(3) { width: 24%; }
.compare-table .us th, .compare-table .us td { background: var(--accent-soft); color: var(--text); }
.compare-table .table-note { margin: 14px 0 0; color: var(--text-soft); font-size: 14px; text-align: center; }

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-bottom: 18px;
}
.footer-columns h2 { margin: 0 0 8px; font-size: 13px; color: var(--text); letter-spacing: 0.02em; }
.footer-columns ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 560px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer a { color: var(--text-soft); }
.footer .spacer { margin-right: auto; }

/* --- Not on a Mac: the email box (notify.js) ---------------------------- */

.notify {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow);
}
.notify::backdrop { background: rgb(34 32 28 / 0.45); }
.notify h2 { margin: 0 32px 8px 0; font-family: var(--display); font-size: 24px; line-height: 1.2; }
.notify-body { margin: 0 0 18px; color: var(--text-soft); }
.notify-form { display: flex; flex-direction: column; gap: 10px; }
.notify-form[hidden] { display: none; }
.notify-label { font-size: 14px; font-weight: 600; }
.notify-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.notify-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.notify-form .button { border: 0; cursor: pointer; font-family: inherit; }
.notify-form .button:disabled { opacity: 0.6; cursor: default; }
.notify-status { margin: 12px 0 0; font-weight: 600; }
.notify-status:empty { display: none; }
.notify-fine { margin: 6px 0 0; color: var(--text-soft); font-size: 14px; }
.notify-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.notify-close:hover { background: var(--bg-sunk); color: var(--text); }

/* Shotspa's own row in a comparison table. */
.page table tr.us-row td { background: var(--accent-soft); font-weight: 600; }
.page table tr.us-row td:first-child { color: var(--accent); }
.page table .us-col { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.page table th.us-col { color: var(--accent); }

/* --- Promotion (Black Friday): only while one runs; price.js fills it --- */

.promo-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  overflow: hidden;
  background: #1f1d1a;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}
.promo-bar[hidden] { display: none; }
/* A soft light sweeping across every few seconds: motion that never moves the text. */
.promo-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.13), transparent);
  animation: promo-shine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes promo-shine { 0%, 55% { left: -40%; } 100% { left: 110%; } }
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 16px;
}
.promo-name { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #f0a39a; }
.promo-name::before { content: "✦ "; }
.promo-price { display: inline-flex; align-items: baseline; gap: 8px; }
.promo-was { opacity: 0.55; }
.promo-now { font-size: 22px; font-weight: 800; }
.promo-once { opacity: 0.8; }
.promo-clock { display: inline-flex; align-items: center; gap: 6px; }
.promo-label { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.promo-unit { display: inline-flex; align-items: baseline; gap: 2px; }
.promo-unit[hidden] { display: none; }
.promo-digits {
  min-width: 36px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.08);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.promo-unit-label { font-size: 12px; opacity: 0.7; }
.promo-cta {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.promo-bar:hover .promo-cta { filter: brightness(1.1); }
@media (max-width: 1000px) {
  .promo-once, .promo-label { display: none; }
  .promo-inner { gap: 16px; }
}
@media (max-width: 720px) {
  .promo-inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; }
  .promo-once, .promo-label { display: none; }
  .promo-clock { order: 4; width: 100%; justify-content: center; }
  .promo-cta { padding: 4px 11px; font-size: 13px; }
  .promo-name { font-size: 12px; }
  /* Scrolled: one line — price, the clock, the button. */
  .is-scrolled .promo-inner { flex-wrap: nowrap; gap: 10px; padding: 6px 10px; }
  .is-scrolled .promo-name, .is-scrolled .promo-was { display: none; }
  .is-scrolled .promo-clock { order: 0; width: auto; gap: 3px; }
  .is-scrolled .promo-now { font-size: 18px; }
  .is-scrolled .promo-digits { min-width: 27px; padding: 2px 3px; font-size: 14px; }
  .is-scrolled .promo-unit-label { font-size: 10px; }
}

.promo-note {
  display: inline-block;
  margin: -10px 0 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}
.promo-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .promo-bar::after { animation: none; display: none; }
}

/* --- At a glance (landing) -------------------------------------------- */

.glance-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.glance-lead {
  max-width: 34rem;
  margin: 0 auto 28px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.glance-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.glance-item {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.glance-icon {
  display: block;
  width: 34px;
  height: 34px;
  padding: 7px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glance-item dt { margin: 0 0 4px; font-weight: 700; font-size: 17px; }
.glance-item dd { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.glance-chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.glance-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cucumber-soft);
  color: var(--cucumber);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .glance-card { padding: 20px; }
  .glance-grid { grid-template-columns: 1fr; }
}
