:root {
  --mustard: #FFDB58;
  --navy: #154360;
  --teal: #008080;
  --gray: #808080;
  --beige: #F5F5DC;
  --brown: #654321;
  --black: #000;
  --ink: #0d1b26;
  --white: #fff;
  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --headline: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgb(255 219 88 / 0.16);
  color: var(--mustard);
  white-space: nowrap;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  color: var(--white);
  background: rgb(21 67 96 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font-size: 17px;
  opacity: 0.85;
}
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--mustard); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: 600 18px/1 var(--body);
  color: var(--navy);
  background: var(--mustard);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 rgb(0 0 0 / 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgb(0 0 0 / 0.18); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgb(0 0 0 / 0.18); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--small { padding: 10px 18px; font-size: 16px; box-shadow: none; }
.btn--small:hover, .btn--small:active { box-shadow: none; }
.btn--dark { color: var(--mustard); background: var(--navy); }
.btn--dark:focus-visible { outline-color: var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---- Panels: every section is the same height (see script.js). ---- */

.panel {
  position: relative;
  min-height: var(--panel-h, 100svh);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 32px;
  row-gap: 28px;
  padding: calc(var(--nav-h) + clamp(24px, 4.5vh, 48px)) var(--gutter) clamp(32px, 5vh, 56px);
  overflow: hidden;
  scroll-margin-top: 0;
}
.panel__num {
  position: absolute;
  top: calc(var(--nav-h) - 0.12em);
  right: calc(var(--gutter) - 0.06em);
  font: 700 clamp(120px, 20vw, 300px)/1 var(--display);
  letter-spacing: -0.04em;
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}
.panel__head { grid-column: 1 / span 9; grid-row: 1; align-self: start; position: relative; }
.panel__art { grid-column: 1 / span 7; grid-row: 2 / 4; align-self: center; position: relative; }
.panel__text {
  grid-column: 8 / -1;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.panel__text p { margin: 0 0 16px; font-size: 21px; line-height: 1.55; }
.panel__text p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 14px;
  font: 600 15px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}
h1, h2 {
  margin: 0;
  font-family: var(--headline);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}
.mark {
  background: linear-gradient(transparent 62%, rgb(255 219 88 / 0.85) 62% 92%, transparent 92%);
  padding: 0 0.06em;
}
.fine { font-size: 16px !important; opacity: 0.85; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }

/* Colours */
.panel--navy { background: var(--navy); color: var(--white); }
.panel--navy .eyebrow { color: var(--mustard); }
/* Starts below the top of the line so it doesn't cover the descenders above it. */
.panel--navy .mark {
  color: var(--navy);
  background: linear-gradient(transparent 24%, var(--mustard) 24% 100%);
  padding: 0 0.12em;
}
.panel--mustard { background: var(--mustard); color: var(--navy); }
.panel--mustard .mark { background: linear-gradient(transparent 62%, rgb(0 128 128 / 0.35) 62% 92%, transparent 92%); }
.panel--teal { background: var(--teal); color: var(--white); }
.panel--teal .eyebrow { color: var(--mustard); }
.panel--gray { background: var(--gray); color: var(--black); }
.panel--gray h2 { color: var(--white); }
.panel--gray .panel__num { color: var(--white); opacity: 0.18; }

/* A soft mustard glow behind the hero art */
.panel--navy#top::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  left: -18vmax;
  bottom: -30vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0 128 128 / 0.55), transparent 65%);
  pointer-events: none;
}

/* ---- The toolbar mock-up ---- */

.toolbar {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: #f3f3f3;
  color: #3c3c3c;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.08);
}
.toolbar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 2px 10px;
  font: 600 14px/1 var(--body);
}
.toolbar__label + .toolbar__row + .toolbar__label { margin-top: 18px; }
.toolbar__label em { font-style: normal; font-weight: 600; }
.newtext {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  font-size: 12px;
}
.toolbar__row { display: flex; gap: 9px; }
.toolbar__row--grid { display: grid; grid-template-columns: repeat(4, 64px); }

