/* Shared components: nav, buttons, cards, badges, phone frames, FAQ, footer. */

/* Background atmosphere ------------------------------------------------- */

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

.atmosphere__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.atmosphere__blob--accent {
  top: -260px;
  left: -200px;
  width: 1000px;
  height: 800px;
  background: radial-gradient(closest-side, rgb(255 106 44 / 0.28), rgb(255 106 44 / 0.06) 60%, transparent);
  animation: drift 18s ease-in-out infinite;
}

.atmosphere__blob--ember {
  top: 80px;
  right: -300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgb(255 138 92 / 0.14), transparent 70%);
  animation: drift-b 22s ease-in-out infinite;
}

.atmosphere__blob--paper {
  top: 520px;
  left: 30%;
  width: 700px;
  height: 500px;
  background: radial-gradient(closest-side, rgb(247 246 242 / 0.07), transparent 70%);
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(244 244 245 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 244 245 / 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 100%);
}

.atmosphere__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(244 244 245 / 0.14) 1px, transparent 1.3px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 50% 40% at 70% 12%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 40% at 70% 12%, #000 0%, transparent 100%);
}

.page {
  position: relative;
  isolation: isolate;
}

.page > :not(.atmosphere) {
  position: relative;
  z-index: 1;
}

/* Header and nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: var(--space-4);
  z-index: 30;
  padding: var(--space-4) var(--space-4) 0;
}

.nav {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.07);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--orange-400), var(--accent) 55%, var(--orange-600));
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgb(255 255 255 / 0.35);
  flex: none;
}

.brand-mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  transition: color var(--dur), background var(--dur);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav__toggle {
    display: inline-flex;
    order: 2;
  }
  .nav__cta {
    order: 1;
    margin-left: auto;
  }
  .nav__links {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--space-2);
    display: none;
  }
  .nav__links a {
    padding: 12px 14px;
  }
  .nav.is-open {
    border-radius: 28px;
  }
  .nav.is-open .nav__links {
    display: flex;
  }
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur);
}

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

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(180deg, var(--orange-400), var(--accent));
  color: var(--on-accent);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.btn--light {
  background: linear-gradient(180deg, #fff, #e4e4e7);
  color: var(--ink-950);
  box-shadow: 0 16px 44px rgb(244 244 245 / 0.16), inset 0 1px 0 #fff;
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn--pill {
  border-radius: var(--radius-pill);
  min-height: 44px;
  font-size: 15px;
}

.btn--store {
  min-height: 58px;
  padding: 0 24px 0 16px;
}

.btn--store span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.btn--store small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.btn--store strong {
  font-size: 17px;
}

/* Badges and chips ------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-300);
}

.chip--accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--zinc-300);
  backdrop-filter: blur(12px);
  transition: border-color var(--dur);
}

.announce:hover {
  border-color: var(--accent-line);
}

/* Cards ----------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgb(22 22 24 / 0.85);
  border: 1px solid var(--line);
}

.card--raised {
  background: linear-gradient(180deg, rgb(31 31 34 / 0.9), rgb(22 22 24 / 0.9));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}

.card--glow {
  border-color: rgb(255 106 44 / 0.5);
  box-shadow: 0 0 0 1px rgb(255 106 44 / 0.15), 0 40px 100px rgb(255 106 44 / 0.18);
  background: linear-gradient(180deg, rgb(46 30 22 / 0.96), rgb(22 22 24 / 0.96));
}

.card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card__text {
  color: var(--text-2);
  font-size: 15px;
}

.icon-tile {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  flex: none;
}

.glass-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55);
  white-space: nowrap;
}

.glass-card__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  flex: none;
}

.glass-card__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.glass-card__body strong {
  font-size: 14px;
  font-weight: 600;
}

.glass-card__body span {
  font-size: 12px;
  color: var(--text-2);
}

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--zinc-300);
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list svg {
  flex: none;
  margin-top: 3px;
}

.dot-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--zinc-300);
}

.dot-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Phone frame ----------------------------------------------------------- */

.phone {
  position: relative;
  width: var(--phone-w, 300px);
  aspect-ratio: 460 / 1000;
  border-radius: calc(var(--phone-w, 300px) * 0.155);
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-phone), inset 0 0 0 8px var(--ink-900);
  overflow: hidden;
  flex: none;
}

.phone img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  border-radius: calc(var(--phone-w, 300px) * 0.13);
}

.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 27%;
  height: 22px;
  border-radius: var(--radius-pill);
  background: #000;
}

.phone--glow {
  box-shadow: var(--shadow-phone), 0 0 0 1px rgb(255 106 44 / 0.15), 0 0 80px rgb(255 106 44 / 0.25), inset 0 0 0 8px var(--ink-900);
}

.phone-glow {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 106 44 / 0.32), transparent);
  filter: blur(50px);
  pointer-events: none;
}

/* Marquee --------------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(22 22 24 / 0.4);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 20px;
  white-space: nowrap;
  color: var(--text-2);
  list-style: none;
  margin: 0;
}

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 40px;
}

.marquee__group li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* FAQ ------------------------------------------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  border-radius: 18px;
  background: rgb(22 22 24 / 0.85);
  border: 1px solid var(--line);
  padding: 0 var(--space-5);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-4) 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__chev {
  flex: none;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: transform 200ms var(--ease);
}

.faq__item[open] .faq__chev {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 0 var(--space-5);
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}

.site-footer .container {
  padding-block: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5) var(--space-6);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__brand .nav__brand {
  font-size: 18px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--text-2);
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* Prose (legal pages) --------------------------------------------------- */

.prose p,
.prose li {
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

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

.prose ul,
.prose ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
