/* TWO EQUALS — marketing site
   Brand tokens mirror the app palette. */

:root {
  --navy-deep: #0b1f4a;
  --navy: #142d63;
  --navy-mid: #18356f;
  --navy-card: #1d3a73;
  --cyan: #16cff3;
  --blue: #0877f9;
  --orange: #ff6b20;
  --yellow: #ffc23e;
  --green: #20b94b;
  --text: #f5f7ff;
  --text-muted: rgba(234, 242, 255, 0.72);
  --white: #ffffff;
  --font-display: "Spline Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-body: "Spline Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --radius: 18px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(22, 207, 243, 0.28), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(255, 107, 32, 0.18), transparent 50%),
    linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 48%, var(--navy-deep) 100%);
  /* fixed breaks radial backgrounds on iOS Safari */
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  body {
    background-attachment: fixed;
    background-size: auto;
  }
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem 0 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: normal;
  font-size: 1rem;
}

.brand-mark img {
  width: 40px;
  height: 40px;
}

.header-faq {
  appearance: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 247, 255, 0.28);
  background: rgba(245, 247, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-faq:hover {
  background: rgba(245, 247, 255, 0.12);
  border-color: rgba(245, 247, 255, 0.4);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 255, 0.28);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-cta:hover {
  background: rgba(245, 247, 255, 0.08);
  border-color: var(--cyan);
}

/* Hero: one composition */
.hero {
  min-height: min(92vh, 820px);
  display: grid;
  align-content: center;
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.hero-logo-wrap {
  position: relative;
  width: min(180px, 42vw);
  margin: 0 auto 1.5rem;
  animation: rise 0.85s ease both;
  isolation: isolate;
}

/* Glow without CSS filter — drop-shadow often fails / glitches on iPhone. */
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(22, 207, 243, 0.42) 0%,
    rgba(22, 207, 243, 0.16) 38%,
    transparent 68%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22.5%;
}

.page-compact .card > img[alt="TWO EQUALS"] {
  border-radius: 22.5%;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: normal;
  line-height: 30px;
  animation: rise 0.85s ease 0.06s both;
}

.hero .tagline {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
  animation: rise 0.85s ease 0.12s both;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: rise 0.85s ease 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  color: var(--navy-deep);
  background: linear-gradient(90deg, var(--cyan), #7ae8ff 45%, var(--yellow));
  box-shadow: 0 10px 30px rgba(22, 207, 243, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(245, 247, 255, 0.35);
}

.btn-store {
  background: #000;
  color: var(--white);
  border-radius: 12px;
  min-width: 11.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  animation: rise 0.85s ease 0.24s both;
}

.value {
  padding: 1rem 0.5rem;
}

.value strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  margin-top: 0.55rem;
}

.value span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.value-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 247, 255, 0.08);
  border: 1px solid rgba(245, 247, 255, 0.18);
  position: relative;
}

.value-icon-lock::before {
  content: "";
  width: 0.7rem;
  height: 0.55rem;
  border: 2px solid var(--cyan);
  border-bottom: none;
  border-radius: 0.4rem 0.4rem 0 0;
  margin-bottom: -2px;
}
.value-icon-lock::after {
  content: "";
  width: 0.95rem;
  height: 0.7rem;
  background: var(--cyan);
  border-radius: 0.15rem;
}

.value-icon-heart::before {
  content: "";
  width: 0.7rem;
  height: 0.65rem;
  background: var(--orange);
  transform: rotate(-45deg);
  border-radius: 0.1rem 0.1rem 0 0.55rem;
  box-shadow: 0.35rem 0 0 var(--orange);
  clip-path: none;
  margin-top: 0.15rem;
}

.value-icon-check::before {
  content: "";
  width: 0.55rem;
  height: 0.95rem;
  border-right: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(40deg) translate(-1px, -2px);
}

.value-icon-match::before,
.value-icon-match::after {
  content: "";
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}
.value-icon-match::before {
  transform: translateX(-0.28rem);
}
.value-icon-match::after {
  border-color: var(--orange);
  transform: translateX(0.28rem);
}

.value-icon-shield::before {
  content: "";
  width: 0.85rem;
  height: 1rem;
  border: 2px solid var(--cyan);
  border-radius: 0.15rem 0.15rem 0.55rem 0.55rem;
}

.closing {
  margin-top: 2rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.55);
}

/* Offer / download section */
.section {
  padding: 4rem 0 5rem;
}

.section-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background:
    linear-gradient(165deg, rgba(245, 247, 255, 0.97) 0%, rgba(234, 242, 255, 0.92) 42%, transparent 42.2%),
    linear-gradient(180deg, var(--navy-card), var(--navy-deep));
  border: 1px solid rgba(245, 247, 255, 0.14);
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(22, 207, 243, 0.22), transparent 65%);
  pointer-events: none;
}

.offer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .offer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.offer-title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
}

.offer-copy {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: rgba(20, 45, 99, 0.78);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.price-old {
  font-size: 1.15rem;
  color: #c43b3b;
  text-decoration: line-through;
  font-weight: 700;
}

.price-new {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--blue);
  font-weight: 800;
}

.plan {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 45, 99, 0.6);
  font-weight: 700;
}

.download-box {
  background: rgba(11, 31, 74, 0.92);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid rgba(22, 207, 243, 0.28);
  text-align: center;
}

.download-box h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.download-box p {
  margin: 0.55rem 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.qr-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0 1.15rem;
}

.hero-qr {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  animation: rise 0.85s ease 0.18s both;
}

