/* Adapps Software — "B · Colorful gallery"
   Values are copied from the design references in _design-reference/b-colorful-gallery/.
   Desktop first; everything under 760px follows the 390px mobile references. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --soft: #F2F2F0;
  --text-2: #3F3F3F;
  --text-3: #454545;
  --muted-dark: #9C9C9C;
  --on-dark: #D9D9D9;
  --orange: #FF6A1A;
  --lime: #DDF84A;
  --blue: #1C64E0;

  --pastel-1: #FFE3DB; --pastel-2: #F1FBC4; --pastel-3: #E2EBFC;
  --pastel-4: #DDF2FD; --pastel-5: #E9E4FB; --pastel-6: #DCF7E6;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --section-end: clamp(72px, 9vw, 112px);
  --h2: clamp(40px, 5.6vw, 76px);
}

/* ---------- Base ---------- */
/* The references use the default content-box sizing (max-width + padding, height + padding);
   only bordered icons are border-box, as in the references. */
.tile__icon, .app-hero__icon, .mini img { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); }
body {
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: none; }
img { height: auto; }
a { color: var(--ink); }
a:hover { color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .tile :focus-visible, .tile:focus-visible, .app-hero :focus-visible, .mini:focus-visible { outline-color: currentColor; }
.on-dark :focus-visible { outline-color: var(--paper); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }
.m-only { display: none; }

.display { font-family: var(--font-display); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Rotated label above section headings */
.tag {
  align-self: flex-start;
  padding: 6px 14px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 14px; line-height: 1.5;
  transform: rotate(-2deg);
}
.tag--lime { background: var(--lime); color: var(--ink); transform: rotate(2deg); }

.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--h2); line-height: 1.07; letter-spacing: -0.013em;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border: 0; cursor: pointer;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--paper); }
.btn--line { padding: 0 28px; border: 2px solid var(--ink); background: transparent; }

/* ---------- Header ---------- */
.site-header { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.013em; line-height: 1; }
.brand__tag {
  padding: 4px 9px; border-radius: 8px; background: var(--orange); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
  transform: rotate(-3deg);
}
.nav-links { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--soft); text-decoration: none;
}
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--ink:hover { color: var(--paper); }
.pill--cta { padding: 0 20px; }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); cursor: pointer;
}

