:root {
  --deep-ocean: #0a1e3f;
  --pool-blue: #0077c8;
  --aqua-sky: #00b5e2;
  --sky-blue: #8ed7ff;
  --sunrise-peach: #ffb79a;
  --coral-glow: #ff7a6e;
  --sunrise-gold: #ffc24d;
  --sand-mist: #f3e6ce;
  --deep-charcoal: #22262f;
  --soft-white: #fafaf8;
  --line: rgba(10, 30, 63, 0.14);
  --muted: rgba(34, 38, 47, 0.72);
  --shadow: 0 24px 70px rgba(10, 30, 63, 0.12);
  --gradient: linear-gradient(90deg, #0077c8 0%, #00b5e2 35%, #ffb79a 70%, #ffc24d 100%);
  font-family: Sora, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--deep-ocean);
  background: var(--soft-white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(250, 250, 248, 1) 0%, rgba(243, 230, 206, 0.32) 100%);
  color: var(--deep-ocean);
}

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

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

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

button,
a,
input,
textarea {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 119, 200, 0.38);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(250, 250, 248, 0.9);
  border-bottom: 1px solid rgba(10, 30, 63, 0.1);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 178px;
  height: auto;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(10, 30, 63, 0.76);
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover {
  color: var(--pool-blue);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta {
  color: #ffffff;
  background: var(--deep-ocean);
  box-shadow: 0 16px 36px rgba(10, 30, 63, 0.18);
}

.button.primary {
  color: #ffffff;
  background: var(--deep-ocean);
  box-shadow: 0 18px 46px rgba(10, 30, 63, 0.24);
}

.button.secondary {
  color: var(--deep-ocean);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(10, 30, 63, 0.18);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 74px));
  overflow: hidden;
  background: var(--soft-white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(250, 250, 248, 1) 0%,
      rgba(250, 250, 248, 0.98) 30%,
      rgba(250, 250, 248, 0.88) 46%,
      rgba(250, 250, 248, 0.38) 64%,
      rgba(250, 250, 248, 0) 100%
    ),
    linear-gradient(180deg, rgba(250, 250, 248, 0) 74%, rgba(250, 250, 248, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 118px 0 82px;
}

.hero-logo {
  width: min(650px, 100%);
  height: auto;
  margin: 0 0 22px;
}

.hero-tagline {
  margin: 0 0 14px 86px;
  color: var(--deep-ocean);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--pool-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  width: 86px;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient);
}

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

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--deep-ocean);
  font-size: 84px;
  line-height: 0.98;
  font-weight: 700;
}

h1 span,
.brand-gradient {
  background: linear-gradient(90deg, #ff7a6e 0%, #ffb79a 45%, #ffc24d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 610px;
  margin: 0 0 34px 86px;
  color: rgba(34, 38, 47, 0.78);
  font-family: Inter, Sora, system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 46px 86px;
}

.section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.52fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

h2 {
  margin-bottom: 0;
  color: var(--deep-ocean);
  font-size: 54px;
  line-height: 1.05;
  font-weight: 700;
}

.section-heading p,
.section-copy,
.architecture-copy p,
.safety-panel p,
.cta-layout p {
  color: var(--muted);
  font-family: Inter, Sora, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.mode-card {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.mode-card:nth-child(even) .mode-image {
  order: 2;
}

.mode-image {
  min-height: 560px;
  height: auto;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(142, 215, 255, 0.14), rgba(243, 230, 206, 0.2)),
    #ffffff;
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.mode-card:nth-child(1) .mode-image img,
.mode-card:nth-child(2) .mode-image img,
.mode-card:nth-child(3) .mode-image img,
.mode-card:nth-child(4) .mode-image img {
  object-position: center center;
}

.mode-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.mode-body > p:first-child {
  margin-bottom: 10px;
  color: var(--pool-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.mode-body h3 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1;
}

.mode-body span {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 18px;
  background: var(--gradient);
}

.mode-body > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, Sora, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

.product-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(243, 230, 206, 0.24)),
    var(--soft-white);
}

.control-section {
  padding-top: 0;
  background: linear-gradient(180deg, rgba(243, 230, 206, 0.24), rgba(255, 255, 255, 0.72));
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(142, 215, 255, 0.16) 54%, rgba(255, 183, 154, 0.16)),
    #ffffff;
  box-shadow: var(--shadow);
}

.control-copy h2 {
  margin-bottom: 24px;
}

.control-copy p {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: Inter, Sora, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.control-features {
  display: grid;
  gap: 12px;
}

.control-features span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 16px;
  background: rgba(250, 250, 248, 0.72);
  color: rgba(10, 30, 63, 0.82);
  font-weight: 700;
}

.control-features svg {
  width: 22px;
  height: 22px;
  color: var(--pool-blue);
}

.device-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 28px 0 10px 44px;
  border-radius: 28px;
  background: var(--gradient);
  opacity: 0.16;
  filter: blur(12px);
}

