/* Gustav public site. Colors and type follow the Courtyard tokens. */

:root {
  --bg: #ffffff;
  --surface: #f2f2ef;
  --surface-strong: #e4e4df;
  --ink: #0a0a0a;
  --on-ink: #ffffff;
  --muted: #5e5e5e;
  --mint: #9ef2da;
  --mint-ink: #0b7a5e;
  --violet: #5f37fa;
  --on-violet: #ffffff;
  --violet-track: #7e5ffb;
  --line: #e2e2de;
  --shadow-sheet: 0 -8px 32px rgba(10, 10, 10, 0.1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mark: "Barriecito", "Space Grotesk", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 26px;
}

img { max-width: 100%; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 40;
}

.skip:focus { top: 12px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  width: max-content;
  max-width: calc(100vw - 40px);
  pointer-events: none;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  box-shadow:
    0 2px 2px rgba(10, 10, 10, 0.2),
    0 10px 14px rgba(10, 10, 10, 0.34);
  transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast:empty { display: none; }

.toast.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

.kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--muted);
}

h1, h2, h3, .logo, .btn, .nav a, .tab, .appbar, .status, .shot-label, .price, .pro-pill, .pro-tag, .format strong, .sheet-title, .copy-row, .share-btn {
  font-family: var(--font-sans);
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  max-width: 18em;
}

h3 { font-size: 22px; line-height: 26px; letter-spacing: -0.02em; }

.work-title {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 600;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: inline-block;
  font-family: var(--font-mark);
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  transform: rotate(-6deg);
  transform-origin: left center;
}

.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nav a {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  min-height: 44px;
}

.nav a:hover { background: var(--surface); }

.nav .btn {
  min-height: 44px;
  padding: 12px 20px;
}

.nav .btn-primary:hover { background: var(--violet); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
}

.btn:active { opacity: 0.72; }

.btn-primary { background: var(--violet); color: var(--on-violet); }

.btn-secondary { background: var(--surface); color: var(--ink); }


.btn-on-surface { background: var(--bg); color: var(--ink); width: 100%; }

/* Hero */

.hero {
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lede { margin: 0; font-size: 19px; line-height: 28px; max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}

.store-badge img {
  display: block;
  width: 120px;
  height: 40px;
}

.plans > .store-badge { align-self: center; margin-top: 20px; margin-bottom: 48px; }

.plans > .store-badge img { width: 180px; height: 60px; }

/* How it works */

.how { background: var(--surface); }

.how-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.how-intro { display: flex; flex-direction: column; gap: 12px; }

.story { height: 600vh; }

.story.is-reduced { height: auto; }

.story.is-reduced .shot-after,
.story.is-reduced .status-captured,
.story.is-reduced .status-processing,
.story.is-reduced .status-ready { transition: none; }

.story.is-reduced .status-processing svg { animation: none; }

.story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
  --phone-w: min(300px, calc(100% - 8px), calc((100vh - 112px) * 402 / 874));
  --phone-w: min(300px, calc(100% - 8px), calc((100dvh - 112px) * 402 / 874));
}

.story.is-reduced .story-pin { position: static; height: auto; }

.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  width: var(--phone-w);
  margin: 2px auto 0;
}

.rail-track {
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.rail-fill {
  display: block;
  height: 100%;
  width: calc(var(--rail, 0) * 100%);
  border-radius: inherit;
  background: var(--violet);
}

.rail-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 0 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

.rail-stop::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--surface);
}

.rail-stop.is-done::before { background: var(--violet); }
.rail-stop[aria-current="step"] { color: var(--ink); }
.rail-stop[aria-current="step"]::before {
  background: var(--violet);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 22%, var(--surface));
}

.story-steps { display: none; }

.story-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 26px;
  text-align: left;
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease);
}

.story-step:hover { background: rgba(255, 255, 255, 0.45); }

.story-step[aria-current="step"] {
  background: var(--bg);
  color: var(--ink);
}

.story-step:active { opacity: 0.72; }

.story-copy { max-width: 36em; }

.step-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
}

