:root {
  color-scheme: light;
  --background: #f2f2f7;
  --surface: #ffffff;
  --surface-soft: #e8f1f4;
  --surface-green: #e7f5ee;
  --text: #1c1c1e;
  --secondary: #5d5d63;
  --tertiary: #76767d;
  --brand: #125973;
  --brand-pressed: #0e475d;
  --green: #19784c;
  --separator: #d1d1d6;
  --shadow: 0 18px 44px rgba(28, 28, 30, 0.09);
  --shadow-small: 0 10px 26px rgba(28, 28, 30, 0.07);
  --radius-large: 34px;
  --radius-card: 24px;
  --content: 1180px;
  --content-half: 590px;
  --marquee-gap: 18px;
  --marquee-half-gap: 9px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 520px;
  background:
    radial-gradient(circle at 15% 12%, rgba(46, 163, 107, 0.14), transparent 38%),
    radial-gradient(circle at 86% 4%, rgba(18, 89, 115, 0.16), transparent 40%);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  translate: 0 -150%;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 750;
}

.skip-link:focus {
  translate: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(209, 209, 214, 0.8);
  background: rgba(242, 242, 247, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 9px;
}

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-link {
  border-radius: 10px;
  padding: 8px 11px;
  color: var(--secondary);
  font-size: 0.91rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-link:hover,
.header-link[aria-current="page"] {
  background: rgba(18, 89, 115, 0.08);
  color: var(--brand);
  text-decoration: none;
}

.header-login {
  color: var(--brand);
}

.header-divider {
  width: 1px;
  height: 24px;
  margin-inline: 7px;
  background: var(--separator);
}

.language-menu {
  position: relative;
  flex: none;
}

.language-menu summary {
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 7px 8px;
  color: var(--secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 760;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
  background: rgba(18, 89, 115, 0.08);
  color: var(--text);
}

.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.language-menu[open] .language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-menu-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: 150px;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(23, 33, 38, 0.16);
}

.language-menu-options button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 9px;
  padding: 10px 11px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: center;
  cursor: pointer;
}

.language-menu-options button:hover,
.language-menu-options button.on {
  background: rgba(18, 89, 115, 0.08);
}

.language-menu-options button.on {
  color: var(--brand);
  font-weight: 760;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 58px;
  background:
    radial-gradient(circle at 88% 12%, rgba(67, 181, 213, 0.34), transparent 36%),
    linear-gradient(118deg, var(--brand-pressed) 0%, var(--brand) 58%, #176f89 100%);
}

.hero h1,
.hero .hero-lead {
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.hero h1,
.page-hero h1 {
  max-width: 850px;
  margin-top: 0;
  font-size: clamp(2.75rem, 6.7vw, 5.65rem);
  font-weight: 840;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-lead,
.page-hero .lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--secondary);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  margin-top: 30px;
}

.hero-intro-row .hero-lead {
  margin-top: 0;
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  line-height: 1.55;
}

.app-store-badge {
  width: fit-content;
  max-width: 100%;
  min-width: 258px;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
  border: 1px solid #6f6f73;
  border-radius: 14px;
  padding: 10px 18px;
  background: #000000;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.app-store-badge img {
  width: 42px;
  height: 48px;
  flex: none;
  object-fit: contain;
}

.app-store-copy {
  display: grid;
  gap: 1px;
}

.app-store-kicker {
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.app-store-name {
  font-size: 1.82rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 19px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 780;
  box-shadow: 0 9px 22px rgba(18, 89, 115, 0.2);
  transition: background 160ms ease, translate 160ms ease;
}

.button:hover {
  background: var(--brand-pressed);
  text-decoration: none;
  translate: 0 -1px;
}

.button.secondary {
  border-color: rgba(18, 89, 115, 0.3);
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.hero-visual::before {
  width: min(440px, 88vw);
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(46, 163, 107, 0.28));
}

.hero-visual::after {
  width: 210px;
  height: 210px;
  right: -12px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
}

.app-window {
  width: min(390px, 88vw);
  border: 1px solid rgba(18, 89, 115, 0.15);
  border-radius: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 70px rgba(18, 89, 115, 0.18);
  rotate: 2deg;
}

.app-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
}

.app-window-brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.demo-status {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-green);
  color: #19784c;
  font-size: 0.74rem;
  font-weight: 820;
}

.demo-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 22px;
}