.tablet-device,
.phone-device {
  position: absolute;
  border: 1px solid rgba(10, 30, 63, 0.16);
  background: #071935;
  box-shadow: 0 28px 70px rgba(10, 30, 63, 0.24);
}

.tablet-device {
  left: 0;
  bottom: 18px;
  width: min(470px, 86%);
  min-height: 300px;
  padding: 26px;
  border-radius: 28px;
  color: #ffffff;
}

.device-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.device-topline strong {
  color: var(--sunrise-gold);
}

.depth-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.depth-panel span,
.phone-device span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.depth-panel strong {
  display: block;
  margin-bottom: 18px;
  font-size: 42px;
}

.depth-panel div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.depth-panel i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

.mode-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.mode-pills span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.mode-pills .is-active {
  color: var(--deep-ocean);
  background: var(--sunrise-gold);
}

.phone-device {
  right: 16px;
  top: 4px;
  width: 170px;
  min-height: 330px;
  padding: 36px 16px 18px;
  border-radius: 34px;
  color: #ffffff;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 58px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(-50%);
}

.phone-device strong {
  display: block;
  margin-bottom: 24px;
  font-size: 24px;
}

.phone-water {
  position: relative;
  height: 108px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-water i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(142, 215, 255, 0.72), rgba(0, 119, 200, 0.9));
}

.phone-device button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--deep-ocean);
  font-size: 12px;
  font-weight: 800;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.product-layout h2 {
  margin-bottom: 26px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step-card {
  position: relative;
  min-height: 154px;
  padding: 28px 30px 28px 104px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 48px rgba(10, 30, 63, 0.08);
}

.step-card span {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--deep-ocean);
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, Sora, system-ui, sans-serif;
  line-height: 1.7;
}

.architecture-section {
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(10, 30, 63, 0.98), rgba(10, 30, 63, 0.84) 54%, rgba(0, 119, 200, 0.78)),
    var(--deep-ocean);
}

.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.architecture-section .section-label,
.architecture-section h2,
.architecture-section p {
  color: #ffffff;
}

.architecture-copy p {
  color: rgba(255, 255, 255, 0.78);
}

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

.architecture-list span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: stretch;
}

.safety-panel {
  padding: 42px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(142, 215, 255, 0.14)),
    #ffffff;
  box-shadow: var(--shadow);
}

.safety-panel h2 {
  margin-bottom: 24px;
}

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

.feature-card {
  min-height: 236px;
  padding: 28px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 52px rgba(10, 30, 63, 0.08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--pool-blue);
  background: rgba(0, 181, 226, 0.1);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, Sora, system-ui, sans-serif;
  line-height: 1.7;
}

.care-section {
  background: linear-gradient(180deg, rgba(243, 230, 206, 0.24), rgba(255, 255, 255, 0.78));
}

.care-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: start;
}

.care-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.care-item {
  min-height: 184px;
  padding: 22px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 42px rgba(10, 30, 63, 0.07);
}

.care-item p {
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.45;
}

.cta-section {
  padding-bottom: 128px;
}

.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 420px;
  gap: 52px;
  align-items: center;
  padding: 56px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 183, 154, 0.2) 50%, rgba(255, 194, 77, 0.2) 100%),
    #ffffff;
  box-shadow: var(--shadow);
}

