/* ==========================================================================
   SCRATCHmail marketing site — scratch.email
   Tokens come from the Scratchpad Studios design system (design-tokens.json).
   Square corners, no shadows. The app mockup is the one exception: it uses the
   app's own palette and rounded corners.
   ========================================================================== */

:root {
  /* Brand */
  --brand-ink: #231f20;
  --brand-teal: #4abfa7;
  --highlight: #95cac5;

  /* Light sections */
  --heading: #434343;
  --text: #767676;
  --text-strong: #424242;
  --surface: #ffffff;
  --surface-tint: #f7f7f7;
  --line: rgba(67, 67, 67, 0.3);
  --line-strong: rgba(67, 67, 67, 0.6);
  --line-subtle: rgba(67, 67, 67, 0.08);

  /* Dark sections */
  --heading-dark: #ffffff;
  --text-dark: #efefef;
  --surface-dark: #0e0e0f;
  --line-dark: rgba(255, 255, 255, 0.3);
  --line-dark-mid: rgba(255, 255, 255, 0.12);
  --line-dark-subtle: rgba(255, 255, 255, 0.08);

  /* Footer */
  --surface-footer: #212124;
  --text-footer: #afafaf;

  /* Type */
  --font-sans: Raleway, Arial, Helvetica, sans-serif;
  --font-numerals: Helvetica, Arial, sans-serif;
  --font-app: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing and sizes */
  --space-page-border: 25px;
  --space-gutter: 15px;
  --space-section: 110px;
  --space-footer-top: 65px;
  --space-footer-bottom: 25px;
  --space-button-y: 13px;
  --space-button-x: 24px;
  --space-nav-item: 15px;
  --size-nav-top: 68px;
  --size-nav-scrolled: 56px;
  --container: 1170px;

  /* App mockup palette (src/styles/global.css) */
  --app-bg: #0e0e14;
  --app-bg-raised: #16161f;
  --app-bg-active: #232334;
  --app-border: #26263a;
  --app-text: #e8e8f0;
  --app-text-dim: #9a9ab0;
  --app-text-faint: #8a8aa3; /* app uses #62627a; lifted to pass 4.5:1 on the mockup ground */
  --app-accent: #7c8cf8;
  --app-accent-soft: rgba(124, 140, 248, 0.16);
  --app-accent-contrast: #0e0e14;
  --app-kbd-bg: rgba(255, 255, 255, 0.08);
  --app-shadow: rgba(0, 0, 0, 0.55);
  --app-radius: 12px;

  --mockup-width: 1040;
  --mockup-height: 560;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--size-nav-scrolled);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 1.2px;
  color: var(--text);
  background: var(--surface-footer);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, ul, dl, dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

svg {
  display: block;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Focus rings: highlight on dark, heading on light */
:focus-visible {
  outline: 2px solid var(--heading);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--highlight);
}

.section-teal :focus-visible {
  outline-color: var(--brand-ink);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--highlight);
  color: var(--surface-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

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

.accent {
  color: var(--highlight);
}

.section-title {
  font-size: 70px;
  line-height: 84px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: var(--heading);
  max-width: var(--container);
}

.section-dark .section-title {
  color: var(--heading-dark);
}

.kicker {
  margin: 0 0 30px;
  font-size: 13px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--heading);
}

.kicker-light {
  color: var(--text-dark);
}

.kicker-wide {
  margin-bottom: 64px;
}

.lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  color: var(--text);
}

.lead-light {
  color: var(--text-dark);
}

.section-lead {
  margin: 0 0 64px;
}

.section-lead-tight {
  margin-bottom: 56px;
}

.fine-print {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.2px;
  color: var(--text-footer);
  text-align: center;
}

.wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
}

.wordmark-accent {
  color: var(--highlight);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Key caps (site) */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-numerals);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--heading);
  background: var(--surface);
}

/* Key caps (inside the app mockup) */
.kbd-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--app-kbd-bg);
  font-family: var(--font-app);
  font-size: 11px;
  color: var(--app-text-dim);
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-button-y) 28px;
  font-size: 13px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.button-highlight {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--surface-dark);
}

.button-ink {
  padding: 15px 32px;
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #ffffff;
}

.bracket-link {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--size-nav-top);
  padding: 0 var(--space-page-border);
  background: var(--surface-dark);
  border-bottom: 1px solid var(--line-dark-mid);
  transition: height 0.5s;
}