.demo-day {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--tertiary);
  font-size: 0.69rem;
  font-weight: 750;
}

.demo-day span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--background);
  color: var(--secondary);
}

.demo-day.active span {
  background: var(--brand);
  color: #ffffff;
}

.demo-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.demo-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
  background: var(--background);
}

.demo-time {
  color: var(--tertiary);
  font-size: 0.76rem;
  font-weight: 720;
}

.demo-name {
  font-size: 0.9rem;
  font-weight: 760;
}

.demo-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.demo-dot.planned {
  background: var(--brand);
}

.section {
  padding: clamp(54px, 7vw, 88px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section h2,
.final-cta h2 {
  margin-top: 9px;
  font-size: clamp(2rem, 4.3vw, 3.55rem);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.section-heading > p:last-child,
.section-lead {
  margin-top: 14px;
  color: var(--secondary);
  font-size: 1.06rem;
}

.marquee-shell {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.marquee-shell::before,
.marquee-shell::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 12px;
  width: max(24px, calc(50vw - var(--content-half)));
  content: "";
  pointer-events: none;
}

.marquee-shell::before {
  left: 0;
  background: linear-gradient(90deg, var(--background), transparent);
}

.marquee-shell::after {
  right: 0;
  background: linear-gradient(270deg, var(--background), transparent);
}

.marquee-viewport {
  overflow-x: auto;
  padding: 8px max(24px, calc(50vw - var(--content-half))) 18px;
  scrollbar-color: rgba(18, 89, 115, 0.35) transparent;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.marquee-viewport:focus-visible {
  outline-offset: -3px;
}

.marquee-track {
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--marquee-gap);
  animation: feature-marquee 44s linear infinite;
  will-change: transform;
}

.marquee-shell:hover .marquee-track,
.marquee-shell:focus-within .marquee-track,
.marquee-shell.is-interacting .marquee-track,
.marquee-shell.is-offscreen .marquee-track {
  animation-play-state: paused;
}

@keyframes feature-marquee {
  to {
    transform: translateX(calc(-50% - var(--marquee-half-gap)));
  }
}

.feature-card {
  width: clamp(278px, 29vw, 350px);
  min-height: 250px;
  flex: 0 0 auto;
  border: 1px solid rgba(209, 209, 214, 0.74);
  border-radius: var(--radius-card);
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.feature-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 860;
}

.feature-card:nth-child(3n + 2) .feature-index {
  background: var(--surface-green);
  color: #19784c;
}

.feature-card h3 {
  margin-top: 35px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 0.96rem;
}

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

.module-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(209, 209, 214, 0.72);
  border-radius: var(--radius-large);
  padding: clamp(26px, 4vw, 38px);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.module-card::after {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: var(--surface-soft);
  content: "";
}

.module-card:nth-child(2)::after {
  background: var(--surface-green);
}

.module-number {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.module-card h3 {
  max-width: 250px;
  margin-top: 45px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.module-card p {
  max-width: 290px;
  margin-top: 13px;
  color: var(--secondary);
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  border-radius: var(--radius-large);
  padding: clamp(30px, 6vw, 64px);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 89, 115, 0.2);
}

.privacy-panel h2 {
  color: #ffffff;
}

.privacy-panel p {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.privacy-list {
  display: grid;
  gap: 13px;
  list-style: none;
}

.privacy-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, 0.9);
}

.privacy-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #a7e9c8;
  font-weight: 900;
}

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

.blog-card,
.article-index a {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(209, 209, 214, 0.75);
  border-radius: var(--radius-card);
  padding: 26px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-small);
  transition: translate 160ms ease, box-shadow 160ms ease;
}

.blog-card:hover,
.article-index a:hover {
  text-decoration: none;
  translate: 0 -2px;
  box-shadow: var(--shadow);
}

.blog-card h3,
.article-index strong {
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.blog-card p,
.article-index span {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 0.94rem;
}

.blog-card .text-link {
  margin-top: auto;
  padding-top: 25px;
  color: var(--brand);
  font-weight: 780;
}

.final-cta {
  margin-top: 30px;
  border: 1px solid rgba(209, 209, 214, 0.7);
  border-radius: var(--radius-large);
  padding: clamp(32px, 7vw, 72px);
  background:
    radial-gradient(circle at 85% 20%, rgba(46, 163, 107, 0.18), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.final-cta p {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--secondary);
  font-size: 1.06rem;
}

.newsletter-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  text-align: left;
}

.newsletter-cta > div {
  min-width: 0;
}

.newsletter-cta p {
  margin: 16px 0 0;
}

.newsletter-cta .button {
  flex: none;
}

.health-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 8px 0;
  color: var(--secondary);
}

.health-disclaimer-symbol {
  flex: none;
  font-size: 1.25rem;
  line-height: 1.4;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--separator);
  padding: 0;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--tertiary);
  padding-block: 17px calc(17px + env(safe-area-inset-bottom));
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(8px, 2vw, 18px);
}

