/* ==========================================================================
   ROCUO PRODUCT PAGES - product.css
   ONE design system for EVERY product page (app, browser extension,
   plugin, web app...).
   Pages share the exact same structure. Only these things change per product:
     1. the <body data-product="..."> theme block below (brand colour)
     2. the text content, platform label and CTA targets in the HTML
   Used ONLY by: /<product-slug>/index.html and /<product-slug>/privacy-policy/
   Never load this file on main-site pages (they use assets/site/css/site.css).
   Fonts come from assets/shared/css/fonts.css.
   ========================================================================== */

/* ---------- 1. Product themes (add one block per new product; see DOCUMENTATION.md) ---------- */
/* VibeBoard (Chrome extension). Colours come from the extension's own icon: violet #6520e8 / #4b16c8 */
body[data-product="vibeboard"] {
  --p-brand: #6520e8;
  --p-brand-hover: #4b16c8;
  --p-dark-1: #1b0f3d;
  --p-dark-2: #0a0616;
}

/* ---------- 2. Derived tokens (do not edit per product) ---------- */
body[data-product] {
  --p-tint: color-mix(in srgb, var(--p-brand) 8%, #ffffff);
  --p-tint-2: color-mix(in srgb, var(--p-brand) 15%, #ffffff);
  --p-line: color-mix(in srgb, var(--p-brand) 22%, #ffffff);
  --p-line-soft: color-mix(in srgb, var(--p-brand) 14%, #ffffff);
  --p-glow: color-mix(in srgb, var(--p-brand) 30%, transparent);
  --p-on-dark: color-mix(in srgb, var(--p-brand) 45%, #ffffff);

  --text: #1e1e24;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-body: #475569;
  --bg-white: #ffffff;
  --bg-hover: #f4f5f7;
  --bg-card: #f8fafc;
  --bg-icon: #f1f3f7;
  --border: rgba(0, 0, 0, 0.08);
  --border-soft: rgba(0, 0, 0, 0.05);
  --highlight: #ffd869;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Space between the page content and the left / right edge of the window.
     80px on tablets and desktops, a smaller value on phones where 80px would leave no room. */
  --gutter: 20px;

  --header-h: 80px;
  --header-h-mobile: 64px;
  --ease-fast: 0.15s ease;
  --ease-smooth: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 3. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--p-brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text-heading);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10000;
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (min-width: 768px) {
  body[data-product] {
    --gutter: 80px;
  }
}

/* 1168px of content + the gutter on both sides */
.wrap {
  max-width: 1328px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

/* Header content keeps the same gutter as the page below it */
.nav-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 1440px) {
  .nav-container {
    max-width: 1520px;
  }
}

.site-navbar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  position: relative;
}

.site-brand-cluster {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 2.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--ease-fast);
}

.site-brand:hover {
  opacity: 0.85;
}

.site-brand__logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.site-brand--parent .site-brand__logo {
  height: 24px;
}

.site-brand__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.site-brand__divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 12px;
  flex-shrink: 0;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
  }

  .site-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
  }

  .menu-item {
    position: relative;
  }

  .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: color var(--ease-fast);
    cursor: pointer;
  }

  .menu-link:hover,
  .menu-item:hover > .menu-link,
  .menu-item.is-open > .menu-link {
    color: var(--p-brand);
  }

  .menu-link__chevron {
    width: 13px;
    height: 13px;
    transition: transform var(--ease-fast);
    color: var(--text-muted);
  }

  .menu-item:hover > .menu-link .menu-link__chevron,
  .menu-item.is-open > .menu-link .menu-link__chevron {
    transform: rotate(180deg);
    color: var(--p-brand);
  }

  .dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--ease-smooth), transform var(--ease-smooth), visibility var(--ease-smooth);
    z-index: 1010;
    pointer-events: none;
  }

  .dropdown-panel::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .menu-item:hover > .dropdown-panel,
  .menu-item:focus-within > .dropdown-panel,
  .menu-item.is-open > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-panel--grid {
    width: 470px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .nav-cta-wrap {
    margin-left: auto;
  }

  .nav-toggle-btn,
  .nav-backdrop {
    display: none;
  }
}