.site-header.is-scrolled {
  height: var(--size-nav-scrolled);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  margin-right: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 0 var(--space-nav-item);
  line-height: 44px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

.nav-download {
  margin-left: 16px;
  padding: 0 20px;
  line-height: 42px;
  border: 1px solid var(--highlight);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
  white-space: nowrap;
}

.nav-download:hover {
  opacity: 1;
  background: var(--highlight);
  color: var(--surface-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--highlight);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  background: var(--surface-dark);
  padding: 96px var(--space-page-border) 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .kicker {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 96px;
  line-height: 108px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
}

.hero-lead {
  max-width: 700px;
  margin: 32px 0 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-note {
  margin-top: 20px;
}

/* App window mockup ------------------------------------------------------- */

.mockup-wrap {
  position: relative;
  width: 100%;
  max-width: calc(var(--mockup-width) * 1px);
  margin: 72px auto 0;
  aspect-ratio: var(--mockup-width) / var(--mockup-height);
}

.mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--mockup-width) * 1px);
  height: calc(var(--mockup-height) * 1px);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
  border: 1px solid var(--app-border);
  border-bottom: none;
  border-radius: var(--app-radius) var(--app-radius) 0 0;
  font-family: var(--font-app);
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
  color: var(--app-text);
  overflow: hidden;
}

/* Light mode (app's `:root[data-theme='light']` palette). The script toggles
   this class every few seconds so the mockup fades between the two themes. */
.mockup.is-light {
  --app-bg: #f6f6f9;
  --app-bg-raised: #ffffff;
  --app-bg-active: #e4e5f0;
  --app-border: #dcdce6;
  --app-text: #1b1b26;
  --app-text-dim: #565668;
  --app-text-faint: #8f8fa2;
  --app-accent: #5b6ee8;
  --app-accent-soft: rgba(91, 110, 232, 0.12);
  --app-accent-contrast: #ffffff;
  --app-kbd-bg: rgba(0, 0, 0, 0.04);
  --app-shadow: rgba(20, 20, 40, 0.18);
}

.mockup,
.mockup * {
  transition: background-color 1s ease, color 1s ease, border-color 1s ease, box-shadow 1s ease;
}

.mock-titlebar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--app-border);
}

.mock-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mock-light-red { background: #ff5f57; }
.mock-light-yellow { background: #febc2e; }
.mock-light-green { background: #28c840; }

.mock-tabs {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--app-text-faint);
}

.mock-tab.is-active {
  color: var(--app-text);
  font-weight: 600;
}

.mock-count {
  color: var(--app-text-faint);
  font-weight: 400;
}

.mock-palette-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--app-text-faint);
}

.mock-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mock-row {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  margin: 0 8px;
  border-radius: 8px;
  color: var(--app-text-dim);
}

.mock-row.is-selected {
  background: var(--app-accent-soft);
}

.mock-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
}

.mock-row.is-unread .mock-dot {
  background: var(--app-accent);
}

.mock-from {
  width: 170px;
  flex-shrink: 0;
  color: var(--app-text);
  white-space: nowrap;
  overflow: hidden;
}

.mock-subject {
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-subject-text {
  color: var(--app-text);
}

.mock-row.is-unread .mock-from,
.mock-row.is-unread .mock-subject-text {
  font-weight: 600;
}

.mock-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--app-text-faint);
}

.mock-hints {
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  border-top: 1px solid var(--app-border);
  font-size: 12px;
  color: var(--app-text-faint);
}

.mock-hints-end {
  margin-left: auto;
}

.mock-dialog {
  position: absolute;
  top: 92px;
  left: 50%;
  width: 400px;
  margin-left: -200px;
  background: var(--app-bg-raised);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 24px 60px var(--app-shadow);
  overflow: hidden;
}

.mock-dialog-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--app-border);
  font-size: 14px;
  color: var(--app-text-dim);
}

.mock-dialog-typed {
  color: var(--app-text);
}

.mock-dialog-body {
  padding: 6px;
}

.mock-option {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--app-text);
}

.mock-option.is-active {
  background: var(--app-bg-active);
}

.mock-dialog-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--app-border);
  font-size: 13px;
  color: var(--app-text-dim);
}

.mock-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--app-accent);
  color: var(--app-accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.section {
  padding: var(--space-section) var(--space-page-border);
}

.section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-light {
  background: var(--surface);
}

.section-features {
  border-top: 4px solid var(--highlight);
}

.section-dark {
  background: var(--surface-dark);
  color: var(--text-dark);
}

.section-tint {
  background: var(--surface-tint);
  border-top: 1px solid var(--line-subtle);
}

.section-teal {
  background: var(--brand-teal);
  color: var(--brand-ink);
}

.grid {
  width: 100%;
  display: grid;
  column-gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Features ---------------------------------------------------------------- */

.features-grid {
  row-gap: 56px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-gutter);
}

.feature-icon {
  color: var(--heading);
}

.feature-title,
.step-title {
  margin: 24px 0 12px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading);
}

