:root {
  color-scheme: light;
  --app-height: 100dvh;
  --page-height: 200dvh;
  --background: #f5f7f6;
  --page-background: #f4f5f2;
  --surface: #ffffff;
  --text: #171b19;
  --muted: #69716d;
  --line: #e2e7e4;
  --green: #21a366;
  --green-pressed: #188553;
  --radius-large: 28px;
  --radius-button: 18px;
  --shadow: 0 -18px 48px rgba(24, 39, 31, 0.12);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Rounded", "Arial Rounded MT Bold",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

html.miniapp-auth-pending {
  background: #f5f7f6;
}

html.miniapp-auth-pending body {
  visibility: hidden;
  pointer-events: none;
}

/* Экран загрузки: логотип с пульсом, пока идёт серверная проверка initData. */
html.miniapp-auth-pending::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 16px;
  background: url("./media/photo.png") center / cover;
  /* Пауза 0,5 с в прозрачном состоянии, затем появление и пульс. */
  opacity: 0;
  animation:
    auth-logo-in 400ms ease-out 500ms forwards,
    auth-pulse 1.2s ease-in-out 900ms infinite;
}

@keyframes auth-logo-in {
  to { opacity: 1; }
}

@keyframes auth-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Плавное появление страницы после серверной проверки initData. */
html:not(.miniapp-auth-pending) :is(.app-shell, .legal-shell, .checkout-shell) {
  animation: page-in 280ms ease-out backwards;
}

@keyframes page-in {
  from { opacity: 0; }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  min-width: 280px;
  background: var(--background);
  color: var(--text);
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body.consent-pending {
  position: fixed;
  inset: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.consent-pending .app-shell {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

button,
a {
  font: inherit;
}

.app-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: var(--app-height);
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.home-shell {
  height: auto;
  min-height: var(--page-height);
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
  padding: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.98) 0, transparent 27rem),
    radial-gradient(circle at 94% 25%, rgba(211, 237, 222, 0.48) 0, transparent 25rem),
    radial-gradient(circle at 4% 67%, rgba(222, 230, 242, 0.42) 0, transparent 27rem),
    radial-gradient(circle at 88% 88%, rgba(230, 241, 234, 0.55) 0, transparent 23rem),
    linear-gradient(180deg, #f7f8f5 0%, #f2f4f1 44%, #f5f6f3 100%);
}

.site-header {
  position: fixed;
  z-index: 5;
  top: max(16px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  left: max(8px, env(safe-area-inset-left));
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(212, 212, 216, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 24px rgba(24, 24, 27, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
}

.site-logo {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-left: 7px;
  border-radius: 9px;
  object-fit: cover;
}

.site-menu-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.site-menu-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-menu-icon:active {
  transform: scale(0.95);
  background: #f0f2f1;
  color: #68706c;
}

.site-menu-icon:focus-visible {
  outline: 3px solid rgba(33, 163, 102, 0.24);
  outline-offset: 2px;
}

.home-content {
  display: flex;
  width: 100%;
  max-width: 720px;
  flex: 1;
  flex-direction: column;
  gap: 72px;
  margin: 0 auto;
  padding:
    calc(max(16px, env(safe-area-inset-top)) + 80px)
    max(16px, env(safe-area-inset-right))
    32px
    max(16px, env(safe-area-inset-left));
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero-section {
  display: flex;
  width: 100%;
  min-height: calc(var(--app-height) - 112px);
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 8px 0 36px;
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-label {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 620px;
  margin: 0;
  color: #161a18;
  font-size: clamp(42px, 12.2vw, 68px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.hero-description {
  max-width: 510px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 4.4vw, 19px);
  line-height: 1.48;
}

.main-action,
.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--green);
  background: linear-gradient(145deg, #25aa6c 0%, #1d985f 100%);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(33, 163, 102, 0.16);
  transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.main-action {
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  padding: 0 18px 0 21px;
  border-radius: 19px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(33, 163, 102, 0.18);
}

.main-action svg,
.product-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-action:active,
.product-action:active {
  transform: scale(0.985);
  background: var(--green-pressed);
}

.main-action:focus-visible,
.product-action:focus-visible {
  outline: 3px solid rgba(33, 163, 102, 0.25);
  outline-offset: 3px;
}

.report-preview {
  position: relative;
  width: 100%;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dfe3df;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 15%, rgba(33, 163, 102, 0.08), transparent 34%),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(225, 231, 226, 0.68),
    0 18px 40px rgba(24, 39, 31, 0.075),
    0 3px 10px rgba(24, 39, 31, 0.035);
}

.report-preview::after,
.product-card::after,
.process-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(33, 163, 102, 0.055), transparent 28%);
  pointer-events: none;
  content: "";
}

.report-preview > *,
.process-card > * {
  position: relative;
  z-index: 1;
}

.preview-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-icon,
.product-icon {
  display: grid;
  place-items: center;
  color: var(--green);
  background: #edf6f0;
}

.preview-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 15px;
}

.preview-icon svg,
.product-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-heading > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.preview-heading strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-heading small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: #f2f4f2;
  color: #6f7772;
  font-size: 10px;
  font-weight: 750;
}

.preview-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}

.preview-metrics span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  border: 1px solid #ecefec;
  border-radius: 14px;
  background: rgba(248, 249, 247, 0.82);
  color: #58605c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
}

.preview-metrics i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(33, 163, 102, 0.1);
}

