:root {
  --bg: #e7ebf1;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --text: #11161d;
  --muted: #5d6774;
  --line: #d6dee9;
  --line-strong: #c6d1df;
  --brand: #3da7af;
  --brand-strong: #2d8f98;
  --brand-soft: rgba(61, 167, 175, 0.16);
  --danger: #ea675d;
  --warn: #e8b53e;
  --ok: #5bbc55;
  --unknown: #8f949d;
  --radius-xl: 1.8rem;
  --radius-lg: 1.1rem;
  --radius-md: 0.9rem;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 30px rgba(22, 34, 49, 0.1);
  --shadow-deep: 0 24px 60px rgba(18, 27, 39, 0.15);
  --phone-hero-w: clamp(9.1rem, 12.6vw, 11.3rem);
  --phone-single-w: clamp(8.6rem, 11.8vw, 10.7rem);
  --phone-duo-w: clamp(7.7rem, 9.8vw, 9.1rem);
  --phone-trio-w: clamp(7rem, 8.6vw, 8.2rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(70rem 42rem at 88% -8%, rgba(61, 167, 175, 0.24), rgba(61, 167, 175, 0) 62%),
    radial-gradient(54rem 34rem at -4% 8%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 66%),
    linear-gradient(180deg, #f2f5f9 0%, var(--bg) 42%, #dfe5ed 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(45, 143, 152, 0.42);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 90;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1f2d3e;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.8rem;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

.bg-shape-a {
  width: 36rem;
  height: 36rem;
  top: -14rem;
  right: -9rem;
  background: radial-gradient(circle, rgba(61, 167, 175, 0.23) 0%, rgba(61, 167, 175, 0) 70%);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.bg-shape-b {
  width: 30rem;
  height: 30rem;
  bottom: -11rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0) 70%);
  animation: drift-b 18s ease-in-out infinite alternate;
}

.topbar {
  position: sticky;
  top: 0.7rem;
  z-index: 24;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 1.2rem auto 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  background: rgba(249, 251, 254, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(34, 47, 62, 0.09);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.wordmark {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wordmark-sub {
  margin: 0;
  color: #647181;
  font-size: 0.74rem;
  font-weight: 600;
}

.top-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.top-links a {
  color: #4c5b6c;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.top-links a:hover {
  text-decoration: underline;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #405165;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.store-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(33, 46, 62, 0.16);
  border-color: #b8c5d6;
}

.page {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 1.5rem auto 2.2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.78rem;
  border: 1px solid #c4dce0;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: #3f747b;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0.9rem 0 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(2.05rem, 4.1vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0.95rem 0 0;
  max-width: 36rem;
  color: #4f5d6d;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.48;
}

.hero-bullets {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.42rem;
  color: #3f4b5b;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.38;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.47rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7ad9df, var(--brand-strong));
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.66rem;
}

.hero-highlights {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.66rem;
}

.hero-highlight-card {
  border: 1px solid #d8e1ec;
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 251, 255, 0.92)
  );
  box-shadow: 0 8px 20px rgba(24, 35, 50, 0.08);
  padding: 0.7rem 0.72rem;
}

.hero-highlight-card h3 {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.2;
}

.hero-highlight-card p {
  margin: 0.34rem 0 0;
  color: #4f6072;
  font-size: 0.82rem;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.btn-primary {
  min-height: 3.05rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.92rem;
  border: 1px solid transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 28px rgba(45, 143, 152, 0.34);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 18px 34px rgba(45, 143, 152, 0.38);
}

.hero-note {
  margin: 0;
  color: #566172;
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-showcase {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-showcase img {
  display: block;
  width: var(--phone-hero-w);
  max-width: 100%;
  max-height: 62.4vh;
  height: auto;
  margin: 0 auto;
  border: 1px solid #ced8e5;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: var(--shadow-deep);
}

.phone-showcase figcaption {
  margin-top: 0.58rem;
  text-align: center;
  color: #536275;
  font-size: 0.85rem;
  font-weight: 700;
}

.section {
  margin-top: 2.7rem;
}

.section-head {
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0;
  color: #467e86;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0.5rem 0 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.problem-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(247, 250, 253, 0.96)
  );
  box-shadow: var(--shadow-soft);
  padding: 1.05rem 1.03rem;
}

.problem-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.2;
}

.problem-card p {
  margin: 0.58rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.severity-card {
  margin-top: 1rem;
  border: 1px solid #bfd5d9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(61, 167, 175, 0.14), rgba(61, 167, 175, 0) 52%),
    #f5fbfc;
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.12rem;
}

.severity-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.severity-card p {
  margin: 0.44rem 0 0;
  color: #516172;
  font-size: 0.92rem;
  line-height: 1.4;
}

.severity-list {
  margin: 0.76rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.severity-list li {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  color: #425063;
  font-size: 0.9rem;
  font-weight: 600;
}

.dot {
  width: 0.66rem;
  height: 0.66rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-red {
  background: var(--danger);
}

.dot-yellow {
  background: var(--warn);
}

.dot-green {
  background: var(--ok);
}

.dot-gray {
  background: var(--unknown);
}

.workflow {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.94), rgba(244, 248, 252, 0.94));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  overflow: hidden;
}

.workflow-step {
  border-top: 1px solid #dce5ef;
  padding-top: 1rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.workflow-step:first-of-type {
  border-top: 0;
  margin-top: 0.2rem;
  padding-top: 0;
}

.step-label {
  margin: 0;
  color: #4a7d84;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-copy h3 {
  margin: 0.42rem 0 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.step-copy p {
  margin: 0.52rem 0 0;
  color: #4f5f71;
  line-height: 1.45;
  font-size: 0.95rem;
}

.step-media {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-media.one {
  justify-content: center;
}

.step-media.two {
  justify-content: center;
}

.step-media.three {
  justify-content: center;
}

.phone-card {
  margin: 0;
}

.step-media.one .phone-card {
  width: var(--phone-single-w);
  max-width: 100%;
}

.step-media.two .phone-card {
  width: min(var(--phone-duo-w), calc(50% - 0.48rem));
  min-width: 0;
}

.step-media.three .phone-card {
  width: min(var(--phone-trio-w), calc(33.333% - 0.66rem));
  min-width: 0;
}

.phone-card img {
  display: block;
  width: 100%;
  max-height: 55.2vh;
  height: auto;
  border: 1px solid #ced8e5;
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: var(--shadow-deep);
}

.phone-card-caption {
  margin-top: 0.34rem;
  text-align: center;
  color: #546478;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.25;
}

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

.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.96));
  box-shadow: var(--shadow-soft);
  padding: 1.04rem 1rem;
}

.compare-muted {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.7), rgba(244, 248, 252, 0.7));
}

.compare-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.compare-card ul {
  margin: 0.68rem 0 0;
  padding-left: 1.1rem;
  color: #4b596b;
  line-height: 1.44;
  font-size: 0.93rem;
}

.compare-card li + li {
  margin-top: 0.38rem;
}

.analyzable {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.95), rgba(243, 247, 252, 0.95));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.analyzable-lead {
  margin: 0.56rem 0 0;
  max-width: 48rem;
  color: #4f6072;
  line-height: 1.45;
  font-size: 0.95rem;
}

.analyzable-chip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.54rem;
}

.analyzable-chip-list li {
  min-height: 1.9rem;
  padding: 0.26rem 0.76rem;
  border: 1px solid #c8d7e7;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  color: #445669;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.analyzable-media {
  margin-top: 0.95rem;
}

.safety {
  border: 1px solid #e6d6d3;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 0%, rgba(234, 103, 93, 0.14), rgba(234, 103, 93, 0) 52%),
    linear-gradient(180deg, rgba(255, 250, 250, 0.96), rgba(250, 245, 245, 0.96));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.safety-lead {
  margin: 0.56rem 0 0;
  max-width: 49rem;
  color: #5a4d53;
  line-height: 1.45;
  font-size: 0.95rem;
}

.safety-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.safety-points li {
  border: 1px solid #e3d2d0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.72rem 0.78rem 0.74rem 1.48rem;
  color: #4f4950;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.34;
  position: relative;
}

.safety-points li::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 1rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--danger);
}

