/* Responsive layer for phones, tablets, safe areas and landscape. */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

.container {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.hero__grid > *,
.feature-card > *,
.feature-card__copy,
.download-card > *,
.mock-row > span {
  min-width: 0;
}

.feature-card p,
.download-card p,
.mock-row small,
.faq__list p {
  overflow-wrap: anywhere;
}

.button,
.menu-button,
.showcase-tab {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.showcase__tabs {
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.showcase__tabs::-webkit-scrollbar {
  display: none;
}

.showcase-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.privacy-note[hidden] {
  display: none !important;
}

.privacy-note {
  position: fixed;
  left: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 250;
  width: min(500px, calc(100vw - 36px));
  color: #fff;
}

.privacy-note__card {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 36px);
  padding: 20px;
  border: 1px solid rgba(113, 181, 255, .24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(25, 190, 241, .2), transparent 38%),
    linear-gradient(155deg, rgba(12, 31, 55, .96), rgba(5, 14, 27, .92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  overscroll-behavior: contain;
}

.privacy-note__card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 45%);
}

.privacy-note__card > * {
  position: relative;
  z-index: 1;
}

.privacy-note__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #68e6a0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.privacy-note__eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(57, 215, 124, .1), 0 0 18px rgba(57, 215, 124, .5);
}

.privacy-note__title {
  margin: 0 0 9px;
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.privacy-note__text {
  color: rgba(225, 236, 250, .84);
  font-size: 14px;
  line-height: 1.55;
}

.privacy-note__buttons {
  display: grid;
  gap: 10px;
  margin-top: 17px;
}

.privacy-note__button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.privacy-note__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.privacy-note__button:hover {
  transform: translateY(-1px);
}

.privacy-note__button--outline {
  border-color: rgba(255, 255, 255, .16);
}

.privacy-note__button--secondary {
  color: #9fd0ff;
  background: rgba(78, 157, 255, .1);
}

.privacy-note__button--accent {
  background: linear-gradient(135deg, #2878ff, #0bbce8);
  box-shadow: 0 12px 30px rgba(29, 118, 255, .26);
}

.privacy-note__button:focus-visible,
.privacy-note__link:focus-visible,
.footer__cookie-button:focus-visible,
.privacy-note__option input:focus-visible {
  outline: 3px solid rgba(82, 165, 255, .55);
  outline-offset: 3px;
}

.privacy-note__config[hidden] {
  display: none !important;
}

.privacy-note__config {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.privacy-note__config-title {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 800;
}

.privacy-note__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
}

.privacy-note__option--locked {
  cursor: default;
}

.privacy-note__option input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: #2f91ff;
}

.privacy-note__option strong,
.privacy-note__option small {
  display: block;
}

.privacy-note__option strong {
  color: #fff;
  font-size: 13px;
}

.privacy-note__option small {
  margin-top: 3px;
  color: rgba(225, 236, 250, .7);
  font-size: 11px;
  line-height: 1.4;
}

.privacy-note__policies {
  margin-top: 13px;
}

.privacy-note__link {
  color: #91c3ff;
  font-size: 12px;
  font-weight: 750;
}

.footer__cookie-button {
  padding: 0;
  border: 0;
  color: #91c3ff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer__cookie-button:hover {
  color: #c7e1ff;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 72px 0 62px;
  }

  .hero__grid {
    gap: 30px;
  }

  .hero__visual {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
  }

  .halo {
    max-width: 100%;
    max-height: 100%;
  }

  .feature-card--wide,
  .privacy__grid {
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 88px 0;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__visual {
    min-height: 500px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .header {
    height: 68px;
  }

  .mobile-menu {
    top: 100%;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .menu-button {
    width: 46px;
    height: 46px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding: 46px 0 48px;
  }

  .hero__grid {
    gap: 18px;
  }

  .hero__lead {
    line-height: 1.52;
    margin-top: 22px;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__visual {
    min-height: 430px;
  }

  .halo {
    width: min(520px, 100%);
    height: min(520px, 100%);
    aspect-ratio: 1;
  }

  .app-window {
    width: min(100%, 430px);
    transform: none;
    border-radius: 20px;
  }

  .app-window img {
    height: auto;
    aspect-ratio: 1784 / 1924;
    object-fit: contain;
    object-position: center top;
  }

  .hero__icon {
    width: 76px;
    height: 76px;
    left: max(0px, calc(50% - 226px));
    top: 1%;
    border-radius: 20px;
  }

  .float-card {
    padding: 9px 11px;
    border-radius: 14px;
  }

  .float-card > span {
    width: 32px;
    height: 32px;
  }

  .float-card--left {
    left: max(1%, calc(50% - 226px));
    bottom: 1%;
  }

  .trust-strip__inner {
    min-height: 0;
    display: grid;
    gap: 4px;
    padding: 17px 0;
  }

  .trust-strip i {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card--wide {
    gap: 26px;
  }

  .mini-tags,
  .wave {
    position: static;
    inset: auto;
    margin-top: 25px;
  }

  .wave {
    width: 100%;
  }

  .library-mock {
    min-width: 0;
  }

  .showcase__stage {
    padding: 10px;
    border-radius: 24px;
  }

  .showcase__tabs {
    justify-content: flex-start;
    padding: 2px 1px 12px;
    scroll-snap-type: x proximity;
  }

  .showcase-tab {
    min-height: 44px;
    scroll-snap-align: start;
  }

  .showcase__screen {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 17px;
  }

  .showcase__screen[data-screen="ringer"] {
    aspect-ratio: 4 / 5;
  }

  .privacy__visual {
    min-height: 330px;
    overflow: hidden;
  }

  .privacy__orb {
    width: min(300px, calc(100vw - 36px));
  }

  .privacy__orb img {
    width: 122px;
    border-radius: 28px;
  }

  .download__box {
    padding: 30px 16px;
    border-radius: 26px;
  }

  .download-grid {
    gap: 12px;
    margin-top: 28px;
  }

  .download-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 72px;
  }

  .header {
    height: 64px;
  }

  .header__inner {
    gap: 14px;
  }

  .brand {
    gap: 9px;
    font-size: 18px;
  }

  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .status {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 50px);
    line-height: 1.01;
    letter-spacing: -.055em;
  }

  h2 {
    font-size: clamp(34px, 10vw, 39px);
  }

  .hero {
    padding: 38px 0 40px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .button {
    min-height: 52px;
  }

  .hero__proof {
    gap: 6px 14px;
  }

  .hero__proof span {
    width: auto;
  }

  .hero__visual {
    min-height: min(106vw, 420px);
    margin-top: 8px;
  }

  .app-window__bar {
    height: 32px;
    padding-inline: 11px;
  }

  .hero__icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    left: 0;
    top: 0;
  }

  .float-card--left {
    left: 6px;
    bottom: 0;
    transform: scale(.88);
    transform-origin: left bottom;
  }

  .feature-card {
    padding: 22px;
    border-radius: 22px;
  }

  .feature-card h3 {
    margin-top: 18px;
    font-size: 22px;
  }

  .library-mock {
    padding: 14px;
  }

  .mock-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px;
  }

  .mock-row em {
    grid-column: 2;
    justify-self: start;
  }

  .showcase__stage {
    margin-inline: -2px;
  }

  .showcase__tabs {
    gap: 7px;
  }

  .showcase-tab {
    padding: 9px 13px;
  }

  .showcase__screen {
    border-radius: 14px;
  }

  .privacy__visual {
    min-height: 300px;
  }

  .privacy__orb {
    width: min(270px, calc(100vw - 34px));
  }

  .privacy__orb img {
    width: 108px;
  }

  .privacy__copy > p {
    font-size: 16px;
  }

  .privacy-list {
    margin-top: 27px;
  }

  .privacy-list > div {
    align-items: flex-start;
  }

  .steps__grid h3 {
    margin-top: 24px;
  }

  .download__box {
    padding: 28px 14px;
  }

  .download-card {
    grid-template-columns: 1fr;
    padding: 19px 16px;
    text-align: center;
  }

  .download-card .chip-icon {
    margin-inline: auto;
  }

  .download-button {
    grid-column: 1;
  }

  .faq__list summary {
    font-size: 16px;
  }

  .footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .footer__inner {
    gap: 14px;
  }

  .toast {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    text-align: center;
  }

  .privacy-note {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }

  .privacy-note__card {
    padding: 17px 16px 16px;
    border-radius: 22px;
  }

  .privacy-note__title {
    font-size: 20px;
  }

  .privacy-note__text {
    font-size: 13px;
  }

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

  .privacy-note__button {
    width: 100%;
  }

  .privacy-note__link {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-note__button {
    transition: none;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 18px), var(--container));
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 33px;
  }

  .button {
    padding-inline: 16px;
  }

  .hero__visual {
    min-height: 342px;
  }

  .hero__icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  .float-card--left {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .feature-card {
    padding: 20px;
  }

  .library-mock {
    padding: 11px;
  }

  .mock-app {
    width: 33px;
    height: 33px;
  }

  .showcase__stage {
    padding: 8px;
  }

  .showcase__tabs {
    gap: 5px;
  }

  .showcase-tab {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .download__box {
    padding: 25px 10px;
  }

  .download-card {
    padding: 17px 13px;
  }

  .download-button {
    padding-inline: 12px;
    font-size: 14px;
  }

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

  .footer__inner p {
    order: 0;
  }
}

@media (min-width: 650px) and (max-width: 980px) and (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 46px 0 54px;
  }

  .hero__grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
  }

  .hero__copy {
    text-align: left;
  }

  .status,
  .hero__lead {
    margin-inline: 0;
  }

  .hero__actions,
  .hero__proof {
    justify-content: flex-start;
  }

  .hero__visual {
    min-height: 350px;
  }

  .halo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .app-window img {
    height: 260px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 18%;
  }

  .hero__icon {
    width: 68px;
    height: 68px;
  }

  .float-card {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 6.2vw, 54px);
  }
}
