/* TapGuide website. Colors and type follow the Signal design system (src/core-ui/theme.js). */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo_500Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo_800ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --mist: #f2f4f6;
  --surface: #ffffff;
  --ink: #15212c;
  --ink-2: #1e2c39;
  --slate: #5f6b77;
  --slate-on-ink: #a6b0ba;
  --line: #dbe1e7;
  --line-on-ink: #2f3e4c;
  --yellow: #ffc83d;
  --yellow-soft: #fff3d1;
  --tap: #ffb300;
  --red: #e5383b;
  --ok: #1f8a5b;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 18px;
  --wrap: 1160px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--tap);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- buttons ---------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font:
    700 15px/1 'Archivo',
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover {
  background: #ffbf1f;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #22313f;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--mist);
}
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}
.chip-dark {
  background: var(--ink);
  color: #fff;
}

/* ---- nav -------------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-right: auto;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
}

/* ---- section headings (bold claim, muted continuation) ---------------------------------- */

.lede {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 22ch;
}
.lede .muted {
  font-weight: 500;
  color: var(--slate);
}
.on-ink .lede .muted {
  color: var(--slate-on-ink);
}

section {
  padding: 104px 0;
}
.rule {
  border-top: 1px solid var(--line);
}

/* ---- hero ------------------------------------------------------------------------------- */

.hero {
  padding: 72px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 .muted {
  display: block;
  color: var(--slate);
  font-weight: 500;
}
.hero p.sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--slate);
  font-size: 18px;
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero .fine {
  margin-top: 14px;
  color: var(--slate);
  font-size: 13px;
}

/* abstract guide, in the spirit of a step list */
.hero-art {
  position: relative;
  padding: 28px;
}
.hero-art .path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.steps-art {
  position: relative;
  display: grid;
  gap: 18px;
}
.step-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
}
.step-row .n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--slate);
  font-weight: 800;
  font-size: 15px;
}
.step-row .bar {
  height: 14px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 70%,
    transparent 70% 74%,
    var(--line) 74% 100%
  );
}
.step-row.is-on .n {
  background: var(--yellow);
  color: var(--ink);
}
.step-row.is-on .bar {
  display: block;
  height: auto;
  padding: 13px 16px;
  line-height: 1.4;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-lg);
  background: var(--yellow-soft);
  box-shadow: inset 0 0 0 2px var(--tap);
}
.hero-card {
  position: relative;
  margin: 18px -8px 0 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 30px 60px -24px rgba(21, 33, 44, 0.35),
    0 0 0 1px var(--line);
  overflow: hidden;
}

/* ---- dark strip under the hero ---------------------------------------------------------- */

.strip {
  background: var(--ink);
  color: #fff;
  padding: 26px 0;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
}
.strip .label {
  color: var(--slate-on-ink);
  font-size: 14px;
  max-width: 18ch;
  line-height: 1.3;
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
}
.strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.strip svg {
  width: 20px;
  height: 20px;
  color: var(--yellow);
}

/* ---- feature blocks --------------------------------------------------------------------- */

.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 72px;
  align-items: center;
}
.feature.flip .copy {
  order: 2;
}
.items {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.items li {
  border-top: 1px solid var(--line);
}
.items li:last-child {
  border-bottom: 1px solid var(--line);
}
.items button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--slate);
  font:
    700 16px/1.3 'Archivo',
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.items button::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--line);
  flex: none;
  transition: background 0.15s;
}
.items .desc {
  display: none;
  padding: 0 0 18px 18px;
  color: var(--slate);
  max-width: 48ch;
}
.items li.active button {
  color: var(--ink);
}
.items li.active button::before {
  background: var(--tap);
}
.items li.active .desc {
  display: block;
}

.panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 44px 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--yellow-soft);
  background-image:
    radial-gradient(circle at 18% 14%, rgba(255, 200, 61, 0.55), transparent 42%),
    radial-gradient(circle at 86% 88%, rgba(255, 179, 0, 0.35), transparent 46%),
    radial-gradient(rgba(21, 33, 44, 0.09) 1.3px, transparent 1.4px);
  background-size:
    auto,
    auto,
    16px 16px;
}
.panel.mist {
  background-color: #e8ecf0;
  background-image:
    radial-gradient(circle at 80% 12%, rgba(255, 200, 61, 0.4), transparent 40%),
    radial-gradient(rgba(21, 33, 44, 0.08) 1.3px, transparent 1.4px);
  background-size:
    auto,
    16px 16px;
}

.phone {
  position: relative;
  width: min(280px, 72%);
  aspect-ratio: 720 / 1480;
  padding: 9px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow:
    0 40px 70px -30px rgba(21, 33, 44, 0.55),
    inset 0 0 0 1px #2c3b49;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  background: var(--mist);
  transition: opacity 0.2s ease;
}
.float {
  position: absolute;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 24px 50px -20px rgba(21, 33, 44, 0.4),
    0 0 0 1px rgba(21, 33, 44, 0.06);
  overflow: hidden;
}

/* ---- how it works cards ----------------------------------------------------------------- */

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card .visual {
  position: relative;
  height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--mist);
  background-image: radial-gradient(rgba(21, 33, 44, 0.07) 1.3px, transparent 1.4px);
  background-size: 16px 16px;
}
.card .visual img {
  position: absolute;
}
.card h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 800;
}
.card p {
  margin-top: 6px;
  color: var(--slate);
  font-size: 15px;
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 4px;
  background: var(--yellow);
  font-size: 13px;
  vertical-align: 2px;
}