/* Privacy ----------------------------------------------------------------- */

.privacy-diagram {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
}

.privacy-node {
  width: 340px;
  flex-shrink: 0;
  border: 1px solid var(--line-dark);
  padding: 28px;
}

.privacy-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
}

.privacy-name {
  margin: 8px 0 18px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading-dark);
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dark);
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-muted {
  color: var(--text-footer);
}

.privacy-link {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.privacy-link-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-footer);
}

.privacy-line {
  width: 100%;
  height: 0;
  border-top: 2px solid var(--highlight);
}

.privacy-link-note {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.2px;
  color: var(--text-footer);
  text-align: center;
}

.privacy-points {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line-dark-mid);
  row-gap: 40px;
}

.privacy-point {
  padding: 0 var(--space-gutter);
}

.point-title {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading-dark);
}

/* Shortcuts --------------------------------------------------------------- */

.shortcuts-grid {
  row-gap: 48px;
}

.shortcut-group {
  padding: 0 var(--space-gutter);
}

.shortcut-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--heading);
}

.shortcut {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-subtle);
}

.shortcut dt {
  color: var(--text);
}

.shortcut dd {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Get started ------------------------------------------------------------- */

.steps-grid {
  row-gap: 30px;
}

.step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-number {
  font-family: var(--font-numerals);
  font-size: 48px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--heading);
}

.step-title {
  margin: 20px 0 10px;
}

/* Download CTA ------------------------------------------------------------ */

.cta-title {
  color: var(--brand-ink);
}

.cta-lead {
  max-width: 640px;
  margin: 16px 0 40px;
  color: var(--brand-ink);
}

.cta-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 1.2px;
  color: var(--brand-ink);
  text-align: center;
}

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

.site-footer {
  padding: var(--space-footer-top) var(--space-page-border) 0;
  background: var(--surface-footer);
  border-top: 4px solid var(--brand-ink);
  color: var(--text-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  grid-column: span 2;
  padding: 0 var(--space-gutter);
}

.footer-blurb {
  max-width: 380px;
  margin-top: 14px;
}

.footer-site {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  color: var(--highlight);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--space-gutter);
}

.footer-heading {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: var(--space-footer-bottom) var(--space-gutter);
  border-top: 1px solid var(--line-dark-subtle);
  font-size: 11px;
  line-height: 16px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header,
  .menu-bar,
  .mockup,
  .mockup *,
  a {
    transition: none;
  }
}

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

@media (max-width: 992px) {
  :root {
    --space-section: 80px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-title {
    font-size: 60px;
    line-height: 72px;
  }

  .section-title {
    font-size: 35px;
    line-height: 48px;
  }

  .feature-title,
  .step-title,
  .privacy-name {
    font-size: 15px;
    line-height: 18px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-diagram {
    flex-direction: column;
    max-width: 480px;
  }

  .privacy-node {
    width: 100%;
  }

  .privacy-link {
    width: 100%;
    padding: 24px 0;
  }

  .privacy-line {
    width: 0;
    height: 48px;
    border-top: 0;
    border-left: 2px solid var(--highlight);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  :root {
    --space-page-border: 16px;
    --space-section: 64px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-title {
    font-size: 44px;
    line-height: 52px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 20px;
  }

  .grid-3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  /* Nav collapses to a menu button; Download stays visible. */
  .menu-toggle {
    display: flex;
    order: 3;
    margin-right: -10px;
  }

  .nav-download {
    order: 2;
    margin-left: 0;
    padding: 0 14px;
    line-height: 34px;
  }

  .nav-inner {
    gap: 12px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--space-page-border) 16px;
    background: var(--surface-dark);
    border-bottom: 1px solid var(--line-dark-mid);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-link {
    padding: 0;
    line-height: 48px;
    border-bottom: 1px solid var(--line-dark-subtle);
  }

  /* App mockup: reflow instead of scale; drop snippets and the hint bar. */
  .mockup-wrap {
    aspect-ratio: auto;
    margin-top: 48px;
  }

  .mockup {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .mock-row {
    gap: 12px;
    padding: 0 12px;
    margin: 0 6px;
    font-size: 13px;
  }

  .mock-from {
    width: 96px;
  }

  .mock-snippet,
  .mock-hints,
  .mock-palette-hint {
    display: none;
  }

  .mock-tabs {
    gap: 12px;
    font-size: 12px;
  }

  .mock-dialog {
    left: 16px;
    right: 16px;
    width: auto;
    margin-left: 0;
    top: 68px;
  }
}
