:root {
  color-scheme: light;
  --ink: #17243b;
  --muted: #475569;
  --primary: #2453e8;
  --primary-hover: #163fc8;
  --white: #fff;
  --tint: #f3f6fd;
  --hero-sky: #f0f5fb;
  --line: #dce4f2;
  --blue-line: #b5c7fa;
  --radius: 12px;
  --header-height: 64px;
  --support-clearance: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: 160ms ease;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
  scroll-padding-bottom: var(--support-clearance);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

:where(main, section)[tabindex]:focus-visible {
  outline-offset: -4px;
}

:where(h1, h2, h3, p, figure, dl, dd) {
  margin: 0;
}

:where(h1, h2, h3) {
  line-height: 1.25;
  text-wrap: balance;
}

:where(a) {
  color: inherit;
  text-decoration: none;
}

:where(img) {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.shell {
  width: min(100% - var(--gutter) * 2, 75rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.625rem 1rem;
  transform: translateY(-200%);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  z-index: 20;
  background: var(--hero-sky);
}

.site-header.nav-enhanced {
  position: sticky;
  top: 0;
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 0 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
}

.brand-logo {
  position: relative;
  width: 8.25rem;
  aspect-ratio: 1024 / 336;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.brand-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Show the centered 1024 × 336 crop of the JPEG canvas. */
  width: calc(100% * 1375 / 1024);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.menu-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--blue-line);
  color: var(--primary);
}

.menu-icon {
  width: 16px;
  height: 12px;
  position: relative;
  border-block: 2px solid currentColor;
}

.menu-icon::after {
  position: absolute;
  inset: 3px 0 auto;
  border-top: 2px solid currentColor;
  content: "";
}

.site-nav {
  min-width: 0;
  grid-column: 1 / -1;
  padding-block: 0.625rem 1rem;
}

.nav-enhanced .site-nav {
  position: absolute;
  inset: calc(100% + 0.5rem) 0 auto;
  max-height: calc(100dvh - var(--header-height) - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 18px 44px -18px #172e5940;
}

.nav-list,
.nav-panel {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-group {
  position: relative;
}

.nav-link,
.nav-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-panel a:hover,
.nav-group[open] > .nav-link {
  background: var(--tint);
  color: var(--primary);
}

.nav-link:focus-visible,
.nav-panel a:focus-visible {
  outline-offset: -2px;
}

summary.nav-link {
  cursor: pointer;
  list-style: none;
}

summary.nav-link::-webkit-details-marker {
  display: none;
}

.chevron {
  width: 7px;
  height: 7px;
  margin: -3px 1px 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-group[open] .chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-panel {
  margin-block: 0.25rem;
  padding-inline-start: 0.875rem;
}

.nav-panel a {
  color: var(--muted);
}

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.button:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.button-outline {
  border-color: var(--primary);
  background: var(--white);
  color: var(--primary-hover);
}

.button-outline:hover {
  border-color: var(--primary);
  background: var(--tint);
}

.nav-action {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.arrow {
  font-family: system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1;
}

.hero {
  background:
    radial-gradient(ellipse 85% 62% at 94% 108%, #bdd1fe, #bdd1fe00),
    linear-gradient(180deg, var(--hero-sky), #ecf0fe 40%, #cddbfe);
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 3.8vw, 3.5rem);
  padding-block: 3rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 1.125rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-copy h1 span {
  display: inline-block;
  max-inline-size: 100%;
}

.hero-copy p {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.425vw, 1.125rem);
}

.eyebrow,
.hero-copy .eyebrow {
  margin: 0 0 0.875rem;
  color: var(--primary-hover);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.625rem;
}

.hero-actions .button-outline {
  border-color: var(--primary-hover);
  background: transparent;
}

.hero-actions .button-outline:hover {
  background: #ffffff80;
}

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "main main"
    "still clip";
  gap: 0.75rem;
  justify-self: center;
  width: 100%;
  max-width: 40rem;
}

.hero-media,
.hero-detail {
  min-width: 0;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: #ffffffb8;
  box-shadow: 0 12px 30px -18px #233d895c;
}

.hero-media {
  grid-area: main;
  padding: 0.625rem;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #e8e8e4;
}

.hero-media figcaption {
  display: grid;
  grid-template-columns: 43% 57%;
  padding: 0.125rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
}

.hero-media figcaption span {
  padding-inline: 0.375rem;
}

.hero-detail {
  padding: 0.375rem;
}

.hero-detail img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2;
  border-radius: 6px;
  background: var(--tint);
  object-fit: cover;
}

.hero-detail figcaption {
  margin: 0.25rem 0.125rem 0.125rem;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.45;
}

.hero-detail-still {
  grid-area: still;
}

.hero-detail-clip {
  grid-area: clip;
}

.hero-detail-clip img {
  object-position: 50% 34%;
}

.section,
.about {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section-tinted {
  border-block: 1px solid #e5eaf5;
  background: var(--tint);
}

.section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2.125rem);
}

.section-heading h2,
.about h2 {
  font-size: clamp(1.75rem, 1.25rem + 1vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.solutions-grid,
.cases-grid,
.pricing-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.solution-card,
.case-card,
.workflow,
.package {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.solution-card:target,
.case-card:target,
.workflow:target {
  border-color: var(--primary);
}

.solution-card,
.case-card {
  overflow: hidden;
}

.solution-copy {
  padding: clamp(1.125rem, 2.6vw, 1.875rem);
}

.solution-copy h3,
.workflow h3,
.case-copy h3,
.package h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.solution-copy p,
.workflow p,
.case-copy p,
.package-heading p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.solution-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.75rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-hover);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary);
}

.nav-panel a[aria-current="page"] {
  background: var(--tint);
  color: var(--primary-hover);
}

.solution-media {
  position: relative;
  margin: 0 0.625rem 0.625rem;
}

.solution-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.95;
  border-radius: 12px;
  background: #e7edf4;
  object-fit: cover;
  object-position: 50% 52%;
}

.storyboard img {
  object-position: 50% 38%;
}

.solution-media figcaption {
  position: absolute;
  inset: auto auto 0.625rem 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 550;
}

.workflow {
  display: grid;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: clamp(1.125rem, 2.6vw, 1.875rem);
  border-color: #d4dff7;
  background: var(--tint);
}

.workflow-steps {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 70px;
  padding: 0.625rem 0.875rem;
  border: 1px solid #dce5fa;
  border-radius: 10px;
  background: var(--white);
}

.workflow-steps strong {
  color: var(--ink);
  font-weight: 650;
}

.workflow-steps span {
  color: var(--muted);
  font-size: 0.875rem;
}

.case-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.57;
  background: #e6ebf2;
  object-fit: cover;
}

.case-copy {
  padding: 1.125rem 1.125rem 1.375rem;
}

.package {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.875rem);
}

.starter-package {
  gap: 1rem;
  background: var(--tint);
}

.standard-package {
  border-color: var(--blue-line);
}

.package-prices {
  margin-top: 1.125rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.625rem;
  border-bottom: 1px solid var(--line);
}

.price-row dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.45rem;
  font-weight: 650;
}

