/* Pastemind's site. A deep ink night, warm paper-white type, one highlighter yellow: the marker is the brand's
   gesture, it marks what was found. The app's windows are shown as they are, Liquid Glass on a macOS desktop. */

@font-face {
  font-family: "Funnel Display";
  src: url("/fonts/funnel-display-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Funnel Sans";
  src: url("/fonts/funnel-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: oklch(14.5% 0.018 282);
  --bg-2: oklch(18.5% 0.022 282);
  --bg-3: oklch(23% 0.024 282);
  --line: oklch(29% 0.022 282);
  --text: oklch(96% 0.012 95);
  --text-2: oklch(80% 0.016 282);
  --text-3: oklch(64% 0.018 282);
  --marker: oklch(91.5% 0.165 101);
  --marker-ink: oklch(19% 0.03 282);
  --accent: oklch(78% 0.13 101);

  /* The app's panel: its glass, for the live demo on the desktop picture. */
  --glass: oklch(24% 0.035 272 / 0.38);
  --glass-line: oklch(100% 0 0 / 0.13);
  --panel-text: oklch(96% 0.006 278);
  --panel-dim: oklch(80% 0.02 278 / 0.75);
  --panel-select: oklch(62% 0.13 262 / 0.42);

  --display: "Funnel Display", ui-sans-serif, system-ui, sans-serif;
  --sans: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --mac: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  --step-3: clamp(2.3rem, 1.5rem + 3.4vw, 4.6rem);
  --step-4: clamp(3.1rem, 1.6rem + 6.6vw, 8.2rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --stage-shadow: 0 0 0 1px oklch(100% 0 0 / 0.07), 0 50px 100px -40px oklch(0% 0 0 / 0.75), 0 18px 40px -20px oklch(0% 0 0 / 0.55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 { font-size: var(--step-3); line-height: 1.02; font-weight: 700; }
h3 { font-size: var(--step-2); line-height: 1.12; font-weight: 650; letter-spacing: -0.02em; }
/* A heading's lead-in, quieter than its point. */
.soft { color: var(--text-3); }
p { margin: 0; text-wrap: pretty; }

/* The highlighter, kept for what was found (the hero's word, the scan's line, the last "later", the search being
   shown, the privacy promise): on the dark page it covers the words, which turn to ink. */
mark {
  color: var(--marker-ink);
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 60% / 100% 1.02em;
  padding: 0 0.08em;
  margin: 0 -0.04em;
  border-radius: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

kbd {
  font-family: var(--mac);
  font-size: 0.82em;
  font-weight: 600;
  display: inline-block;
  min-width: 1.9em;
  padding: 0.12em 0.45em 0.18em;
  margin: 0 0.08em;
  text-align: center;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid oklch(100% 0 0 / 0.1);
  border-bottom: 3px solid oklch(0% 0 0 / 0.45);
  border-radius: 0.5em;
  line-height: 1.2;
  vertical-align: 0.06em;
}

kbd.big { font-family: var(--display); font-size: 0.72em; font-weight: 650; border-radius: 0.28em; padding: 0.06em 0.28em 0.12em; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--marker);
  color: var(--marker-ink);
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* MARK: Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.55em;
  border-radius: 999px;
  background: var(--text);
  color: var(--marker-ink);
  font-weight: 650;
  font-size: var(--step-0);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s;
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 12px 30px -14px oklch(0% 0 0 / 0.7);
}
.btn:hover { transform: translateY(-2px); background: oklch(100% 0.005 95); box-shadow: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 18px 36px -14px oklch(0% 0 0 / 0.8); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 0.55em 1.1em; font-size: var(--step--1); }

/* MARK: Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.85rem var(--gutter);
  background: oklch(14.5% 0.018 282 / 0.78);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }

.nav nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); font-size: var(--step--1); font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--text-2); transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }

/* MARK: Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas:
    "title title"
    "side demo";
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  row-gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 7vw, 6.5rem) var(--gutter) clamp(4rem, 9vw, 8rem);
  max-width: 1500px;
  margin: 0 auto;
}

.hero-title {
  grid-area: title;
  font-size: var(--step-4);
  line-height: 0.95;
  font-weight: 750;
  letter-spacing: -0.045em;
}

/* "mind" is marked as the page opens: the stroke runs under it and the word turns to ink. */
.swipe { background-size: 0% 1.02em; color: var(--text); animation: swipe 0.9s var(--ease-out-expo) 0.55s forwards; }
@keyframes swipe { 55% { color: var(--text); } to { background-size: 100% 1.02em; color: var(--marker-ink); } }

.hero-side { grid-area: side; display: flex; flex-direction: column; gap: clamp(1.75rem, 3vw, 2.5rem); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-2); max-width: 34ch; }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.fine { font-size: var(--step--1); color: var(--text-3); }

.tries-label { font-size: var(--step--1); color: var(--text-3); margin-bottom: 0.6rem; }
.tries ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tries button {
  font: 500 var(--step--1) / 1 var(--mac);
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6em 1em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.tries button:hover { background: var(--bg-3); border-color: var(--text-3); transform: translateY(-1px); }
.tries button[aria-pressed="true"] { background: var(--marker); border-color: transparent; color: var(--marker-ink); }

/* MARK: The demo: the app's panel, on Liquid Glass over a stretch of the desktop */

.demo { grid-area: demo; margin: 0; align-self: start; }

.demo-stage {
  position: relative;
  aspect-ratio: 1640 / 1082;
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  background: url("/media/desk-blue.webp") center / cover;
  box-shadow: var(--stage-shadow);
}

.panel {
  position: absolute;
  left: 8.24%;
  top: 9.17%;
  width: 83.52%;
  height: 78.33%;
  display: flex;
  flex-direction: column;
  color: var(--panel-text);
  font-family: var(--mac);
  border-radius: clamp(16px, 1.9vw, 26px);
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(1.8) brightness(0.92);
  -webkit-backdrop-filter: blur(30px) saturate(1.8) brightness(0.92);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.28),
    inset 0 0 0 1px var(--glass-line),
    inset 0 -1px 0 oklch(100% 0 0 / 0.06),
    0 30px 60px -24px oklch(0% 0 0 / 0.55);
}

.field {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  height: clamp(44px, 4.4vw, 62px);
  padding: 0 clamp(14px, 1.6vw, 22px);
  border-bottom: 1px solid var(--glass-line);
  color: var(--panel-dim);
}
.field svg { flex: none; width: clamp(16px, 1.6vw, 22px); height: auto; }
.query { color: var(--panel-text); font-size: clamp(15px, 1.55vw, 22px); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 2px; height: 1.25em; font-size: clamp(15px, 1.55vw, 22px); background: oklch(78% 0.13 262); margin-left: 1px; border-radius: 1px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.pane { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); }

.rows { list-style: none; margin: 0; padding: clamp(6px, 0.7vw, 10px); border-right: 1px solid var(--glass-line); }
.row {
  display: grid;
  grid-template-columns: clamp(26px, 2.4vw, 34px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 0.8vw, 11px);
  height: clamp(44px, 4vw, 56px);
  padding: 0 clamp(8px, 0.8vw, 12px) 0 clamp(6px, 0.7vw, 10px);
  border-radius: clamp(10px, 1vw, 14px);
  opacity: 0;
  transform: translateY(6px);
  animation: row-in 0.35s var(--ease-out) forwards;
}
.row.selected { background: var(--panel-select); }
@keyframes row-in { to { opacity: 1; transform: none; } }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-title { font-size: clamp(11.5px, 0.95vw, 13.5px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: clamp(10px, 0.8vw, 11.5px); color: var(--panel-dim); }
.row-key { font-size: clamp(10px, 0.85vw, 12px); color: var(--panel-dim); }

.tile {
  width: clamp(26px, 2.4vw, 34px);
  aspect-ratio: 1;
  border-radius: 24%;
  background: oklch(100% 0 0 / 0.12) center / 58% no-repeat;
  box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.1) inset;
  overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-text { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 6h10M5 10h10M5 14h6' stroke='%23e4e6f4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tile-file { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 2.5h5.5L15 6v11.5H6z' fill='%23eceef6'/%3E%3Cpath d='M11.5 2.5V6H15' fill='none' stroke='%23b8bbcc'/%3E%3Cpath d='M8 9h5M8 11.5h5M8 14h3' stroke='%23a0a3b8' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 76%; }
.tile-audio { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 8v4M7 5v10M10 7v6M13 4v12M16 8v4' stroke='%23ff7a7a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.preview { position: relative; min-height: 0; padding: clamp(14px, 1.6vw, 22px); display: flex; flex-direction: column; animation: fade-in 0.4s var(--ease-out) both; overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } }
.preview-text { font-size: clamp(12.5px, 1.05vw, 15px); line-height: 1.5; }
/* A picture or a page, fitted in what's left of the pane above its line of details. */
.preview-image, .preview-scan { position: relative; flex: 1; min-height: 0; }
.preview-image img { position: absolute; inset: 0 0 1.6em; margin: auto; max-width: 100%; max-height: calc(100% - 1.6em); width: auto; height: auto; border-radius: 10px; }
.preview-color { display: flex; flex-direction: column; gap: 12px; }
.swatch { height: clamp(110px, 12vw, 190px); border-radius: 14px; box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.14) inset; }
.swatch-a { background: #f2a22a; }
.preview-color p { font-size: clamp(11px, 0.9vw, 13px); color: var(--panel-dim); }
.preview-color strong { color: var(--panel-text); font-size: clamp(14px, 1.2vw, 17px); }
.preview-scan .scan { position: absolute; top: 0; bottom: 1.6em; left: 50%; transform: translateX(-50%); aspect-ratio: 1100 / 1424; }
.preview-scan .scan img { width: 100%; height: 100%; }
.preview-audio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.wave { display: flex; align-items: center; gap: 4px; height: clamp(50px, 6vw, 90px); }
.wave span { width: clamp(3px, 0.35vw, 5px); max-height: 100%; border-radius: 3px; background: oklch(72% 0.17 25); animation: wave 1.1s var(--ease-out) infinite alternate; }
@keyframes wave { from { transform: scaleY(0.35); } }
.preview-audio p { font-size: clamp(11px, 0.9vw, 13px); color: var(--panel-dim); }
.preview-meta { position: absolute; left: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); bottom: clamp(8px, 1vw, 14px); font-size: clamp(9.5px, 0.8vw, 11.5px); color: var(--panel-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo-caption { margin-top: 0.9rem; font-size: var(--step--1); color: var(--text-3); }

/* MARK: Scanned page with its marked line */

.scan { position: relative; margin: 0; }
.scan img { width: 100%; border-radius: 3px; box-shadow: 0 1px 2px oklch(0% 0 0 / 0.3), 0 30px 50px -20px oklch(0% 0 0 / 0.7); }
.ink {
  position: absolute;
  background: var(--marker);
  mix-blend-mode: multiply;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.55s var(--ease-out-expo);
}
.ink-1 { left: 58.6%; top: 43.9%; width: 29.1%; height: 2.5%; }
.ink-2 { left: 10.4%; top: 46.9%; width: 12%; height: 2.05%; transition-delay: 0.45s; }
.marked .ink { transform: scaleX(1); }

/* MARK: Sections */

section { padding: clamp(4.5rem, 10vw, 9.5rem) var(--gutter); max-width: 1500px; margin: 0 auto; }

.film { padding-top: 0; }
.film h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.video-frame { border-radius: clamp(14px, 2vw, 28px); overflow: hidden; background: #05050a; box-shadow: var(--stage-shadow); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }

.shot { margin: 0; }
.shot img { width: 100%; border-radius: clamp(14px, 1.8vw, 24px); box-shadow: var(--stage-shadow); }
.shot figcaption { margin-top: 1rem; font-size: var(--step--1); color: var(--text-3); }

.kinds { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kinds-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.kinds-copy p { color: var(--text-2); max-width: 38ch; }
.kind-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.kind-tabs button {
  font: 650 var(--step-2) / 1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--text-3);
  border: 0;
  border-radius: 0.08em;
  padding: 0 0.12em;
  cursor: pointer;
  background: linear-gradient(var(--text), var(--text)) no-repeat 0 100% / 0% 2px;
  transition: color 0.25s, background-size 0.45s var(--ease-out-expo);
}
.kind-tabs button:hover { color: var(--text-2); }
.kind-tabs button[aria-selected="true"] { color: var(--text); background-size: 100% 2px; }
.kinds-shot img { transition: opacity 0.25s; }
.kinds-shot img.swapping { opacity: 0.2; }

.senses > h2 { margin-bottom: clamp(3rem, 7vw, 6rem); }
.sense { display: grid; align-items: center; gap: clamp(2rem, 5vw, 5.5rem); }
.sense + .sense { margin-top: clamp(4rem, 9vw, 8rem); }
.sense-copy { display: flex; flex-direction: column; gap: 1rem; }
.sense-copy p { color: var(--text-2); max-width: 36ch; font-size: var(--step-1); line-height: 1.5; }
.sense-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.sense-voice { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.sense-scan { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sense-scan .scan { width: min(100%, 440px); justify-self: center; transform: rotate(-1.5deg); }
.scan-query {
  position: absolute;
  right: -9%;
  top: 4%;
  font: 600 clamp(0.85rem, 0.7rem + 0.5vw, 1.05rem) / 1 var(--mac);
  color: var(--panel-text);
  background: oklch(28% 0.04 272 / 0.82);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  padding: 0.75em 1.05em;
  border-radius: 999px;
  transform: rotate(1.5deg);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.22), inset 0 0 0 1px oklch(100% 0 0 / 0.12), 0 14px 30px -12px oklch(0% 0 0 / 0.6);
}

.search { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.search-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.search-copy p { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; max-width: 36ch; }
.search-shots { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.search-shots .shot:last-child { margin-left: clamp(0px, 6vw, 5rem); }

.little h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.little-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.little-list div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.little-list dt { font-size: var(--step-0); white-space: nowrap; }
.little-list dd { margin: 0; color: var(--text-2); }
.gesture { font-family: var(--mac); font-weight: 600; font-size: 0.88em; color: var(--text); }

/* MARK: Privacy, drenched in the marker's yellow */

.privacy {
  max-width: none;
  background: var(--marker);
  color: oklch(28% 0.05 95);
  padding-left: max(var(--gutter), calc((100vw - 1500px) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - 1500px) / 2 + var(--gutter)));
}
.privacy ::selection { background: var(--marker-ink); color: var(--marker); }
.privacy h2 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.045em; color: var(--marker-ink); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.promises li { font-size: var(--step-1); line-height: 1.45; }
.promises strong { display: block; font-family: var(--display); font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em; color: var(--marker-ink); margin-bottom: 0.5rem; }
.promises a { color: var(--marker-ink); font-weight: 650; }
.privacy-fine { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 68ch; font-size: var(--step--1); }
.privacy :focus-visible { outline-color: var(--marker-ink); }

/* MARK: Get it */

.get { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.get-icon { width: clamp(96px, 12vw, 148px); height: auto; filter: drop-shadow(0 24px 40px oklch(0% 0 0 / 0.6)); }
.get h2 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.045em; }
.cta-center { align-items: center; }
.cta .fine a { color: var(--text-2); }

.before { width: min(100%, 980px); margin-top: clamp(1.5rem, 4vw, 3rem); text-align: left; }
.before h3 { font-size: var(--step-1); margin-bottom: 1rem; color: var(--text-2); }
.before ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.before li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--step--1); line-height: 1.5; }
.before strong { color: var(--text); font-weight: 600; }

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-3);
}
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* MARK: Reveals (only with scripts on: without them everything is simply there) */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* MARK: Narrow screens */

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "side" "demo"; }
  .kinds, .search, .sense-photo, .sense-voice, .sense-scan { grid-template-columns: minmax(0, 1fr); }
  .sense-voice .sense-copy { order: 2; }
  .search-shots .shot:last-child { margin-left: 0; }
  .nav nav { display: none; }
}

@media (max-width: 600px) {
  .demo-stage { aspect-ratio: auto; padding: 22px 12px 26px; }
  .panel { position: relative; inset: auto; width: 100%; height: auto; }
  .pane { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .rows { border-right: 0; border-bottom: 1px solid var(--glass-line); }
  .preview { height: 250px; }
  .preview-meta { display: none; }
  .scan-query { right: -2%; top: -3%; }
  .little-list div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

@media (pointer: coarse) {
  .tries button, .kind-tabs button, .btn-small { min-height: 44px; }
  .footer a { display: inline-block; padding: 0.7rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .swipe { background-size: 100% 1.02em; color: var(--marker-ink); }
  .ink { transform: scaleX(1); }
  .caret { animation: none; }
}