/* Full-screen mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  padding: 12px 16px 32px; background: var(--paper);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu .menu-btn { display: inline-flex; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.menu__links { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.menu__links a {
  display: flex; align-items: center; min-height: 64px; padding: 0 24px; border-radius: 999px;
  background: var(--soft); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.012em;
}
.menu__links a.is-ink { background: var(--ink); color: var(--paper); }

/* ---------- Home hero ---------- */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
}
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sticker {
  padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.5;
}
.sticker--orange { background: var(--orange); color: var(--ink); transform: rotate(-4deg); }
.sticker--lime { background: var(--lime); color: var(--ink); transform: rotate(3deg); }
.sticker--blue { background: var(--blue); color: var(--paper); transform: rotate(-2deg); }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 8vw, 116px); line-height: 1.06; letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__icons { display: inline-flex; vertical-align: -0.1em; margin: 0 0.06em; }
.hero__icons img {
  width: 0.8em; height: 0.8em; border-radius: 0.19em;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.45);
}
.hero__icons img:nth-child(1) { transform: rotate(-9deg); }
.hero__icons img:nth-child(2) { margin-left: -0.2em; transform: rotate(7deg) translateY(-0.06em); }
.hero__icons img:nth-child(3) { margin-left: -0.2em; transform: rotate(-4deg); }
.hero__lede { max-width: 600px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Screenshot wall ---------- */
.wall { overflow: hidden; padding: 36px 0 72px; }
.wall__track { display: flex; align-items: flex-start; gap: 22px; width: max-content; margin-left: 50%; transform: translateX(-50%); }
.wall__item {
  --r: 0deg;
  position: relative; flex: none; display: block; border-radius: 28px;
  rotate: calc(var(--r) * var(--tilt, 1)); translate: 0 var(--lift, 0); scale: var(--grow, 1);
  transition: rotate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wall__item img {
  display: block; width: 230px; border-radius: 28px;
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.45s ease;
}
.wall__item:nth-child(1) { margin-top: 34px; --r: -5deg; }
.wall__item:nth-child(2) { margin-top: 8px; --r: 3deg; }
.wall__item:nth-child(3) { margin-top: 30px; --r: -2deg; }
.wall__item:nth-child(4) { --r: 0deg; border-radius: 30px; }
.wall__item:nth-child(4) img { width: 246px; border-radius: 30px; box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.5); }
.wall__item:nth-child(5) { margin-top: 30px; --r: 2deg; }
.wall__item:nth-child(6) { margin-top: 8px; --r: -3deg; }
.wall__item:nth-child(7) { margin-top: 34px; --r: 5deg; }
.wall__item:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
@media (hover: hover) {
  .wall__item:hover { z-index: 2; --lift: -14px; --tilt: 1.6; --grow: 1.04; }
  .wall__item:nth-child(4):hover { rotate: -2deg; }
  .wall__item:hover img { box-shadow: 0 40px 70px -28px rgba(0, 0, 0, 0.55); }
}

/* ---------- App tiles ---------- */
.apps {
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section-end);
  display: flex; flex-direction: column; gap: 20px;
}
.apps__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 20px; }
.apps__title { display: flex; flex-direction: column; gap: 16px; }
.apps__lede { max-width: 380px; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.tiles { display: flex; flex-direction: column; gap: 20px; }
.tile-row { display: flex; flex-wrap: wrap; gap: 20px; }

.tile {
  position: relative;
  flex: 1 1 340px; height: 560px; border-radius: 40px;
  background: var(--app-bg); color: var(--app-fg);
  overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 36px 36px 0;
  transition: transform 0.25s ease;
}
.tile__info { display: contents; }
.tile__top { display: flex; align-items: center; gap: 12px; }
.tile__icon { width: 64px; height: 64px; border-radius: 15px; border: 3px solid var(--app-ring); }
.tile__cat { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, var(--app-pill)); font-size: 14px; font-weight: 700; line-height: 1.5; }
.tile__name { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.07; letter-spacing: -0.012em; color: var(--app-title); }
.tile__text { font-size: 17px; line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.tile__note { font-size: 15px; font-weight: 700; }
.tile__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; color: var(--app-title); text-decoration: underline; text-underline-offset: 4px;
}
.tile__link:hover { color: var(--app-title); }
/* The link covers the whole tile, so a click anywhere opens the app page. */
.tile__link::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.tile:has(.tile__link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.tile .tile__link:focus-visible { outline: none; }
.tile__shots { display: flex; justify-content: center; }
.tile__shots img {
  align-self: center; width: 210px; border-radius: 26px; margin-top: 6px;
  transform: rotate(var(--rot)); box-shadow: 0 24px 50px -20px var(--app-shadow);
  transition: transform 0.35s ease;
}

.tile--wide { flex: 2 1 560px; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; padding: 40px 40px 0; }
.tile--wide .tile__info { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.tile--wide .tile__top { gap: 14px; }
.tile--wide .tile__icon { width: 76px; height: 76px; border-radius: 18px; }
.tile--wide .tile__name { font-size: clamp(44px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.013em; }
.tile--wide .tile__text { font-size: 19px; }
.tile--wide .tile__link {
  margin-top: auto; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px;
  background: var(--app-btn-bg); color: var(--app-btn-fg); text-decoration: none;
}
.tile--wide .tile__link:hover { color: var(--app-btn-fg); }
.tile--wide .tile__shots { flex: 1 1 280px; align-items: flex-start; padding-top: 18px; min-width: 0; }
.tile--wide .tile__shots img { position: relative; margin-top: 0; align-self: auto; }
.tile--wide .tile__shots img:nth-child(1) { z-index: 1; transform: rotate(-6deg) translateY(28px); }
.tile--wide .tile__shots img:nth-child(2) { z-index: 2; margin-left: -60px; transform: rotate(7deg); }

@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); }
  .tile:hover .tile__shots img { transform: rotate(calc(var(--rot) * 1.4)); }
  .tile--wide:hover .tile__shots img:nth-child(1) { transform: rotate(-8deg) translateY(22px); }
  .tile--wide:hover .tile__shots img:nth-child(2) { transform: rotate(9deg); }
}

