/* Shared professional extensions for the Flowgrid Labs website. */

:root {
  --surface-tint: #eef5ff;
  --surface-dark: #07142f;
  --surface-darker: #040c1d;
  --focus-ring: 0 0 0 4px rgba(18, 119, 243, 0.22);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.button:focus-visible,
.screenshot-button:focus-visible,
.dialog-close:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-nav a[aria-current="page"]:not(.button) {
  color: var(--blue-deep);
}

.site-nav a[aria-current="page"]:not(.button)::after {
  transform: scaleX(1);
}

.page-hero {
  position: relative;
  padding: 170px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(16, 214, 212, 0.14), transparent 26%),
    radial-gradient(circle at 25% 72%, rgba(18, 119, 243, 0.08), transparent 30%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 88%);
}

.page-hero::before {
  position: absolute;
  top: -240px;
  right: -160px;
  width: 590px;
  height: 590px;
  content: "";
  border: 1px solid rgba(18, 119, 243, 0.12);
  border-radius: 50%;
}

.narrow-container {
  width: min(calc(100% - 44px), 850px);
  margin-inline: auto;
}

.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.breadcrumb a {
  color: var(--blue-deep);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.72;
}

.document-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Homepage product preview */
.professional-hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.95fr);
  gap: 62px;
}

.home-product-showcase {
  position: relative;
  min-height: 570px;
}

.browser-frame {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(108, 128, 160, 0.25);
  border-radius: 17px;
  box-shadow: 0 24px 65px rgba(7, 20, 47, 0.16);
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  color: #77849a;
  background: #f7f9fc;
  border-bottom: 1px solid #e4eaf2;
  font-size: 0.72rem;
}

.browser-frame-bar > span {
  width: 8px;
  height: 8px;
  background: #cbd4e1;
  border-radius: 50%;
}