.safety-media {
  margin-top: 0.95rem;
}

.cta-panel {
  margin-top: 2.5rem;
  border: 1px solid #b9dce0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% -8%, rgba(61, 167, 175, 0.2), rgba(61, 167, 175, 0) 45%),
    linear-gradient(140deg, #f8fcfd 0%, #edf7f8 100%);
  box-shadow: 0 16px 36px rgba(33, 47, 62, 0.15);
  text-align: center;
  padding: 2rem 1rem;
}

.cta-panel h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  line-height: 1.14;
}

.cta-panel p {
  margin: 0.9rem auto 1.2rem;
  max-width: 38rem;
  color: #4f6072;
  line-height: 1.46;
}

.cta-meta {
  margin: 0.9rem 0 0;
  color: #426f75;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 2.1rem auto 2.4rem;
  border-top: 1px solid #ccd6e3;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #4d596b;
}

.footer p {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer a {
  color: #406f76;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

.mobile-cta {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-1 {
  animation-delay: 0.06s;
}

.reveal-2 {
  animation-delay: 0.18s;
}

.reveal-3 {
  animation-delay: 0.28s;
}

.reveal-4 {
  animation-delay: 0.38s;
}

.reveal-5 {
  animation-delay: 0.48s;
}

.reveal-6 {
  animation-delay: 0.58s;
}

.reveal-7 {
  animation-delay: 0.68s;
}

.reveal-8 {
  animation-delay: 0.78s;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0.6rem, -0.8rem, 0);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-0.7rem, 0.7rem, 0);
  }
}