.feature-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background-color var(--ease-fast);
}

.feature-tile:hover {
  background: var(--bg-hover);
}

.feature-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  flex-shrink: 0;
  transition: background-color var(--ease-fast), color var(--ease-fast);
}

.feature-tile:hover .feature-tile__icon {
  background: var(--p-tint);
  color: var(--p-brand);
}

.feature-tile__icon svg {
  width: 20px;
  height: 20px;
}

.feature-tile__content {
  display: flex;
  flex-direction: column;
}

.feature-tile__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.25;
}

.feature-tile__caption {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 1px;
}

.dropdown-panel--list {
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}

/* "Products" menu: one row per product (logo, name, platform) */
.dropdown-panel--products {
  min-width: 300px;
}

.dropdown-panel--products .feature-tile__icon {
  background: transparent;
}

.dropdown-panel--products .feature-tile__icon img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.dropdown-panel--products .feature-tile__icon svg {
  color: var(--text-body);
}

.dropdown-panel--products .feature-tile:hover .feature-tile__icon {
  background: transparent;
}

.dropdown-action {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background-color var(--ease-fast);
}

.dropdown-action:hover {
  background: var(--bg-hover);
}

.btn-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--p-brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--p-brand);
  transition: background-color var(--ease-fast), border-color var(--ease-fast);
  line-height: 1.2;
}

.btn-nav-action:hover {
  background: var(--p-brand-hover);
  border-color: var(--p-brand-hover);
}

.btn-nav-action__icon {
  width: 16px;
  height: 16px;
}

