@import url('./peztech-tokens.css');

:root {
  color-scheme: light;
  --background: var(--peztech-surface-soft);
  --surface: var(--peztech-surface);
  --surface-soft: #eaf2ff;
  --surface-tint: #f8fbff;
  --text: var(--peztech-ink);
  --muted: var(--peztech-slate);
  --purple: var(--peztech-blue);
  --purple-dark: #124dbd;
  --violet: var(--peztech-teal);
  --border: #d9e2ef;
  --border-strong: #b9c9dc;
  --focus: var(--peztech-green);
  --radius: 18px;
  --max: 1160px;
  --work-next: var(--peztech-blue);
  --bulk-approvals: var(--peztech-green);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--peztech-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-dark); text-underline-offset: 0.18em; }
a:hover { color: #3f1ca8; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: transparent;
  color: transparent;
  pointer-events: none;
}

.skip-link:focus { background: var(--text); color: white; pointer-events: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-width {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2.625rem;
  height: 2.625rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 10px rgba(88, 46, 190, 0.14));
}

.brand-name {
  display: grid;
  font-size: 0.92rem;
  line-height: 1.05;
}

.brand-name span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: #363d47;
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--purple); }

.site-nav .button,
.site-nav .button:hover,
.site-nav .button[aria-current="page"] { color: white; }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #7c47f6);
  color: white;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(109, 61, 245, 0.16);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: white; box-shadow: 0 11px 26px rgba(109, 61, 245, 0.23); transform: translateY(-1px); }
