/* Shared by every page under hosting/. The landing page (index.html) adds its
   own section styles inline; everything else lives here so the top bar, footer
   and type stay identical across pages.

   Type scale, spacing and radii follow the reference landing page the owner
   picked (body 16/19.2, card titles 20/24, legal titles 36/36, prose
   16/22.4; 80% column capped at 1040px; breakpoint 810px). Accent colours are
   the app's accents (lib/core/constants/app_theme.dart). Pages that use it load
   Stack Sans Headline from Google Fonts. */

:root {
  --ink: #2f2f2f;
  --surface: #fff;
  --pink: #e91e63;
  --purple: #7c4dff;
  --orange: #ff5722;
  --edge-sky: #d9ebf8;
  --edge-peach: #f8e9e3;
  --edge-rose: #f9e7f1;
  --edge-lilac: #e0e4f5;
  --tint-sky: #e8f5fd;
  --tint-peach: #faebe3;
  --tint-rose: #fff1f8;
  --tint-lilac: #eef1ff;
  --hairline: #00000012;
  --muted: #888;
  --brand: linear-gradient(90deg, #2196f3 0%, #7c4dff 33.7%, #e91e63 68.8%, #ff5722 100%);
  --wash: linear-gradient(180deg, #fde4ee 0%, #fdeef4 45%, #fff 100%);
  --column: min(80%, 1040px);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; }
body {
  font-family: "Stack Sans Headline", sans-serif;
  font-size: 16px; line-height: 19.2px; letter-spacing: -0.48px;
  background: var(--surface); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }
a { color: inherit; }
strong { font-weight: 400; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.column { width: var(--column); margin-inline: auto; }
.ui { font-size: 16px; line-height: 19.2px; letter-spacing: 0; font-weight: 400; }
.body { font-weight: 300; }
.card-title { font-size: 20px; line-height: 24px; letter-spacing: 0; font-weight: 600; }
.section-title { font-size: 28px; line-height: 28px; letter-spacing: -0.84px; font-weight: 600; }
.edge { position: relative; }
.edge::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--edge, transparent); border-radius: inherit;
}

/* Top bar */
header.bar { position: sticky; top: 0; z-index: 3; height: 62px; background: var(--surface); display: flex; align-items: center; }
.bar .column { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; }
.bar img { height: 24px; width: auto; }
.bar nav { display: flex; align-items: center; gap: 16px; }
.bar nav a { text-decoration: none; white-space: nowrap; transition: color .2s cubic-bezier(.44,0,.56,1); }
.bar nav a:hover { color: #2196f3; }
.bar nav a.download, .bar nav a.download:hover { color: var(--surface); }
.download {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; color: var(--surface);
  background-image: var(--brand);
}

/* Black pill button (store buttons, email buttons) */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 16px; border-radius: 999px;
  background: var(--ink); color: var(--surface); text-decoration: none; white-space: nowrap;
  font-size: 16px; line-height: 19.2px; letter-spacing: 0; font-weight: 400;
}

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 28px 0 44px; }
footer .column { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; line-height: 16.8px; letter-spacing: -0.42px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Text pages: privacy, terms, support, delete account */
body.page { background: var(--wash) no-repeat; background-size: 100% 520px; }
main.doc { width: min(80%, 720px); margin-inline: auto; padding: 80px 0 100px; }
.doc h1 { font-size: 28px; line-height: 39.2px; letter-spacing: -1.12px; font-weight: 600; }
.doc h2 { font-size: 20px; line-height: 24px; letter-spacing: 0; font-weight: 600; margin: 44px 0 12px; }
.doc h3 { font-size: 16px; line-height: 22.4px; letter-spacing: -0.32px; font-weight: 600; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 22.4px; letter-spacing: -0.32px; font-weight: 300; margin: 0 0 12px; }
.doc ul { list-style: disc; padding-left: 20px; margin: 0 0 12px; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 500; }
.doc a:not(.cta) { color: var(--ink); text-decoration-color: var(--pink); text-underline-offset: 3px; }
.doc .updated { color: var(--muted); font-size: 14px; line-height: 16.8px; margin: 6px 0 0; }
.doc .lede { font-size: 18px; line-height: 25.2px; margin: 24px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; line-height: 19.6px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); font-weight: 300; }
.doc th { font-weight: 600; }

.card {
  --edge: var(--edge-sky);
  position: relative; background: var(--surface);
  border-radius: 8px; padding: 24px; margin: 20px 0;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--edge); border-radius: inherit;
}
.doc .card h2 { margin-top: 0; }
.card .cta { margin-top: 4px; }
.card.warn { --edge: var(--edge-peach); background: var(--tint-peach); }
.card.warn h2 { color: var(--orange); }

/* Single-card pages that hand off to the app: share links, password codes */
body.utility { background: var(--wash) no-repeat; background-size: 100% 520px; }
main.handoff {
  min-height: calc(100vh - 62px - 90px);
  display: flex; align-items: center; justify-content: center; padding: 60px 0;
}
.handoff .card { width: min(90%, 400px); margin: 0; text-align: center; padding: 32px 24px; }
.handoff h1 { font-size: 28px; line-height: 28px; letter-spacing: -0.84px; font-weight: 600; margin: 0 0 12px; }
.handoff p { font-weight: 300; line-height: 22.4px; letter-spacing: -0.32px; margin: 0 0 24px; }
.handoff a.link { display: block; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Android waitlist form (landing page and /s/<code>), driven by /waitlist.js */
form.waitlist { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 440px; margin-inline: auto; text-align: left; }
.waitlist .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.waitlist input[type="email"] {
  flex: 1 1 200px; min-width: 0; padding: 12px 18px; border-radius: 999px;
  border: 1px solid #00000026; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 19.2px; letter-spacing: 0; font-weight: 300;
}
.waitlist input[type="email"]:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.waitlist button.cta { border: 0; cursor: pointer; font-family: inherit; flex: 0 0 auto; }
.waitlist button.cta:disabled { opacity: .6; cursor: progress; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { min-height: 20px; font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--muted); }
.waitlist-status.error { color: #c62828; }
.waitlist-status.ok { color: var(--ink); }

@media (max-width: 809.98px) {
  .bar .download { display: none; }
}

@media (min-width: 810px) {
  .section-title { font-size: 36px; line-height: 36px; letter-spacing: -1.08px; }
  .doc h1 { font-size: 36px; line-height: 36px; letter-spacing: -1.08px; }
}