/* Mobile nav (same markup becomes a drawer) */
@media (max-width: 1023px) {
  .site-navbar {
    height: var(--header-h-mobile);
  }

  .site-brand-cluster {
    margin-right: 0;
  }

  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    z-index: 1002;
  }

  .nav-toggle-btn:hover {
    background: var(--bg-hover);
  }

  .nav-toggle-lines {
    position: relative;
    width: 20px;
    height: 14px;
  }

  .nav-toggle-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: var(--radius-full);
    transition: transform var(--ease-smooth), top var(--ease-smooth), bottom var(--ease-smooth);
  }

  .nav-toggle-line--top {
    top: 1px;
  }

  .nav-toggle-line--bottom {
    bottom: 1px;
  }

  .nav-toggle-btn.is-active .nav-toggle-line--top {
    top: 6px;
    transform: rotate(45deg);
  }

  .nav-toggle-btn.is-active .nav-toggle-line--bottom {
    bottom: 6px;
    transform: rotate(-45deg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease-smooth), visibility var(--ease-smooth);
    z-index: 998;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
  }

  .site-nav {
    display: block;
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h-mobile));
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    padding: 16px 20px 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--ease-smooth), opacity var(--ease-smooth), visibility var(--ease-smooth);
    z-index: 999;
  }

  .site-nav.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .menu-item {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 4px;
  }

  .menu-item:last-child {
    border-bottom: none;
  }

  .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 8px;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
  }

  .menu-link:hover {
    background: var(--bg-card);
  }

  .menu-link__chevron {
    width: 15px;
    height: 15px;
    transition: transform var(--ease-smooth);
    color: var(--text-muted);
  }

  .menu-item.is-open .menu-link__chevron {
    transform: rotate(180deg);
    color: var(--p-brand);
  }

  .dropdown-panel {
    display: none;
    padding: 6px 4px 10px;
  }

  .menu-item.is-open .dropdown-panel--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .menu-item.is-open .dropdown-panel--list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-cta-wrap {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .nav-cta-wrap .btn-nav-action {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (min-width: 540px) and (max-width: 1023px) {
  .menu-item.is-open .dropdown-panel--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-brand__logo {
    height: 24px;
  }

  .site-brand__name {
    font-size: 15px;
  }

  .site-brand__divider {
    height: 16px;
    margin: 0 8px;
  }
}

/* ---------- 5. Buttons ---------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 2px solid var(--p-brand);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--ease-fast), border-color var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
}

.btn-primary {
  background: var(--p-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--p-brand-hover);
  border-color: var(--p-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--p-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--p-brand);
}

.btn-ghost:hover {
  background: var(--p-tint);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--p-brand) 15%, transparent);
}

.btn-primary svg,
.btn-ghost svg {
  width: 18px;
  height: 18px;
}

/* ---------- 6. Hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 85% 0%, var(--p-tint-2) 0%, transparent 70%),
    radial-gradient(45% 40% at 0% 30%, var(--p-tint) 0%, transparent 70%),
    #fff;
  padding: 64px 0;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 80px 0;
  }
}

@media (min-width: 1220px) {
  .hero-section {
    padding-top: 112px;
  }
}

.hero-wrapper {
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--p-tint);
  border: 1px solid var(--p-line);
  color: var(--p-brand);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.platform-pill svg {
  width: 15px;
  height: 15px;
}

.hero-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #000;
  letter-spacing: -1.5px;
  position: relative;
  max-width: 960px;
  font-size: 54px;
  line-height: 56px;
  text-align: center;
  text-wrap: balance;
  margin: 0 auto 40px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 76px;
    line-height: 78px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 104px;
    line-height: 108px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 44px;
  }
}

.hero-title strong {
  font-weight: inherit;
  position: relative;
  display: inline-block;
}

.hero-title strong::after {
  z-index: -1;
  content: '';
  transform-origin: 0;
  height: 8px;
  animation: markerWipe 0.8s ease-out 0.25s both;
  background: var(--highlight);
  border-radius: 999px;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  transform: scaleX(0);
}

@media (min-width: 768px) {
  .hero-title strong::after {
    height: 12px;
    bottom: 10px;
  }
}

@media (min-width: 1024px) {
  .hero-title strong::after {
    height: 16px;
    bottom: 16px;
  }
}

@keyframes markerWipe {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title strong::after {
    animation: none;
    transform: scaleX(1);
  }

  html {
    scroll-behavior: auto;
  }
}

.hero-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 64px;
}

.hero-callout-col {
  width: 100%;
  max-width: 680px;
}

@media (max-width: 1023px) {
  .hero-callout {
    align-items: center;
    text-align: center;
  }
}

.hero-blurb {
  font-size: 24px;
  line-height: 32px;
  color: #212123;
  text-wrap: pretty;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-blurb {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .hero-blurb {
    font-size: 20px;
    line-height: 30px;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 639px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}

/* ---------- 7. Product "screenshot" frames (original CSS mock-ups) ---------- */
.shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f6f7f9;
  border-bottom: 1px solid var(--border);
}

.shot__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d5d9e0;
}

.shot__title {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.shot__url {
  flex: 1;
  margin: 0 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 14px;
}

.shot__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.shot__side {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shot__nav {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.shot__nav.is-active {
  background: var(--p-tint-2);
  color: var(--p-brand);
  font-weight: 600;
}

.shot__main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot__heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

.shot__drop {
  border: 2px dashed var(--p-line);
  background: var(--p-tint);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--p-brand);
  font-weight: 600;
}

.shot__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shot__tile {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.shot__tile:nth-child(1) {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.shot__tile:nth-child(2) {
  background: linear-gradient(135deg, #60a5fa, #6366f1);
}

.shot__tile:nth-child(3) {
  background: linear-gradient(135deg, #34d399, #0ea5e9);
}

.shot__tile:nth-child(4) {
  background: linear-gradient(135deg, #f472b6, #a855f7);
}

.shot__tile::after {
  content: attr(data-label);
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-heading);
  border-radius: 6px;
  padding: 2px 7px;
}

.shot__progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-body);
}

.shot__track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-icon);
  overflow: hidden;
}

.shot__fill {
  height: 100%;
  width: 72%;
  border-radius: var(--radius-full);
  background: var(--p-brand);
}

/* Real screenshot inside the frame (same frame as the CSS mock-up) */
.shot__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Cropped real screenshot used as the picture of a feature card */
.pic {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--p-brand) 14%, transparent), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, left top);
}