.qr-card {
  margin: 0;
  padding: 0.75rem 0.75rem 0.55rem;
  border-radius: 14px;
  background: var(--white);
  text-align: center;
  width: min(100%, 11.5rem);
  display: block;
  color: var(--navy-deep);
  transition: transform 0.2s ease;
}

.qr-card:hover {
  transform: translateY(-2px);
}

.qr-card img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.qr-card figcaption,
.qr-card span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.features {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: rgba(245, 247, 255, 0.04);
  border: 1px solid rgba(245, 247, 255, 0.1);
  text-align: center;
}

.feature strong {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.feature p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 0 2.75rem;
  text-align: center;
  color: rgba(245, 247, 255, 0.45);
  font-size: 0.8rem;
}

.site-footer .footer-domain {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.85rem;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.78rem;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-legal button,
.footer-legal a[data-legal] {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.footer-legal button:hover,
.footer-legal a[data-legal]:hover {
  color: var(--cyan);
}

.legal-modal {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(100% - 1.5rem, 36rem);
  max-height: min(88vh, 40rem);
  background: transparent;
  color: var(--text);
  opacity: 0;
  transform: translateY(1.15rem) scale(0.96);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-modal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.legal-modal::backdrop {
  background: rgba(8, 18, 42, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.55s ease, backdrop-filter 0.55s ease;
}

.legal-modal.is-visible::backdrop {
  opacity: 1;
}

.legal-modal-sheet {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 40rem);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--navy-card), var(--navy-deep));
  border: 1px solid rgba(245, 247, 255, 0.14);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal,
  .legal-modal::backdrop {
    transition-duration: 0.01ms;
  }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(245, 247, 255, 0.12);
}

.legal-modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-close:hover {
  background: rgba(245, 247, 255, 0.16);
}

.legal-modal-body {
  padding: 1rem 1.1rem 1.35rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.faq-modal {
  width: min(100% - 1.5rem, 40rem);
  max-height: min(90vh, 44rem);
}

.faq-modal .legal-modal-sheet {
  max-height: min(90vh, 44rem);
}

.faq-search-wrap {
  padding: 0 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(245, 247, 255, 0.12);
}

.faq-search {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid rgba(245, 247, 255, 0.18);
  border-radius: 12px;
  background: rgba(245, 247, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-search::placeholder {
  color: rgba(245, 247, 255, 0.4);
}

.faq-search:focus {
  border-color: rgba(245, 247, 255, 0.4);
  background: rgba(245, 247, 255, 0.09);
}

.faq-intro {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.faq-note {
  margin: 0 0 1.1rem;
  color: rgba(245, 247, 255, 0.45);
  font-size: 0.78rem;
  line-height: 1.45;
}

.faq-empty {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.faq-section {
  margin: 0 0 1.25rem;
}

.faq-section:last-child {
  margin-bottom: 0.25rem;
}

.faq-section.is-hidden {
  display: none;
}

.faq-section h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.faq-item {
  border-radius: 12px;
  background: rgba(245, 247, 255, 0.06);
  border: 1px solid rgba(245, 247, 255, 0.08);
  overflow: hidden;
}

.faq-item.is-hidden {
  display: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(245, 247, 255, 0.55);
  border-bottom: 2px solid rgba(245, 247, 255, 0.55);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -0.15rem;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.faq-answer {
  padding: 0 1rem 0.95rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  border-top: 1px solid rgba(245, 247, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: 0;
}

.legal-modal-body h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

.legal-modal-body p,
.legal-modal-body .block {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-line;
}

.legal-modal-body .meta-label {
  margin: 0.75rem 0 0.15rem;
  font-size: 0.72rem;
  color: rgba(245, 247, 255, 0.45);
}

.legal-modal-body a {
  color: var(--orange);
}

body.legal-modal-open {
  overflow: hidden;
}

/* Legal document pages */
.legal-page {
  padding: 1.5rem 0 3rem;
  max-width: 40rem;
  margin-inline: auto;
}

.legal-page .back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
}

.legal-page h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 30px;
  font-weight: 600;
}

.legal-page h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-page p,
.legal-page .block {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
}

.legal-page .meta-label {
  margin: 0.85rem 0 0.15rem;
  font-size: 0.75rem;
  color: rgba(245, 247, 255, 0.45);
}

.legal-page a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Compact pages (download / invite) */
.page-compact {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 2rem 0 3rem;
}

.page-compact .card {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 1.75rem 1.35rem 1.85rem;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(29, 58, 115, 0.72);
  border: 1px solid rgba(245, 247, 255, 0.14);
  backdrop-filter: blur(10px);
  text-align: center;
  animation: rise 0.7s ease both;
}

.page-compact h1 {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.page-compact .lead {
  margin: 0.65rem 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--cyan);
  min-height: 1.2em;
}

@keyframes rise {
  from {
    opacity: 0.01;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports not (animation: rise 1s) {
  .hero-logo-wrap,
  .hero h1,
  .hero .tagline,
  .hero-cta,
  .values,
  .page-compact .card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .qr-demo {
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: stretch;
  }

  .qr-card {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.55rem 0.55rem 0.4rem;
  }

  .qr-card figcaption,
  .qr-card span {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
  }

  .value {
    padding: 0.65rem 0.15rem;
  }

  .value strong {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .value span {
    font-size: 0.7rem;
  }

  .offer-title {
    color: var(--text);
  }

  .offer-copy,
  .plan {
    color: var(--text-muted);
  }

  .section-panel {
    background: linear-gradient(180deg, var(--navy-card), var(--navy-deep));
  }

  .kicker {
    color: var(--yellow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
