:root {
  color-scheme: light;
  --color-page: #f4fffb;
  --color-surface: #ffffff;
  --color-panel: #ebfbf7;
  --color-ink: #342d4f;
  --color-muted: #687382;
  --color-soft: #a8eee7;
  --color-teal: #15bfae;
  --color-teal-dark: #058f83;
  --color-pink: #ff6d9c;
  --color-sky: #eaf9ff;
  --color-line: #dceeea;
  --shadow-card: 0 18px 50px rgba(52, 45, 79, 0.1);
  --shadow-phone: 0 28px 80px rgba(52, 45, 79, 0.2);
  --radius-card: 8px;
  --radius-phone: 30px;
  --max-width: 1180px;
  --header-height: 76px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible {
  outline: 3px solid rgba(21, 191, 174, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 40;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--color-ink);
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(244, 255, 251, 0.9);
  border-bottom: 1px solid rgba(220, 238, 234, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(21, 191, 174, 0.18);
}

.brand__name {
  color: var(--color-teal);
  font-size: 1.2rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-link {
  display: inline-block;
  border-radius: 8px;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-teal-dark);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(64px, 8vw, 108px) max(20px, calc((100vw - var(--max-width)) / 2)) clamp(86px, 9vw, 118px);
  isolation: isolate;
  background: var(--color-page);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
}

.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bubble {
  position: absolute;
  width: clamp(84px, 12vw, 172px);
  opacity: 0.82;
  filter: drop-shadow(0 10px 18px rgba(21, 191, 174, 0.18));
}

.hero__bubble--one {
  left: max(18px, calc((100vw - var(--max-width)) / 2 + 22px));
  top: 12%;
  width: clamp(92px, 10.4vw, 148px);
}

.hero__bubble--two {
  left: max(160px, calc((100vw - var(--max-width)) / 2 + 360px));
  top: 9%;
  width: clamp(64px, 8vw, 116px);
}

.hero__bubble--three {
  left: max(30px, calc((100vw - var(--max-width)) / 2 + 92px));
  bottom: 15%;
  width: clamp(68px, 9.2vw, 132px);
}

.hero__bubble--four {
  right: max(22px, calc((100vw - var(--max-width)) / 2 + 32px));
  top: 11%;
  width: clamp(84px, 12vw, 168px);
}

.hero__bubble--five {
  right: max(150px, calc((100vw - var(--max-width)) / 2 + 360px));
  bottom: 12%;
  width: clamp(60px, 8.4vw, 120px);
}

.hero__bubble--six {
  right: max(36px, calc((100vw - var(--max-width)) / 2 + 118px));
  bottom: 30%;
  width: clamp(48px, 6.6vw, 92px);
}

.hero__brand-art {
  position: absolute;
  right: min(5vw, 72px);
  top: 50%;
  z-index: 0;
  width: min(40vw, 510px);
  border-radius: 50px;
  transform: translateY(-50%);
  box-shadow: 0 28px 80px rgba(21, 191, 174, 0.12);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-left: -0.06em;
  margin-bottom: 4px;
  color: var(--color-teal);
  font-size: clamp(5rem, 13vw, 10.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 0;
  color: var(--color-ink);
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--color-ink);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__lede {
  max-width: 430px;
  margin-bottom: 18px;
  color: var(--color-ink);
  font-size: clamp(1.22rem, 2.5vw, 1.72rem);
  font-weight: 850;
}

.hero__copy {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--color-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.hero__screens {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__phone {
  position: absolute;
  width: min(24vw, 245px);
  min-width: 185px;
  border-radius: var(--radius-phone);
  background: #ffffff;
  box-shadow: var(--shadow-phone);
}

.hero__phone--login {
  right: max(26px, calc((100vw - var(--max-width)) / 2 + 330px));
  top: 12%;
  transform: rotate(-5deg);
}

.hero__phone--chat {
  right: max(18px, calc((100vw - var(--max-width)) / 2 + 96px));
  top: 16%;
  transform: rotate(4deg);
}

.hero__phone--companion {
  right: max(-88px, calc((100vw - var(--max-width)) / 2 - 112px));
  top: 30%;
  transform: rotate(10deg);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(52, 45, 79, 0.12);
  border-radius: 8px;
  background: var(--color-ink);
  color: #ffffff;
  padding: 10px 15px;
  box-shadow: 0 16px 34px rgba(52, 45, 79, 0.16);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.05;
}

.store-badge:hover {
  background: #211b38;
}

.store-badge--disabled {
  cursor: default;
  opacity: 0.82;
}

.store-badge--disabled:hover {
  background: var(--color-ink);
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.store-badge small {
  display: block;
  margin-bottom: 3px;
  font-size: 0.68rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.76);
}

.legal-main {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  justify-content: center;
  padding: clamp(42px, 7vw, 78px) max(18px, calc((100vw - var(--max-width)) / 2));
  background: var(--color-page);
}

.legal-page {
  width: min(900px, 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 5vw, 56px);
}

.legal-page--short {
  width: min(760px, 100%);
}

.legal-header {
  margin-bottom: clamp(30px, 5vw, 48px);
}

.legal-header h1 {
  margin-left: 0;
  margin-bottom: 12px;
  color: var(--color-ink);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.96;
}

.legal-header p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.08rem;
  font-weight: 800;
}

.legal-content {
  color: var(--color-ink);
}

.legal-content section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--color-line);
}

.legal-content h2 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.14;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
}

.legal-content p,
.legal-content li {
  color: #4f5967;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li+li {
  margin-top: 6px;
}

.legal-content a {
  color: var(--color-teal-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.deletion-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.deletion-form label {
  display: grid;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 850;
}

.deletion-form input[type="email"],
.deletion-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-ink);
  font: inherit;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(52, 45, 79, 0.05);
}

.deletion-form input[type="email"]:focus,
.deletion-form textarea:focus {
  border-color: rgba(21, 191, 174, 0.62);
  outline: 3px solid rgba(21, 191, 174, 0.18);
}

.deletion-form textarea {
  resize: vertical;
}

.deletion-form__checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: #4f5967;
  font-weight: 750;
}

