/* Calc89 website, calc89.com
   Written by Marco Wenisch, marcowenisch.com */

:root {
  --bg: #0d0e10;
  --bg-alt: #111215;
  --bg-card: #121316;
  --bg-footer: #0a0b0c;
  --line: #22242a;
  --grid-line: #26282d;
  --text: #f2f2f0;
  --text-2: #c2c4c9;
  --text-3: #a9abb2;
  --text-4: #7d7f84;
  --blue: #3f86e0;
  --green: #36a862;
  --brand: #afa9ff;          /* Calc89 brand lilac: chips and sparkle in the app and store images */
  --brand-deep: #6b64ff;     /* the AI button in the app */
  --brand-ink: #15132a;      /* text on the lilac chip */
  --violet: var(--brand);
  --violet-light: var(--brand);
  --metal: linear-gradient(165deg, #d2d3d6 0%, #9c9ea2 50%, #7d7f84 100%);
  --display: linear-gradient(180deg, #f1f3f5, #dde0e3);
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 24px;
  --header-h: 69px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

a { color: #c9cbd0; }
a:hover { color: var(--brand); }
.pill:hover { color: #111; }
.brand:hover { color: var(--text); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; color: #111; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  border: 1.5px solid var(--brand);
  border-radius: 7px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
}
.eyebrow .key {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  padding: 7px 9px 6px;
}
.eyebrow .label { padding: 7px 10px 6px; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sparkle { width: 34px; height: 34px; color: var(--brand); flex: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--text); }

.h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 9vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.section-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 46em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 14, 16, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease-out, border-color .25s ease-out;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 12, 0.94);
  border-bottom-color: #2c2f36;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.brand span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-desktop { margin-left: auto; }
.nav-desktop ul, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; align-items: center; gap: 22px; }
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #111;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.pill:hover { color: #111; background: #fff; }
.pill { cursor: pointer; list-style: none; gap: 6px; }
.pill::-webkit-details-marker { display: none; }
.pill .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.dl-menu { position: relative; flex: none; }
.dl-menu[open] .pill .chev { transform: rotate(180deg); }
.dl-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  padding: 6px;
  background: #16171b;
  border: 1px solid var(--grid-line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  z-index: 20;
}
.dl-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
}
.dl-panel a:hover { background: #22242a; color: var(--text); }
.dl-panel .dl-store { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.dl-panel .dl-sub { font-size: 13px; color: var(--text-3); }

.nav-menu { display: none; }
.nav-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px #4a4c52;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  user-select: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 18px; height: 18px; flex: none; }
.nav-menu .icon-close { display: none; }
.nav-menu[open] .icon-open { display: none; }
.nav-menu[open] .icon-close { display: block; }

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0a0b0c;
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
}
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel li:last-child a { border-bottom: 0; }

@media (max-width: 819.98px) {
  .nav-desktop { display: none; }
  .nav-menu { display: block; margin-left: auto; }
  .header-inner { gap: 12px; }
}

/* ---------- Grid background ---------- */

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent);
}
.grid-bg--ai {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(70% 80% at 80% 50%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 80% 50%, #000, transparent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 104px;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.store-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; line-height: 0; border-radius: 8px; }
.store-badge img { display: block; width: auto; }
.store-badge--apple img { height: 56px; }
.store-badge--play img { height: 84px; margin: -14px; }
.store-badge:hover { opacity: 0.9; }

.hero-facts {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.hero-media { margin: 0; justify-self: center; width: 100%; max-width: 230px; }
.hero-media img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
  .hero-media { max-width: 340px; }
}

/* ---------- Sections ---------- */

.section { padding-top: 112px; padding-bottom: 112px; }
.section-stack { display: flex; flex-direction: column; gap: 48px; }
.border-top { border-top: 1px solid var(--line); }

/* ---------- Examples ---------- */

.examples .container { max-width: 880px; }

.calc-frame {
  margin: 0;
  border-radius: 22px;
  padding: 12px;
  background: var(--metal);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.calc-bezel { background: #1b1c1f; border-radius: 14px; padding: 8px; }
.calc-display {
  background: var(--display);
  border-radius: 8px;
  color: #16181c;
  overflow: hidden;
}

.examples-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.examples-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 4px 6px 10px;
  text-transform: uppercase;
}
.examples-table thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b4e55;
  text-align: left;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #c6cacf;
}
.examples-table thead th:last-child { text-align: right; }
.examples-table tbody tr { border-bottom: 1px solid #c6cacf; }
.examples-table tbody tr:last-child { border-bottom: 0; }
.examples-table td {
  padding: 12px 16px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.examples-table td:first-child {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: #4b4e55;
}
.examples-table td:last-child {
  text-align: right;
  font-weight: 500;
  font-size: 17px;
}
.examples-table code { font-family: inherit; }
.examples-table sup { font-size: 0.68em; line-height: 0; vertical-align: 0.55em; }
/* Pretty-print pieces, in the style of the calculator display */
.sqrt { white-space: nowrap; }
.sqrt .rad { border-top: 1.5px solid currentColor; padding: 0 2px 0 1px; margin-left: -1px; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.1; margin: 0 2px; }
.frac .num { padding: 0 4px 1px; border-bottom: 1.5px solid currentColor; }
.frac .den { padding: 1px 4px 0; }
.mat {
  display: inline-grid;
  grid-auto-flow: row;
  gap: 2px 0;
  padding: 2px 6px;
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  position: relative;
  vertical-align: middle;
  line-height: 1.15;
}
.mat::before, .mat::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background:
  linear-gradient(currentColor, currentColor) left / 5px 100% no-repeat,
  linear-gradient(currentColor, currentColor) right / 5px 100% no-repeat;
}
.mat::before { top: 0; } .mat::after { bottom: 0; }
.mat .mrow { display: grid; grid-template-columns: repeat(3, auto); gap: 0 10px; justify-items: end; }

@media (max-width: 639.98px) {
  .calc-frame { border-radius: 18px; padding: 10px; }
  .calc-bezel { padding: 6px; border-radius: 12px; }
  .examples-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .examples-table tbody tr { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; }
  .examples-table td { display: block; padding: 0; }
  .examples-table td:first-child { font-size: 13.5px; }
  .examples-table td:last-child { font-size: 16px; }
}

/* ---------- Card grid (1px lines) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  border-radius: 20px;
  overflow: hidden;
}
.card-grid--four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--bg-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card h3 {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}
.card ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card ul li::marker { color: var(--text-4); }

.accent { width: 28px; height: 8px; border-radius: 2px; background: var(--blue); }
.accent--green { background: var(--green); }
.accent--violet { background: var(--violet); }
.accent--light { background: #d2d3d6; }
.accent--grey { background: var(--text-4); }

.card.card--mono h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.command-list {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  word-spacing: 0.25em;
}

/* ---------- AI tutor ---------- */

.ai { position: relative; overflow: hidden; }
.ai-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 64px;
  align-items: center;
}
.ai-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ai-text .lead { font-size: 19px; }
.ai-text .section-note { color: var(--text-2); font-size: 17px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
  border-radius: 16px;
  overflow: hidden;
}
.steps li {
  background: var(--bg-card);
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.step-num { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--blue); }
.steps li:nth-child(2) .step-num { color: var(--green); }
.steps li:nth-child(3) .step-num { color: var(--violet-light); }
.steps h3 { margin: 0 0 4px; font-weight: 700; font-size: 19px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }

.tutor-shot { margin: 0; justify-self: center; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.tutor-shot img { width: 100%; height: auto; border-radius: 28px; background: #1a1b1f; box-shadow: 0 0 0 1px var(--grid-line); }
.tutor-shot figcaption { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.02em; text-align: center; }

/* ---------- Screenshots ---------- */

.screenshots {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.shot-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 18px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
  scrollbar-color: #3a3c41 transparent;
}
.shot-grid::-webkit-scrollbar { height: 6px; }
.shot-grid::-webkit-scrollbar-thumb { background: #3a3c41; border-radius: 3px; }
.shot-grid::-webkit-scrollbar-track { background: transparent; }
.shot-grid > .shot { flex: 0 0 clamp(220px, 22vw, 300px); scroll-snap-align: start; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 603 / 1311;
  border-radius: 28px;
  background: #1a1b1f;
  object-fit: cover;
}
.shot figcaption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------- Compare ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--grid-line);
  border-radius: 20px;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 17px;
  text-align: left;
}
.compare-table th, .compare-table td { padding: 18px 24px; vertical-align: top; }
.compare-table thead th {
  background: var(--bg-card);
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-2);
}
.compare-table thead th.col-app { font-weight: 800; color: var(--text); }
.compare-table tbody th, .compare-table tbody td { border-top: 1px solid var(--grid-line); }
.compare-table tbody th { font-weight: 500; color: var(--text); }
.compare-table td { color: var(--text-3); }
.compare-table td.col-app { color: var(--text); font-weight: 500; }
.compare-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--grid-line);
}
.compare-table thead .sticky-col { background: var(--bg-card); }

/* ---------- FAQ ---------- */

.faq .container, .about .container { max-width: 880px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--grid-line); }
.faq-list details { border-bottom: 1px solid var(--grid-line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list h3 {
  margin: 0;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq-list .sign {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 20px;
  flex: none;
}
.faq-list .sign::before { content: "+"; }
.faq-list details[open] .sign::before { content: "\2212"; }
.faq-list details > p {
  margin: 0;
  padding: 0 0 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 42em;
}

/* ---------- About ---------- */

.about .section-inner { display: flex; flex-direction: column; gap: 16px; padding-top: 80px; padding-bottom: 80px; }
.about h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.about h2 a { color: var(--text); text-decoration-color: var(--brand); text-underline-offset: 5px; }
.about p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 40em;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-footer); }
.footer-inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.footer-brand p { margin: 0; }
.footer-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--text); }
.footer-meta { display: flex; flex-direction: column; gap: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- 404 ---------- */

.notfound { padding-top: 120px; padding-bottom: 140px; }
.notfound .section-head { max-width: 640px; gap: 24px; }

/* ---------- Mobile ---------- */

@media (max-width: 639.98px) {
  :root { --gutter: 16px; --header-h: 65px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 10px; }
  .brand span { font-size: 19px; }
  .pill { padding: 8px 14px; }
  .nav-menu summary .menu-label { display: none; }

  .hero-inner { padding-top: 48px; padding-bottom: 48px; gap: 36px; }
  .hero-media { max-width: 200px; }
  .hero-media img { filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
  .hero-text { gap: 22px; }
  .lead { font-size: 18px; }
  .ai-text .lead { font-size: 18px; }
  .eyebrow { font-size: 12px; }
  .eyebrow .platforms { display: none; }
  .sparkle { width: 28px; height: 28px; }

  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-stack { gap: 32px; }
  .ai-inner { gap: 44px; }

  .card { padding: 24px 20px; }
  .card h3 { font-size: 21px; }
  .card p { font-size: 16px; }

  .steps li { padding: 16px 18px; gap: 14px; }
  .tutor-shot img { border-radius: 18px; }

  .shot-grid { gap: 12px; }
  .shot-grid > .shot { flex-basis: 66vw; }
  .shot img { border-radius: 18px; }
  .shot figcaption { font-size: 12px; }

  .compare-table { font-size: 15px; min-width: 560px; }
  .compare-table th, .compare-table td { padding: 14px 14px; }
  .compare-table thead th { font-size: 16px; padding-top: 16px; padding-bottom: 16px; }
  .table-scroll { border-radius: 14px; }

  .faq-list summary { padding: 20px 0; gap: 16px; }
  .faq-list h3 { font-size: 18px; }
  .faq-list details > p { font-size: 16px; }

  .about .section-inner { padding-top: 64px; padding-bottom: 64px; }
  .about p { font-size: 17px; }
}

@media (max-width: 479.98px) {
  .store-buttons { flex-direction: column; }
  .store-badges { gap: 12px; }
  .store-badge--apple img { height: 48px; }
  .store-badge--play img { height: 72px; margin: -12px; }
}

@media (max-width: 359.98px) {
  .brand span { display: none; }
}

/* ---------- Reveal animations (only with JS) ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Cards inside a 1px line grid: fade the card content, not the card, so the
   grid lines never show as a solid block before the cards appear. */
html.js .card-grid > [data-reveal] { opacity: 1; transform: none; transition: none; }
html.js .card-grid > [data-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .card-grid > [data-reveal].is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js .card-grid > [data-reveal] > * { opacity: 1; transform: none; transition: none; }
  .site-header { transition: none; }
}