@media (max-width: 1140px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .phone-showcase {
    order: 2;
  }

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

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

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

  .step-media.one .phone-card,
  .step-media.two .phone-card {
    width: min(10.6rem, calc(50% - 0.4rem));
  }

  .step-media.three .phone-card {
    width: min(8.8rem, calc(33.333% - 0.48rem));
  }

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

  .safety-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  body {
    padding-bottom: 5rem;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .topbar,
  .page,
  .footer {
    width: calc(100% - 1.2rem);
  }

  .topbar {
    top: 0.45rem;
    margin-top: 0.6rem;
    padding: 0.52rem 0.62rem;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .top-links {
    display: none;
  }

  .wordmark-sub {
    display: none;
  }

  .store-link {
    min-height: 2rem;
    font-size: 0.81rem;
    padding: 0.3rem 0.74rem;
  }

  .section {
    margin-top: 2rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

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

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

  .step-media {
    gap: 0.75rem;
  }

  .step-media.one .phone-card,
  .step-media.two .phone-card {
    width: min(9.8rem, 62.4vw);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .step-media.three .phone-card {
    width: min(8.5rem, 55.2vw);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .phone-showcase img {
    width: min(10.3rem, 64.8vw);
  }

  .cta-panel {
    margin-top: 2rem;
    padding: 1.6rem 0.9rem;
  }

  .footer {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-cta {
    position: fixed;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.58rem;
    z-index: 34;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(45, 143, 152, 0.34);
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(45, 143, 152, 0.36);
  }
}

@media (max-width: 480px) {
  .step-media.one .phone-card,
  .step-media.two .phone-card {
    width: min(9.1rem, 62.4vw);
  }

  .step-media.three .phone-card {
    width: min(7.9rem, 57.6vw);
  }

  .phone-showcase img {
    width: min(9.6rem, 64.8vw);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .bg-shape-a,
  .bg-shape-b,
  .store-link,
  .btn {
    animation: none;
    transition: none;
  }
}
