/* http2phone.com: one stylesheet for the home and privacy pages */
:root {
  --brand: #0169fc;
  --brand-dark: #0052c7;
  --brand-soft: #e8f0ff;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --card: #ffffff;
  --text: #16202e;
  --muted: #5b6676;
  --border: #dde3ec;
  --code-bg: #0f1724;
  --code-text: #dbe7ff;
  --shadow: 0 1px 2px rgba(16, 32, 64, .06), 0 8px 24px rgba(16, 32, 64, .08);
  --radius: 14px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4d94ff;
    --brand-dark: #7fb1ff;
    --brand-soft: #14284a;
    --bg: #0d131c;
    --bg-alt: #121a26;
    --card: #172131;
    --text: #e6ecf5;
    --muted: #9aa8bb;
    --border: #263347;
    --code-bg: #0a0f17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-header nav { margin-left: auto; display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--text); }
@media (max-width: 720px) {
  .site-header nav a:not(.keep) { display: none; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand);
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--brand); color: var(--brand); }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 600;
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .note { font-size: .9rem; color: var(--muted); }
.hero-shots { position: relative; padding: 0 0 40px 0; }
.hero-shots .browser { width: 100%; }
.hero-shots .phone {
  position: absolute; right: -10px; bottom: 0; width: 34%;
}
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots { padding-bottom: 24px; }
}

/* ---------- framed screenshots ---------- */
.browser {
  border-radius: 12px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.browser .bar {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.browser .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser .bar em {
  margin-left: 12px; flex: 1; max-width: 260px; height: 20px; border-radius: 6px;
  background: var(--card); color: var(--muted); font: 12px/20px system-ui, sans-serif; font-style: normal;
  padding: 0 10px; white-space: nowrap; overflow: hidden;
}
.phone {
  border-radius: 28px; overflow: hidden; background: #111;
  border: 7px solid #111; box-shadow: var(--shadow);
}
.phone img { border-radius: 20px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.feature .icon {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps ol { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700;
}
.steps li p { color: var(--muted); margin: 0; }
.steps .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

.gallery { display: grid; gap: 40px; }
.shot { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.shot:nth-child(even) { grid-template-columns: 2fr 1fr; }
.shot:nth-child(even) .shot-text { order: 2; }
.shot .browser { justify-self: center; }
.shot-text p { color: var(--muted); }
@media (max-width: 900px) {
  .shot, .shot:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .shot:nth-child(even) .shot-text { order: 0; }
}

.api { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.api ul { padding-left: 1.2em; color: var(--muted); }
.api li { margin-bottom: 6px; }
pre {
  margin: 0 0 16px; padding: 18px 20px; border-radius: 12px; overflow-x: auto;
  background: var(--code-bg); color: var(--code-text); font-size: .88rem; line-height: 1.55;
}
pre .c { color: #7f8ea8; }
@media (max-width: 900px) {
  .api { grid-template-columns: 1fr; }
}

.privacy-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.privacy-band .icon { width: 56px; height: 56px; color: var(--brand); }
.privacy-band p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
  .privacy-band { grid-template-columns: 1fr; }
}

.faq { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px 32px; }
.faq h3 { margin-bottom: .3em; }
.faq p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; gap: 20px; }

/* ---------- policy page ---------- */
.policy { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.policy h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.policy h2 { font-size: 1.4rem; margin-top: 2em; }
.policy .summary {
  background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px;
}
.policy .summary p:last-child { margin-bottom: 0; }
.policy table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.policy th { background: var(--bg-alt); font-weight: 600; }
.policy td:first-child { white-space: nowrap; }
@media (max-width: 600px) {
  .policy td:first-child { white-space: normal; }
}