.cell {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border: 1px solid #d0d0d0;
  border-radius: 11px;
  background: #fff;
}
.cell img { position: absolute; left: 6px; top: 6px; width: 46px; height: 46px; }
.cell--hot { border-color: #0078d4; background: #e5f1fb; }
.cell--big { width: 92px; height: 92px; border-radius: 16px; }
.cell--big img { left: 9px; top: 9px; width: 66px; height: 66px; }
.custom {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--teal), var(--navy), var(--teal));
  color: var(--mustard);
  font: 700 17px/1 var(--display);
}
.badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 26px;
  height: 26px;
  border: 1px solid #b4b4b4;
  border-radius: 7px;
  background: #fff;
}
.cell--big .badge { width: 34px; height: 34px; border-radius: 9px; }
.badge--photo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 30%, #fff6c8 0 14%, transparent 15%),
    linear-gradient(160deg, transparent 55%, #1e7a3d 56%),
    linear-gradient(#7ec8ff, #c9ecff);
}
.badge--file::after {
  content: "";
  position: absolute;
  left: 30%;
  top: 18%;
  width: 40%;
  height: 64%;
  border-radius: 2px;
  background: linear-gradient(135deg, transparent 22%, #d9d9d9 22% 30%, #fff 30%);
  box-shadow: inset 0 0 0 1.5px #3b82c4;
}
.badge--vars {
  width: 34px;
  border: 0;
  background: #005fb8;
  color: #fff;
  font: 600 12px/26px var(--body);
  font-style: normal;
  text-align: center;
}
.pill {
  position: absolute;
  right: 3px;
  top: 3px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: #005fb8;
  color: #fff;
  font: 600 11px/18px var(--body);
  text-align: center;
}
.tip {
  position: absolute;
  left: 60%;
  top: calc(100% + 8px);
  z-index: 3;
  padding: 6px 10px;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: 500 13px/1.2 var(--body);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
}

/* Hero: toolbar above a slice of the taskbar */
.hero-art { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.taskbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  font: 500 12px/1.3 var(--body);
  text-align: right;
}
.tray-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.12);
}
.tray-icon svg { width: 20px; height: 20px; }
.tray-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--mustard);
  border-radius: 12px;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { opacity: 0.9; transform: scale(0.85); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

/* History: three cards */
.cards { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; }
.card {
  margin: 0;
  width: 220px;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--navy);
  transition: transform 0.25s ease;
}
.card:nth-child(1) { transform: rotate(-3deg); }
.card:nth-child(2) { transform: translateY(-34px) rotate(2deg); }
.card:nth-child(3) { transform: rotate(-1deg); }
.card:hover { transform: translateY(-8px) rotate(0); }
.card figcaption { margin-top: 16px; display: grid; gap: 4px; }
.card strong { font: 700 22px/1.1 var(--display); color: var(--navy); }
.card figcaption span { font-size: 16px; color: #4a5560; }

/* Pins: toolbar with its right-click menu */
.pins-art { display: flex; align-items: flex-start; gap: 0; }
.toolbar--wide { padding-top: 20px; }
.menu {
  list-style: none;
  margin: 90px 0 0 -40px;
  padding: 6px;
  min-width: 190px;
  position: relative;
  z-index: 2;
  border-radius: 10px;
  background: #fbfbfb;
  color: #1b1b1b;
  font: 400 14px/1 var(--body);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.3), 0 0 0 1px rgb(0 0 0 / 0.08);
}
.menu li { padding: 9px 14px; border-radius: 6px; }
.menu__hot { background: #e8e8e8; font-weight: 600; }
.menu__sep { margin-top: 6px; border-top: 1px solid #e3e3e3; border-radius: 0 0 6px 6px !important; padding-top: 12px !important; }

/* Templates: text -> form -> result */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "template form" "result form";
  gap: 22px 26px;
  max-width: 800px;
}
.template { grid-area: template; align-self: start; }
.result { grid-area: result; align-self: end; }
.form { grid-area: form; }
.template, .result {
  padding: 14px 18px;
  border-radius: 12px;
  font: 500 16px/1.5 "Cascadia Code", Consolas, monospace;
}
.template { background: rgb(255 255 255 / 0.08); border: 1px dashed rgb(255 255 255 / 0.35); }
.template b { color: var(--navy); background: var(--mustard); border-radius: 5px; padding: 1px 5px; font-weight: 600; }
.result { background: var(--teal); color: #fff; position: relative; }
.result::before {
  content: "Pasted";
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--navy);
  font: 700 11px/1.6 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  color: #1b1b1b;
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.4);
}
.form__title { padding: 10px 16px; background: #fff; font: 500 13px/1.2 var(--body); border-bottom: 1px solid #e2e2e2; }
.form__body { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; align-items: center; padding: 16px; font-size: 13px; }
.form__body label { color: #333; }
.field { padding: 5px 9px; border: 1px solid #c9c9c9; border-bottom-color: #0067c0; border-radius: 4px; background: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.radio, .check { position: relative; padding-left: 22px; }
.radio::before, .check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 1.5px solid #6b6b6b;
  border-radius: 50%;
  background: #fff;
}
.check::before { border-radius: 4px; }
.radio.on::before { border: 4px solid #005fb8; }
.check.on::before { border-color: #005fb8; background: #005fb8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.form__btn {
  grid-column: 2;
  justify-self: end;
  padding: 6px 22px;
  border: 1px solid #005fb8;
  border-radius: 4px;
  background: #fff;
}

/* Native: stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 18px; margin: 0; }
.stats div { padding: 22px; border-radius: 18px; background: var(--navy); color: var(--white); }
.stats div:nth-child(2) { background: var(--black); }
.stats div:nth-child(3) { background: var(--brown); }
.stats div:nth-child(4) { background: var(--beige); color: var(--brown); }
.stats dt { font: 700 clamp(36px, 4vw, 54px)/1 var(--display); letter-spacing: -0.03em; color: var(--mustard); }
.stats div:nth-child(4) dt { color: var(--brown); }
.stats dd { margin: 10px 0 0; font-size: 16px; line-height: 1.5; }

/* Contact */
.contact-note { max-width: 460px; font: 500 clamp(22px, 2.3vw, 30px)/1.4 var(--display); margin: 0; }
.contact {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--navy);
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { display: grid; gap: 6px; font-size: 16px; font-weight: 600; color: var(--navy); }
.contact input, .contact textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #c9d2d9;
  border-radius: 10px;
  font: 400 18px/1.4 var(--body);
  color: var(--ink);
  background: #fbfcfd;
  resize: vertical;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgb(0 128 128 / 0.2); }
.contact [aria-invalid="true"] { border-color: #c0392b; }
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contact__status { margin: 0 !important; font-size: 17px !important; font-weight: 500; }
.contact__status.ok { color: var(--teal); }
.contact__status.err { color: #b03a2e; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Logo: Clip*And*Paste.com, as on the toolbar ---- */

.logo { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.logo em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--mustard); padding: 0 0.04em 0 0.02em; }
.logo small { font-family: var(--body); font-size: 0.78em; font-weight: 500; color: rgb(255 255 255 / 0.6); }
.logo--stacked { display: grid; justify-items: center; line-height: 1.05; font-size: 15px; color: var(--navy); }
.logo--stacked em { color: var(--teal); }
.logo--stacked small { color: var(--gray); }

/* ---- Hero: a window with the toolbar docked beside it ---- */

.screen {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 600px);
  height: clamp(300px, 46vh, 400px);
  border-radius: 14px;
  overflow: visible;
  background: #dfe6ea;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.1);
}
.screen__window { flex: 1; margin: 16px; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgb(0 0 0 / 0.12); }
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--beige); color: var(--brown); font: 600 12px/1 var(--body); }
.screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(101 67 33 / 0.35); }
.screen__bar span { margin-left: 8px; }
.screen__body { display: grid; gap: 12px; padding: 22px 20px; }
.screen__body b { display: block; height: 9px; border-radius: 5px; background: #e4e7ea; }
.screen__body .screen__gap { margin-top: 14px; }
.dockbar {
  width: 92px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  border-radius: 0 14px 14px 0;
  background: #f3f3f3;
  border-left: 1px solid #d0d0d0;
  color: #3c3c3c;
}
.dockbar .cell { width: 54px; height: 54px; border-radius: 10px; }
.dockbar .cell img { left: 5px; top: 5px; width: 38px; height: 38px; }
.dockbar .badge { width: 21px; height: 21px; border-radius: 6px; }
.dockbar .badge--vars { width: 28px; font-size: 10px; line-height: 21px; }
.dockbar__btns { display: flex; gap: 3px; }
.dockbar__btns i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d0d0d0; border-radius: 6px; background: #fff; font: 600 13px/1 var(--body); font-style: normal; }
.dockbar__label { align-self: stretch; margin: 4px 0 -2px; padding: 0 10px; font: 500 11px/1 var(--body); }
.tip--left { left: auto; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }

/* ---- Demo: the recording, with the steps beside it ---- */

.panel--beige { background: var(--beige); color: var(--brown); }
.panel--beige h2 { color: var(--brown); }
.panel--beige .mark { background: linear-gradient(transparent 62%, rgb(0 128 128 / 0.3) 62% 92%, transparent 92%); }
.panel--beige .panel__num { color: var(--brown); opacity: 0.1; }
.panel--demo .panel__head { grid-column: 1 / span 5; }
.panel__demo { grid-column: 6 / -1; grid-row: 1 / 4; align-self: center; position: relative; z-index: 1; }
.panel__steps { grid-column: 1 / span 5; grid-row: 3; align-self: end; position: relative; }
.demo { margin: 0; }
.demo__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 840;
  border-radius: 14px;
  background: #e8e4cf;
  box-shadow: 14px 14px 0 var(--brown), 0 24px 50px rgb(0 0 0 / 0.25);
}
.demo figcaption { margin-top: 26px; font-size: 15px; opacity: 0.75; text-align: right; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 440px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; font-size: 20px; line-height: 1.45; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--beige);
  font: 700 16px/1 var(--display);
}
.steps b { color: var(--teal); }

