/* Homepage-only refinement. Historical CSS, screenshots and legal text stay frozen. */
body.public-v4 { --homepage-header-height: 88px; }
html:has(body.public-v4) { scroll-padding-top: calc(var(--homepage-header-height, 88px) + 1rem); }
body.public-v4 .homepage-header-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid #dce1e5;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  container-type: inline-size;
}
/* If enhancement fails, never pin a tall, permanently expanded phone navigation. */
body.public-v4 .homepage-header-shell:not([data-mobile-nav]) { position: static; }
body.public-v4 .homepage-header-shell .site-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
  padding-block: .65rem;
}
body.public-v4 .homepage-header-shell .brand {
  width: auto;
  min-width: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem;
  text-align: left;
}
body.public-v4 .homepage-header-shell .brand > img { flex: 0 0 56px; width: 56px; height: 56px; }
body.public-v4 .homepage-header-shell .brand-copy { width: auto; min-width: 0; align-items: flex-start; gap: .15rem; }
body.public-v4 .homepage-header-shell .brand-name { font-size: 1.75rem; line-height: 1.25; }
body.public-v4 .homepage-header-shell .brand-subtitle { font-size: 1rem; line-height: 1.5; }
body.public-v4 .homepage-header-shell nav { flex: none; gap: 1.1rem; }
body.public-v4 .homepage-header-shell nav a { min-height: 44px; font-size: .85rem; }
.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .65rem;
  border: 1px solid #b3c5d4;
  border-radius: .6rem;
  color: #253744;
  background: #f3f7fb;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  touch-action: manipulation;
}
.site-nav-toggle svg { width: 18px; height: 18px; flex: none; }
.site-nav-toggle:active { background: #dce9f5; }
.site-nav-toggle[hidden], .homepage-header-shell nav[hidden] { display: none; }
body.public-v4 .skip-link { position: fixed; z-index: 30; }

/* Six typographic points = eight CSS pixels at the default desktop text size. */
body.public-v4 main .matrix-hero h1 { font-size: clamp(2.6rem, calc(3.5vw + .5rem), 3.75rem); }
body.public-v4 main .matrix-hero h1 [data-headline-reveal] { display: inline-block; max-inline-size: 100%; text-wrap: balance; }
body.public-v4 main #features > .section-intro { max-width: none; margin-inline: auto; text-align: center; }
body.public-v4 main #features .refinement-screen { margin-inline: auto; }
body.public-v4 main #features .matrix-action-explanation,
body.public-v4 main #features .matrix-note { max-width: 60rem; margin-inline: auto; text-align: center; }
body.public-v4 main #features .table-surface { max-width: 64rem; margin-inline: auto; }

/* Top and horizontal scale are unchanged. The Google logo ends at source row 765. */
.screenshot-presentation[data-screenshot-presentation="search"] { aspect-ratio: 600 / 780; }
.privacy-pictogram { width: 80px; height: 80px; margin-bottom: 1rem; }
body.public-v4 .site-footer .footer-brand { font-size: 1.5rem; line-height: 1.5; }
body.public-v4 .site-footer .footer-brand > span { font-size: .85rem; font-weight: 400; }
body.public-v4 main .function-copy .csv-backup-warning {
  margin-top: .9rem;
  padding-left: .85rem;
  border-left: 3px solid #416f9b;
  color: #253744;
  font-size: 1rem;
  line-height: 1.85;
}

@media (max-width: 1000px) {
  body.public-v4 main .guide-step-take .guide-step-heading h3 { grid-column: 2; }
}
@container (max-width: 62.5em) {
  body.public-v4 main .guide-step-take .guide-step-heading h3 { grid-column: 2; }
}
@media (max-width: 740px) {
  body.public-v4 { --homepage-header-height: 72px; }
  body.public-v4 .homepage-header-shell .site-header { min-height: 64px; gap: .5rem; padding-block: .55rem; }
  body.public-v4 .homepage-header-shell .brand { flex: 1; gap: .6rem; }
  body.public-v4 .homepage-header-shell .brand > img { flex-basis: 44px; width: 44px; height: 44px; }
  body.public-v4 .homepage-header-shell .brand-copy { flex: 1; }
  body.public-v4 .homepage-header-shell .brand-name { font-size: 1.45rem; }
  body.public-v4 .homepage-header-shell .brand-subtitle { font-size: .85rem; }
  body.public-v4 .homepage-header-shell .brand-name-reading { display: block; font-size: .65em; line-height: 1.5; }
  body.public-v4 .homepage-header-shell .site-nav-toggle-label { display: none; }
  body.public-v4 .homepage-header-shell[data-mobile-nav="true"] nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: .25rem;
    max-height: 65dvh;
    overflow: auto;
    padding: .65rem max(1rem, calc((100% - 580px) / 2));
    border-bottom: 1px solid #b3c5d4;
    background: #fff;
    box-shadow: 0 10px 20px #253b5014;
  }
  body.public-v4 .homepage-header-shell[data-mobile-nav="true"] nav[hidden] { display: none; }
  body.public-v4 .homepage-header-shell nav a { display: flex; padding-inline: .75rem; border-radius: .4rem; }
  body.public-v4 .homepage-header-shell:not([data-mobile-nav]) .site-header { flex-wrap: wrap; }
  body.public-v4 .homepage-header-shell:not([data-mobile-nav]) nav { width: 100%; flex-wrap: wrap; justify-content: center; }
  /* The existing mobile root is 14px: 2.4rem is approximately eight pixels larger. */
  body.public-v4 main .matrix-hero h1 { font-size: 2.4rem; line-height: 1.5; }
  .privacy-pictogram { width: 64px; height: 64px; }
}
@media (max-height: 600px) and (max-width: 740px) {
  body.public-v4 .homepage-header-shell .brand-subtitle { display: none; }
}
@container (max-width: 20em) {
  body.public-v4 .homepage-header-shell .brand-subtitle { display: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  body.public-v4 .homepage-header-shell { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  body.public-v4 .homepage-header-shell,
  body.public-v4 .homepage-header-shell[data-mobile-nav="true"] nav,
  .site-nav-toggle { color: CanvasText; background: Canvas; border-color: CanvasText; }
}