.footer-links a {
  color: var(--secondary);
  font-size: 0.86rem;
  font-weight: 650;
}

.footer-links a + a::before {
  content: "|" / "";
  display: inline-block;
  margin-right: clamp(8px, 2vw, 18px);
  color: var(--separator);
  font-weight: 400;
}

/* Blog and Support */
.blog-page .site-header,
.support-page .site-header {
  position: relative;
}

.blog-toolbar,
.support-toolbar {
  position: sticky;
  z-index: 49;
  top: 0;
  border-bottom: 1px solid rgba(209, 209, 214, 0.86);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 7px 20px rgba(28, 28, 30, 0.05);
}

.blog-toolbar-inner,
.support-toolbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.blog-toolbar-title,
.support-toolbar-title {
  flex: none;
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.blog-toolbar-title:hover,
.support-toolbar-title:hover {
  color: var(--brand);
  text-decoration: none;
}

.blog-search,
.support-search {
  width: min(100%, 390px);
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.blog-search input,
.support-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 10px 13px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.blog-search input::placeholder,
.support-search input::placeholder {
  color: var(--tertiary);
}

.blog-search button,
.support-search button {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 780;
}

.blog-search button:hover,
.support-search button:hover {
  background: var(--brand-pressed);
}

.page-hero {
  padding: clamp(54px, 8vw, 94px) 0 44px;
  text-align: center;
}

.page-hero h1,
.page-hero .lead {
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 940px;
}

.article-index {
  margin-top: 24px;
}

.blog-index-section {
  padding-top: 24px;
}

.blog-no-results,
.support-no-results {
  margin-top: 24px;
  border: 1px solid var(--separator);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  color: var(--secondary);
  text-align: center;
}

[data-blog-card][hidden] {
  display: none;
}

/* Support */
.support-index-section {
  padding-top: 24px;
}

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

.support-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(209, 209, 214, 0.75);
  border-radius: var(--radius-card);
  padding: 27px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-small);
  transition: translate 160ms ease, box-shadow 160ms ease;
}

.support-card:hover {
  text-decoration: none;
  translate: 0 -2px;
  box-shadow: var(--shadow);
}

.support-card h3 {
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.support-card p {
  margin-top: 11px;
  color: var(--secondary);
  font-size: 0.94rem;
}

.support-card .text-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--brand);
  font-weight: 780;
}

[data-support-card][hidden] {
  display: none;
}

.support-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  border: 1px solid rgba(209, 209, 214, 0.75);
  border-radius: var(--radius-large);
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface-soft);
}

.support-contact-cta h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.support-contact-cta p {
  max-width: 650px;
  margin-top: 10px;
  color: var(--secondary);
}

.support-contact-cta .button {
  flex: none;
}

.support-contact-main {
  padding-block: clamp(44px, 7vw, 76px);
}