.browser-frame-bar > div {
  min-width: 0;
  padding: 4px 13px;
  margin-left: 8px;
  overflow: hidden;
  color: #7b8799;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.browser-frame > img,
.browser-frame .screenshot-button img,
.product-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.home-browser-primary,
.home-browser-secondary {
  position: absolute;
}

.home-browser-primary {
  z-index: 2;
  top: 30px;
  right: 0;
  width: 94%;
  transform: rotate(1.2deg);
}

.home-browser-secondary {
  z-index: 3;
  right: 8%;
  bottom: 10px;
  width: 72%;
  transform: rotate(-2.1deg);
}

.home-browser-secondary::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Homepage product cards */
.professional-product-grid .product-card {
  min-height: 0;
}

.product-card-media {
  display: block;
  margin-bottom: 34px;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(7, 20, 47, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card-media:hover,
.product-card-media:focus-visible {
  box-shadow: 0 22px 52px rgba(7, 20, 47, 0.17);
  transform: translateY(-3px);
}

.product-card-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.professional-product-grid .product-logo-wrap {
  height: 62px;
  margin-bottom: 24px;
}

.practice-section {
  background: #ffffff;
}

.compact-heading {
  margin-bottom: 44px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.practice-card {
  position: relative;
  min-height: 310px;
  padding: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(16, 214, 212, 0.12), transparent 28%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.practice-card:nth-child(2) {
  background:
    radial-gradient(circle at 90% 8%, rgba(18, 119, 243, 0.13), transparent 28%),
    var(--surface-soft);
}

.practice-label {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 26px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #eaf4ff;
  border-radius: 999px;
}

.practice-card h3 {
  max-width: 430px;
  margin-bottom: 18px;
}

.practice-card p {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.trust-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 12%, rgba(16, 214, 212, 0.18), transparent 28%),
    radial-gradient(circle at 5% 95%, rgba(18, 119, 243, 0.22), transparent 32%),
    var(--surface-dark);
}

.trust-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 86px;
  align-items: start;
}

.trust-copy {
  position: sticky;
  top: 130px;
}

.trust-copy > p:not(.section-kicker) {
  margin-bottom: 32px;
  color: #b8c5d9;
  font-size: 1.05rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-grid article {
  min-height: 225px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.trust-grid article > span {
  display: block;
  margin-bottom: 32px;
  color: #64e7e7;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.trust-grid h3 {
  margin-bottom: 13px;
  font-size: 1.25rem;
}

.trust-grid p {
  margin-bottom: 0;
  color: #adbbcf;
  font-size: 0.92rem;
}

.company-section {
  background: #ffffff;
}

.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.company-copy > p:not(.section-kicker) {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-stats article {
  display: flex;
  min-height: 190px;
  padding: 24px;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.company-stats strong {
  margin-bottom: 9px;
  color: var(--blue-deep);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.company-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.value-strip article {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-strip article > span {
  display: block;
  margin-bottom: 36px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.value-strip h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.value-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-field a,
.content-prose a,
.legal-toc a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.checkbox-field a:hover,
.checkbox-field a:focus-visible,
.content-prose a:hover,
.content-prose a:focus-visible,
.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--blue);
}

/* Product detail pages */
.product-page-hero {
  padding-bottom: 112px;
}

.product-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: 72px;
  align-items: center;
}

.product-page-logo {
  width: min(100%, 430px);
  max-height: 78px;
  margin-bottom: 30px;
  object-fit: contain;
  object-position: left center;
}

.product-hero-copy h1 {
  margin-bottom: 25px;
  font-size: clamp(2.7rem, 5.5vw, 5.2rem);
}

.product-hero-media {
  position: relative;
}

.browser-frame-large {
  transform: perspective(1500px) rotateY(-3deg) rotateX(1deg);
}

.screenshot-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  cursor: zoom-in;
}

.screenshot-button img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.screenshot-button:hover img,
.screenshot-button:focus-visible img {
  transform: scale(1.015);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 36px;
}

.product-meta span {
  padding: 7px 11px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 750;
  background: #eaf4ff;
  border: 1px solid #d8eaff;
  border-radius: 999px;
}

.product-benefits {
  background: var(--surface-soft);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  min-height: 285px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e3eaf3;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(7, 20, 47, 0.05);
}

.benefit-index {
  display: block;
  margin-bottom: 40px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.benefit-card h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.workflow-section {
  background: #ffffff;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 96px;
  align-items: start;
}

.workflow-intro {
  position: sticky;
  top: 130px;
}

.workflow-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.04rem;
}

.workflow-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list li > span {
  color: var(--blue-deep);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.workflow-list h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.workflow-list p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.screenshot-card {
  margin: 0;
}

.screenshot-card-featured {
  grid-column: 1 / -1;
}

.screenshot-card-featured .screenshot-button img {
  aspect-ratio: 16 / 8.5;
}

.screenshot-card figcaption {
  display: grid;
  gap: 4px;
  padding: 18px 5px 0;
}

.screenshot-card figcaption strong {
  color: var(--ink);
  font-size: 1rem;
}

.screenshot-card figcaption span {
  color: var(--muted);
  font-size: 0.88rem;
}

.use-case-section {
  padding-top: 0;
  background: var(--surface-soft);
}

.use-case-panel,
.final-cta-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 5%, rgba(16, 214, 212, 0.18), transparent 25%),
    var(--surface-dark);
  border-radius: var(--radius-lg);
}

.use-case-panel h2,
.final-cta-panel h2 {
  margin-bottom: 0;
}

.use-case-copy p,
.final-cta-panel p {
  color: #b8c5d8;
  font-size: 1.04rem;
}

.use-case-note {
  padding-top: 18px;
  margin-bottom: 0;
  font-size: 0.82rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.assurance-section {
  background: #ffffff;
}

.assurance-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.assurance-grid article {
  padding: 26px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.assurance-grid h3 {
  margin-bottom: 11px;
  font-size: 1.15rem;
}

.assurance-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.assurance-layout > .text-link {
  grid-column: 2;
}

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

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 82px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  content: "+";
  color: var(--blue-deep);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 50px 24px 0;
  margin-bottom: 0;
  color: var(--muted);
}

.final-cta-section {
  background: #ffffff;
}

.final-cta-panel {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.final-cta-panel h2 {
  margin-bottom: 16px;
}

.final-cta-panel p {
  max-width: 700px;
  margin-bottom: 0;
}

/* Legal and security pages */
.legal-hero h1,
.security-hero h1 {
  max-width: 850px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.legal-section {
  background: #ffffff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-toc strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc a {
  font-size: 0.84rem;
  text-decoration: none;
}

.content-prose {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.content-prose section {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 115px;
}

.content-prose section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.content-prose h2 {
  margin-bottom: 17px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.content-prose p,
.content-prose li {
  line-height: 1.78;
}

.content-prose ul {
  padding-left: 22px;
}

.provider-card {
  max-width: none;
  padding: 46px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.provider-card address {
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1.8;
}

.provider-linkedin {
  display: inline-flex;
}

.security-overview {
  background: var(--surface-soft);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.security-grid article {
  min-height: 260px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 34px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  background: #eaf4ff;
  border: 1px solid #d7eaff;
  border-radius: 9px;
}

.security-grid h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.security-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.security-principles {
  color: #ffffff;
  background: var(--surface-dark);
}

.security-principles-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 90px;
}

.security-principles-layout > div:first-child > p:not(.section-kicker) {
  color: #b8c5d8;
}

.principle-list {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.principle-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 27px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.principle-list article > span {
  color: #5fe0e3;
  font-size: 0.75rem;
  font-weight: 800;
}

.principle-list h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.principle-list p {
  margin-bottom: 0;
  color: #aebcd0;
}

.no-tracking-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 82px;
  padding: 45px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.no-tracking-panel > div:last-child > p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.responsible-disclosure {
  padding-top: 0;
}

/* Screenshot dialog */
.screenshot-dialog {
  width: min(94vw, 1400px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.42);
}

.screenshot-dialog::backdrop {
  background: rgba(3, 10, 26, 0.82);
  backdrop-filter: blur(5px);
}

.screenshot-dialog-inner {
  position: relative;
  max-height: 92vh;
  padding: 42px 18px 18px;
  overflow: auto;
}

.screenshot-dialog img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.screenshot-dialog p {
  padding: 14px 4px 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* Footer */
.footer-professional {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 0.75fr 1fr 0.45fr;
  gap: 58px;
  padding-bottom: 38px;
}

.footer-brand-column > p {
  max-width: 290px;
  margin: 20px 0 0;
  color: #75849b;
  font-size: 0.9rem;
}

.footer-nav,
.footer-contact-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  font-size: 0.84rem;
}

.footer-nav strong,
.footer-contact-column strong {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  color: #8f9db2;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: #67768d;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Error page */
.error-page {
  min-height: 78vh;
  padding: 180px 0 110px;
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 214, 212, 0.13), transparent 26%),
    var(--surface-soft);
}

.error-layout {
  display: grid;
  grid-template-columns: 0.52fr 1.48fr;
  gap: 72px;
  align-items: center;
}

.error-code {
  color: transparent;
  font-size: clamp(8rem, 18vw, 15rem);
  font-weight: 850;
  line-height: 0.8;
  letter-spacing: -0.09em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.error-layout h1 {
  max-width: 700px;
}

/* Responsive refinements */
@media (max-width: 1100px) {
  .professional-hero-layout,
  .product-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 42px;
  }

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

  .company-layout {
    gap: 50px;
  }

  .company-stats {
    grid-template-columns: 1fr;
  }

  .company-stats article {
    min-height: 125px;
  }

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

  .footer-professional {
    grid-template-columns: 1.3fr 0.8fr 1fr;
  }

  .footer-contact-column {
    grid-column: 3;
  }
}

@media (max-width: 900px) {
  .site-nav .nav-external {
    justify-self: start;
  }

  .professional-hero-layout,
  .product-hero-layout,
  .trust-layout,
  .company-layout,
  .workflow-layout,
  .assurance-layout,
  .faq-layout,
  .legal-layout,
  .security-principles-layout,
  .no-tracking-panel,
  .error-layout {
    grid-template-columns: 1fr;
  }

  .home-product-showcase {
    min-height: 600px;
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .product-hero-copy {
    max-width: 760px;
  }

  .browser-frame-large {
    transform: none;
  }

  .trust-copy,
  .workflow-intro,
  .legal-toc {
    position: static;
  }

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

  .assurance-layout > .text-link {
    grid-column: auto;
  }

  .legal-layout {
    gap: 38px;
  }

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

  .legal-toc strong {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 700px) {
  .page-hero {
    padding: 135px 0 72px;
  }

  .narrow-container {
    width: min(calc(100% - 30px), 850px);
  }

  .home-product-showcase {
    min-height: 430px;
  }

  .home-browser-primary {
    top: 14px;
    width: 100%;
    transform: none;
  }

  .home-browser-secondary {
    right: 2%;
    bottom: 5px;
    width: 72%;
  }

  .practice-grid,
  .trust-grid,
  .screenshot-grid,
  .assurance-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card-featured {
    grid-column: auto;
  }

  .screenshot-card-featured .screenshot-button img {
    aspect-ratio: 16 / 9;
  }

  .use-case-panel,
  .final-cta-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 26px;
    border-radius: 24px;
  }

  .benefit-grid,
  .value-strip {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .practice-card {
    min-height: auto;
  }

  .workflow-list li,
  .principle-list article {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .provider-card {
    padding: 28px 22px;
  }

  .footer-professional {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-layout {
    gap: 35px;
  }

  .error-code {
    font-size: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .browser-frame-large,
  .home-browser-primary,
  .home-browser-secondary {
    transform: none;
  }
}