.deletion-form__checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-teal);
  flex: 0 0 auto;
}

.deletion-form button {
  width: fit-content;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--color-ink);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 18px;
  box-shadow: none;
}

.deletion-form button:hover {
  background: #211b38;
}

.deletion-form button:disabled {
  background: rgba(52, 45, 79, 0.34);
  cursor: not-allowed;
  opacity: 0.72;
}

.deletion-form button:disabled:hover {
  background: rgba(52, 45, 79, 0.34);
}

.deletion-form button:focus-visible {
  outline: 3px solid rgba(21, 191, 174, 0.42);
  outline-offset: 4px;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--color-muted);
  font-weight: 800;
}

.form-status[data-type="pending"] {
  color: var(--color-muted);
}

.form-status[data-type="success"] {
  color: var(--color-teal-dark);
}

.form-status[data-type="error"] {
  color: #bf3153;
}

@media (max-width: 1080px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
    align-items: stretch;
    padding-top: 68px;
    background: var(--color-page);
  }

  .hero__brand-art {
    right: -72px;
    top: 48px;
    width: 330px;
    transform: none;
  }

  .hero__screens {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    order: 2;
    width: min(720px, 100%);
    margin: 42px auto 0;
  }

  .hero {
    flex-direction: column;
  }

  .hero__phone {
    position: static;
    width: 100%;
    min-width: 0;
    transform: none;
  }

}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    font-size: 0.88rem;
  }

  .brand__name {
    font-size: 1rem;
  }

  .hero {
    padding-inline: 18px;
    background: var(--color-page);
  }

  .hero__brand-art {
    display: none;
  }

  .hero__bubble {
    opacity: 0.72;
  }

  .hero__bubble--two,
  .hero__bubble--five {
    display: none;
  }

  h1 {
    font-size: clamp(4.6rem, 24vw, 6.6rem);
  }

  h2 {
    max-width: 14ch;
  }

  .hero__lede {
    font-size: 1.18rem;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .hero__screens {
    height: clamp(196px, 34svh, 260px);
    overflow: hidden;
  }

  .hero__phone {
    border-radius: 22px;
  }

}

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

  .hero__screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(360px, 100%);
  }

  .hero__phone--companion {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