.screen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen-camera { opacity: var(--doc, 1); z-index: 1; background: #0b0b0a; }
.screen-process { opacity: var(--process, 0); z-index: 2; }
.screen-share { opacity: 1; z-index: 3; background: transparent; }

.shutter-blink {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.shutter-blink span {
  position: absolute;
  left: 0;
  right: 0;
  height: 52%;
  background: #000;
}

.shutter-blink span:first-child {
  top: 0;
  transform: translateY(calc((var(--blink, 0) - 1) * 100%));
}

.shutter-blink span:last-child {
  bottom: 0;
  transform: translateY(calc((1 - var(--blink, 0)) * 100%));
}

/* Phones */

.phone {
  position: relative;
  flex: 0 0 auto;
  /* iPhone body around a 393×852 screen. Width follows the height that fits. */
  aspect-ratio: 402 / 874;
  width: var(--phone-w);
  height: auto;
  border-radius: calc(var(--phone-w) * 0.17);
  overflow: visible;
  background: linear-gradient(165deg, #4a4a4e 0%, #2a2a2c 18%, #1a1a1c 46%, #0c0c0e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 2px #050505,
    0 22px 44px rgba(10, 10, 10, 0.18);
  container-type: size;
}

.glass {
  position: absolute;
  left: 2.4%;
  right: 2.4%;
  top: 1.35%;
  bottom: 1.35%;
  border-radius: calc(var(--phone-w) * 0.135);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.island {
  position: absolute;
  z-index: 6;
  top: 1.5cqh;
  left: 50%;
  width: 27cqw;
  height: 3.5cqh;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hw {
  position: absolute;
  z-index: 2;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#6a6a6e, #3a3a3e);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}

.hw-silent { left: -3px; top: 15%; height: 3.4%; }
.hw-vol { left: -3px; top: 21%; height: 6.2%; }
.hw-vol2 { left: -3px; top: 28.6%; height: 6.2%; }
.hw-power { right: -3px; top: 24%; height: 9%; }

.screen-camera {
  font-family: var(--font-sans);
  color: #f4f4f1;
}

.cam-photo {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  transform: translateY(-50%);
}

.cam-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cam-top, .cam-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  background: #0e0e0c;
}

.cam-top {
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 2cqw;
  padding: 7.4cqh 3cqw 2.2cqh;
}

.gauges {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
}

.gauge {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6cqh;
}

.dial {
  position: relative;
  width: 13.5cqw;
  height: 13.5cqw;
  border-radius: 50%;
  background: #242422;
}

.dial-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.dial-ring circle {
  fill: none;
  stroke-width: 2.4;
}

.dial-ring .track { stroke: #3a3a36; }
.dial-ring .arc {
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-dasharray: 78 16;
}

.glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31.25%;
  height: 31.25%;
  transform: translate(-50%, -50%);
}

.glyph.art {
  width: 26%;
  height: 31.25%;
}

.iso {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.1cqw;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.badge {
  position: absolute;
  right: -0.4cqw;
  bottom: -0.4cqw;
  width: 4.6cqw;
  height: 4.6cqw;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge svg { width: 55%; height: 55%; }

.gauge-name {
  font-size: 3.15cqw;
  line-height: 1.1;
  font-weight: 600;
}

.gauge-read {
  font-size: 2.55cqw;
  line-height: 1.15;
  color: #c8c8c2;
  max-width: 100%;
}

.cam-close {
  flex: 0 0 auto;
  width: 10cqw;
  height: 10cqw;
  margin-top: 1.6cqw;
  border-radius: 50%;
  background: #2a2a28;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-close svg { width: 52%; height: 52%; }

.hud {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* White outline and corner dots, pinned to the canvas corners in the photo. */
.art-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
}

.art-outline polygon {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.art-dot {
  position: absolute;
  z-index: 3;
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

/* Violet corner guides: where the white corners should land. */
.target {
  position: absolute;
  z-index: 2;
  left: 6.5%;
  top: 4.2%;
  width: 87%;
  height: 84.6%;
}

.target i {
  position: absolute;
  width: 8cqw;
  height: 8cqw;
  border: 2.5px solid var(--violet);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.target i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.target i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.target i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.target i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.tethers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tethers line {
  stroke: var(--violet);
  stroke-width: 1.6;
  stroke-dasharray: 3 4;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}

.target-pill {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 4.2%;
  transform: translate(-50%, -130%);
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 0.8cqh 2.4cqw;
  border-radius: 999px;
  background: #141412;
  color: #f4f4f1;
  font-size: 2.7cqw;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.target-pill i {
  width: 1.8cqw;
  height: 1.8cqw;
  border-radius: 50%;
  background: var(--violet);
}

.cam-gustav {
  position: relative;
  width: 16cqw;
  height: 16cqw;
  display: block;
}

.cam-gustav img { width: 100%; height: 100%; display: block; }

.cam-gustav .pupil {
  width: 0.92cqw;
  height: 0.92cqw;
  background: #0a0a0a;
  transition: none;
  transform: translate(calc(var(--gx, 0) * 1cqw), calc(var(--gy, 0) * 1cqw));
}

.cam-gustav .pupil.one { left: 42.05%; top: 33.8%; }
.cam-gustav .pupil.two { left: 56.45%; top: 32%; }

.cam-bottom {
  bottom: 0;
  height: 22cqh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 7cqw 4.4cqh;
}

.cam-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1cqh;
}

.cam-side img {
  width: 16cqw;
  height: 16cqw;
  display: block;
}

.auto {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  color: #f4f4f1;
  font-size: 3cqw;
  font-weight: 600;
  line-height: 1;
}

.auto .knob {
  width: 8.2cqw;
  height: 4.6cqw;
  border-radius: 999px;
  background: #3a3a36;
  position: relative;
}

.auto .knob::after {
  content: "";
  position: absolute;
  left: 0.4cqw;
  top: 0.45cqw;
  width: 3.7cqw;
  height: 3.7cqw;
  border-radius: 50%;
  background: #d5d5d0;
}

.shutter {
  position: relative;
  width: 18cqw;
  height: 18cqw;
  margin-bottom: 0.6cqh;
  display: block;
}

.shutter svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shutter path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 4.5;
  stroke-linecap: round;
}

.shutter path.wait { stroke: #3a3a36; }

.shutter span {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: #f4f4f1;
}

/* Process phone */

.phone-process {
  background: var(--bg);
  padding: 8cqh 0 4cqh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-process .appbar,
.phone-process .status,
.phone-process .record {
  padding-left: 5cqw;
  padding-right: 5cqw;
}

.phone-process::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.28);
  opacity: var(--sheet, 0);
  pointer-events: none;
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
}

.appbar .round {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  border: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: #b9ad97;
}

.shot {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.shot-after {
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.shot-before img {
  opacity: 1;
  transform-origin: 0 0;
}

.shot-after {
  opacity: 0;
  will-change: opacity;
}

.phone.is-revealed .shot-after { opacity: 1; }

.shot-after img { object-fit: cover; }

.status {
  align-self: flex-start;
  display: grid;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.status-captured,
.status-processing,
.status-ready {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  transition: opacity 180ms var(--ease);
}

.status-captured {
  background: var(--surface);
  opacity: 1;
}

.phone.is-processing .status-captured,
.phone.is-ready .status-captured { opacity: 0; }

.status-processing {
  background: var(--violet);
  color: var(--on-violet);
  opacity: 0;
}

.status-processing svg { animation: status-spin 0.8s linear infinite; }

.phone.is-processing .status-processing { opacity: 1; }
.phone.is-ready .status-processing { opacity: 0; }

.status-ready {
  background: var(--mint);
  opacity: 0;
}

.phone.is-ready .status-ready { opacity: 1; }

.status-ready svg { color: var(--mint-ink); }

@keyframes status-spin { to { transform: rotate(360deg); } }

.record { display: flex; flex-direction: column; gap: 2px; }

.record .work-title { font-size: 22px; line-height: 26px; }

.meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }

/* Share phone */

.phone-share { background: transparent; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sheet);
  z-index: 1;
  transform: translateY(calc((1 - var(--sheet, 0)) * 105%));
}

.grabber {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-strong);
  align-self: center;
}

.sheet-head { display: flex; align-items: center; justify-content: space-between; }

.sheet-title { font-size: 17px; line-height: 22px; font-weight: 700; }

.sheet-x {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sheet-work { display: flex; gap: 12px; align-items: center; }

.sheet-work img {
  width: 46px;
  height: 56px;
  object-fit: cover;
  background: var(--surface);
  border-radius: 6px;
  padding: 4px;
}

.sheet-work .work-title { font-size: 15px; line-height: 20px; font-weight: 500; display: block; }

.credit { font-size: 12px; line-height: 16px; color: var(--muted); }

.formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.format {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72px;
}

.format strong { font-size: 14px; font-weight: 500; }

.format .top { display: flex; align-items: center; justify-content: space-between; }

.pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 999px;
}

.pro-tag svg { color: var(--mint); }

.copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font-size: 15px;
  font-weight: 500;
}

/* Features */

.pricing {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pricing-intro { display: flex; flex-direction: column; gap: 12px; }

.plans {
  width: min(100%, 420px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.plans-head {
  display: none;
  align-items: center;
  gap: 12px;
}

.plans-head img { width: 64px; height: 64px; display: block; }

.plans-name { display: flex; align-items: center; gap: 8px; }

.plans-word {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plans-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 500;
}

.plans-pro svg { width: 13px; height: 13px; color: var(--mint); }

.plans-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 24px;
}

.plan-card {
  position: relative;
  margin-top: 0;
  padding: 12px 16px 24px;
  border-radius: 24px;
  background: var(--violet);
  color: var(--on-violet);
}

.plan-card table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.plan-card th, .plan-card td {
  padding: 0;
  font-weight: 500;
  text-align: center;
  vertical-align: top;
}

.plan-card thead th {
  height: 44px;
  font-size: 15px;
  font-weight: 500;
  vertical-align: middle;
}

.plan-card tbody tr { border-top: 1px solid rgba(255, 255, 255, 0.18); }

.plan-card tbody th,
.plan-card tbody td { transition: background 180ms var(--ease); }

.plan-card tbody tr:hover th,
.plan-card tbody tr:hover td { background: rgba(255, 255, 255, 0.08); }

.plan-card tbody th {
  text-align: left;
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
}

.plan-card td, .plan-card thead th:nth-child(2) { width: 72px; }

.plan-card .pro-col { width: 112px; }

.plan-card tbody td {
  height: 50px;
  padding-top: 11px;
  font-size: 17px;
  line-height: 28px;
}

.plan-card tbody tr:first-child th,
.plan-card tbody tr:first-child td {
  height: auto;
  min-height: 50px;
  padding-top: 14px;
  padding-bottom: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.plan-card td.pro-price {
  font-size: 13px;
  line-height: 16px;
}

.plan-card tbody tr:last-child th,
.plan-card tbody tr:last-child td {
  padding-bottom: 18px;
}

.plan-feature {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.caret {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 240ms var(--ease);
}

.plan-feature[aria-expanded="true"] .caret { transform: rotate(180deg); }

.plan-detail {
  margin: 0 0 12px;
  max-width: 18em;
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 18px;
}

.plan-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
}

.plan-card.is-arming .plan-check {
  transform: scale(0.4);
  opacity: 0;
}

.plan-card.is-shown .plan-check {
  transform: none;
  opacity: 1;
  transition: transform 480ms var(--ease), opacity 480ms var(--ease);
}

.plan-card.is-shown tbody tr:nth-child(3) .plan-check { transition-delay: 40ms; }
.plan-card.is-shown tbody tr:nth-child(4) .plan-check { transition-delay: 80ms; }
.plan-card.is-shown tbody tr:nth-child(5) .plan-check { transition-delay: 120ms; }
.plan-card.is-shown tbody tr:nth-child(6) .plan-check { transition-delay: 160ms; }
.plan-card.is-shown tbody tr:nth-child(7) .plan-check { transition-delay: 200ms; }
.plan-card.is-shown tbody tr:nth-child(8) .plan-check { transition-delay: 240ms; }

.plan-check svg { width: 14px; height: 14px; }

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

/* Footer */

.site-footer { background: var(--violet); color: var(--on-violet); }

.footer-grid {
  padding-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-brand {
  flex: 1 1 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo { color: var(--on-violet); }

.footer-brand p { margin: 0; font-size: 15px; line-height: 22px; }

.social { display: flex; margin-left: -10px; }

.social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-violet);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 40px 88px; }

.footer-nav div { display: flex; flex-direction: column; gap: 14px; }

.footer-nav span {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-nav a { font-size: 14px; line-height: 20px; text-decoration: none; }

.footer-nav a:hover { text-decoration: underline; }

.footer-note {
  margin: 40px auto 48px;
  font-size: 14px;
  line-height: 20px;
}

.footer-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 48px;
}

/* Gustav */

.gustav-float {
  position: fixed;
  left: 20px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  z-index: 30;
  pointer-events: none;
}

.gustav-say {
  position: absolute;
  left: 28px;
  bottom: calc(100% + 16px);
  margin: 0;
  /* 320 when the centered phone has room; otherwise stop 16px short of it. */
  width: min(320px, calc(50vw - 214px));
  max-width: calc(100vw - 88px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  pointer-events: none;
  filter:
    drop-shadow(0 2px 2px rgba(10, 10, 10, 0.2))
    drop-shadow(0 10px 14px rgba(10, 10, 10, 0.34));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.gustav-say::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -8px;
  width: 16px;
  height: 9px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.gustav-say:empty { display: none; }

.gustav-float.is-shown .gustav-say { opacity: 1; transform: none; }

.gustav-float.is-quiet .gustav-say { opacity: 0; }

.gustav-hit {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  width: 72px;
  height: 72px;
  pointer-events: auto;
  touch-action: manipulation;
}

.gustav-figure {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  transform-origin: 50% 85%;
  animation: gustav-bob 2.8s ease-in-out infinite;
  filter:
    drop-shadow(0 2px 2px rgba(10, 10, 10, 0.2))
    drop-shadow(0 10px 14px rgba(10, 10, 10, 0.34));
}

@keyframes gustav-bob {
  0%, 64%, 100% { transform: translate(0, 0) rotate(-6deg); }
  74% { transform: translate(-3px, -10px) rotate(-8deg); }
  84% { transform: translate(0, 0) rotate(-6deg); }
  90% { transform: translate(-1px, -4px) rotate(-6deg); }
}

.gustav-float img { width: 72px; height: 72px; display: block; }

.gustav-badge {
  position: absolute;
  top: 0;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--on-violet);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.gustav-badge[hidden] { display: none; }

.gustav-badge svg { width: 14px; height: 14px; display: block; }

.pupil {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(1.8px, 2px);
  transition: transform 140ms var(--ease);
}

.pupil.one { left: 30.3px; top: 24.4px; }
.pupil.two { left: 40.7px; top: 23.1px; }

/* Privacy */

.policy { padding-top: 16px; padding-bottom: 80px; }

.policy-body { max-width: 40rem; display: flex; flex-direction: column; gap: 32px; }

.policy h1 { font-size: 30px; line-height: 32px; }

.policy h2 { font-size: 22px; line-height: 26px; max-width: none; }

.policy p { margin: 0; }

.clause { display: flex; flex-direction: column; gap: 12px; }

.policy a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

.policy .dates { font-size: 13px; line-height: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

.no-motion, .no-motion * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-step, .pupil, .plan-check, .plan-card tbody th, .plan-card tbody td, .gustav-say, .toast { transition: none; }
  .plan-card.is-arming .plan-check { transform: none; opacity: 1; }
  .gustav-figure { animation: none; transform: rotate(-6deg); }
}

@media (min-width: 721px) {
  .toast { max-width: calc(100vw - 128px); }
}

@media (max-width: 630px) {
  .toast { white-space: normal; }
}

@media (max-width: 800px) {
  .story { height: 460vh; }
  .plans { width: 100%; }
  .plan-card tbody th,
  .plan-card tbody td { font-size: 15px; line-height: 20px; }
  .plan-feature { white-space: nowrap; }
  .plan-card td,
  .plan-card thead th:nth-child(2) { width: 52px; }
  .plan-card .pro-col { width: 108px; }
  .plan-card td.pro-price { font-size: 13px; line-height: 16px; }
  .footer-photo {
    height: clamp(180px, 52vw, 280px);
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 720px) {
  .nav a:not(.btn) { padding: 12px 10px; }
% /* The corner character covers the phone on a small screen. He stays on the camera step. */
  .gustav-float { display: none; }
}