/* Frame variants for non-desktop products (content slots stay the same) */
.shot--phone {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 36px;
  border-width: 6px;
  border-color: #111827;
}

.shot--phone .shot__body {
  grid-template-columns: 1fr;
  min-height: 520px;
}

.shot--phone .shot__side {
  display: none;
}

.shot--panel {
  max-width: 340px;
  margin: 0 auto;
}

.shot--panel .shot__body {
  grid-template-columns: 1fr;
  min-height: 420px;
}

.shot--panel .shot__side {
  display: none;
}

@media (max-width: 767px) {
  .shot__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .shot__side {
    display: none;
  }

  .shot__tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 8. Stats strip ---------- */
.stats-section {
  background: #fff;
  padding: 8px 0 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  border: 1px solid var(--p-line-soft);
  background: var(--p-tint);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.1;
  color: var(--p-brand);
}

.stat-card__label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-body);
}

/* ---------- 9. Section heads (shared by every section) ---------- */
.section {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 72px 0 80px;
}

.section--alt {
  background: color-mix(in srgb, var(--p-brand) 3%, #ffffff);
  border-top: 1px solid var(--p-line-soft);
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0 112px;
  }
}

@media (min-width: 1220px) {
  .section {
    padding: 120px 0 136px;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 68px;
  }
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--p-tint);
  border: 1.5px solid var(--p-line);
  color: var(--p-brand);
  margin: 0 auto 20px;
}

.section-icon svg {
  width: 32px;
  height: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #000;
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 56px;
    line-height: 60px;
    letter-spacing: -1.2px;
  }
}

.section-blurb {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-body);
  max-width: 780px;
  margin: 0 auto;
  text-wrap: balance;
}

@media (max-width: 639px) {
  .section-blurb {
    font-size: 16px;
    line-height: 25px;
  }
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.chip-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--p-tint);
  border: 1.5px solid var(--p-line);
  color: var(--p-brand);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--ease-fast);
}

.chip-cta:hover {
  background: var(--p-brand);
  color: #fff;
  border-color: var(--p-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--p-glow);
}

.chip-cta svg {
  width: 18px;
  height: 18px;
}

/* ---------- 10. Feature cards (2 x 2) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1220px) {
  .feature-grid {
    gap: 40px;
  }
}

.feature-card {
  background: linear-gradient(197deg, #fff 0%, color-mix(in srgb, var(--p-brand) 4%, #fff) 45%, var(--p-tint-2) 100%);
  border: 1.5px solid var(--p-line-soft);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--p-brand) 6%, transparent), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--p-brand);
  box-shadow: 0 20px 45px color-mix(in srgb, var(--p-brand) 18%, transparent), 0 4px 14px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
  .feature-card {
    padding: 48px 36px 40px;
  }
}

.feature-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px;
  margin-bottom: 34px;
  flex-grow: 1;
}

.feature-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--p-brand) 8%, transparent);
  border: 1px solid var(--p-line);
  color: var(--p-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  transition: background-color var(--ease-fast), color var(--ease-fast);
}

.feature-card:hover .feature-card__badge {
  background: var(--p-brand);
  color: #fff;
  border-color: var(--p-brand);
}

.feature-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--text-heading);
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .feature-card__title {
    font-size: 34px;
    line-height: 40px;
  }
}

.feature-card__desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-body);
  max-width: 460px;
}

/* Mini UI illustrations that sit inside feature-card__media */
.mini {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--p-brand) 12%, transparent), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-body);
}

