/* Baseline */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-top: #16181c;
  --bg-bottom: #050607;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent: #ff75b9;
  --accent-soft: rgba(225, 245, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-large: 32px;
  --radius-medium: 20px;
  --selection: #5e213b;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

.landing {
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-scrollbars::-webkit-scrollbar {
  display: none;
}

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

.shell {
  width: min(820px, 100vw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.75rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 3.5rem);
}

.hero-stack {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
}

.device-frame {
  position: relative;
  width: min(360px, 85vw);
  margin: 0 auto;
  aspect-ratio: 9 / 17.9;
  border-radius: 55px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.dynamic-island {
  position: absolute;
  top: clamp(1.6rem, 4vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: clamp(1.5rem, 3.2vw, 1.9rem);
  border-radius: 999px;
  background: #000;
}

.video-wrap {
  width: 100%;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: #000;
}

.app-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background-image: url("icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-bottom: 1.5rem;
}

.policy-header {
  width: min(660px, 88vw);
  margin: 0 auto clamp(2rem, 8vw, 3rem);
  display: flex;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.75rem 0 0.75rem;
  background: var(--bg-top);
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
}

.policy-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-image: url("icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.policy-brand span:last-child {
  font-size: 1.25rem;
}

.hero-copy h2 {
  margin: 0.75rem 0 1.75rem;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--text-primary);
  line-height: 1.1;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
}

.primary-cta:hover,
.primary-cta:focus {
  opacity: 0.8;
}

.primary-cta img {
  display: block;
  width: clamp(144px, 33.6vw, 176px);
  height: auto;
}

.hero-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.spacer {
  height: clamp(4rem, 8vw, 6rem);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  align-items: center;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}

.foot-links nav {
  display: inline-flex;
  gap: 1.25rem;
}


.foot-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus {
  text-decoration: underline;
}

.crafted a {
  color: var(--text-muted);
  text-decoration: none;
}

.crafted a:hover,
.crafted a:focus {
  text-decoration: underline;
}

.foot-links .inline-icon {
  opacity: 0.6;
}

/* Policy pages */
.policy-page {
  width: min(660px, 88vw);
  margin: clamp(4rem, 12vw, 6rem) auto;
  padding: 0;
}

.policy-page h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
}

.policy-page h3 {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.policy-page p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.policy-page a {
  color: var(--accent);
}

.policy-page.support {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

::selection {
  background: var(--selection);
  color: var(--text-primary);
}

.faq {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  line-height: 1.5;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.75rem;
}

.faq-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-primary);
}

.inline-icon {
  display: inline-block;
  width: 0.9em;
  height: auto;
  margin: -0.25em 0.2em -0.05em 0.2em;
  vertical-align: middle;
  filter: invert(1);
}

.inline-icon.no-tint {
  filter: none;
  width: 1.1em;
  height: auto;
  margin: -0.3em 0.2em -0.1em 0.2em;
}

@media (max-width: 719px) {
  .landing {
    min-height: 100vh;
    width: 100vw;
  }

  .shell {
    width: 100vw;
    margin: 0 auto;
    padding: clamp(3rem, 12vw, 4rem) clamp(1.5rem, 8vw, 2.5rem);
  }

  .hero-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(2.25rem, 10vw, 3rem);
  }

  .device-frame {
    position: fixed;
    top: clamp(4rem, 14vw, 5.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 360px);
    margin: 0;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 5vw, 1.25rem);
    margin: 0;
    width: min(100%, 420px);
    padding: 3rem 0 0;
  }

  .brand-mark {
    margin: 0 auto;
  }

  .hero-copy h2 {
    margin: 0;
  }

  .primary-cta {
    margin-top: 0;
  }

  .hero-copy p {
    margin: 0;
    text-align: center;
  }
}

@media (min-width: 720px) {
  .hero-stack {
    grid-template-columns: 5fr 6fr;
    align-items: center;
  }
}

small {
  opacity: 0.2;
  margin-left: 0.2rem;
}