/* ---------- Promises ---------- */
.how { padding-bottom: var(--section-end); display: flex; flex-direction: column; gap: 40px; }
.how__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 20px; }
.promise { border: 2px solid var(--ink); border-radius: 32px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.promise__num { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.013em; }
.promise__body { display: flex; flex-direction: column; gap: 12px; }
.promise__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.5; letter-spacing: -0.007em; }
.promise__text { font-size: 16px; line-height: 1.55; color: var(--text-3); }

/* ---------- Reviews ---------- */
.reviews { padding-bottom: var(--section-end); display: flex; flex-direction: column; gap: 36px; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.reviews__head .h2 { max-width: 720px; }
.rating {
  display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: 28px;
  background: var(--lime); transform: rotate(-3deg);
}
.rating__num { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.013em; }
.rating__label { display: flex; flex-direction: column; font-weight: 700; font-size: 15px; line-height: 1.3; }
.bubbles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.bubble { display: flex; flex-direction: column; gap: 16px; }
.bubble blockquote {
  padding: 28px; border-radius: 28px 28px 28px 6px; background: var(--bubble-bg, var(--pastel-1));
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: 0;
}
.bubble figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-left: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.bubble figcaption img { width: 32px; height: 32px; border-radius: 8px; }
.bubble__stars { color: var(--ink); letter-spacing: 0.05em; }

/* ---------- About + contact ---------- */
.about { padding-bottom: var(--section-end); }
.about__block {
  border-radius: 48px; background: var(--orange); color: var(--ink);
  padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px;
}
.about__copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.about__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: pretty; }
.about__text { font-size: 18px; line-height: 1.55; font-weight: 500; max-width: 520px; }
.form {
  flex: 1 1 400px; background: var(--paper); border-radius: 36px;
  padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 16px;
  scroll-margin-top: 24px;
}
.form__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -0.012em; }
.form__lede { margin-bottom: 4px; font-size: 16px; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  height: 54px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 400;
}
.field textarea { height: auto; padding: 14px 18px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6B6B6B; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"] {
  min-height: 58px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper);
  font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form__status { min-height: 1.5em; font-weight: 600; font-size: 15px; }
.form__status.is-ok { color: #15703A; }
.form__status.is-error { color: #B3261E; }
.form__status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__about { max-width: 360px; font-size: 17px; line-height: 1.5; color: var(--on-dark); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 0; }
.footer__col h2 { margin: 0 0 4px; font-size: 13px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); font-weight: 700; }
.footer__col a { display: flex; align-items: center; min-height: 44px; }
.footer__mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(88px, 19vw, 280px); line-height: 0.92; letter-spacing: -0.02em; color: var(--orange); }
.footer__copy { font-size: 14px; color: var(--muted-dark); }

/* Compact footer (app, legal and 404 pages) */
.site-footer--compact .footer__inner { padding: 40px var(--gutter) 28px; gap: 24px; }
.site-footer--compact .footer__mark { font-size: clamp(72px, 14vw, 200px); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted-dark); }
.footer__links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- App page ---------- */
.app-hero-wrap { padding-top: 8px; }
.app-hero {
  border-radius: 48px; background: var(--app-bg); color: var(--app-fg); overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  padding: clamp(28px, 4.4vw, 60px) clamp(24px, 4.4vw, 60px) 0;
}
.app-hero__info { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(28px, 4.4vw, 60px); }
.back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, var(--app-back)); color: var(--app-fg);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.back:hover { color: var(--app-fg); }
.app-hero__icon { width: 104px; height: 104px; border-radius: 24px; border: 4px solid var(--app-ring); transform: rotate(-6deg); }
.app-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 9vw, 136px); line-height: 0.98; letter-spacing: -0.017em; color: var(--app-title); }
.app-hero__tagline { max-width: 520px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 7px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.5; color: var(--ink); }
.chip:nth-child(4n+1) { background: var(--lime); transform: rotate(-3deg); }
.chip:nth-child(4n+2) { background: var(--paper); transform: rotate(2deg); }
.chip:nth-child(4n+3) { background: var(--ink); color: var(--paper); transform: rotate(-2deg); }
.chip:nth-child(4n+4) { background: var(--blue); color: var(--paper); transform: rotate(3deg); }
.badge { align-self: flex-start; display: inline-flex; margin-top: 6px; border-radius: 12px; }
.badge img { height: 58px; width: auto; }
.fan { flex: 1 1 420px; min-height: 560px; position: relative; min-width: 0; }
.fan img {
  position: absolute; left: 50%; top: 96px; width: 220px; border-radius: 28px;
  box-shadow: 0 26px 50px -22px var(--app-shadow);
}
.fan img:nth-child(1) { margin-left: -300px; transform: rotate(-10deg); }
.fan img:nth-child(3) { margin-left: 80px; transform: rotate(10deg); }
.fan img:nth-child(2) { z-index: 1; top: 24px; width: 250px; margin-left: -125px; border-radius: 30px; box-shadow: 0 30px 60px -22px var(--app-shadow-strong); }