.mini__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.mini__row strong {
  color: var(--text-heading);
  font-weight: 600;
}

.mini__tag {
  background: var(--p-tint-2);
  color: var(--p-brand);
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
}

.mini__tag--good {
  background: #dcfce7;
  color: #15803d;
}

.mini__bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-icon);
  overflow: hidden;
}

.mini__bar > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--p-brand);
}

.mini__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mini__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini__chip {
  border: 1px solid var(--p-line);
  background: #fff;
  color: var(--p-brand);
  font-weight: 600;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

/* ---------- 11. Tools list ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), transform var(--ease-fast);
}

.tool-item:hover {
  border-color: var(--p-line);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--p-brand) 10%, transparent);
  transform: translateY(-2px);
}

.tool-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--p-tint);
  color: var(--p-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-item__icon svg {
  width: 20px;
  height: 20px;
}

.tool-item h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 3px;
}

.tool-item p {
  font-size: 13.5px;
  line-height: 20px;
  color: var(--text-body);
}

/* ---------- 12. Split blocks (light + dark) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--p-line-soft);
  box-shadow: 0 16px 45px color-mix(in srgb, var(--p-brand) 8%, transparent), 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: repeat(2, 1fr);
  }
}

.split__block {
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .split__block {
    padding: 56px 40px 48px;
  }
}

@media (min-width: 1220px) {
  .split__block {
    padding: 64px 48px 56px;
  }
}

.split__block--light {
  background: linear-gradient(197deg, #fff 0%, color-mix(in srgb, var(--p-brand) 4%, #fff) 45%, var(--p-tint-2) 100%);
  border-bottom: 1.5px solid var(--p-line-soft);
}

@media (min-width: 992px) {
  .split__block--light {
    border-bottom: none;
    border-right: 1.5px solid var(--p-line-soft);
  }
}

.split__block--dark {
  background: linear-gradient(197deg, var(--p-dark-1) 0%, color-mix(in srgb, var(--p-dark-1) 70%, var(--p-dark-2)) 50%, var(--p-dark-2) 100%);
  color: #fff;
}

.split__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 36px;
}

.split__block--dark .mini {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.split__block--dark .mini__row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.split__block--dark .mini__row strong {
  color: #fff;
}

.split__block--dark .mini__tag {
  background: color-mix(in srgb, var(--p-brand) 35%, transparent);
  color: #fff;
}

.split__block--dark .mini__bar {
  background: rgba(255, 255, 255, 0.12);
}

.split__block--dark .mini__bar > span {
  background: var(--p-on-dark);
}

.split__block--dark .mini__chip {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.split__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.split__block--light .split__badge {
  background: color-mix(in srgb, var(--p-brand) 8%, transparent);
  border: 1px solid var(--p-line);
  color: var(--p-brand);
}

.split__block--dark .split__badge {
  background: color-mix(in srgb, var(--p-brand) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--p-brand) 55%, transparent);
  color: #fff;
}

.split__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .split__title {
    font-size: 32px;
    line-height: 38px;
  }
}

.split__block--light .split__title {
  color: var(--text-heading);
}

.split__desc {
  font-size: 16px;
  line-height: 26px;
}

.split__block--light .split__desc {
  color: var(--text-body);
}

.split__block--dark .split__desc {
  color: #b6c0d1;
}

/* ---------- 13. How it works (3 steps with a small picture each) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--p-line-soft);
  border-radius: var(--radius-xl);
  padding: 12px 12px 30px;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--p-brand) 6%, transparent);
}

/* dashed line between the cards (desktop only) */
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 104px;
    right: -44px;
    width: 44px;
    border-top: 2px dashed var(--p-line);
  }
}

