:root {
  --cream-1: #f7f4ef;
  --cream-2: #f2ede5;
  --cream-3: #f6f2ec;
  --ink: #1c1a17;
  --ink-hover: #2d2a24;
  --copy: #6b6456;
  --teal: #61c6bd;
  --teal-dark: #00826f;
  --teal-soft: #d3f2ee;
  --orange: #f1a752;
  --orange-dark: #db6a03;
  --orange-soft: #f9ddc0;
  --green: #98d8a0;
  --green-dark: #347034;
  --green-soft: #d8efd9;
  --border: rgba(28, 26, 23, 0.1);
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.05);
  --shadow-md: 0 10px 24px rgba(28, 26, 23, 0.08);
}

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

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.home-page,
body.document-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream-1) 0%, var(--cream-2) 50%, var(--cream-3) 100%);
}

body.home-page {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(28, 26, 23, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-shell {
  display: flex;
  min-height: 97px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
}

.brand-label {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.desktop-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav > a,
.site-nav > a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 160ms ease;
}

.desktop-nav > a:hover,
.site-nav > a:hover,
.desktop-nav > a:focus-visible,
.site-nav > a:focus-visible {
  color: var(--orange);
}

.header-store-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.header-store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease;
}

.header-store-link:hover,
.header-store-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.header-store-link img,
.mobile-store-links img,
.footer-store-links img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: color 160ms ease, background 160ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-nav {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink);
}

.mobile-nav > a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.mobile-nav > a:hover,
.mobile-nav > a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-store-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-store-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.icon-smartphone { -webkit-mask-image: url("./icons/smartphone.svg"); mask-image: url("./icons/smartphone.svg"); }
.icon-zap { -webkit-mask-image: url("./icons/zap.svg"); mask-image: url("./icons/zap.svg"); }
.icon-chart { -webkit-mask-image: url("./icons/chart-column.svg"); mask-image: url("./icons/chart-column.svg"); }
.icon-timer { -webkit-mask-image: url("./icons/timer.svg"); mask-image: url("./icons/timer.svg"); }
.icon-target { -webkit-mask-image: url("./icons/target.svg"); mask-image: url("./icons/target.svg"); }
.icon-user-minus { -webkit-mask-image: url("./icons/user-minus.svg"); mask-image: url("./icons/user-minus.svg"); }
.icon-smile { -webkit-mask-image: url("./icons/smile.svg"); mask-image: url("./icons/smile.svg"); }
.icon-clock { -webkit-mask-image: url("./icons/clock.svg"); mask-image: url("./icons/clock.svg"); }
.icon-file { -webkit-mask-image: url("./icons/file-text.svg"); mask-image: url("./icons/file-text.svg"); }
.icon-users { -webkit-mask-image: url("./icons/users.svg"); mask-image: url("./icons/users.svg"); }
.icon-check { -webkit-mask-image: url("./icons/circle-check.svg"); mask-image: url("./icons/circle-check.svg"); }
.icon-menu { -webkit-mask-image: url("./icons/menu.svg"); mask-image: url("./icons/menu.svg"); }
.icon-x { -webkit-mask-image: url("./icons/x.svg"); mask-image: url("./icons/x.svg"); }
.icon-send { -webkit-mask-image: url("./icons/send.svg"); mask-image: url("./icons/send.svg"); }

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 128px;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(97, 198, 189, 0.08), transparent 48%, rgba(241, 167, 82, 0.08));
}

.hero-shell {
  position: relative;
  padding-block: 112px;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 64px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(97, 198, 189, 0.3);
  border-radius: 999px;
  background: rgba(97, 198, 189, 0.1);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 500;
}

.availability-pill .ui-icon {
  width: 14px;
  height: 14px;
}

.hero-copy h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 40px;
  color: var(--copy);
  font-size: 20px;
  line-height: 1.625;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.store-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-1px);
}

.store-button img {
  width: 20px;
  height: 20px;
}

.store-button span {
  display: grid;
}

.store-button small {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.store-button-dark {
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(28, 26, 23, 0.12);
  color: #fff;
}

.store-button-dark img {
  filter: invert(1);
}

.store-button-dark small {
  color: rgba(255, 255, 255, 0.6);
}

.store-button-dark:hover,
.store-button-dark:focus-visible {
  background: var(--ink-hover);
  box-shadow: 0 14px 28px rgba(28, 26, 23, 0.16);
}

.store-button-light {
  border: 2px solid rgba(28, 26, 23, 0.15);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.store-button-light small {
  color: var(--copy);
}

.store-button-light:hover,
.store-button-light:focus-visible {
  border-color: rgba(28, 26, 23, 0.3);
  box-shadow: var(--shadow-md);
}

.hero-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.hero-devices-mobile {
  display: none;
  margin-bottom: 40px;
}

.device-glow {
  position: absolute;
  inset: -32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(97, 198, 189, 0.15), rgba(241, 167, 82, 0.15));
  filter: blur(48px);
}

.device-shot {
  position: relative;
  width: 224px;
  border-radius: 24px;
  object-fit: cover;
}

.device-shot-low {
  box-shadow: 0 25px 50px -12px rgba(97, 198, 189, 0.24);
  outline: 1px solid rgba(97, 198, 189, 0.2);
  transform: translateY(16px);
}

.device-shot-high {
  box-shadow: 0 25px 50px -12px rgba(241, 167, 82, 0.24);
  outline: 1px solid rgba(241, 167, 82, 0.2);
  transform: translateY(-16px);
}

.section {
  padding-block: 96px;
}

.section-label {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 20px;
  text-transform: uppercase;
}

.label-teal { color: var(--teal); }
.label-teal-dark { color: var(--teal-dark); }
.label-orange { color: var(--orange-dark); }
.label-green { color: var(--green-dark); }

.section h2,
.modernization-grid h2,
.features-grid h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.111;
}