.app-section { padding-top: clamp(64px, 8vw, 104px); }
.app-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.07; letter-spacing: -0.013em; text-wrap: balance; }
.features { display: flex; flex-direction: column; gap: 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.feature {
  min-height: 190px; padding: 28px; border-radius: 32px; background: var(--pastel-1);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.feature:nth-child(6n+2) { background: var(--pastel-2); }
.feature:nth-child(6n+3) { background: var(--pastel-3); }
.feature:nth-child(6n+4) { background: var(--pastel-4); }
.feature:nth-child(6n+5) { background: var(--pastel-5); }
.feature:nth-child(6n+6) { background: var(--pastel-6); }
.feature__num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.feature__text { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.12; letter-spacing: -0.007em; }

.gallery__strip {
  overflow-x: auto; overflow-y: hidden; padding: 40px 0 24px;
  scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; align-items: flex-start; gap: 22px; width: max-content; margin: 0 auto; padding: 0 var(--gutter); }
.gallery__track img {
  flex: none; width: 220px; border-radius: 28px; scroll-snap-align: center;
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, 0.45);
}
.gallery__track img:nth-child(6n+1) { margin-top: 26px; transform: rotate(-4deg); }
.gallery__track img:nth-child(6n+2) { margin-top: 4px; transform: rotate(3deg); }
.gallery__track img:nth-child(6n+3) { margin-top: 30px; transform: rotate(-2deg); }
.gallery__track img:nth-child(6n+4) { margin-top: 0; transform: rotate(2deg); }
.gallery__track img:nth-child(6n+5) { margin-top: 28px; transform: rotate(-3deg); }
.gallery__track img:nth-child(6n+6) { margin-top: 6px; transform: rotate(4deg); }

.app-about { padding-top: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 24px 56px; }
.app-about h2 { flex: 1 1 280px; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.012em; }
.app-about__body { flex: 999 1 560px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-about__lead { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.007em; text-wrap: pretty; }
.app-about__text { font-size: 18px; line-height: 1.55; color: var(--text-2); }

.app-reviews { padding-top: clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 28px; }
.app-reviews h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.07; letter-spacing: -0.013em; }
.app-reviews .bubble { gap: 14px; }
.app-reviews .bubble blockquote { padding: 26px; font-size: 21px; letter-spacing: 0; }

.cta-wrap { padding-top: clamp(56px, 7vw, 88px); }
.cta {
  border-radius: 48px; background: var(--ink); color: var(--paper);
  padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta__copy { display: flex; flex-direction: column; gap: 10px; }
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1.07; letter-spacing: -0.013em; color: var(--lime); }
.cta p { font-size: 18px; color: var(--on-dark); }
.cta .badge { align-self: auto; margin-top: 0; }
.cta .badge img { height: 62px; }

.more { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 24px; }
.more h2 { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1.2; letter-spacing: -0.012em; }
.more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.mini {
  min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 20px; border-radius: 28px; background: var(--app-bg); color: var(--app-title); text-decoration: none;
  transition: transform 0.25s ease;
}
.mini:hover { color: var(--app-title); }
.mini img { width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--paper); }
.mini span { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.007em; }
@media (hover: hover) { .mini:hover { transform: translateY(-4px); } }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) var(--section-end); display: flex; flex-direction: column; gap: 28px; }
.switch { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 600; }
.legal__body { font-size: 17px; line-height: 1.65; color: #222222; }
.legal__body h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 72px); line-height: 1.07; letter-spacing: -0.013em; color: var(--ink); margin-bottom: 28px; }
.legal__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.007em; color: var(--ink); margin: 44px 0 14px; }
.legal__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--ink); margin: 22px 0 6px; }
.legal__body p { margin: 0 0 14px; }
.legal__body a { overflow-wrap: anywhere; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.nf { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section-end); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.nf h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(140px, 26vw, 320px); line-height: 0.92; letter-spacing: -0.02em; }
.nf h1 span { display: inline-block; color: var(--orange); transform: rotate(-6deg); }
.nf p { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; }
.nf__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.nf__icons a { display: block; border-radius: 16px; transition: transform 0.25s ease; }
.nf__icons img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.45); }
.nf__icons a:nth-child(odd) { transform: rotate(-6deg); }
.nf__icons a:nth-child(even) { transform: rotate(5deg); }
@media (hover: hover) { .nf__icons a:hover { transform: translateY(-4px) rotate(0deg); } }