.button-secondary { border-color: var(--border-strong); background: white; color: var(--purple-dark); box-shadow: none; }
.button-secondary:hover { border-color: #bca9e7; background: var(--surface-soft); color: #3f1ca8; }
.button-small { min-height: 40px; padding: 0.52rem 0.8rem; font-size: 0.9rem; }

main { min-height: 65vh; }

.hero {
  position: relative;
  padding: clamp(3.75rem, 7vw, 6.25rem) 0 clamp(3.5rem, 7vw, 5.75rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(139, 92, 246, 0.2) 0, rgba(139, 92, 246, 0) 28rem),
    radial-gradient(circle at 5% 90%, rgba(196, 181, 253, 0.14) 0, rgba(196, 181, 253, 0) 24rem),
    linear-gradient(180deg, #fdfcff 0%, var(--background) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--purple-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 { max-width: 850px; font-size: clamp(2.55rem, 5.5vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: 1.24rem; }

.hero-copy,
.lede {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-visual {
  position: relative;
  min-height: 410px;
  padding: 1.4rem 0 0 1rem;
}

.software-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 350px;
  border: 1px solid #d8cdef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(61, 34, 121, 0.15);
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.window-bar { min-height: 56px; display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); background: #fcfbff; }
.window-dots { display: flex; gap: 0.32rem; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6cbea; }
.window-dots i:nth-child(2) { background: #bca8e8; }
.window-dots i:nth-child(3) { background: #9879dd; }
.window-brand { display: flex; align-items: center; gap: 0.45rem; color: var(--text); font-size: 0.75rem; font-weight: 750; }
.window-brand img { border-radius: 7px; }
.window-status { margin-left: auto; padding: 0.22rem 0.5rem; border-radius: 999px; background: #ecfdf3; color: #087443; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.window-body { display: grid; grid-template-columns: 64px 1fr; min-height: 294px; }
.workflow-sidebar { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.15rem 0.9rem; border-right: 1px solid var(--border); background: #faf8ff; }
.sidebar-block { height: 9px; border-radius: 10px; background: #ddd5eb; }
.sidebar-block.short { width: 65%; }
.sidebar-block.is-active { height: 28px; background: linear-gradient(135deg, #7c47f6, #a27cf8); box-shadow: 0 6px 14px rgba(109, 61, 245, 0.2); }
.workflow-canvas { padding: 1.55rem 1.3rem; }
.workflow-heading { display: grid; gap: 0.45rem; }
.workflow-heading span { width: 50%; height: 11px; border-radius: 9px; background: #dcd4e8; }
.workflow-heading span:last-child { width: 32%; height: 7px; background: #eee9f5; }
.workflow-route { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; align-items: center; margin-top: 2rem; }
.workflow-route > i { height: 2px; background: #d8c8f8; }
.workflow-node { min-width: 0; padding: 1rem 0.45rem; border: 1px solid #ddd0f8; border-radius: 13px; background: #faf7ff; text-align: center; }
.workflow-node b { width: 2rem; height: 2rem; display: grid; place-items: center; margin: 0 auto 0.5rem; border-radius: 9px; background: var(--surface-soft); color: var(--purple-dark); font-size: 0.7rem; }
.workflow-node span { color: #50586a; font-size: 0.66rem; font-weight: 700; }
.insight-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 0.5rem; margin-top: 1.65rem; }
.insight-row span { height: 48px; border: 1px solid #ebe6f3; border-radius: 10px; background: linear-gradient(135deg, #fbfaff, #f3effc); }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 0.65rem; min-width: 168px; padding: 0.75rem; border: 1px solid #ded3f5; border-radius: 14px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 16px 35px rgba(52, 29, 105, 0.14); }
.floating-card-top { top: 0; right: -1rem; }
.floating-card-bottom { bottom: 0.3rem; left: -0.4rem; }
.floating-card b, .floating-card small { display: block; line-height: 1.25; }
.floating-card b { color: var(--text); font-size: 0.73rem; }
.floating-card small { margin-top: 0.18rem; color: var(--muted); font-size: 0.63rem; }
.floating-icon { width: 2rem; height: 2rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--surface-soft); color: var(--purple-dark); font-weight: 900; }

.section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.section-soft { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section-white { background: var(--surface); border-block: 1px solid #eeeaf5; }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading p { margin: 0.8rem 0 0; color: var(--muted); font-size: 1.08rem; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-single { grid-template-columns: minmax(0, 760px); }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(35, 23, 62, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover { border-color: #cdbbef; box-shadow: 0 16px 40px rgba(56, 32, 111, 0.085); transform: translateY(-3px); }

.card p { color: var(--muted); }
.card .button { align-self: flex-start; margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.15rem 0 1.5rem; padding: 0; list-style: none; }
.tag { padding: 0.3rem 0.62rem; border: 1px solid #ddcff9; border-radius: 999px; background: #f7f2ff; color: #5833b5; font-size: 0.78rem; font-weight: 700; }

.app-card { position: relative; overflow: hidden; border-top: 4px solid var(--product-accent); }
.app-card::after { content: ""; position: absolute; width: 150px; height: 150px; top: -78px; right: -58px; border-radius: 50%; background: color-mix(in srgb, var(--product-accent) 10%, transparent); pointer-events: none; }
.product-blue { --product-accent: var(--work-next); --product-tint: #f2f7ff; --product-border: #bcd2fb; }
.product-green { --product-accent: var(--bulk-approvals); --product-tint: #f1fbf3; --product-border: #bfe3c7; }
.app-card-top { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.app-card-top .eyebrow { margin: 0; color: var(--product-accent); }
.app-platform { margin: 0.18rem 0 0; color: var(--muted); font-size: 0.86rem; font-weight: 650; }
.app-icon { width: 4.5rem; height: 4.5rem; display: block; flex: 0 0 auto; border-radius: 16px; box-shadow: 0 10px 22px color-mix(in srgb, var(--product-accent) 22%, transparent); }
.app-card .button span { margin-left: 0.45rem; }
.card-status,
.product-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; color: var(--muted); font-size: 0.9rem; font-weight: 650; }
.card-status { margin: 0 0 1.35rem; }
.product-status { margin: 1.25rem 0 0; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0.25rem 0.65rem; border: 1px solid #cdbbef; border-radius: 999px; background: #f3ecff; color: #4a269f; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.03em; }

.principle-icon { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: 1.35rem; border: 1px solid #dacbf7; border-radius: 14px; background: linear-gradient(145deg, #f7f2ff, #eee5ff); color: var(--purple); }
.principle-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.trust-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #cfbff2;
  border-radius: var(--radius);
  background: linear-gradient(130deg, #f2eaff 0%, #f9f7ff 58%, #eee7ff 100%);
  box-shadow: 0 18px 50px rgba(69, 41, 129, 0.08);
}

.trust-strip::after { content: ""; position: absolute; width: 210px; height: 210px; right: -85px; bottom: -130px; border-radius: 50%; background: rgba(109, 61, 245, 0.1); pointer-events: none; }

.trust-strip p { max-width: 720px; margin: 0.55rem 0 0; color: var(--muted); }
.text-links { display: flex; flex-wrap: wrap; gap: 1rem; white-space: nowrap; font-weight: 700; }

.page-hero { padding: clamp(3rem, 6vw, 5.25rem) 0 3rem; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #ffffff, var(--surface-soft)); }
.product-hero { background: linear-gradient(135deg, var(--product-tint) 0%, #ffffff 72%); border-bottom: 3px solid var(--product-border); }
.product-lockup { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.product-hero-icon { width: 5rem; height: 5rem; border-radius: 18px; box-shadow: 0 14px 28px color-mix(in srgb, var(--product-accent) 20%, transparent); }
.product-lockup .eyebrow { margin: 0; color: var(--product-accent); }
.product-platform { margin: 0.25rem 0 0; color: var(--muted); font-weight: 650; }
.product-hero h1 { font-family: var(--peztech-font-sans); }
.page-hero h1 { font-size: clamp(2.35rem, 5vw, 4.2rem); }
.breadcrumbs { margin: 0 0 1.4rem; padding: 0; color: var(--muted); font-size: 0.9rem; list-style: none; }
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.55rem; color: #8a929d; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; align-items: start; }
.prose { min-width: 0; max-width: 780px; }
.prose h2 { margin-top: 2.8rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose ul { color: #424a55; }
.prose li + li { margin-top: 0.48rem; }
.prose section { scroll-margin-top: 2rem; }
.prose code { overflow-wrap: anywhere; word-break: break-word; }

.side-nav { position: sticky; top: 1.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.side-nav strong { display: block; margin-bottom: 0.65rem; }
.side-nav ul { margin: 0; padding-left: 1.1rem; }
.side-nav li + li { margin-top: 0.45rem; }
.side-nav a { color: var(--muted); font-size: 0.92rem; }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.feature { padding: 1.3rem; border: 1px solid var(--border); border-radius: 12px; background: white; }
.feature p { margin-bottom: 0; }

.highlight-panel,
.release-panel { margin: 1.4rem 0; padding: 1.35rem; border: 1px solid #d8c7f7; border-radius: var(--radius); background: linear-gradient(135deg, #f5edff, #fbfaff); }
.highlight-panel h3 { color: var(--purple-dark); font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.highlight-panel p { margin-bottom: 0; }
.release-panel { display: flex; align-items: flex-start; gap: 1rem; }
.release-panel h3 { margin: 0.1rem 0 0.35rem; }
.release-panel p { margin: 0; }
.check-list { padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--purple-dark); font-weight: 900; }
.legal-status h2 { margin-top: 1rem; }

.steps { counter-reset: steps; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 0 1.5rem 3.2rem; }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -0.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--purple-dark); font-weight: 800; }

.data-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: white; overflow: hidden; }
.data-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.5rem; padding: 1.15rem 1.3rem; }
.data-row + .data-row { border-top: 1px solid var(--border); }
.data-row strong { color: var(--text); }
.data-row p { margin: 0; }

.media-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-top: 1.4rem; }
.media-intro h2 { margin-top: 0.25rem; }
.bulk-screenshot-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; margin-top: 2rem; align-items: start; }
.bulk-screenshot-details { display: grid; gap: 1.25rem; min-width: 0; }
.bulk-screenshot-gallery .screenshot-card img { width: 100%; height: auto; }
.bulk-transcript { margin-top: 1rem; max-width: 75ch; }
#demo .video-frame video { height: auto; }
.bulk-transcript summary { cursor: pointer; font-weight: 600; padding: 0.65rem 0; }
.bulk-media-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; max-width: 80ch; }
@media (max-width: 759px) { .bulk-screenshot-gallery { grid-template-columns: 1fr; } }
.video-frame { margin: 1.4rem 0 0; padding: clamp(0.6rem, 1.5vw, 1rem); border: 1px solid var(--border-strong); border-radius: var(--radius); background: #171326; box-shadow: 0 18px 42px rgb(24 14 47 / 14%); }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 5px); background: #0c0912; }
.video-frame figcaption { margin: 0.7rem 0.25rem 0; color: #d8d0e7; font-size: 0.88rem; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.screenshot-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: 0 10px 24px rgb(31 19 61 / 8%); }
.screenshot-card-featured { grid-column: 1 / -1; }
.screenshot-card img { display: block; width: 100%; height: auto; }
.screenshot-card figcaption { display: grid; gap: 0.25rem; padding: 0.9rem 1rem 1rem; }
.screenshot-card figcaption span { color: var(--muted); font-size: 0.9rem; }
.evidence-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.9rem; }

.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.resource-list li { padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: white; }
.status { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.82rem; }

.review-callout { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 1px solid #e6c878; border-left: 5px solid #c58a00; border-radius: 10px; background: #fff9e8; color: #56430f; }
.review-callout strong { display: block; margin-bottom: 0.25rem; }

.contact-card { max-width: 760px; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #d8c7f7; border-radius: var(--radius); background: linear-gradient(135deg, #f5edff, #fbfaff); }
.contact-card p { color: var(--muted); }
.contact-card-spaced { margin-top: 2rem; }

.site-footer { padding: 3rem 0 2rem; border-top: 1px solid #292342; background: #100c1c; color: #cbc4dc; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-brand { color: white; }
.footer-brand .brand-name span:last-child { color: #bfb4d2; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem 1.2rem; }
.footer-links a { color: #e5dcf8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #312943; color: #a9a0bb; font-size: 0.9rem; }

.benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legal-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.legal-document { min-width: 0; max-width: 860px; }
.legal-copy { min-width: 0; }
.table-scroll { width: 100%; }
.page-hero h1 { overflow-wrap: anywhere; }
.document-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; margin: 0 0 2.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.document-meta div { min-width: 0; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.document-meta code { white-space: normal; word-break: break-word; }
.document-meta div:nth-child(odd) { border-right: 1px solid var(--border); }
.document-meta dt { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.document-meta dd { margin: 0.22rem 0 0; overflow-wrap: anywhere; }
.legal-copy h2 { padding-top: 0.35rem; border-top: 1px solid var(--border); }
.legal-copy h3 { scroll-margin-top: 2rem; }
.legal-copy code { overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; margin: 1.5rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); }
.table-scroll th, .table-scroll td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table-scroll th { background: var(--surface-soft); color: var(--text); }
.legal-crosslinks { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.legal-crosslinks .text-links { white-space: normal; }
.legal-toc ul { max-height: calc(100vh - 5rem); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.legal-toc li + li { margin-top: 0.45rem; }
.legal-toc a { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; max-width: 620px; width: 100%; }
  .card-grid-three,
  .card-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .side-nav { position: static; grid-row: 1; }
}

@media (max-width: 759px) {
  .header-inner { flex-wrap: wrap; padding-block: 0.8rem; }
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { width: 100%; margin: 0; flex-wrap: wrap; align-items: stretch; gap: 0; padding-bottom: 0.5rem; }
  .js .site-nav[data-open="false"] { display: none; }
  .site-nav a { width: 100%; padding: 0.7rem 0; }
  .site-nav .button { margin-top: 0.45rem; }
  .card-grid,
  .card-grid-three,
  .card-grid-four,
  .feature-list,
  .screenshot-gallery,
  .resource-list { grid-template-columns: 1fr; }
  .trust-strip,
  .footer-grid,
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .data-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .release-panel { flex-direction: column; }
  .media-intro { flex-direction: column; }
  .screenshot-card-featured { grid-column: auto; }
  .document-meta { grid-template-columns: 1fr; }
  .document-meta div:nth-child(odd) { border-right: 0; }
  .legal-toc ul { max-height: none; }
  .table-scroll table { min-width: 480px; }
  .hero-visual { min-height: 325px; padding-left: 0; }
  .software-window { min-height: 290px; transform: none; }
  .window-body { grid-template-columns: 46px 1fr; min-height: 234px; }
  .workflow-sidebar { padding-inline: 0.65rem; }
  .workflow-canvas { padding: 1.1rem 0.8rem; }
  .workflow-route { grid-template-columns: 1fr 12px 1fr 12px 1fr; }
  .workflow-node { padding-inline: 0.15rem; }
  .floating-card { min-width: 142px; }
  .floating-card-top { right: -0.25rem; }
  .floating-card-bottom { left: -0.25rem; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Product-page commercial hierarchy */
.prose-wide { max-width: 980px; }
.product-overview-section { padding-top: clamp(2rem, 4vw, 3.25rem); padding-bottom: clamp(2rem, 4vw, 3.25rem); background: linear-gradient(180deg, var(--product-tint), #fff); border-bottom: 1px solid var(--product-border); }
.product-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-summary-grid article { min-width: 0; padding: 1.3rem; border: 1px solid var(--product-border); border-radius: var(--radius); background: rgba(255,255,255,0.92); box-shadow: 0 10px 24px rgb(31 19 61 / 5%); }
.product-summary-grid .eyebrow { margin: 0 0 0.45rem; color: var(--product-accent); }
.product-summary-grid h2 { margin: 0 0 0.55rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.product-summary-grid p:last-child { margin-bottom: 0; color: var(--muted); }
.product-quicknav { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.25rem; padding: 0.7rem; border: 1px solid var(--product-border); border-radius: 999px; background: rgba(255,255,255,0.86); }
.product-quicknav a { padding: 0.42rem 0.7rem; border-radius: 999px; color: var(--text); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.product-quicknav a:hover { background: var(--product-tint); color: var(--product-accent); }
.product-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.25rem; padding: 1.2rem 1.3rem; border: 1px solid var(--product-border); border-radius: var(--radius); background: #fff; }
.product-action-bar .eyebrow { margin: 0 0 0.25rem; color: var(--product-accent); }
.product-action-bar p { margin: 0.25rem 0 0; color: var(--muted); }
.product-action-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
.button-disabled { cursor: default; border-color: #d8dde7; background: #eef1f5; color: #475467; box-shadow: none; }
.button-disabled:hover { transform: none; background: #eef1f5; color: #667085; }

.work-next-gallery .screenshot-card { border-color: #c9dafa; }
.work-next-gallery .screenshot-zoom { display: block; overflow: hidden; background: #f7f9fc; }
.work-next-gallery .screenshot-zoom img { width: 100%; height: auto; }
.work-next-gallery .screenshot-card-featured { border-top: 4px solid var(--work-next); }
.product-overview-section + .section { padding-top: clamp(3rem, 6vw, 5rem); }

@media (max-width: 880px) {
  .product-summary-grid { grid-template-columns: 1fr; }
  .product-action-bar { align-items: flex-start; flex-direction: column; }
  .product-action-links { justify-content: flex-start; }
}

@media (max-width: 759px) {
  .product-quicknav { flex-wrap: nowrap; overflow-x: auto; border-radius: 14px; scrollbar-width: thin; }
  .product-quicknav a { flex: 0 0 auto; }
  .product-action-links { width: 100%; }
  .product-action-links .button,
  .product-action-links .button-disabled { width: 100%; justify-content: center; text-align: center; }
  .work-next-gallery .screenshot-zoom { overflow-x: auto; overscroll-behavior-inline: contain; }
  .work-next-gallery .screenshot-zoom img { width: auto; min-width: 720px; max-width: none; }
  .work-next-gallery .screenshot-card-featured .screenshot-zoom img { min-width: 820px; }
}

/* Work Next family media preview */
.family-media-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.family-media-copy .eyebrow { color: var(--product-accent); }
.family-media-copy h2 { margin: 0.35rem 0 0.8rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.family-media-copy p { color: var(--muted); }
.family-media-preview { margin: 0; border-color: var(--product-border); box-shadow: 0 18px 42px color-mix(in srgb, var(--product-accent) 12%, transparent); }
.family-media-preview a, .family-media-preview img { display: block; width: 100%; }
.family-media-preview img { height: auto; }

@media (max-width: 880px) {
  .family-media-grid { grid-template-columns: 1fr; }
}
