/* ==========================================================================
   DashForge: the site's one stylesheet.
   The palette is the app's dark theme with its red accent
   (lib/theme/app_palette.dart in the app repo) and the store pictures' red
   (tool/store_frames.py), so the site, the store page and the app read as one
   product. The typeface is the system's, as in the app: San Francisco on
   Apple devices, and each platform's own face for Japanese, Korean, Chinese
   and Cyrillic, with no font file to download.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #050506;
  --bg-elev: #0d0d0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.17);

  /* --accent is the store pictures' red. White text on it measures 4.42:1,
     just under the 4.5:1 that WCAG AA wants, so anything that puts white ON
     red uses --accent-strong (4.88:1). --accent-soft is the red for text and
     thin marks on the dark page (6.7:1). */
  --accent: #e8262d;
  --accent-strong: #dc2228;
  --accent-soft: #ff5a60;
  --accent-dim: rgba(232, 38, 45, 0.15);

  --text: #ffffff;
  --muted: #a1a1aa;
  --muted-dim: #85858f;

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto,
    'Helvetica Neue', 'Noto Sans', 'Hiragino Sans', 'Apple SD Gothic Neo',
    'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-soft);
  text-decoration-color: rgba(255, 90, 96, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Announced, never shown — the tick and dash in the plan table would
   otherwise reach a screen reader as nothing at all. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.74);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 68px;
}

.header-cta {
  order: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
}

/* Eight languages no longer fit as pills, so the switch is a <details>
   dropdown — native HTML, so the no-JavaScript rule holds. */
.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--text);
  background: var(--surface-hover);
}