.price-term {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 450;
}

.price-row dd {
  flex-shrink: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-row-recommended {
  border-bottom-color: transparent;
  border-radius: 8px;
  background: var(--tint);
}

.price-row-recommended dd,
.recommended {
  color: var(--primary);
}

.recommended {
  font-size: 0.8125rem;
  font-weight: 650;
}

.package-benefits {
  display: grid;
  gap: 0.375rem;
  margin: 1.25rem 0 1.625rem;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.package-benefits li::marker {
  color: var(--primary);
}

.package-action {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  margin-top: 1.125rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.about {
  border-block: 1px solid var(--line);
  background: var(--tint);
}

.about-layout {
  display: grid;
  gap: 2rem;
}

.about-copy,
.about-vision {
  min-width: 0;
}

.about-company {
  margin-block-start: 1rem;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.5;
}

.about-description {
  display: grid;
  gap: 1rem;
  max-inline-size: 34em;
  margin-block-start: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about-description strong {
  color: var(--ink);
  font-weight: 650;
}

.about-action {
  margin-block-start: 1.5rem;
}

.about-vision {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at top right, #b5c7fa40, transparent 65%),
    linear-gradient(135deg, var(--white), #edf3ff);
}

.about-vision h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
}

.about-vision h3::before {
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.about-quote {
  max-inline-size: 8em;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about-vision-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.site-footer {
  padding-block: 1.125rem calc(1.125rem + var(--support-clearance));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Static solution pages share the homepage's colors, spacing and support UI. */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  margin: 0;
  padding: 0.75rem 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb li + li::before {
  margin-inline-end: 0.75rem;
  content: "/";
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.solution-hero-layout,
.content-split {
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.solution-hero-layout {
  padding-block: 1.75rem 3rem;
}

.solution-intro,
.content-copy {
  min-width: 0;
}

.solution-intro h1 {
  max-width: 14em;
  font-size: clamp(2rem, 1.125rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.solution-lead {
  max-width: 34em;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.solution-visual {
  min-width: 0;
  padding: 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.solution-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  object-fit: cover;
}

.solution-visual figcaption,
.visual-note {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.content-grid,
.creation-steps,
.related-grid {
  display: grid;
  gap: 1.25rem;
}

.content-card,
.creation-steps li,
.related-card {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.content-card h3,
.creation-steps h3,
.related-card strong {
  font-size: 1.125rem;
  font-weight: 650;
}

.content-card p,
.creation-steps p,
.content-copy > p,
.related-card span {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.75;
}

.content-copy .section-heading {
  margin-bottom: 1.25rem;
}

.content-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.content-list strong {
  color: var(--ink);
}

.content-list li::marker {
  color: var(--primary);
}

.content-note {
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
}

.creation-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: creation;
}

.creation-steps li {
  counter-increment: creation;
}

.creation-steps li::before {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary-hover);
  font-weight: 700;
  content: counter(creation, decimal-leading-zero);
}

.faq-list {
  max-width: 54rem;
}

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

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  min-height: 44px;
  padding-block: 1rem;
  font-weight: 650;
  cursor: pointer;
}

.faq-item p {
  max-width: 44em;
  padding-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.75;
}

.solution-cta {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  background: var(--tint);
}

.solution-cta h3 {
  font-size: 1.375rem;
}

.solution-cta p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.related-card {
  display: grid;
  align-content: start;
  transition: border-color var(--ease), background-color var(--ease);
}

.related-card strong {
  color: var(--primary-hover);
}

.related-card:hover {
  border-color: var(--blue-line);
  background: var(--tint);
}

@media (min-width: 760px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .solution-hero-layout,
  .content-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .solution-hero-layout {
    padding-block: 2rem 3.5rem;
  }
}

.footer-meta {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 0.25rem 1rem;
  text-align: center;
}

.footer-record a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--primary);
}

.site-footer small {
  color: var(--muted);
  font-size: 0.875rem;
}

.support-rail {
  --support-edge: max(1rem, env(safe-area-inset-right, 0px));
  --support-shadow: 0 8px 28px -12px #17243b4d;
  --support-blue: #0f68ff;
  --support-blue-hover: #0859de;
  position: fixed;
  z-index: 16;
  inset-inline-end: var(--support-edge);
  inset-block-end: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-rail svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-toggle,
.back-to-top,
.support-action {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.support-toggle,
.back-to-top {
  height: 3rem;
  border-radius: 999px;
  box-shadow: var(--support-shadow);
}

.support-toggle {
  min-width: 3.5rem;
  padding-inline: 0.875rem;
  background: var(--support-blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 650;
}

.support-toggle:hover,
.support-toggle[aria-expanded="true"] {
  background: var(--support-blue-hover);
}

.back-to-top {
  width: 3rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.back-to-top:hover {
  color: var(--primary);
  background: var(--tint);
}

.support-area {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 0.75rem);
  width: min(18rem, 100vw - var(--support-edge) - 1rem);
  max-height: calc(100dvh - var(--header-height) - var(--support-clearance) - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--support-shadow);
}

.support-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}

.support-secondary {
  display: contents;
}

.support-action {
  min-width: 0;
  min-height: 3.75rem;
  gap: 0.375rem;
  padding: 0.375rem 0.125rem;
  border-radius: 8px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  line-height: 1.25;
}

.support-action:hover,
.support-action[aria-expanded="true"] {
  background: var(--tint);
  color: var(--primary);
}

.support-action:focus-visible {
  outline-offset: -3px;
}

.support-demo {
  background: var(--support-blue);
  color: var(--white);
}

.support-demo:hover,
.support-demo[aria-expanded="true"] {
  background: var(--support-blue-hover);
  color: var(--white);
}

.support-demo:focus-visible {
  outline-color: var(--white);
}

.support-qr {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.support-qr > div {
  display: grid;
  gap: 0.5rem;
}

.support-qr h2 {
  font-size: 1rem;
  font-weight: 700;
}

.support-qr:focus-visible {
  outline: 2px solid var(--blue-line);
  outline-offset: -3px;
}

.support-qr p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.support-qr img {
  width: min(100%, 11rem);
  height: auto;
  justify-self: center;
}

html.demo-open {
  overflow: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: auto;
}

.demo-dialog {
  width: min(22.5rem, 100% - 2rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(125deg, #b5c7fa1a 0 20%, transparent 20% 100%),
    linear-gradient(180deg, #e3efff, var(--white) 72%);
  color: var(--ink);
  box-shadow: 0 16px 48px -12px #17243b4d;
}

.demo-dialog::backdrop {
  background: #17243b80;
}

.demo-close {
  position: absolute;
  z-index: 1;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
}

.demo-close:is(:hover, :active) {
  background: #ffffff99;
  color: var(--ink);
}

.demo-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.demo-content {
  max-height: calc(100dvh - 2rem);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 3.5rem 1rem;
  text-align: center;
}

.demo-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.demo-content:focus-visible {
  outline-offset: -4px;
}

.demo-content p {
  margin-block-start: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.demo-qr-card {
  width: min(100%, 13rem, 100dvh - 8rem);
  margin: 1.5rem auto 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.demo-qr-card img {
  width: 100%;
  height: auto;
}

@media (min-width: 30rem) and (max-height: 30rem) {
  .support-area {
    width: min(25rem, 100vw - var(--support-edge) - 1rem);
  }
}

@media (min-width: 64rem) and (min-height: 35rem) {
  :root {
    --gutter: calc(max(0.9375rem, env(safe-area-inset-right, 0px)) + 4.5rem);
    --support-clearance: 0px;
  }

  .support-rail {
    --support-edge: max(0.9375rem, env(safe-area-inset-right, 0px));
    inset-block: 50% auto;
    flex-direction: column;
    transform: translateY(-50%);
  }

  .support-area {
    position: relative;
    inset: auto;
    width: 3.75rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .support-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .support-secondary {
    display: grid;
    height: 13.4375rem;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--support-shadow);
  }

  .support-secondary .support-action {
    border-radius: 999px;
    background: transparent;
    color: #6b7488;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .support-secondary .support-action span {
    white-space: nowrap;
  }

  .support-secondary .support-action svg {
    color: var(--ink);
  }

  .support-secondary .support-action:is(:hover, [aria-expanded="true"]) {
    color: var(--support-blue);
  }

  .support-secondary .support-action:is(:hover, [aria-expanded="true"]) svg {
    color: inherit;
  }

  .support-demo {
    height: 9.75rem;
    gap: 0.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
  }

  .support-demo span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    line-height: 1.15;
    letter-spacing: 0.15em;
  }

  .back-to-top {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 0.75rem);
    width: 3.75rem;
    height: 3.75rem;
    border: 0;
  }

  .support-qr {
    position: absolute;
    inset-inline-end: calc(100% + 0.75rem);
    inset-block-end: 0;
    width: 14.5rem;
    box-shadow: var(--support-shadow);
  }

  .support-qr::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 100%;
    width: 0.75rem;
    content: "";
  }

  .support-qr::after {
    position: absolute;
    inset-inline-end: -0.3125rem;
    inset-block-start: var(--support-arrow-y, 50%);
    width: 0.625rem;
    height: 0.625rem;
    transform: translateY(-50%) rotate(45deg);
    background: inherit;
    content: "";
  }
}

@media (min-width: 600px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .workflow-steps li {
    position: relative;
  }

  .workflow-steps li:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -1.3rem;
    transform: translateY(-50%);
    color: var(--primary);
    content: "→";
  }
}

@media (min-width: 760px) {
  .solutions-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow,
  .starter-package {
    grid-column: 1 / -1;
  }

  .starter-package {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .workflow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.45fr);
  }
}

@media (min-width: 960px) {
  .about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
  }

  .about-copy {
    flex: 3 1 24rem;
  }

  .about-vision {
    flex: 2 1 16rem;
  }

  :root {
    --header-height: 66px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(0.75rem, 2.8vw, 2.5rem);
  }

  .site-nav,
  .nav-enhanced .site-nav {
    position: static;
    display: grid;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    justify-content: center;
    gap: clamp(0.25rem, 1.5vw, 1.5rem);
  }

  .nav-link {
    padding-inline: 0.75rem;
    white-space: nowrap;
  }

  .chevron {
    margin-right: 2px;
  }

  .nav-panel {
    position: absolute;
    z-index: 1;
    top: calc(100% + 0.375rem);
    left: 0;
    min-width: 12.5rem;
    margin: 0;
    padding: 0.375rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 14px 36px -14px #1d315449;
  }

  .nav-action {
    width: fit-content;
    margin-top: 0;
    white-space: nowrap;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    padding-block: 3.25rem 2.75rem;
  }

  .hero-showcase {
    grid-template-areas:
      ". still"
      "main main"
      "clip .";
    gap: 0;
  }

  .hero-media {
    margin-inline: clamp(1.25rem, 2vw, 1.75rem);
    padding-block-end: 1.25rem;
  }

  .hero-detail {
    z-index: 1;
    width: min(100%, 9.25rem);
  }

  .hero-detail-still {
    justify-self: end;
    margin-block-end: -1.125rem;
  }

  .hero-detail-clip {
    margin-block-start: -1.125rem;
  }
}

@media (min-width: 960px) and (max-height: 650px) {
  .hero-layout {
    padding-block: 2rem;
  }

  .hero-media {
    justify-self: center;
    width: min(100% - 2.5rem, 25rem);
    margin-inline: 0;
  }

  .hero-detail {
    width: min(100%, 8rem);
  }
}

@media (min-width: 1000px) {
  .cases-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .demo-dialog[open] {
    animation: demo-appear 160ms ease-out;
  }
}

@keyframes demo-appear {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .related-card {
    transition: none;
  }
}