.step__visual {
  position: relative;
  min-height: 208px;
  border-radius: 20px;
  background: linear-gradient(197deg, #fff 0%, var(--p-tint) 45%, var(--p-tint-2) 100%);
  border: 1px solid var(--p-line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 44px;
  overflow: hidden;
}

.step__num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: -24px 0 14px 24px;
  border-radius: 50%;
  background: var(--p-brand);
  color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px var(--p-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.step h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  color: var(--text-heading);
  margin: 0 24px 10px;
}

.step p {
  font-size: 15.5px;
  line-height: 25px;
  color: var(--text-body);
  margin: 0 24px;
}

/* little pictures inside .step__visual (drawn with CSS, nothing to download) */
.sv-card {
  width: 100%;
  max-width: 290px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: center;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--p-brand) 14%, transparent);
}

.sv-card img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  grid-row: span 2;
}

.sv-card strong {
  font-size: 15px;
  color: var(--text-heading);
  line-height: 1.2;
  align-self: end;
}

.sv-card span {
  font-size: 12px;
  color: var(--text-muted);
  align-self: start;
}

.sv-card .sv-btn {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: var(--p-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  align-self: auto;
}

.sv-tab {
  width: 100%;
  max-width: 290px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--p-brand) 14%, transparent);
  overflow: hidden;
}

.sv-tab__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.sv-tab__chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  padding: 3px 10px;
  color: var(--text-heading);
  font-weight: 600;
}

.sv-tab__body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
}

.sv-tile {
  height: 62px;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sv-tile i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
}

.sv-tile i:nth-child(2) { width: 70%; }
.sv-tile i:nth-child(3) { width: 45%; }
.sv-tile--note { background: #fff4b8; }
.sv-tile--task { background: var(--p-tint); border: 1px solid var(--p-line-soft); }
.sv-tile--pic { background: linear-gradient(160deg, #5b2fd6 0%, #c05bff 55%, #ffb88a 100%); }

.step__keys {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.sv-list {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--p-brand) 8%, transparent);
}

.sv-row svg {
  width: 18px;
  height: 18px;
  color: var(--p-brand);
  flex-shrink: 0;
}

.sv-row span {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* keyboard keys, used in steps and in the docs */
kbd {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-heading);
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 4px 7px;
  white-space: nowrap;
}

/* ---------- 14. FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.faq details[open] {
  border-color: var(--p-line);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--p-brand) 8%, transparent);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--p-tint);
  color: var(--p-brand);
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease-smooth);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq .faq__answer {
  padding: 0 24px 22px;
  font-size: 15.5px;
  line-height: 26px;
  color: var(--text-body);
}

.faq .faq__answer a {
  color: var(--p-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 15. Final CTA band ---------- */
.cta-section {
  padding: 24px 0 88px;
  background: #fff;
}

.cta-band {
  background:
    radial-gradient(60% 80% at 82% 0%, color-mix(in srgb, var(--p-brand) 50%, transparent) 0%, transparent 70%),
    radial-gradient(55% 70% at 0% 100%, color-mix(in srgb, var(--p-brand) 28%, transparent) 0%, transparent 70%),
    var(--p-dark-2);
  border-radius: var(--radius-xl);
  padding: 64px 24px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* fine dot grid, fading out towards the edges */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.cta-band__brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.cta-band__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  text-wrap: balance;
}

.cta-band__title em {
  color: var(--p-on-dark);
}

@media (min-width: 768px) {
  .cta-band__title {
    font-size: 60px;
    line-height: 64px;
  }

  .cta-band {
    padding: 88px 48px 72px;
  }
}

.cta-band__blurb {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #c7cfdd;
  font-size: 17px;
  line-height: 27px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--p-brand);
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: var(--p-tint);
  border-color: var(--p-tint);
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* Chrome Web Store button (white badge with the Chrome mark, same wording as Google's badge) */
.cws-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px 12px 18px;
  background: #fff;
  color: #202124;
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(255, 255, 255, 0.07);
  transition: transform var(--ease-fast), box-shadow var(--ease-fast);
}

.cws-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.1);
}

.cws-btn svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.cws-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.cws-btn__text small {
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
}

.cws-btn__text strong {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
}