.section-intro {
  max-width: 672px;
  margin-bottom: 64px;
  color: var(--copy);
  font-size: 18px;
  line-height: 1.556;
}

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

.product-card,
.benefit-card {
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.product-card {
  padding: 32px;
  border-radius: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-card-teal { border-color: rgba(97, 198, 189, 0.2); }
.product-card-orange { border-color: rgba(241, 167, 82, 0.2); }
.product-card-green { border-color: rgba(152, 216, 160, 0.2); }
.product-card-teal:hover { border-color: rgba(97, 198, 189, 0.5); box-shadow: 0 12px 28px rgba(97, 198, 189, 0.1); }
.product-card-orange:hover { border-color: rgba(241, 167, 82, 0.5); box-shadow: 0 12px 28px rgba(241, 167, 82, 0.1); }
.product-card-green:hover { border-color: rgba(152, 216, 160, 0.5); box-shadow: 0 12px 28px rgba(152, 216, 160, 0.1); }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 12px;
}

.icon-tile-small {
  margin-bottom: 16px;
  padding: 10px;
}

.icon-tile-small .ui-icon,
.feature-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.tile-teal { background: var(--teal-soft); color: var(--teal-dark); }
.tile-orange { background: var(--orange-soft); color: var(--orange-dark); }
.tile-green { background: var(--green-soft); color: var(--green-dark); }

.product-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.product-card p,
.benefit-card p {
  margin-bottom: 0;
  color: var(--copy);
}

.modernization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
}

.modernization-grid h2 {
  margin-bottom: 24px;
}

.modernization-copy {
  margin-bottom: 32px;
  color: var(--copy);
  font-size: 18px;
  line-height: 1.556;
}

.modernization-copy:last-child {
  margin-bottom: 0;
}

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

.benefit-card {
  padding: 24px;
  border-radius: 16px;
  transition: box-shadow 160ms ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.benefit-card p {
  font-size: 14px;
}

.workflow-panel {
  position: relative;
  overflow: hidden;
  padding: 64px 48px;
  border-radius: 24px;
  background: var(--ink);
}

.workflow-wash,
.pricing-card-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(97, 198, 189, 0.1), transparent 48%, rgba(241, 167, 82, 0.1));
}

.workflow-top {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.workflow-top h2 {
  margin-bottom: 24px;
  color: #fff;
}

.workflow-top > div > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.workflow-device-wrap {
  position: relative;
}

.workflow-device-glow {
  position: absolute;
  inset: -16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(152, 216, 160, 0.2), rgba(97, 198, 189, 0.2));
  filter: blur(40px);
}

.workflow-device-wrap img {
  position: relative;
  width: 256px;
  margin-inline: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  outline: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 160ms ease;
}

.workflow-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.step-number {
  display: block;
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 300;
  line-height: 36px;
}

.step-teal { color: rgba(97, 198, 189, 0.5); }
.step-orange { color: rgba(241, 167, 82, 0.5); }
.step-green { color: rgba(152, 216, 160, 0.5); }

.workflow-card h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.workflow-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
}

.features-grid h2 {
  margin-bottom: 24px;
}

.features-intro {
  margin-bottom: 32px;
  color: var(--copy);
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms ease;
}

.feature-row:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
}

.features-visual {
  position: sticky;
  top: 128px;
}

.features-glow {
  position: absolute;
  inset: -32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(241, 167, 82, 0.15), rgba(152, 216, 160, 0.15));
  filter: blur(48px);
}

.features-visual > img {
  position: relative;
  width: 320px;
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(241, 167, 82, 0.2);
  outline: 1px solid rgba(241, 167, 82, 0.15);
}

.features-visual > p {
  position: relative;
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid rgba(97, 198, 189, 0.2);
  border-radius: 16px;
  background: rgba(211, 242, 238, 0.4);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 500;
}

.pricing-intro {
  max-width: 576px;
}

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

.pricing-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 24px;
}

.pricing-card-standard {
  border: 2px solid rgba(97, 198, 189, 0.4);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pricing-card-clinic {
  border: 2px solid rgba(28, 26, 23, 0.1);
  background: var(--ink);
}

.pricing-card-content {
  position: relative;
}

.pricing-label {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.price-row strong {
  color: var(--ink);
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
}

.price-row span {
  margin-bottom: 8px;
  color: var(--copy);
  font-size: 18px;
}

.pricing-copy {
  margin: 12px 0 0;
  color: var(--copy);
}

.pricing-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding-left: 28px;
}

.pricing-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--teal);
  content: "";
  -webkit-mask: url("./icons/circle-check.svg") center / contain no-repeat;
  mask: url("./icons/circle-check.svg") center / contain no-repeat;
}

