/* TapHang's public site. The violet brand and calm canvas follow the app's tokens and the dashboard's. */
:root {
  color-scheme: light;
  --canvas: #f4f3f8;
  --surface: #ffffff;
  --fill: #efedf5;
  --border: #e3e1ea;
  --text: #0b0b0c;
  --text-secondary: #4d4b57;
  --text-muted: #6b6977;
  --primary: #5b3df5;
  --primary-pressed: #4527d9;
  --on-primary: #ffffff;
  --primary-soft: #e9e5ff;
  --on-primary-soft: #3a22b8;
  --success: #0f7b53;
  --art-counter: #ded9f0;
  --art-phone: #1b1a22;
  --art-sticker: #ffffff;
  --shadow: 0 1px 2px rgb(20 16 40 / 6%), 0 8px 24px rgb(20 16 40 / 6%);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --canvas: #0b0b0c;
    --surface: #18171c;
    --fill: #24232a;
    --border: #2e2d35;
    --text: #f0efec;
    --text-secondary: #c3c2cb;
    --text-muted: #9a98a6;
    --primary: #8f7bff;
    --primary-pressed: #a796ff;
    --on-primary: #0b0b0c;
    --primary-soft: #2a2347;
    --on-primary-soft: #cfc6ff;
    --success: #4cc694;
    --art-counter: #24232a;
    --art-phone: #000000;
    --art-sticker: #f0efec;
    --shadow: none;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0b0b0c;
  --surface: #18171c;
  --fill: #24232a;
  --border: #2e2d35;
  --text: #f0efec;
  --text-secondary: #c3c2cb;
  --text-muted: #9a98a6;
  --primary: #8f7bff;
  --primary-pressed: #a796ff;
  --on-primary: #0b0b0c;
  --primary-soft: #2a2347;
  --on-primary-soft: #cfc6ff;
  --success: #4cc694;
  --art-counter: #24232a;
  --art-phone: #000000;
  --art-sticker: #f0efec;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p {
  margin: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: 0.88rem;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}
.top nav a:hover {
  color: var(--text);
}
.top nav a.pill {
  background: var(--fill);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 999px;
}

/* Buttons */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 650;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
}
.button:hover {
  background: var(--primary-pressed);
}
.button.ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.button.ghost:hover {
  background: var(--fill);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--on-primary-soft);
  background: var(--primary-soft);
  font-weight: 650;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 18px;
  max-width: 34em;
}
.hero-art {
  margin: 0;
}
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.counter {
  fill: var(--art-counter);
}
.sticker {
  fill: var(--art-sticker);
  stroke: var(--primary);
  stroke-width: 4;
}
.sticker-text {
  fill: var(--primary);
  font-weight: 800;
  font-size: 15px;
}
.waves path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.7;
}
.phone {
  fill: var(--art-phone);
}
.phone-small {
  fill: #ffffff;
  opacity: 0.85;
  font-size: 10px;
}
.phone-small.dark {
  fill: #3a22b8;
  opacity: 1;
}
.phone-big {
  fill: #ffffff;
  font-size: 15px;
  font-weight: 750;
}
.phone-card {
  fill: #ffffff;
}
.phone-points {
  fill: #3a22b8;
  font-size: 22px;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 72px 0;
}
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 750;
  margin-bottom: 14px;
}
.steps p,
.feature p,
.timeline p {
  color: var(--text-secondary);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature h3 {
  font-size: 1.15rem;
}

/* For spots */
.spots-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--text-secondary);
}
.checks li strong {
  color: var(--text);
}
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 800;
}
.spots-grid .small {
  margin-top: 12px;
}
.timeline {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 48px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: 750;
}
.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

/* Questions */
.faq details {
  max-width: 760px;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
}
details p {
  margin-top: 10px;
  color: var(--text-secondary);
}

/* Text pages (privacy) */
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 6px;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 40px 0 12px;
}
.prose h3 {
  margin: 24px 0 8px;
}
.prose p,
.prose li {
  color: var(--text-secondary);
}
.prose ul + p,
.prose p + p,
.prose > .muted + p {
  margin-top: 14px;
}
.prose > .muted {
  margin-bottom: 24px;
}
.prose ul {
  padding-left: 22px;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.prose li strong {
  color: var(--text);
}

/* Footer */
.foot {
  padding: 32px 0 48px;
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.small-brand {
  font-size: 1rem;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 32px;
  }
  .hero-grid,
  .spots-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-art {
    max-width: 320px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav a:not(.pill) {
    display: none;
  }
  .ctas .button {
    flex: 1 1 auto;
    text-align: center;
  }
}