.cta-band__note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #a9b0c0;
}

/* ---------- 16. Product footer ---------- */
.product-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 56px 0 32px;
}

.product-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .product-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .product-footer__grid {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  }

  .product-footer__brand {
    grid-column: auto;
  }
}

.product-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.product-footer__brand p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-body);
}

.product-footer h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.product-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.product-footer li a {
  font-size: 14.5px;
  color: var(--text);
  transition: color var(--ease-fast);
}

.product-footer li a:hover {
  color: var(--p-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.product-footer__bottom a {
  color: var(--p-brand);
  font-weight: 600;
}

.product-footer__bottom a:hover {
  text-decoration: underline;
}

/* ---------- 17. Legal pages (product privacy policy) ---------- */
.legal-hero {
  background: radial-gradient(60% 80% at 90% 0%, var(--p-tint-2) 0%, transparent 70%), #fff;
  padding: 56px 0 24px;
}

.legal-hero .breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legal-hero .breadcrumb a:hover {
  color: var(--p-brand);
  text-decoration: underline;
}

.legal-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #000;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .legal-title {
    font-size: 64px;
    line-height: 68px;
  }
}

.legal-lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-body);
  max-width: 720px;
}

.legal-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-body {
  padding: 24px 0 96px;
}

.legal-prose {
  max-width: 760px;
}

.legal-prose h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-heading);
  margin: 42px 0 12px;
}

.legal-prose p,
.legal-prose li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.legal-prose p {
  margin-bottom: 14px;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 16px 22px;
}

.legal-prose code {
  font-size: 0.92em;
  background: var(--bg-icon);
  border-radius: 6px;
  padding: 1px 6px;
}

@media (max-width: 639px) {
  .legal-prose table {
    display: block;
    overflow-x: auto;
  }
}

.legal-prose li {
  margin-bottom: 6px;
}

.legal-prose a {
  color: var(--p-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose strong {
  color: var(--text-heading);
}

.legal-prose .note {
  background: var(--p-tint);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14.5px;
}

.legal-prose th,
.legal-prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-body);
}

.legal-prose th {
  color: var(--text-heading);
  font-weight: 600;
  background: var(--bg-card);
}

/* ---------- 18. Documentation page (/<product>/docs/) ---------- */
.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 96px;
}

@media (min-width: 1024px) {
  .docs {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
    padding-top: 40px;
  }
}

/* Table of contents: a scrolling row of chips on small screens, a sticky list on desktop */
.docs-toc {
  min-width: 0;
}

.docs-toc__title {
  display: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.docs-toc ul {
  list-style: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}

.docs-toc a {
  display: block;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #fff;
  transition: background-color var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}

.docs-toc a:hover,
.docs-toc a.is-current {
  color: var(--p-brand);
  background: var(--p-tint);
  border-color: var(--p-line);
}

@media (min-width: 1024px) {
  .docs-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }

  .docs-toc__title {
    display: block;
  }

  .docs-toc ul {
    flex-direction: column;
    gap: 2px;
    overflow: visible;
    padding: 0;
  }

  .docs-toc a {
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: transparent;
    padding: 9px 14px;
    white-space: normal;
  }

  .docs-toc a:hover,
  .docs-toc a.is-current {
    background: var(--p-tint);
    border-left-color: var(--p-brand);
  }
}

.docs-body {
  min-width: 0;
  max-width: 820px;
}

.doc-section + .doc-section {
  margin-top: 72px;
}

.doc-section > h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: -0.6px;
  color: #000;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .doc-section > h2 {
    font-size: 44px;
    line-height: 50px;
  }
}

.doc-section h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-heading);
  margin: 32px 0 10px;
}