.support-contact-intro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.support-contact-intro h1 {
  margin-top: 13px;
  font-size: clamp(2.35rem, 5.5vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.support-contact-intro .lead {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 1.08rem;
}

.support-form-card {
  max-width: 720px;
  margin: 34px auto 0;
  border: 1px solid rgba(209, 209, 214, 0.75);
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.support-form-row {
  display: flex;
  gap: 14px;
}

.support-form-row .support-field {
  flex: 1;
}

.support-field {
  margin-bottom: 18px;
}

.support-field:last-of-type {
  margin-bottom: 0;
}

.support-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.support-field .optional-note {
  color: var(--secondary);
  font-weight: 500;
}

.support-field input,
.support-field textarea {
  width: 100%;
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.support-field input:focus,
.support-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 89, 115, 0.16);
}

.support-field textarea {
  min-height: 150px;
  resize: vertical;
}

.support-submit {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
  padding-inline: 18px;
  cursor: pointer;
}

.contact-email-notice {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 0.88rem;
  text-align: center;
}

.article-index a {
  min-height: 165px;
}

.article-index strong {
  margin-top: 0;
}

.blog-articles {
  display: grid;
  gap: 30px;
  padding-top: 40px;
}

.article-page {
  padding-top: clamp(36px, 6vw, 70px);
}

.blog-article {
  scroll-margin-top: 94px;
  border: 1px solid rgba(209, 209, 214, 0.72);
  border-radius: var(--radius-large);
  padding: clamp(28px, 6vw, 64px);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.article-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--brand);
  font-weight: 780;
}

.blog-article h1 {
  max-width: 820px;
  margin-top: 0;
  font-size: clamp(2rem, 4.3vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.article-dek {
  max-width: 760px;
  margin-top: 18px;
  color: var(--secondary);
  font-size: 1.1rem;
}

.article-body {
  max-width: 760px;
  margin-top: 36px;
}

.article-body h2,
.article-body h3 {
  margin-top: 30px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body ol,
.article-body ul {
  margin-top: 13px;
  color: #3b3b40;
}

.article-body ol,
.article-body ul {
  padding-left: 1.35rem;
}

.article-body li {
  margin-top: 10px;
  padding-left: 4px;
}

.article-body li::marker {
  color: var(--green);
  font-weight: 800;
}

.article-note {
  margin-top: 28px;
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  padding: 16px 18px;
  background: var(--surface-green);
  color: #28513e;
}

.back-to-top {
  display: inline-block;
  margin-top: 28px;
  font-weight: 760;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--separator);
}

[data-language-panel][hidden] {
  display: none !important;
}

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

  .hero-copy {
    text-align: center;
  }

  .hero-copy .hero-lead {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 480px;
  }

  .module-grid,
  .blog-grid,
  .article-index,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 260px;
  }

  .privacy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, var(--content));
  }

  .hero-intro-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .hero-intro-row .hero-lead {
    text-align: center;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-block: 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .blog-toolbar-inner,
  .support-toolbar-inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 12px;
  }

  .blog-search,
  .support-search {
    width: 100%;
  }

  .newsletter-cta,
  .support-contact-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.3rem);
  }

  .hero-visual {
    min-height: 430px;
  }

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

@media (max-width: 560px) {
  .site-header .brand span {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 1px;
  }

  .header-link {
    padding: 7px 6px;
    font-size: 0.82rem;
  }

  .header-divider {
    height: 21px;
    margin-inline: 3px;
  }

  .language-menu summary {
    min-width: 52px;
    gap: 5px;
    padding-inline: 7px;
  }
}

@media (max-width: 380px) {
  .header-link {
    padding-inline: 4px;
    font-size: 0.78rem;
  }

  .language-menu summary {
    min-width: 48px;
    padding-inline: 5px;
  }
}

@media (max-width: 520px) {
  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .article-actions .button,
  .newsletter-cta .button,
  .support-contact-cta .button {
    width: 100%;
  }

  .app-store-badge {
    width: min(100%, 270px);
    justify-self: center;
    margin-inline: auto;
  }

  .support-form-row {
    flex-direction: column;
    gap: 0;
  }

  .support-form-card {
    padding: 24px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .app-window {
    padding: 16px;
  }

  .demo-day:nth-child(2),
  .demo-day:nth-child(6) {
    display: none;
  }

  .demo-week {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .marquee-shell {
    margin-inline: -14px;
  }

  .marquee-shell::before,
  .marquee-shell::after {
    width: 14px;
  }

  .marquee-viewport {
    padding-inline: 14px;
  }
}

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

  .button,
  .blog-card,
  .article-index a,
  .support-card,
  .language-chevron {
    transition: none;
  }

  .marquee-track {
    transform: none;
    animation: none;
    will-change: auto;
  }

  .feature-card[aria-hidden="true"] {
    display: none;
  }
}
