/* Qeelo website. Same dark surface and blue accent as the app (src/theme). No external files, no scripts. */
:root {
  --bg: #0b0d10;
  --surface: #15181d;
  --surface-alt: #1d2128;
  --border: #272c34;
  --text: #f2f4f7;
  --dim: #9aa3af;
  --faint: #5d6672;
  --primary: #2f80ff;
  --primary-soft: rgba(47, 128, 255, 0.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1080px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; gap: 12px; }
header.site img { width: 36px; height: 36px; border-radius: 9px; }
header.site a.brand { color: var(--text); font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
header.site nav { margin-left: auto; }
header.site nav a { color: var(--dim); font-size: 15px; text-decoration: none; }
header.site nav a:hover { color: var(--text); }

/* ---------- Home page ---------- */

.home main { overflow-x: clip; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--border);
  font-weight: 700; font-size: 14px; color: var(--text);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 28px 0 56px; align-items: center; }
.hero > * { min-width: 0; }
.hero h1 {
  font-size: clamp(34px, 9.2vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 20px 0 0; font-weight: 800; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--dim); margin: 20px 0 0; max-width: 30em; text-wrap: pretty; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.platforms li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  font-size: 15px; font-weight: 700;
}
.platforms li span { display: block; font-size: 12px; font-weight: 600; color: var(--faint); line-height: 1.2; }
.platforms svg { width: 22px; height: 22px; fill: var(--text); flex: none; }

/* Two phones, the second tucked behind the first. */
.phones { position: relative; display: flex; justify-content: center; padding: 8px 0 0; }
.phones::before {
  content: ""; position: absolute; inset: -6% 0 -4%;
  background: radial-gradient(60% 52% at 50% 46%, rgba(47, 128, 255, 0.3), rgba(47, 128, 255, 0) 72%);
  pointer-events: none;
}
.phone {
  position: relative; width: min(64%, 290px); flex: none;
  padding: 9px; border-radius: 44px;
  background: #171b21; border: 1px solid #2c323b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.phone img { width: 100%; border-radius: 36px; }
.phone.back { width: min(52%, 244px); margin-left: -18%; margin-top: 9%; align-self: flex-start; opacity: 0.92; z-index: 0; }
.phone.front { z-index: 1; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 32px; padding: 48px 0 88px; }
  .hero h1 { font-size: 58px; }
  .hero h1 em { white-space: nowrap; }
  .phones { justify-content: flex-end; padding-right: 8px; }
  .phone { width: 290px; }
  .phone.back { width: 244px; margin-left: -96px; margin-top: 54px; }
}

/* Feature rows: words on one side, a piece of the app on the other. */
.features { display: grid; gap: 20px; padding: 0 0 20px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--surface); border-radius: 24px; padding: 28px 22px;
}
.feature h2 { font-size: clamp(26px, 4.2vw, 34px); line-height: 1.1; letter-spacing: -0.025em; margin: 14px 0 0; font-weight: 800; text-wrap: balance; }
.feature p { color: var(--dim); margin: 12px 0 0; max-width: 28em; text-wrap: pretty; }
.feature ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 30px; color: var(--text); font-size: 16px; line-height: 1.45; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%232f80ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot { display: flex; justify-content: center; }
.shot img { width: min(100%, 360px); border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9); }
.shot { min-width: 0; }
.shot .phone { width: min(78%, 270px); }
.shot .phone img { border: 0; box-shadow: none; border-radius: 36px; width: 100%; }

@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px; }
  .feature:nth-child(even) .copy { order: 2; }
  .shot img { width: min(100%, 380px); }
}

/* Coming soon */
.soon {
  margin: 20px 0 0; padding: 40px 22px; border-radius: 24px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(47, 128, 255, 0.2), rgba(47, 128, 255, 0) 60%), var(--surface);
  border: 1px solid var(--border);
}
.soon h2 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; letter-spacing: -0.025em; margin: 16px 0 0; font-weight: 800; text-wrap: balance; }
.soon p { color: var(--dim); margin: 12px auto 0; max-width: 30em; text-wrap: pretty; }
.signup { margin: 24px auto 0; max-width: 440px; text-align: left; }
.signup label { display: block; font-size: 14px; font-weight: 700; color: var(--dim); margin: 0 0 8px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 200px; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 16px;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.signup input[type="email"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.signup button {
  flex: 0 0 auto; height: 50px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--primary); color: #fff; font: inherit; font-size: 16px; font-weight: 800;
}
.signup button:hover { filter: brightness(1.08); }
.signup button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.signup button:disabled { opacity: 0.5; cursor: default; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.soon .signup p { margin: 10px 0 0; max-width: none; font-size: 14px; }
.signup #launch-msg { min-height: 1.5em; color: var(--dim); font-weight: 600; }
.signup #launch-msg.good { color: #4ade80; }
.signup #launch-msg.bad { color: #ff8a8a; }
.signup .fine { color: var(--faint); }
.signup .fine a { color: var(--dim); }
@media (max-width: 420px) { .signup button { flex: 1 1 100%; } }
@media (min-width: 800px) { .soon { padding: 64px 48px; } }

/* ---------- Text pages (privacy, delete account) ---------- */
main.doc { padding-top: 24px; padding-bottom: 8px; }
main.doc h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 6px; font-weight: 800; }
main.doc .updated { color: var(--faint); font-size: 15px; margin: 0 0 24px; }
main.doc h2 { font-size: 21px; margin: 40px 0 8px; font-weight: 800; letter-spacing: -0.01em; }
main.doc p, main.doc li { color: #d5dae1; max-width: 40em; }
main.doc ul, main.doc ol { padding-left: 22px; }
main.doc li { margin: 6px 0; }
main.doc .summary { background: var(--surface); border-radius: 12px; padding: 4px 20px; margin: 8px 0 0; }
main.doc .summary li { color: var(--text); }
main.doc strong { color: var(--text); }

footer.site { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--border); color: var(--faint); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--dim); }
footer.site span { margin-left: auto; }
@media (max-width: 480px) { footer.site span { margin-left: 0; width: 100%; } }