/* Templates: how substitution works */
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 17px; line-height: 1.45; }
.rules li { padding-left: 16px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--mustard); }
.rules b { color: var(--mustard); font-weight: 600; }
.panel__text .rules { margin-top: 14px; }

/* ---- Footer ---- */

.footer { background: var(--black); color: #d6d6d6; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 34px var(--gutter);
  font-size: 17px;
}
.footer p { margin: 0; display: flex; align-items: center; gap: 10px; }
.footer a { color: var(--mustard); text-underline-offset: 3px; }
.footer__meta { color: var(--gray); }

/* ---- Entrance animations (only with JavaScript, and only if motion is welcome) ---- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .panel__art.reveal { transition-delay: 0.12s; }
  .js .panel__text.reveal { transition-delay: 0.24s; }
  .js .pop { opacity: 0; transform: scale(0.6); }
  .js .in .pop { animation: pop 0.45s cubic-bezier(.3,1.6,.5,1) forwards; }
  .js .in .pop:nth-child(2) { animation-delay: 0.08s; }
  .js .in .pop:nth-child(3) { animation-delay: 0.16s; }
  .js .in .pop:nth-child(4) { animation-delay: 0.24s; }
  .js .in .pop:nth-child(5) { animation-delay: 0.32s; }
  .js .in .pop:nth-child(6) { animation-delay: 0.40s; }
  @keyframes pop { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tray-icon::after { animation: none; }
}

/* ---- Smaller screens ---- */

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
  .panel__art { grid-column: 1 / -1; grid-row: 2; }
  .panel__text { grid-column: 4 / -1; grid-row: 3; }
  .pins-art .menu { margin-top: 90px; }
  .flow { max-width: 760px; }
  .panel--demo .panel__head, .panel__steps { grid-column: 1 / -1; }
  .panel__demo { grid-column: 1 / -1; grid-row: 2; }
  .panel__steps { grid-row: 3; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .panel { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .panel__head, .panel__art, .panel__text { grid-column: 1; }
  .panel__text { justify-self: stretch; max-width: none; }
  .panel__text p { font-size: 19px; }
  .toolbar { transform-origin: left top; }
  .cell { width: 48px; height: 48px; border-radius: 9px; }
  .cell img { left: 4px; top: 4px; width: 34px; height: 34px; }
  .custom { left: 5px; top: 5px; width: 34px; height: 34px; font-size: 13px; }
  .badge { width: 20px; height: 20px; border-radius: 5px; }
  .badge--vars { width: 26px; font-size: 10px; line-height: 20px; }
  .toolbar__row { gap: 6px; }
  .toolbar__row--grid { grid-template-columns: repeat(4, 48px); }
  .cards { gap: 16px; }
  .card { width: calc(50% - 8px); padding: 16px; }
  .card:nth-child(2) { transform: rotate(2deg); }
  .cell--big { width: 72px; height: 72px; }
  .cell--big img { width: 52px; height: 52px; left: 8px; top: 8px; }
  .pins-art { flex-direction: column; }
  .pins-art .menu { margin: -20px 0 0 40%; min-width: 170px; }
  .screen { height: 340px; }
  .screen__window { margin: 10px; }
  .dockbar { width: 76px; }
  .dockbar .cell { width: 46px; height: 46px; }
  .dockbar .cell img { width: 32px; height: 32px; left: 6px; top: 6px; }
  .tip--left { display: none; }
  .dockbar span.cell:nth-of-type(3) { display: none; }
  .demo__video { box-shadow: 8px 8px 0 var(--brown); }
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "template" "form" "result"; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats div { padding: 16px; }
  .contact { padding: 20px; box-shadow: 8px 8px 0 var(--navy); }
  .contact__row { grid-template-columns: 1fr; }
}