.lang-switch[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.lang-switch ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 164px;
  margin: 0;
  padding: 6px;
  list-style: none;
  display: grid;
  gap: 2px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.lang-switch ul a {
  display: block;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.lang-switch ul a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.lang-switch ul a[aria-current='true'] {
  color: #fff;
  background: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(232, 38, 45, 0.8);
}

/* Hover darkens rather than lightens: the old #f0404a dropped white text to
   3.79:1, so the button got less readable the moment you pointed at it. */
.btn-primary:hover {
  background: #c81e24;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
}

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

section {
  position: relative;
  padding-block: clamp(64px, 10vw, 112px);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
}

.section-head p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 1.06rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin: 20px 0 0;
  max-width: 46ch;
}

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

.hero {
  padding-top: clamp(48px, 8vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -280px;
  right: -160px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(232, 38, 45, 0.22), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.7rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

/* The slogan's second line, in the lighter weight the store pictures use. */
.hero h1 span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  color: var(--muted-dim);
  font-size: 0.9rem;
  margin: 18px 0 0;
}

.hero-shot {
  justify-self: center;
}

/* --------------------------------------------------------------------------
   Device frame
   -------------------------------------------------------------------------- */

.device {
  position: relative;
  width: 320px;
  max-width: 100%;
  padding: 11px;
  background: #0b0b0d;
  border: 1px solid var(--border-strong);
  border-radius: 46px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* No synthetic Dynamic Island: the raw screenshots have no status bar, so app
   content starts at the very top of the frame and a notch would cover it. */

.device img {
  width: 100%;
  border-radius: 36px;
  background: #000;
}

/* The App Store preview film brings its own phone, captions and slate, so it
   sits as a plain card rather than inside a second phone frame. */
.film {
  width: 320px;
  max-width: 100%;
  margin: 0;
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: #0b0b0d;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */

/* Seven of these stacked ran to twelve screens of near-identical rhythm, so
   they are tab panels now — hidden radios and :checked, no JavaScript. Every
   panel stays in the HTML, so crawlers and translations see all of it. */
.tabs {
  display: grid;
}

.tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tablist {
  display: flex;
  /* Grid and flex children default to min-width:auto, which refuses to shrink
     below their content — that is what turns an overflow-x:auto strip into a
     page-wide overhang in the languages with the longest labels. */
  min-width: 0;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.tablist::-webkit-scrollbar {
  display: none;
}

.tablist label {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tablist label:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.tabpanels .feature {
  display: none;
  margin-bottom: 0;
}

/* One rule pair per tab: light the label, show the matching panel. */
.tab-input:nth-of-type(1):checked ~ .tablist label:nth-child(1),
.tab-input:nth-of-type(2):checked ~ .tablist label:nth-child(2),
.tab-input:nth-of-type(3):checked ~ .tablist label:nth-child(3),
.tab-input:nth-of-type(4):checked ~ .tablist label:nth-child(4),
.tab-input:nth-of-type(5):checked ~ .tablist label:nth-child(5),
.tab-input:nth-of-type(6):checked ~ .tablist label:nth-child(6),
.tab-input:nth-of-type(7):checked ~ .tablist label:nth-child(7) {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.tab-input:nth-of-type(1):focus-visible ~ .tablist label:nth-child(1),
.tab-input:nth-of-type(2):focus-visible ~ .tablist label:nth-child(2),
.tab-input:nth-of-type(3):focus-visible ~ .tablist label:nth-child(3),
.tab-input:nth-of-type(4):focus-visible ~ .tablist label:nth-child(4),
.tab-input:nth-of-type(5):focus-visible ~ .tablist label:nth-child(5),
.tab-input:nth-of-type(6):focus-visible ~ .tablist label:nth-child(6),
.tab-input:nth-of-type(7):focus-visible ~ .tablist label:nth-child(7) {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.tab-input:nth-of-type(1):checked ~ .tabpanels .feature:nth-child(1),
.tab-input:nth-of-type(2):checked ~ .tabpanels .feature:nth-child(2),
.tab-input:nth-of-type(3):checked ~ .tabpanels .feature:nth-child(3),
.tab-input:nth-of-type(4):checked ~ .tabpanels .feature:nth-child(4),
.tab-input:nth-of-type(5):checked ~ .tabpanels .feature:nth-child(5),
.tab-input:nth-of-type(6):checked ~ .tabpanels .feature:nth-child(6),
.tab-input:nth-of-type(7):checked ~ .tabpanels .feature:nth-child(7) {
  display: grid;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(64px, 9vw, 104px);
}

.feature:last-of-type {
  margin-bottom: 0;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
}

.feature p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 1.06rem;
}

.feature ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 11px;
}

.feature li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.99rem;
}

.feature li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Card grid
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card h3 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 0.97rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent-soft);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

/* Two cards listing different things made "what do I actually get" a
   reading exercise. One table, one row per capability. */
.plans {
  max-width: 800px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.plan-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.plan-table th,
.plan-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.plan-table thead th {
  vertical-align: bottom;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  border-bottom-color: var(--border-strong);
  white-space: nowrap;
}

.plan-table thead th span {
  display: block;
  margin-top: 5px;
  color: var(--muted-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
}

.plan-table tbody th {
  font-weight: 500;
  color: var(--text);
}

.plan-table td {
  color: var(--muted);
  width: 27%;
}

.plan-table tbody tr:last-child th,
.plan-table tbody tr:last-child td {
  border-bottom: 0;
}

.plan-table tbody tr:hover th,
.plan-table tbody tr:hover td {
  background: var(--surface);
}

/* The Pro column is tinted end to end rather than boxed, so the table keeps
   one grid instead of a card sitting inside it. */
.plan-table .col-pro {
  background: linear-gradient(
    180deg,
    rgba(232, 38, 45, 0.09),
    rgba(232, 38, 45, 0.04)
  );
}

.plan-table thead .col-pro {
  border-bottom-color: var(--accent);
}

.mark {
  display: inline-block;
  width: 15px;
  height: 8px;
}

.mark.yes {
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  margin-bottom: 4px;
}

.mark.no {
  height: 0;
  border-top: 2px solid var(--muted-dim);
  opacity: 0.6;
  margin-bottom: 3px;
}

.plan-note {
  color: var(--muted-dim);
  font-size: 0.86rem;
  margin: 26px 0 0;
  line-height: 1.55;
}

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

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 1.04rem;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq details p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(232, 38, 45, 0.12),
    transparent 60%
  );
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
}

.cta-band p {
  color: var(--muted);
  margin: 16px auto 32px;
  max-width: 46ch;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 40px;
  background: var(--bg-elev);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 0.88rem;
}

.footer-langs a,
.footer-langs span {
  color: var(--muted-dim);
  text-decoration: none;
}

.footer-langs a:hover {
  color: var(--text);
}

.footer-langs [aria-current='true'] {
  color: var(--muted);
  font-weight: 600;
}

.footer-legal {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted-dim);
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}

.footer-legal p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Legal / prose pages
   -------------------------------------------------------------------------- */

.prose {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 80px);
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.prose .updated {
  color: var(--muted-dim);
  font-size: 0.92rem;
  margin: 14px 0 0;
}

.prose h2 {
  font-size: 1.32rem;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 32px 0 10px;
  letter-spacing: -0.005em;
}

.prose p {
  color: var(--muted);
  margin: 0 0 16px;
}

.prose ul {
  color: var(--muted);
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 9px;
}

.prose .intro {
  font-size: 1.09rem;
  color: var(--muted);
  margin-top: 28px;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

.callout {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 28px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

/* Numbered by CSS, so a translation can never get the count wrong. */
.steps {
  list-style: none;
  counter-reset: step;
  max-width: 760px;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  margin: 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 1.05rem;
}

/* The steps' headings are h3; inside .prose they would otherwise be spaced
   like section headings. */
.steps :is(h2, h3) {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.steps p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   How it works: the three steps side by side on a wide screen
   -------------------------------------------------------------------------- */

.steps.steps-row {
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps.steps-row li {
  grid-template-columns: 1fr;
  row-gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  align-content: start;
}

.steps.steps-row li::before {
  grid-row: auto;
}

.steps.steps-row p {
  grid-column: 1;
}

/* --------------------------------------------------------------------------
   The iPad, lying down
   -------------------------------------------------------------------------- */

.showcase {
  border-block: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 100%, rgba(232, 38, 45, 0.1), transparent 62%),
    var(--bg-elev);
  overflow: hidden;
}

.showcase .section-head {
  margin-inline: auto;
  text-align: center;
}

.tablet {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(7px, 1.4vw, 14px);
  background: #0b0b0d;
  border: 1px solid var(--border-strong);
  border-radius: clamp(16px, 3vw, 30px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95);
}

.tablet img {
  width: 100%;
  border-radius: clamp(10px, 2vw, 18px);
  background: #000;
}

/* --------------------------------------------------------------------------
   The small PRO pill, as in the app and on the store pictures
   -------------------------------------------------------------------------- */

.pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 0.12em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero .wrap,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero-shot,
  .feature-media {
    order: 0 !important;
  }

  .feature-media {
    margin-top: 8px;
  }

  /* The nav used to be display:none here, which left phones with no way to
     reach pricing except fifteen screens of scrolling. It wraps onto its own
     scrollable row instead, and the download button stays in reach. */
  .site-nav {
    order: 3;
    flex-basis: 100%;
    gap: 22px;
    margin-top: -6px;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .brand {
    font-size: 1rem;
  }

}

@media (max-width: 820px) {
  .steps.steps-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .device {
    width: 268px;
    border-radius: 40px;
  }

  .device img {
    border-radius: 31px;
  }

  .film {
    width: 268px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Three columns fit a phone once the cells are tighter, so the Pro column
     is in view without scrolling sideways. */
  .plan-table {
    min-width: 0;
    font-size: 0.88rem;
  }

  .plan-table th,
  .plan-table td {
    padding: 12px 8px;
  }

  .plan-table thead th {
    font-size: 1rem;
    white-space: normal;
  }

  .steps li {
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    padding: 18px;
  }

  .steps li::before {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