.pricing-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  transition: border-color 160ms ease, background 160ms ease;
}

.pricing-button-dark {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.pricing-button-dark:hover,
.pricing-button-dark:focus-visible {
  background: var(--ink-hover);
}

.hardware-note {
  margin: 16px 0 0;
  padding: 16px 20px;
  border: 1px solid rgba(241, 167, 82, 0.3);
  border-radius: 12px;
  background: rgba(249, 221, 192, 0.4);
  color: var(--copy);
  font-size: 14px;
}

.hardware-note strong {
  color: var(--orange-dark);
  font-weight: 500;
}

.pricing-card-clinic .pricing-label {
  color: var(--teal);
}

.pricing-card-clinic .price-row strong {
  color: #fff;
  font-size: 48px;
}

.pricing-card-clinic .pricing-copy {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card-clinic .pricing-list li {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-button-outline {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
}

.pricing-button-outline:hover,
.pricing-button-outline:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.cta-panel {
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(241, 167, 82, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(241, 167, 82, 0.15), var(--cream-1) 50%, rgba(97, 198, 189, 0.15));
  text-align: center;
}

.cta-panel h2 {
  margin-bottom: 24px;
  font-size: 30px;
  line-height: 1.2;
}

.cta-panel > p {
  max-width: 672px;
  margin: 0 auto 40px;
  color: var(--copy);
  font-size: 18px;
}

.store-actions-centered {
  justify-content: center;
}

.store-button-simple {
  padding: 16px 28px;
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink);
}

.footer-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
}

.footer-store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-store-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 160ms ease;
}

.footer-store-links a:hover,
.footer-store-links a:focus-visible {
  color: var(--orange);
}

.footer-store-links > span {
  color: rgba(255, 255, 255, 0.2);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 512px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  position: relative;
  padding: 32px 32px 24px;
  background: var(--ink);
}

.modal-header h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.modal-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: rgba(255, 255, 255, 0.8);
}

.modal-close .ui-icon {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 32px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.contact-form label > span {
  display: inline;
  color: var(--copy);
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(28, 26, 23, 0.16);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(97, 198, 189, 0.18);
}

.submit-button,
.success-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.submit-button .ui-icon {
  width: 18px;
  height: 18px;
}

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 32px;
  text-align: center;
}

.success-icon {
  display: flex;
  padding: 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.success-icon .ui-icon {
  width: 32px;
  height: 32px;
}

.contact-success h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.contact-success p {
  margin: 0;
  color: var(--copy);
}

/* Help and privacy pages retain the same product shell. */
.document-page {
  padding-top: 97px;
}

.document-page .site-header {
  position: fixed;
}

.document-page .legal-main {
  padding-block: 72px 96px;
}

.legal-hero,
.legal-shell {
  width: min(calc(100% - 48px), 960px);
  margin-inline: auto;
}

.legal-hero {
  margin-bottom: 48px;
}

.legal-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.legal-intro,
.legal-block p,
.legal-list li,
.help-steps li,
.help-card p,
.support-card p,
.faq-list p {
  color: var(--copy);
}

.legal-intro {
  max-width: 760px;
  font-size: 18px;
}

.help-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

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

.help-card,
.support-card,
.legal-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.help-card,
.support-card {
  padding: 24px;
}

.help-card p,
.support-card p {
  margin: 8px 0 0;
}

.legal-shell {
  display: grid;
  gap: 20px;
}

.legal-block {
  padding: 32px;
}

.legal-block h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
}

.legal-list,
.help-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list p {
  margin: 0;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: var(--teal-soft);
}

.inline-link {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .site-nav {
    gap: 20px;
  }

  .header-store-link {
    padding-inline: 12px;
  }
}

@media (max-width: 1023px) {
  .desktop-nav,
  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    position: fixed;
    top: 97px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--ink);
  }

  .site-nav.is-open > a {
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .modernization-grid,
  .workflow-top,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 48px;
    letter-spacing: -1.2px;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-devices-desktop {
    display: none;
  }

  .hero-devices-mobile {
    display: flex;
  }

  .hero-devices-mobile .device-shot {
    width: 160px;
  }

  .hero-devices-mobile .device-shot-low {
    transform: translateY(12px);
  }

  .hero-devices-mobile .device-shot-high {
    transform: translateY(-12px);
  }

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

  .features-visual {
    position: relative;
    top: auto;
  }

  .pricing-grid {
    gap: 24px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}

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

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .help-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .hero-devices-mobile .device-shot {
    width: 160px;
  }

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

  .workflow-device-wrap img {
    width: min(100%, 256px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-body {
    padding-inline: 24px;
  }

  .legal-hero,
  .legal-shell {
    width: min(calc(100% - 40px), 960px);
  }

  .legal-block {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