.doc-intro {
  font-size: 17px;
  line-height: 28px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.doc-section p,
.doc-section li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.doc-section p {
  margin-bottom: 14px;
}

.doc-section a:not(.btn-primary) {
  color: var(--p-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-section strong {
  color: var(--text-heading);
}

.doc-list,
.doc-steps {
  margin: 0 0 16px 22px;
}

.doc-list li,
.doc-steps li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.doc-steps li::marker {
  color: var(--p-brand);
  font-weight: 700;
}

.doc-note {
  background: var(--p-tint);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.doc-note p:last-child {
  margin-bottom: 0;
}

.doc-note strong:first-child {
  color: var(--p-brand);
}

/* The 4 groups of widgets, named like the Widgets tab in the app */
.doc-group {
  margin-top: 44px;
}

.doc-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--p-brand);
  margin-bottom: 16px;
}

.doc-group__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--p-line);
}

.wdoc {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1.5px solid var(--p-line-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.wdoc:target,
.wdoc:hover {
  border-color: var(--p-line);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--p-brand) 8%, transparent);
}

.wdoc__icon {
  grid-row: span 3;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--p-tint);
  border: 1px solid var(--p-line-soft);
  color: var(--p-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdoc__icon svg {
  width: 26px;
  height: 26px;
}

.wdoc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.wdoc__head h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}

.wdoc__keys {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.doc-section .wdoc__sum {
  font-size: 15.5px;
  line-height: 26px;
  color: var(--text-body);
  margin: 2px 0 0;
}

.wdoc ul {
  margin: 8px 0 0 18px;
}

.wdoc li {
  font-size: 15px;
  line-height: 25px;
  margin-bottom: 4px;
  color: var(--text-body);
}

.wdoc > :not(.wdoc__icon) {
  grid-column: 2;
}

@media (max-width: 639px) {
  .wdoc {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .wdoc__icon {
    grid-row: auto;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
  }

  .wdoc > :not(.wdoc__icon) {
    grid-column: 1;
  }
}

/* tables inside the docs (shortcuts, settings) */
.table-scroll {
  overflow-x: auto;
  margin: 8px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-body);
  line-height: 1.55;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table th {
  background: var(--bg-card);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 13.5px;
}

.doc-table td:first-child {
  color: var(--text-heading);
  font-weight: 600;
  white-space: nowrap;
}

.doc-table td kbd + kbd,
.doc-table td kbd + span {
  margin-left: 3px;
}

/* "Next steps" cards at the end of a docs page */
.doc-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .doc-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-links a {
  display: block;
  padding: 18px 20px;
  border: 1.5px solid var(--p-line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  text-decoration: none !important;
  transition: border-color var(--ease-fast), transform var(--ease-fast);
}

.doc-links a:hover {
  border-color: var(--p-brand);
  transform: translateY(-2px);
}

.doc-links strong {
  display: block;
  font-size: 16px;
}

.doc-links span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 19. Release notes (/<product>/releases/) ---------- */
.releases {
  max-width: 900px;
  padding: 16px 0 96px;
}

.release {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.release:first-child {
  border-top: none;
}

@media (min-width: 768px) {
  .release {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }
}

.release__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 768px) {
  .release__meta {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

.release__version {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -1px;
  color: #000;
}

.release__date {
  font-size: 14px;
  color: var(--text-muted);
}

.release__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--p-tint);
  border: 1px solid var(--p-line);
  color: var(--p-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.release__body {
  min-width: 0;
}

.release__body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.release__body h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--p-brand);
  margin: 26px 0 10px;
}

.release__body p,
.release__body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.release__body ul {
  margin: 0 0 8px 20px;
}

.release__body li {
  margin-bottom: 6px;
}

.release__body strong {
  color: var(--text-heading);
}

.release__body a {
  color: var(--p-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 20. Small helpers ---------- */
.section-more {
  text-align: center;
  margin-top: 36px;
}

/* the page you are on, inside the dropdowns */
.dropdown-action[aria-current="page"],
.feature-tile[aria-current="page"] {
  background: var(--p-tint);
}

.dropdown-action[aria-current="page"] {
  color: var(--p-brand);
  font-weight: 600;
}
