:root {
  --cream: #f2e8d1;
  --paper: #fbf6ea;
  --plum: #2a1020;
  --ink: #2a1a20;
  --muted: #6d5c60;
  --magenta: #d6136f;
  --purple: #6a3bc4;
  --rust: #b5482a;
  --gold: #f4a81d;
  --line: rgba(42, 16, 32, 0.14);
  --serif: 'Marcellus', 'Optima', 'Candara', serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

@media (min-width: 900px) and (min-height: 680px) {
  html {
    scroll-snap-type: y proximity;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 18px;
}

.lede {
  max-width: 34em;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 2px solid var(--magenta);
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn::after {
  content: '→';
  letter-spacing: 0;
  font-size: 15px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 19, 111, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(42, 16, 32, 0.35);
}

.btn--ghost::after {
  content: '↓';
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: none;
}

.btn--small {
  padding: 11px 18px;
  font-size: 11px;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--plum);
}

.btn--gold:hover {
  box-shadow: 0 12px 28px rgba(244, 168, 29, 0.3);
}

a:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- chrome ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(242, 232, 209, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.bar.is-scrolled {
  border-color: var(--line);
}

.bar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.bar__brand img {
  height: 30px;
  width: auto;
}

.bar__brand span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.dots {
  position: fixed;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  z-index: 20;
  display: grid;
  gap: 12px;
}

.dots a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(42, 16, 32, 0.22);
  transition: background 0.3s, transform 0.3s;
}

.dots a.is-active {
  background: var(--magenta);
  transform: scale(1.4);
}

.dark-slide .dots a {
  background: rgba(242, 232, 209, 0.3);
}

/* ---------- slides ---------- */

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px var(--gutter) 72px;
  scroll-snap-align: start;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- cover ---------- */

.cover {
  display: flex;
  align-items: center;
}

.cover__copy {
  max-width: 980px;
}

.cover h1 {
  font-size: clamp(54px, 9vw, 150px);
  margin-bottom: 28px;
}

.cover .lede {
  margin-bottom: 34px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.contents {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 420px;
  border-top: 1px solid var(--line);
}

.contents a {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, padding 0.25s var(--ease);
}

.contents a:hover {
  color: var(--magenta);
  padding-left: 6px;
}

.contents span {
  font-weight: 600;
  color: var(--magenta);
  font-variant-numeric: tabular-nums;
}





/* ---------- case study slides ---------- */

.study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    'head phone notes'
    'keep phone notes';
  align-items: center;
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: 28px;
}

.study--today { --accent: var(--rust); }
.study--welcome { --accent: var(--magenta); }
.study--cart { --accent: var(--purple); }

.study .eyebrow { color: var(--accent); }

.study__head {
  grid-area: head;
  align-self: end;
}

.study h2 {
  font-size: clamp(40px, 4.6vw, 72px);
  margin-bottom: 20px;
}

.keep {
  grid-area: keep;
  align-self: start;
  max-width: 30em;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 15px;
  color: var(--muted);
}

.keep span {
  display: block;
  margin-bottom: 4px;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.study .phone {
  grid-area: phone;
}

.notes {
  grid-area: notes;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: note;
  display: grid;
  gap: 10px;
}

.notes li {
  counter-increment: note;
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.notes li::before {
  content: counter(note);
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font: 600 13px/1 var(--sans);
  transition: background 0.3s, color 0.3s;
}

.notes b {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--ink);
}

.notes li:hover,
.notes li.is-active {
  background: var(--paper);
  color: var(--ink);
}

.notes li.is-active::before {
  background: var(--accent);
  color: #fff;
}

/* ---------- phone ---------- */

.phone {
  --w: 330px;
  width: var(--w);
  justify-self: center;
}

.phone__screen {
  position: relative;
  height: min(690px, calc(100svh - 190px));
  min-height: 460px;
  overflow-y: auto;
  border: 11px solid #17090f;
  border-radius: 46px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(42, 16, 32, 0.45), 0 0 0 1px rgba(42, 16, 32, 0.08);
  scrollbar-width: none;
}

.phone__screen::-webkit-scrollbar {
  display: none;
}

.phone__canvas {
  position: relative;
}

.pin {
  position: absolute;
  left: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--accent, var(--magenta));
  color: #fff;
  font: 600 13px/1 var(--sans);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
}

.pin.is-active {
  transform: scale(1.3);
}

.phone__hint {
  margin-top: 14px;
  text-align: center;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- side by side ---------- */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'head pair'
    'glance pair';
  align-items: center;
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: 32px;
}

.compare__head {
  grid-area: head;
  align-self: end;
}

.compare h2 {
  font-size: clamp(40px, 4.6vw, 72px);
  margin-bottom: 20px;
}

.pair {
  grid-area: pair;
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
}

.pair figure {
  margin: 0;
}

.pair figcaption {
  margin-bottom: 14px;
  text-align: center;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
}

.pair figcaption.is-new {
  color: var(--magenta);
}

.phone--small {
  --w: 290px;
}

.phone--small .phone__screen {
  height: min(600px, calc(100svh - 230px));
  border-width: 9px;
  border-radius: 40px;
}

.glance {
  grid-area: glance;
  align-self: start;
}

.glance h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.glance table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.glance th,
.glance td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.glance thead th {
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
}

.glance thead th:last-child {
  color: var(--magenta);
}

.glance tbody th {
  width: 26%;
  font-weight: 600;
}

.glance tbody td {
  color: var(--muted);
}

.glance tbody td:last-child {
  color: var(--ink);
}

/* ---------- close ---------- */

.close {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--plum);
  color: var(--cream);
  text-align: center;
}

.close__inner {
  margin: auto;
  max-width: 760px;
}

.close .eyebrow {
  color: var(--gold);
}

.close h2 {
  font-size: clamp(44px, 6.4vw, 96px);
  margin-bottom: 24px;
}

.close .lede {
  margin: 0 auto 36px;
  color: rgba(242, 232, 209, 0.75);
}

.close__alt {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(242, 232, 209, 0.6);
}

.close__alt a {
  color: var(--gold);
}

.foot {
  margin-top: 64px;
  font-size: 13px;
  color: rgba(242, 232, 209, 0.55);
}

.foot__tag {
  margin-bottom: 10px;
  font: 400 24px/1 var(--serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.foot__tag span {
  color: var(--gold);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .study {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'head phone'
      'notes phone'
      'keep phone';
  }

  .study__head {
    align-self: end;
  }

  .notes {
    align-self: start;
  }

  .compare {
    grid-template-columns: 1fr;
    grid-template-areas:
      'head'
      'pair'
      'glance';
    justify-items: center;
  }

  .compare__head,
  .glance {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 820px) {
  .bar__brand span,
  .dots {
    display: none;
  }

  .slide {
    min-height: 0;
    padding: 96px 16px 64px;
  }

  .cover {
    min-height: 100svh;
  }

  .ctas .btn {
    flex: 1 1 100%;
  }

  .study {
    grid-template-columns: 1fr;
    grid-template-areas:
      'head'
      'phone'
      'notes'
      'keep';
  }

  .phone {
    --w: min(310px, 86vw);
  }

  .phone__screen {
    height: 560px;
    min-height: 0;
  }

  .pair {
    width: 100%;
    gap: 10px;
    justify-content: center;
  }

  .phone--small {
    --w: min(170px, 44vw);
  }

  .phone--small .phone__screen {
    height: 380px;
    border-width: 6px;
    border-radius: 26px;
  }

  .glance table {
    font-size: 13.5px;
  }

  .glance tbody th {
    width: 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