/* ---------- Mobile (references at 390px) ---------- */
@media (max-width: 760px) {
  .d-only { display: none; }
  .m-only { display: inline; }

  .site-header { padding: 12px 16px; }
  .site-nav { min-height: 48px; }
  .brand { gap: 8px; }
  .brand__word { font-size: 25px; }
  .brand__tag { padding: 3px 8px; border-radius: 7px; font-size: 11px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }

  .tag { padding: 5px 12px; border-radius: 9px; font-size: 13px; }
  /* The mobile references don't balance headings. */
  .hero__title, .h2, .app-h2, .tile__name, .about__big { text-wrap: wrap; }

  /* hero */
  .hero { padding: 20px 16px 8px; gap: 20px; }
  .stats { gap: 8px; }
  .sticker { padding: 6px 12px; border-radius: 10px; font-size: 13px; }
  .hero__title { font-size: 50px; }
  .hero__icons { margin: 0; }
  .hero__icons img { box-shadow: none; }
  .hero__icons img:nth-child(2) { transform: rotate(7deg); }
  .hero__lede { font-size: 17px; }
  .hero__ctas { flex-direction: column; gap: 10px; width: 100%; }
  .hero__ctas .btn { min-height: 56px; padding: 0; }
  .hero__ctas svg { display: none; }

  /* wall */
  .wall { padding: 28px 0 40px; }
  .wall__track { gap: 14px; }
  .wall__item, .wall__item img { border-radius: 18px; }
  .wall__item img { width: 140px; box-shadow: none; }
  .wall__item:nth-child(1), .wall__item:nth-child(7) { display: none; }
  .wall__item:nth-child(2) { margin-top: 26px; --r: -5deg; }
  .wall__item:nth-child(3) { margin-top: 8px; --r: 3deg; }
  .wall__item:nth-child(4), .wall__item:nth-child(4) img { border-radius: 20px; }
  .wall__item:nth-child(4) img { width: 150px; box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.5); }
  .wall__item:nth-child(5) { margin-top: 8px; --r: -3deg; }
  .wall__item:nth-child(6) { margin-top: 26px; --r: 5deg; }

  /* tiles */
  .apps { padding: 0 16px 56px; gap: 14px; }
  .apps__head { margin-bottom: 8px; }
  .apps__title { gap: 14px; }
  .apps__lede { display: none; }
  .h2 { font-size: 42px; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-row { display: contents; }

  .tile, .tile--wide {
    min-height: 210px; height: auto; border-radius: 26px; padding: 18px;
    flex-direction: column; flex-wrap: nowrap; gap: 10px;
  }
  .tile .tile__info, .tile--wide .tile__info { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 0; }
  .tile .tile__top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tile .tile__icon, .tile--wide .tile__icon { width: 50px; height: 50px; border-radius: 12px; border: 2px solid var(--paper); }
  .tile .tile__cat { padding: 0; background: none; font-size: 12px; opacity: 0.9; }
  .tile .tile__name, .tile--wide .tile__name { order: 2; margin-top: auto; font-size: 25px; line-height: 1.07; letter-spacing: -0.01em; }
  .tile .tile__text, .tile .tile__note, .tile .tile__shots { display: none; }
  .tile .tile__link, .tile--wide .tile__link {
    position: static; order: 3; min-height: 0; height: 0; padding: 0; margin: 0; overflow: hidden;
    background: none; font-size: 0;
  }
  .tile .tile__link svg { display: none; }

  /* Lead tile (Speechy) keeps the large layout */
  .tile.tile--lead {
    grid-column: 1 / -1; height: 500px; border-radius: 32px; padding: 24px 24px 0; gap: 12px;
  }
  .tile--lead .tile__info { flex: none; gap: 12px; }
  .tile--lead .tile__top { flex-direction: row; align-items: center; gap: 10px; }
  .tile--lead .tile__icon { width: 60px; height: 60px; border-radius: 14px; border-width: 3px; }
  .tile--lead .tile__cat { padding: 5px 11px; background: rgba(255, 255, 255, var(--app-pill)); font-size: 13px; opacity: 1; }
  .tile--lead .tile__name { order: 0; margin-top: 0; font-size: 48px; line-height: 1.02; letter-spacing: -0.013em; }
  .tile--lead .tile__text { display: block; font-size: 17px; line-height: 1.4; font-weight: 600; }
  .tile--lead .tile__link {
    order: 0; position: relative; align-self: flex-start; display: inline-flex; height: auto; min-height: 46px;
    padding: 0 20px; margin: 0; overflow: visible; font-size: 16px;
    background: var(--app-btn-bg); color: var(--app-btn-fg);
  }
  .tile--lead .tile__link::after { content: none; }
  .tile--lead .tile__link:focus-visible { outline: 2px solid currentColor; }
  .tile--lead:has(.tile__link:focus-visible) { outline: none; }
  .tile--lead .tile__shots { display: flex; flex: none; padding-top: 0; margin-top: 4px; align-items: flex-start; }
  .tile--lead .tile__shots img { width: 150px; border-radius: 20px; box-shadow: none; }
  .tile--lead .tile__shots img:nth-child(1) { transform: rotate(-6deg) translateY(16px); }
  .tile--lead .tile__shots img:nth-child(2) { margin-left: -40px; }

  /* promises */
  .how { padding: 0 16px 56px; gap: 20px; }
  .how__head { gap: 12px; }
  .promises { grid-template-columns: 1fr; gap: 12px; }
  .promise { flex-direction: row; gap: 14px; padding: 18px 20px; border-radius: 24px; }
  .promise__num { flex: none; font-size: 34px; }
  .promise__body { gap: 4px; }
  .promise__title { font-size: 20px; }
  .promise__text { font-size: 15px; line-height: 1.5; }

  /* reviews */
  .reviews { padding: 0 16px 56px; gap: 16px; }
  .reviews__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reviews__head .h2 { font-size: 40px; }
  .rating { gap: 12px; padding: 14px 20px; border-radius: 22px; }
  .rating__num { font-size: 48px; letter-spacing: 0; }
  .rating__label { font-size: 14px; }
  .bubbles { gap: 16px; }
  .bubble { gap: 10px; }
  .bubble blockquote, .app-reviews .bubble blockquote { padding: 20px; border-radius: 24px 24px 24px 6px; font-size: 19px; letter-spacing: 0; }
  .bubble figcaption { padding-left: 6px; font-size: 14px; }

  /* about */
  .about { padding: 0 16px 56px; }
  .about__block { flex-direction: column; gap: 18px; border-radius: 36px; padding: 26px 20px 20px; }
  .about__copy { flex: none; gap: 18px; }
  .about__big { font-size: 28px; }
  .about__text { font-size: 16px; }
  .form { flex: none; border-radius: 26px; padding: 20px; gap: 12px; }
  .form__title { font-size: 28px; }
  .form__lede { margin: 0; font-size: 15px; }
  .field input { height: 52px; padding: 0 16px; border-radius: 14px; }
  .field textarea { padding: 12px 16px; border-radius: 14px; }
  .form button[type="submit"] { min-height: 56px; }

  /* footer */
  .footer__inner { padding: 32px 16px 28px; gap: 22px; }
  .footer__top { display: block; }
  .footer__about, .footer__col h2 { display: none; }
  .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .footer__col { display: contents; }
  .footer__col a { order: var(--o); }
  .footer__mark, .site-footer--compact .footer__mark { font-size: min(104px, 24vw); }
  .footer__copy { font-size: 13px; }
  .site-footer--compact .footer__inner { padding: 28px 16px; gap: 16px; }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .footer__links { column-gap: 16px; font-size: 14px; }

  /* app page */
  .app-hero-wrap { padding: 0 12px; }
  .app-hero { flex-direction: column; flex-wrap: nowrap; gap: 16px; border-radius: 36px; padding: 20px 20px 0; }
  .app-hero__info { flex: none; gap: 16px; padding-bottom: 0; }
  .app-hero__icon { width: 84px; height: 84px; border-radius: 20px; }
  .app-hero__title { font-size: 72px; }
  .app-hero__tagline { font-size: 18px; }
  .chips { gap: 8px; }
  .chip { padding: 6px 12px; border-radius: 10px; font-size: 14px; }
  .badge { margin-top: 0; }
  .badge img { height: 54px; }
  .fan { flex: none; height: 300px; min-height: 0; margin-top: 6px; }
  .fan img { top: 40px; width: 140px; border-radius: 20px; box-shadow: none; }
  .fan img:nth-child(1) { margin-left: -160px; }
  .fan img:nth-child(3) { margin-left: 20px; }
  .fan img:nth-child(2) { top: 0; width: 160px; margin-left: -80px; border-radius: 22px; box-shadow: 0 24px 44px -20px var(--app-shadow-strong); }

  .app-section { padding-top: 48px; }
  .app-h2 { font-size: 40px; }
  .features { padding-left: 16px; padding-right: 16px; gap: 18px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { min-height: 0; padding: 18px; border-radius: 24px; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 14px; }
  .feature__num { width: 38px; height: 38px; font-size: 17px; }
  .feature__text { font-size: 20px; line-height: 1.15; letter-spacing: 0; padding-top: 6px; }

  .gallery .wrap { padding: 0 16px; }
  .gallery__strip { padding: 26px 0 16px; }
  .gallery__track { gap: 14px; padding: 0 16px; }
  .gallery__track img { width: 140px; border-radius: 18px; box-shadow: none; }
  .gallery__track img:nth-child(6n+1) { margin-top: 20px; }
  .gallery__track img:nth-child(6n+3) { margin-top: 20px; }
  .gallery__track img:nth-child(6n+5) { margin-top: 20px; }

  .app-about { padding: 40px 16px 0; flex-direction: column; gap: 12px; }
  .app-about h2 { flex: none; font-size: 32px; line-height: 1.05; }
  .app-about__body { flex: none; gap: 12px; }
  .app-about__lead { font-size: 22px; letter-spacing: 0; }
  .app-about__text { font-size: 16px; }

  .app-reviews { padding: 48px 16px 0; gap: 14px; }
  .app-reviews h2 { font-size: 36px; }
  .app-reviews .bubble { gap: 8px; }

  .cta-wrap { padding: 48px 12px 0; }
  .cta { flex-direction: column; align-items: flex-start; gap: 14px; border-radius: 36px; padding: 28px 22px; }
  .cta__copy { gap: 14px; }
  .cta h2 { font-size: 40px; }
  .cta p { font-size: 16px; }
  .cta .badge img { height: 54px; }

  .more { padding: 48px 16px; gap: 14px; }
  .more h2 { font-size: 28px; }
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mini { min-height: 130px; gap: 12px; padding: 16px; border-radius: 24px; }
  .mini img { width: 44px; height: 44px; border-radius: 11px; }
  .mini span { font-size: 19px; }

  .legal { padding: 16px 16px 56px; gap: 22px; }
  .legal__body { font-size: 17px; }
  .legal__body h2 { font-size: 24px; margin-top: 36px; }

  .nf { padding: 32px 16px 56px; }
  .nf .hero__ctas { max-width: 420px; }
  .nf__icons img { width: 52px; height: 52px; border-radius: 13px; }
}

/* ---------- Gentle float on app-page screenshots ---------- */
@keyframes shot-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.fan img, .gallery__track img { animation: shot-float 6s ease-in-out infinite; }
.fan img:nth-child(1) { animation-delay: -1.5s; }
.fan img:nth-child(2) { animation-duration: 7s; }
.fan img:nth-child(3) { animation-delay: -4s; }
.gallery__track img:nth-child(3n+1) { animation-delay: -1s; }
.gallery__track img:nth-child(3n+2) { animation-delay: -3s; animation-duration: 7s; }
.gallery__track img:nth-child(3n+3) { animation-delay: -5s; animation-duration: 6.5s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover, .mini:hover, .nf__icons a:hover { transform: none; }
  .tile:hover .tile__shots img { transform: rotate(var(--rot)); }
  .tile--wide:hover .tile__shots img:nth-child(1) { transform: rotate(-6deg) translateY(28px); }
  .tile--wide:hover .tile__shots img:nth-child(2) { transform: rotate(7deg); }
}
