/* Tintype launch page. Palette, type and layout follow docs/site/BRIEF.md. */

:root {
  color-scheme: light dark;
  --paper: #f3ece0;
  --paper-raised: #fbf7f0;
  --ink: #221d19;
  --ink-soft: #675a4f;
  --rule: #ddd1c0;
  --rust: #9a4a26;
  --rust-ink: #fffaf3;
  --rust-deep: #7e3a1c;
  --plate: #1d1916;
  --plate-ink: #efe7da;
  --silver: #a9a49b;
  --focus: #1f5f7a;

  /* Tone pairs from src/portfolio/portfolio.data.ts, in data order. */
  --t1-a: #e8b27a; --t1-b: #8c5a3c; /* Golden hour by the river */
  --t2-a: #d9c3a5; --t2-b: #6f6a5e; /* Window light studio */
  --t3-a: #c98f6b; --t3-b: #5b4a52; /* Rooftop above the city */
  --t4-a: #d6a05a; --t4-b: #7a4b2a; /* Autumn park walk */
  --t5-a: #cdb79e; --t5-b: #6b5848; /* Quiet cafe corner */
  --t6-a: #b9b48f; --t6-b: #5f6b4e; /* Linen in the garden */
  --t7-a: #e0b98c; --t7-b: #6e4a45; /* First dance */
  --t8-a: #c9a27b; --t8-b: #5a4036; /* The toast */
  --t9-a: #e3b77f; --t9-b: #7b5139; /* Birthday candles */
  --t10-a: #d29a6a; --t10-b: #4f3a41; /* Stage lights */
  --t11-a: #c5b58f; --t11-b: #66684c; /* Garden ceremony */
  --t12-a: #e6c19a; --t12-b: #8a5b4a; /* Confetti exit */
  --t13-a: #dcc39b; --t13-b: #6d7a78; /* Beach picnic */
  --t14-a: #b8b08a; --t14-b: #5d6a48; /* Piggyback up the hill */
  --t15-a: #e2cfb2; --t15-b: #8b6c53; /* Flour in the kitchen */
  --t16-a: #cfa981; --t16-b: #5e4a3b; /* Grandparents on the porch */
  --t17-a: #e5d0bd; --t17-b: #9a7662; /* Newborn hands */
  --t18-a: #bfae92; --t18-b: #56604d; /* Muddy boots */

  --serif: "Newsreader", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171412;
    --paper-raised: #221e1a;
    --ink: #efe7da;
    --ink-soft: #b5a998;
    --rule: #39322b;
    --rust: #e2a47e;
    --rust-ink: #1c1916;
    --rust-deep: #edbb99;
    --plate: #0f0d0b;
    --plate-ink: #efe7da;
    --silver: #8f8a82;
    --focus: #f2c98f;
  }
}

.t1 { --a: var(--t1-a); --b: var(--t1-b); }
.t2 { --a: var(--t2-a); --b: var(--t2-b); }
.t3 { --a: var(--t3-a); --b: var(--t3-b); }
.t4 { --a: var(--t4-a); --b: var(--t4-b); }
.t5 { --a: var(--t5-a); --b: var(--t5-b); }
.t6 { --a: var(--t6-a); --b: var(--t6-b); }
.t7 { --a: var(--t7-a); --b: var(--t7-b); }
.t8 { --a: var(--t8-a); --b: var(--t8-b); }
.t9 { --a: var(--t9-a); --b: var(--t9-b); }
.t10 { --a: var(--t10-a); --b: var(--t10-b); }
.t11 { --a: var(--t11-a); --b: var(--t11-b); }
.t12 { --a: var(--t12-a); --b: var(--t12-b); }
.t13 { --a: var(--t13-a); --b: var(--t13-b); }
.t14 { --a: var(--t14-a); --b: var(--t14-b); }
.t15 { --a: var(--t15-a); --b: var(--t15-b); }
.t16 { --a: var(--t16-a); --b: var(--t16-b); }
.t17 { --a: var(--t17-a); --b: var(--t17-b); }
.t18 { --a: var(--t18-a); --b: var(--t18-b); }

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

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

html {
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 4.5rem);
  line-height: 1.05;
}

h1 em {
  display: block;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

h3 {
  font-size: 1.375rem;
}

em {
  font-style: italic;
}

h1 em,
h2 em {
  color: var(--rust);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--rust);
}