.products-section {
  scroll-margin-top: 88px;
}

.section-heading {
  max-width: 500px;
}

.section-heading h2 {
  margin: 0;
  color: #171b19;
  font-size: clamp(31px, 9vw, 46px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.product-list {
  display: grid;
  gap: 18px;
  margin-top: 27px;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #dfe3df;
  border-radius: 30px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(227, 232, 228, 0.55),
    0 18px 42px rgba(24, 39, 31, 0.065),
    0 3px 10px rgba(24, 39, 31, 0.025);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card::before {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(33, 163, 102, 0.065);
  content: "";
}

.product-card-research::before {
  background: rgba(84, 104, 92, 0.07);
}

.product-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.product-number {
  color: #9aa19d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.product-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 18px;
}

.product-copy {
  position: relative;
  z-index: 1;
  margin: auto 0 28px;
}

.product-kicker {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-copy h3 {
  margin: 0;
  color: #171b19;
  font-size: clamp(29px, 8.5vw, 38px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.04em;
}

.product-copy > p:last-child {
  max-width: 430px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.46;
}

.product-action {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  padding: 0 17px 0 19px;
  border-radius: 18px;
}

.process-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid #dfe3df;
  border-radius: 30px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(227, 232, 228, 0.55),
    0 18px 42px rgba(24, 39, 31, 0.06),
    0 3px 10px rgba(24, 39, 31, 0.025);
}

.process-heading h2 {
  font-size: clamp(29px, 8.5vw, 40px);
}

.process-list {
  display: grid;
  gap: 9px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 18px;
  background: #f4f6f3;
}

.process-list li > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 13px;
  background: #ffffff;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(24, 39, 31, 0.05);
}

.process-list p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.process-list strong {
  font-size: 14px;
  line-height: 1.1;
}

.process-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.quick-links {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -48px auto 0;
}

.quick-links a {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 120ms ease;
}

.quick-links a:active {
  transform: scale(0.98);
}

.quick-links a:focus-visible {
  outline: 3px solid rgba(33, 163, 102, 0.25);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  min-height: 20px;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  color: #8a918d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  padding:
    0
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.site-footer a:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(33, 163, 102, 0.28);
  outline-offset: 2px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 10vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.menu-layer {
  position: fixed;
  z-index: 9;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 340ms;
}

.menu-layer[hidden] {
  display: none;
}

.menu-layer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(17, 24, 20, 0.18);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transform: translateZ(0);
  will-change: opacity;
  contain: strict;
  transition: opacity 280ms ease;
}

.menu-layer.is-open .menu-backdrop {
  opacity: 1;
}

.menu-drawer {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  display: flex;
  width: min(88%, 390px);
  height: 100%;
  flex-direction: column;
  padding:
    max(24px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    18px;
  overflow-y: auto;
  border-left: 1px solid rgba(218, 225, 220, 0.86);
  border-radius: 34px 0 0 34px;
  background:
    radial-gradient(circle at 90% 7%, rgba(214, 239, 224, 0.72), transparent 17rem),
    #f8faf8;
  box-shadow: -24px 0 58px rgba(20, 36, 28, 0.14);
  transform: translate3d(calc(100% + 28px), 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  contain: layout paint style;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-layer.is-open .menu-drawer {
  transform: translate3d(0, 0, 0);
}

.menu-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 5px 22px;
}

.menu-heading .section-label {
  margin-bottom: 8px;
  font-size: 9px;
}

.menu-heading h2 {
  margin: 0;
  color: #171b19;
  font-size: 36px;
  font-weight: 770;
  line-height: 1;
  letter-spacing: -0.045em;
}

.menu-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe5e1;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #626a66;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(24, 39, 31, 0.055);
  transition: transform 120ms ease, background-color 120ms ease;
}

.menu-close svg,
.menu-navigation svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-close svg {
  width: 20px;
  height: 20px;
}

.menu-close:active {
  transform: scale(0.95);
  background: #f0f3f1;
}

.menu-close:focus-visible,
.menu-navigation a:focus-visible {
  outline: 3px solid rgba(33, 163, 102, 0.24);
  outline-offset: 3px;
}

.menu-navigation {
  display: grid;
  gap: 10px;
}

.menu-navigation > a {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid #dfe5e1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: #202522;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 7px 22px rgba(24, 39, 31, 0.045);
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.menu-navigation > a[hidden] {
  display: none;
}

.menu-navigation > a:active {
  transform: scale(0.985);
  background: #f2f7f3;
}

.menu-item-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 16px;
  background: #edf6f0;
  color: var(--green);
}

.menu-item-icon svg {
  width: 21px;
  height: 21px;
}

.menu-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.menu-item-copy strong {
  font-size: 14px;
  font-weight: 760;
  line-height: 1.15;
}

.menu-item-copy small {
  color: #7a827e;
  font-size: 10px;
  font-weight: 570;
  line-height: 1.2;
}

.menu-item-arrow {
  width: 18px;
  height: 18px;
  color: #a1aaa5;
}

.menu-caption {
  margin: auto 0 0;
  padding: 28px 8px 4px;
  color: #929a96;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.consent-layer {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: transparent;
  touch-action: none;
}

.consent-layer::before {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 20, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: consent-backdrop-in 260ms ease-out both;
  content: "";
}

.consent-layer.is-closing {
  pointer-events: none;
}

.consent-layer.is-closing::before {
  animation: consent-backdrop-out 260ms ease-in both;
}

.consent-layer[hidden] {
  display: none;
}

.consent-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 25%;
  flex-direction: column;
  justify-content: flex-start;
  padding:
    14px
    max(20px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: sheet-in 260ms ease-out both;
}

.consent-layer.is-closing .consent-sheet {
  animation: sheet-out 260ms ease-in both;
}

.sheet-handle {
  width: 84px;
  height: 5px;
  flex: 0 0 auto;
  margin: 1px auto 7px;
  border-radius: 999px;
  background: var(--line);
}

.consent-copy {
  width: min(100%, 440px);
  margin: 3px auto 0;
}

.consent-copy h2 {
  margin: 0;
  font-size: clamp(20px, 5.8vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.consent-copy > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 3.5vw, 14px);
  line-height: 1.3;
}

.consent-actions {
  display: grid;
  width: min(100%, 440px);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: auto auto 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, background-color 100ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible {
  outline: 3px solid rgba(33, 163, 102, 0.28);
  outline-offset: 2px;
}

.button-primary {
  border-color: var(--green);
  outline: 3px solid rgba(33, 163, 102, 0.28);
  outline-offset: 2px;
  background: var(--green);
  color: #ffffff;
}

.button-primary:active {
  background: var(--green-pressed);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes sheet-out {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes consent-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes consent-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card.reveal-item {
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(227, 232, 228, 0.55),
      0 22px 48px rgba(24, 39, 31, 0.085);
  }
}

@media (min-width: 760px) {
  .home-content {
    max-width: 1120px;
    gap: 96px;
    padding-right: max(32px, env(safe-area-inset-right));
    padding-bottom: 48px;
    padding-left: max(32px, env(safe-area-inset-left));
  }

  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 64px;
  }

  .main-action {
    width: 230px;
  }

  .report-preview {
    padding: 22px;
  }

  .product-list {
    grid-template-columns: 1fr 1fr;
  }

  .product-card {
    min-height: 440px;
    padding: 26px;
  }

  .process-card {
    padding: 32px;
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-links {
    margin-top: -68px;
  }
}

@media (max-height: 620px) {
  .consent-copy > p:last-child {
    margin-top: 5px;
    font-size: 12px;
  }

  .button {
    min-height: 40px;
    padding-block: 10px;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .menu-backdrop {
    background: rgba(17, 24, 20, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .consent-layer::before {
    background: rgba(17, 24, 20, 0.32);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