.cta-layout h2 {
  margin-bottom: 24px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(10, 30, 63, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(10, 30, 63, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(250, 250, 248, 0.82);
  color: var(--deep-ocean);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 119, 200, 0.42);
  background: #ffffff;
}

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

.form-status {
  min-height: 40px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(10, 30, 63, 0.12);
  border-radius: 14px;
  background: rgba(250, 250, 248, 0.68);
  color: rgba(34, 38, 47, 0.72);
  font-family: Inter, Sora, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.form-status:empty {
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.contact-form[data-status="error"] .form-status {
  border-color: rgba(185, 28, 28, 0.2);
  background: rgba(254, 242, 242, 0.82);
  color: #9f1d1d;
}

.contact-form[data-status="success"] .form-status {
  border-color: rgba(0, 119, 200, 0.24);
  background: rgba(142, 215, 255, 0.16);
  color: var(--deep-ocean);
}

.contact-form .button {
  width: 100%;
  margin-top: 6px;
}

.contact-form .button:disabled {
  cursor: default;
  opacity: 0.82;
  transform: none;
}

.contact-form.is-submitted input,
.contact-form.is-submitted textarea {
  border-color: rgba(0, 119, 200, 0.28);
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #06142a;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.site-footer img {
  width: 160px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.site-footer p {
  margin: 12px 0 0;
  font-family: Inter, Sora, system-ui, sans-serif;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--sky-blue);
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

@media (max-width: 1180px) {
  .site-header {
    padding-inline: 24px;
  }

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

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand img {
    width: 158px;
  }

  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 6px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid rgba(10, 30, 63, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--deep-ocean);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(10, 30, 63, 0.12);
    border-radius: 20px;
    background: rgba(250, 250, 248, 0.98);
    box-shadow: 0 18px 54px rgba(10, 30, 63, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(0, 181, 226, 0.08);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-media {
    position: relative;
    order: 2;
    height: 360px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(250, 250, 248, 0.96), rgba(250, 250, 248, 0.76) 30%, rgba(250, 250, 248, 0.02) 100%),
      linear-gradient(90deg, rgba(250, 250, 248, 0.2), rgba(250, 250, 248, 0));
  }

  .hero-content {
    order: 1;
    padding: 64px 0 40px;
  }

  .hero-logo {
    width: min(560px, 100%);
  }

  .hero-tagline,
  .hero-copy,
  .hero-actions {
    margin-left: 0;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 42px;
  }

  .section {
    padding: 86px 0;
  }

  .section-heading,
  .product-layout,
  .control-layout,
  .architecture-layout,
  .safety-layout,
  .care-layout,
  .cta-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .mode-card {
    grid-template-columns: 1fr;
  }

  .mode-card:nth-child(even) .mode-image {
    order: 0;
  }

  .mode-image {
    min-height: 620px;
  }

  .mode-body {
    padding: 36px;
  }

  .control-layout {
    padding: 36px;
  }

  .device-stage {
    min-height: 430px;
  }

  .tablet-device {
    width: min(470px, 92%);
  }

  .section-heading .section-label {
    margin-bottom: 0;
  }

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

  .cta-layout {
    padding: 36px;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand img {
    width: 144px;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero-logo {
    width: 100%;
    margin-bottom: 18px;
  }

  .hero-tagline {
    font-size: 13px;
  }

  .section-label {
    font-size: 12px;
  }

  .section-label::after {
    width: 52px;
  }

  h1 {
    font-size: 46px;
    line-height: 1.04;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .mode-grid,
  .architecture-list,
  .care-list {
    grid-template-columns: 1fr;
  }

  .mode-image {
    min-height: 450px;
    padding: 12px;
  }

  .mode-body {
    padding: 26px;
  }

  .mode-body h3 {
    font-size: 36px;
  }

  .control-layout {
    padding: 24px;
  }

  .device-stage {
    min-height: 560px;
    align-items: start;
  }

  .device-stage::before {
    inset: 70px 10px 24px;
  }

  .tablet-device,
  .phone-device {
    position: relative;
  }

  .tablet-device {
    left: auto;
    bottom: auto;
    width: 100%;
  }

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

  .phone-device {
    right: auto;
    top: auto;
    width: 190px;
    margin-top: -18px;
    justify-self: center;
  }

  .step-card {
    padding: 92px 22px 24px;
  }

  .step-card span {
    left: 22px;
  }

  .safety-panel,
  .feature-card,
  .cta-layout {
    border-radius: 22px;
  }

  .safety-panel,
  .feature-card,
  .cta-layout {
    padding: 24px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

/* CAPTCHA stays readable and wraps on narrow phones. */
.captcha-block { display: grid; gap: 0.65rem; min-width: 0; }
.captcha-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.captcha-image { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #c9dbe8; }
.captcha-image[hidden] { display: none; }
.contact-form .captcha-refresh { width: auto; margin: 0; }
.captcha-block p, .contact-alternative { margin: 0; font-size: 0.85rem; line-height: 1.5; }
.contact-alternative a { overflow-wrap: anywhere; }
#contact-captcha { max-width: 15rem; text-transform: uppercase; letter-spacing: 0.16em; }