code,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.9em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  max-width: calc(72rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.intro {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}

.skip:focus {
  top: 10px;
}

.sentinel {
  position: absolute;
  top: 8px;
  height: 1px;
  width: 1px;
}

/* ---------- Pills and links ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease);
}

.pill--primary {
  background: var(--rust);
  color: var(--rust-ink);
}

.pill--primary:hover,
.pill--primary:active {
  background: var(--rust-deep);
}

.pill--primary:active {
  transform: translateY(1px);
}

.pill--outline {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
}

.pill--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--rust);
  color: var(--rust);
}

.pill--small {
  min-height: 44px;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

.link {
  display: inline-block;
  padding-block: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.masthead.is-stuck {
  border-bottom-color: var(--rule);
}

.masthead__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.lockup .mark {
  width: 28px;
  height: 28px;
  margin-bottom: 0.15rem;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
}

.masthead__nav {
  display: flex;
  gap: 1.5rem;
}

.masthead__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.masthead__nav a:hover {
  color: var(--ink);
}

.masthead__nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 759px) {
  .masthead__nav {
    display: none;
  }
  .pill--small {
    font-size: 0.875rem;
    padding: 0 1rem;
  }
}

/* ---------- Tonal plates (as the app's Photo placeholder) ---------- */

.frame,
.tile,
.plate {
  position: relative;
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 20% 15%, var(--a) 0%, transparent 60%),
    linear-gradient(160deg, var(--a) 0%, var(--b) 100%);
}

.frame::before,
.tile::before,
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: var(--grain);
  pointer-events: none;
}

.frame {
  aspect-ratio: 3 / 2;
}

/* ---------- 1. Hero ---------- */

