/*
 * Bubble — askbubble.app
 *
 * Deliberately matches the app: white, black, one accent blue, and the same
 * mark. Someone arriving here from the App Store should recognise it instantly.
 */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #e2e2e8;
  --text: #0b0b0d;
  --text-dim: #5b5b66;
  --text-faint: #9a9aa5;
  --brand: #0e9be0;
  --mark-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --surface: #17171b;
    --border: #2a2a31;
    --text: #f5f5f7;
    --text-dim: #a5a5b0;
    --text-faint: #70707a;
    --brand: #4cc2ff;
    /* The mark ships as black artwork, so it has to be flipped to stay visible. */
    --mark-filter: invert(1);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Long unbroken strings — an email address, a URL — must wrap rather than
     push the page sideways. Nothing here may scroll horizontally. */
  overflow-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ header */

header {
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: var(--mark-filter);
}

.brand span {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.9px;
}

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

.hero {
  text-align: center;
  padding: 56px 0 72px;
}

.hero img {
  width: 104px;
  height: 104px;
  filter: var(--mark-filter);
}

.hero h1 {
  font-size: clamp(38px, 9vw, 60px);
  font-weight: 800;
  letter-spacing: -2.4px;
  margin: 18px 0 0;
  line-height: 1;
}

.hero .tagline {
  font-size: clamp(18px, 4.4vw, 21px);
  color: var(--text-dim);
  max-width: 30ch;
  margin: 20px auto 0;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-top: 32px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
}

/* ----------------------------------------------------------------- content */

main {
  padding-bottom: 40px;
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 18px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 8px;
}

p {
  margin: 0 0 18px;
  color: var(--text-dim);
}

p.lead {
  color: var(--text);
  font-size: 19px;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

strong {
  color: var(--text);
  font-weight: 700;
}

ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-dim);
}

li {
  margin-bottom: 9px;
}

/* Numbered "how it works" list, styled rather than default markers. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 46px;
  margin-bottom: 20px;
  min-height: 32px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text);
  margin: 0 0 4px;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 56px;
  font-size: 15px;
  color: var(--text-faint);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------- legal-page layout */

.legal {
  padding: 16px 0 56px;
}

.legal h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 6px;
}

.legal .meta {
  color: var(--text-faint);
  font-size: 15px;
  margin-bottom: 34px;
}

.legal h2 {
  font-size: 21px;
  margin-top: 40px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-weight: 700;
}

.back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
}

.back:hover {
  text-decoration: underline;
}