/* ---- numbers (dark) --------------------------------------------------------------------- */

.on-ink {
  background: var(--ink);
  color: #fff;
}
.numbers .wrap > .lede {
  margin-bottom: 40px;
}
.stat {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line-on-ink);
}
.stat:last-of-type {
  border-bottom: 1px solid var(--line-on-ink);
}
.stat b {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span {
  color: var(--slate-on-ink);
  font-size: 18px;
}
.stat span strong {
  color: #fff;
  font-weight: 700;
}
.note-ink {
  margin-top: 18px;
  color: var(--slate-on-ink);
  font-size: 13px;
}

/* ---- use cases -------------------------------------------------------------------------- */

.usecases h2 {
  text-align: center;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.uc {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.uc h3 {
  margin-bottom: 8px;
  color: var(--slate);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.uc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.uc li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.uc li:last-child {
  border-bottom: 0;
}
.uc li svg {
  width: 20px;
  height: 20px;
  color: var(--slate);
  flex: none;
}
.uc li small {
  margin-left: auto;
  color: var(--slate);
  font-weight: 400;
  font-size: 14px;
  text-align: right;
}

/* ---- privacy (dark) --------------------------------------------------------------------- */

.privacy .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.privacy .btn-ghost {
  border-color: var(--line-on-ink);
  color: #fff;
}
.privacy .btn-ghost:hover {
  background: var(--ink-2);
}
.pv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.pv {
  display: flex;
  flex-direction: column;
}
.pv .visual {
  display: grid;
  place-items: center;
  height: 230px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-on-ink);
  overflow: hidden;
}
.pv h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 800;
}
.pv p {
  margin-top: 6px;
  color: var(--slate-on-ink);
  font-size: 15px;
}
.big-icon {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px dashed var(--line-on-ink);
  color: var(--yellow);
}
.big-icon svg {
  width: 44px;
  height: 44px;
}
.disclosure {
  margin-top: 40px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-on-ink);
  color: var(--slate-on-ink);
  font-size: 15px;
}
.disclosure strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
}

/* ---- final call to action --------------------------------------------------------------- */

.cta-section {
  background: var(--mist);
}
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 340px;
  padding: 56px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.cta-card h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.cta-card p {
  margin-top: 12px;
  color: var(--slate);
}
.cta-card .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.cta-card svg.art {
  width: 100%;
  height: auto;
}

/* ---- footer ----------------------------------------------------------------------------- */

footer {
  padding: 56px 0 40px;
  background: var(--mist);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.foot h4 {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot .tag {
  margin-top: 12px;
  max-width: 30ch;
  color: var(--slate);
}
.copyright {
  margin-top: 40px;
  color: var(--slate);
  font-size: 13px;
}

/* ---- legal pages ------------------------------------------------------------------------ */

.legal {
  padding: 64px 0 96px;
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.legal .meta {
  margin-top: 10px;
  color: var(--slate);
}
.legal .summary {
  margin: 32px 0 8px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--yellow-soft);
}
.legal .summary h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.legal .summary ul {
  margin: 0;
  padding-left: 20px;
}
.legal h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.legal h3 {
  margin: 22px 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.legal p,
.legal li {
  color: #2b3946;
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 15px;
}
.legal th,
.legal td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th {
  color: var(--slate);
  font-weight: 700;
  font-size: 13px;
}

/* ---- faq -------------------------------------------------------------------------------- */

.faq-list {
  max-width: 820px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--slate);
  font-weight: 500;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  max-width: 680px;
  padding: 0 0 22px;
  color: var(--slate);
}

/* ---- guide pages: long-form articles that reuse the .legal layout ------------------------- */

.article .crumbs {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--slate);
}
.article .crumbs a {
  text-decoration: none;
}
.article .crumbs a:hover {
  text-decoration: underline;
}
.article .intro {
  margin-top: 18px;
  font-size: 19px;
  color: var(--slate);
}
.article figure {
  margin: 28px 0;
}
.article figure img {
  max-width: 300px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -20px rgba(21, 33, 44, 0.45);
}
.article figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}
.article ol {
  padding-left: 22px;
}
.article ol li + li {
  margin-top: 8px;
}
.article .cta-box {
  margin: 40px 0 8px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--yellow-soft);
}
.article .cta-box p {
  margin: 6px 0 16px;
}
.article .related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article .related h2 {
  margin-top: 0;
  font-size: 16px;
}

/* ---- responsive ------------------------------------------------------------------------- */

@media (max-width: 960px) {
  section {
    padding: 72px 0;
  }
  .hero .wrap,
  .feature .wrap,
  .cta-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature.flip .copy {
    order: 0;
  }
  .cards3,
  .pv-grid {
    grid-template-columns: 1fr;
  }
  .uc-grid {
    grid-template-columns: 1fr;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .foot > div:first-child {
    grid-column: 1 / -1;
  }
  .nav-links {
    display: none;
  }
  .brand {
    margin-right: auto;
  }
  .panel {
    min-height: 480px;
  }
  .cta-card {
    padding: 36px 28px;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .hero-art {
    padding: 8px 0;
  }
  .hero-card {
    display: none;
  }
  .stat {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .nav .btn-sm span.long {
    display: none;
  }
  .float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