.hero {
  padding-block: 1.5rem 4rem;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__sub {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.proof {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.proof::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
  transform: translateY(-2px);
}

.hero__figure {
  margin: 0;
  perspective: 1400px;
}

.sheet {
  --tx: 0;
  --ty: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 1.25rem;
  background: var(--plate);
  border-radius: 6px;
  box-shadow:
    0 30px 60px -20px rgb(34 29 25 / 0.45),
    0 8px 18px -6px rgb(34 29 25 / 0.25);
}

.edge {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  line-height: 1;
  margin-bottom: -2px;
}

.edge span:last-child,
.edge--extra {
  display: none;
}

.sheet__caption {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.sheet .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--paper-raised);
  opacity: 0;
}

.frame--marked {
  z-index: 1;
}

.pencil {
  position: absolute;
  inset: -8px;
  z-index: 2;
  pointer-events: none;
  transform: translate(calc(var(--tx, 0) * 4.8px), calc(var(--ty, 0) * 4.8px));
}

.pencil svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pencil path {
  fill: none;
  stroke: #d9895a; /* lighter grease pencil, above 5:1 on the plate in both themes */
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.pencil__note {
  position: absolute;
  right: -0.5rem;
  bottom: calc(100% - 0.25rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--plate-ink);
  white-space: nowrap;
  transform: rotate(-4deg);
}

@media (prefers-reduced-motion: no-preference) {
  .sheet .frame::after {
    animation: develop 700ms var(--ease) both;
    animation-delay: calc(var(--i) * 55ms + 150ms);
  }
  .sheet .pencil path {
    animation: draw 900ms ease-out 1460ms both;
  }
  .sheet .pencil__note {
    animation: fade-in 300ms ease-out 2360ms both;
  }
}

@keyframes develop {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 999px) {
  .hero__actions .pill {
    width: 100%;
    min-height: 52px;
  }
}

@media (min-width: 1000px) {
  .hero {
    padding-block: 2rem;
  }
  h1 {
    font-size: clamp(3.5rem, 0.5rem + 4.6vw, 4.5rem);
  }
  .hero__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 4rem;
    min-height: max(640px, min(92svh, 860px));
  }
  .sheet {
    grid-template-columns: repeat(4, 1fr);
    transform: rotateY(calc(var(--tx) * 3deg)) rotateX(calc(var(--ty) * -3deg)) rotate(-1.5deg);
  }
  .edge {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-size: 0.625rem;
  }
  .edge span:last-child {
    display: inline;
  }
  .sheet__caption {
    font-size: 0.75rem;
  }
}

/* ---------- Reveals ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(var(--rise, 20px));
    transition:
      opacity 500ms var(--ease),
      transform 500ms var(--ease);
  }
  .js .reveal--late {
    transition-delay: 100ms;
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 2. The email ---------- */

.email {
  padding-block: clamp(5rem, 12vw, 9rem);
  padding-inline: var(--pad);
}

.email__col {
  max-width: 40rem;
  margin-inline: auto;
}

.mail {
  --rise: 16px;
  max-width: 30rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 28px -14px rgb(34 29 25 / 0.3);
  rotate: 0.6deg;
}

.mail__head {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.email__line {
  --rise: 16px;
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.js .email__line.reveal--late {
  transition-delay: 150ms;
}

@media (max-width: 759px) {
  .mail__head {
    font-size: 0.8125rem;
  }
  .email__line {
    font-size: 1.375rem;
  }
}

/* ---------- 3. How it prices ---------- */

.price {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 10vw, 8rem);
}

.picker {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 18px;
}

.picker__controls,
.picker__out {
  min-width: 0;
}

.presets {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.presets legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.presets__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset {
  position: relative;
  display: inline-flex;
}

.preset input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.preset > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 160ms var(--ease);
}

.preset__price {
  font-weight: 400;
  color: var(--ink-soft);
}

.preset:hover > span {
  border-color: var(--rust);
}

.preset input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.preset input:checked + span .preset__price {
  color: inherit;
}

.preset input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.tag--rust {
  background: var(--rust);
  color: var(--rust-ink);
}

.tag--custom {
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  font-weight: 400;
}

.steppers {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.stepper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
}

.stepper__label {
  font-weight: 600;
}

.stepper__help {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.stepper__ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper__value {
  min-width: 4ch;
  text-align: center;
  font-family: var(--mono);
  font-size: 1.125rem;
}

.step {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    opacity 160ms var(--ease);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--rust);
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.step:hover:not([aria-disabled="true"]) {
  color: var(--rust);
  border-color: var(--rust);
}

.step:hover:not([aria-disabled="true"])::before {
  opacity: 0.09;
}

.step[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

.step[hidden] {
  display: none;
}

.steppers__group {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
}

/* Receipt */

.receipt {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: radial-gradient(circle at 3px 3px, var(--paper-raised) 2.5px, transparent 3px) repeat-x;
  background-size: 6px 6px;
}

.receipt::before {
  top: -3px;
}

.receipt::after {
  bottom: -3px;
}

.receipt__lines {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px dashed var(--rule);
}

.receipt__lines li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding: 0.35rem 0.4rem;
  margin-inline: -0.4rem;
}

.receipt__lines li span:nth-child(2) {
  grid-row: 2;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.receipt__lines li span:nth-child(3) {
  grid-row: 1;
  grid-column: 2;
  text-align: right;
}

.receipt__lines li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--rust);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .receipt__lines li.is-changed::before {
    animation: wash 600ms ease-out;
  }
}

@keyframes wash {
  from {
    opacity: 0.09;
  }
  to {
    opacity: 0;
  }
}

.receipt__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.receipt__label {
  font-family: var(--sans);
  font-weight: 600;
}

.roll {
  display: inline-grid;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.roll > span {
  grid-area: 1 / 1;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .roll__in {
    animation: roll-in 180ms var(--ease) both;
  }
  .roll__out {
    animation: roll-out 180ms var(--ease) both;
  }
}

@keyframes roll-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes roll-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.receipt__note {
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* Enquiry window */

.window {
  margin-top: 1.5rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px -16px rgb(34 29 25 / 0.35);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.window__bar i,
.browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
}

.window__bar span {
  margin-left: 0.5rem;
}

.window__body {
  --lines: 20;
  margin: 0;
  padding: 1rem 1rem 2rem;
  min-height: calc(var(--lines) * 1.5em + 3rem);
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);
}

.window__foot {
  padding: 0 1rem 0.25rem;
  font-size: 0.875rem;
}

.window__foot a {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.6rem;
  text-underline-offset: 0.2em;
}

.price__cta {
  margin-top: 1.5rem;
  width: 100%;
  min-height: 52px;
}

@media (min-width: 760px) {
  .window__body {
    --lines: 15;
  }
}

@media (min-width: 900px) {
  .picker {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
  .receipt__lines li {
    grid-template-columns: 1fr auto auto;
  }
  .receipt__lines li span:nth-child(1) {
    grid-column: 1;
  }
  .receipt__lines li span:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
    font-size: inherit;
  }
  .receipt__lines li span:nth-child(3) {
    grid-column: 3;
    min-width: 5ch;
  }
  .price__cta {
    width: auto;
    padding-inline: 2rem;
  }
}

@media (max-width: 759px) {
  .stepper {
    grid-template-columns: 1fr;
    row-gap: 0.4rem;
  }
  .stepper__help {
    grid-row: 2;
  }
}

/* ---------- 4. What's inside ---------- */

.inside {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--rule);
}

.inside__head {
  display: grid;
  gap: 1rem;
}

.inside__head .intro {
  order: 2;
  margin-top: 0;
}

.feature {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.feature__visual,
.feature__text {
  min-width: 0;
}

.feature__text {
  align-self: center;
  max-width: 30rem;
}

.feature__text h3 {
  margin: 0.5rem 0 0.75rem;
}

.feature__text p:last-child {
  color: var(--ink-soft);
}

.label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .inside__head {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: end;
  }
  .inside__head .intro {
    order: 0;
  }
  .feature {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
  .feature--flip .feature__visual {
    order: 2;
  }
  .feature--flip {
    grid-template-columns: 5fr 7fr;
  }
  .label {
    font-size: 0.75rem;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}

.chip span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.chip:hover {
  border-color: var(--rust);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip[aria-pressed="true"] span {
  color: inherit;
}

.filters,
.routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.masonry {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 36px;
  grid-auto-flow: dense;
  gap: 8px;
}

.tile {
  margin-bottom: 0;
  border-radius: 4px;
}

.tile[hidden] {
  display: none;
}

/* Fixed-rhythm grid. Each category is ordered portrait, portrait, landscape,
   square, landscape, square in the markup, so "All" and every filter pack flush. */
.a-p,
.a-s {
  grid-row: span 3;
}

.a-l {
  grid-row: span 2;
  grid-column: span 2;
}

@media (min-width: 760px) {
  .masonry {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 42px;
  }
  .a-p,
  .masonry:has(.tile[hidden]) .a-s {
    grid-row: span 4;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tile.is-shown {
    animation: fade-in 200ms ease-out both;
  }
}

.shots {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  max-width: 30rem;
}

.shots li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.shots li + li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

.star {
  display: inline-block;
  color: var(--rust);
}

.num {
  font-family: var(--mono);
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .js .shots .star {
    transform: scale(0.6);
    opacity: 0;
    transition:
      transform 240ms var(--ease),
      opacity 240ms var(--ease);
  }
  .js .is-in .shots li:nth-child(1) .star {
    transform: none;
    opacity: 1;
    transition-delay: 300ms;
  }
  .js .is-in .shots li:nth-child(2) .star {
    transform: none;
    opacity: 1;
    transition-delay: 420ms;
  }
}

.faq {
  max-width: 34rem;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rust);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 1rem;
  color: var(--ink-soft);
}

.swatches {
  position: relative;
  width: 316px;
  max-width: 100%;
  aspect-ratio: 316 / 216;
  margin: 1rem auto;
}

/* Sizes are fractions of the 316 × 216 group, so the pair scales down as one. */
.swatch {
  position: absolute;
  width: 88.61%;
  height: 83.33%;
  padding: 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 14px 30px -16px rgb(34 29 25 / 0.45);
}

.swatch--paper {
  top: 0;
  left: 0;
  background: #fbf7f0;
  color: #221d19;
  border: 1px solid #ddd1c0;
}

.swatch--dark {
  top: 16.67%;
  left: 11.39%;
  background: #221e1a;
  color: #efe7da;
  border: 1px solid #39322b;
}

.swatch__name {
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.1;
}

.swatch__pill {
  width: 120px;
  max-width: 100%;
  height: 34px;
  border-radius: 999px;
  background: #e2a47e;
}

.swatch--paper .swatch__pill {
  background: #9a4a26;
}

.swatch__pill--ring {
  outline: 3px solid #1f5f7a;
  outline-offset: 3px;
}

/* ---------- 5. See it live ---------- */

.live {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.live .intro {
  max-width: 36rem;
  margin-inline: auto;
}

.live__desk {
  display: none;
}

.routes {
  justify-content: center;
  margin-top: 2rem;
}

.browser {
  --rise: 24px;
  position: relative;
  max-width: 1100px;
  margin: 1.5rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--plate);
  box-shadow: 0 16px 30px -20px rgb(34 29 25 / 0.35);
}

.browser::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 40px 80px -30px rgb(34 29 25 / 0.5);
  opacity: 1;
  pointer-events: none;
  transition: opacity 500ms var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .js .browser.reveal {
    transition-duration: 500ms;
  }
  .js .browser.reveal:not(.is-in)::after {
    opacity: 0;
  }
}

.browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 1rem;
}

.browser__bar i {
  width: 10px;
  height: 10px;
  background: #5a524a;
}

.browser__addr {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--plate-ink);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.browser iframe {
  display: block;
  width: 100%;
  height: min(78svh, 760px);
  border: 0;
  background: var(--paper);
}

.live__full {
  max-width: 1100px;
  margin: 0.5rem auto 0;
  text-align: right;
}

.live__phone {
  margin-top: 2rem;
}

.phone {
  --rise: 24px;
  position: relative;
  width: 300px;
  height: 600px;
  margin-inline: auto;
  border: 10px solid var(--plate);
  border-radius: 36px;
  overflow: hidden;
  background: var(--plate);
  box-shadow: 0 30px 60px -24px rgb(34 29 25 / 0.5);
}

.phone img,
.phone iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: top;
  background: var(--paper);
}

/* The fallback iframe never takes a thumb scroll: the frame-wide link sits over it. */
.phone iframe {
  pointer-events: none;
}

.phone__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 26px;
}

.phone__link:focus-visible {
  outline-offset: -3px;
}

.routes-grid {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  max-width: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.routes-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.routes-grid a:hover {
  border-color: var(--rust);
  color: var(--rust);
}

@media (min-width: 760px) {
  .live__desk {
    display: block;
  }
  .live__phone {
    display: none;
  }
}

/* ---------- 6. Make it yours ---------- */

.yours {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--rule);
}

.steps {
  display: grid;
  margin-top: 3rem;
}

.step-col {
  min-width: 0;
  padding-block: 2rem;
}

.step-col + .step-col {
  border-top: 1px solid var(--rule);
}

.step-col p {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-soft);
}

.step-col code {
  color: var(--ink);
}

.js .step-col.reveal:nth-child(2) {
  transition-delay: 100ms;
}

.js .step-col.reveal:nth-child(3) {
  transition-delay: 200ms;
}

.code {
  margin: 0;
  padding: 1.25rem;
  background: var(--plate);
  color: var(--plate-ink);
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code .s {
  color: #e2a47e;
}

.code .p,
.code .k {
  color: var(--silver);
}

.code:focus-visible {
  outline-color: var(--rust);
}

.plate {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
}

.plate::before {
  inset: -4px;
  transition: transform 600ms var(--ease);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .plate:hover::before {
    transform: translate(2px, 2px);
  }
}

.plate__tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgb(29 25 22 / 0.78);
  color: #efe7da;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.tree {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-raised);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.check {
  color: var(--rust);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step-col {
    padding: 0 2rem;
  }
  .step-col:first-child {
    padding-left: 0;
  }
  .step-col:last-child {
    padding-right: 0;
  }
  .step-col + .step-col {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: 1.65fr 1fr 1fr; /* the profile card shows every line from 1100 px */
  }
}

/* ---------- 7. Closing call to action ---------- */

.closing {
  padding-block: clamp(5rem, 12vw, 8rem);
  background: var(--plate);
  color: var(--plate-ink);
}

.closing :focus-visible {
  outline-color: #e2a47e;
}

.closing__grid {
  display: grid;
  gap: 2.5rem;
}

.closing h2 {
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.25rem);
  line-height: 1.08;
}

.closing h2 em {
  color: #e2a47e;
}

.closing p {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: #cfc8bc;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.pill--tall {
  min-height: 56px;
  padding-inline: 2rem;
}

.link--plate {
  color: var(--plate-ink);
}

.echo {
  order: -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0.875rem;
  border-radius: 6px;
  background: #2a2420;
  align-self: center;
}

@media (max-width: 759px) {
  .closing__actions .pill {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .closing__grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
  }
  .echo {
    order: 0;
    rotate: -1.5deg;
  }
}

/* ---------- 8. Footer ---------- */

.foot {
  padding-block: 1.5rem;
  background: var(--paper);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
}

.foot__note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.foot__note .link {
  margin-left: 0.5rem;
}
