/* Listig website — one stylesheet for every page.
   Shared: colours, base, header and footer.
   body.landing: the landing page (index.html).
   body.doc: the documents (privacy, terms, delete account). */

/* ---- Colours (light only) ---- */
:root {
  --brand: #F47628;
  --brand-deep: #E55E15;
  --on-brand: #0A0A0A;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --text: #0A0A0A;
  --muted: #6B6B6B;
  --border: #E6E6E6;
  --tint: #FDEBDD;
  --tint-2: #FFF6EF;
  --emerald: #10B981;
  --eyebrow-text: #C2500F;
  --store-bg: #0A0A0A;
  --store-fg: #FFFFFF;
  --todo-bg: #FFF4CC;
  --todo-text: #5C4600;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  --phone-shadow: 0 30px 60px -20px rgba(80,40,10,.35), 0 12px 24px -12px rgba(0,0,0,.2);
  color-scheme: light;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.mono { font-family: Menlo, "SF Mono", "Roboto Mono", ui-monospace, monospace; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tint); color: var(--eyebrow-text);
  font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

/* ---- Header ---- */
nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand img { width: auto; height: 34px; }

/* ---- Footer ---- */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .spacer { flex: 1; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .brand { color: inherit; }
footer .brand img { height: 28px; }
/* Phones: one item per line, centred. */
@media (max-width: 600px) {
  footer .wrap { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  footer .spacer { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ================= Landing page ================= */

/* ---- Hero ---- */
/* Clipped sideways only: the glow and the phones' shadows may spill up and
   down into the page instead of stopping at a hard edge. */
.hero { position: relative; padding: 72px 0 40px; overflow-x: clip; overflow-y: visible; }
/* The glow behind the phones: an ellipse that fades to nothing before its
   own edges, so it never ends in a line. */
.hero::before {
  content: ""; position: absolute; inset: -60px -10% -140px 25%;
  background: radial-gradient(ellipse closest-side at 55% 50%,
    rgba(244,118,40,.32), rgba(244,118,40,.18) 35%, rgba(244,118,40,.07) 65%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero::before { inset: 35% -20% -120px -20%; }
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.landing h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -2px;
  margin: 18px 0 18px; font-weight: 850;
}
.landing h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--store-bg); color: var(--store-fg); border-radius: 14px; padding: 10px 18px 10px 14px;
  border: 1px solid var(--store-bg);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 650; }
.landing .note { color: var(--muted); font-size: 13px; margin-top: 14px; }

.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 280px; border-radius: 44px; padding: 10px;
  background: #111; box-shadow: var(--phone-shadow);
}
.phone img { border-radius: 34px; width: 100%; height: auto; background: #F5F5F5; }
.phone.one { right: 190px; top: 40px; transform: rotate(-6deg); }
.phone.two { right: 10px; top: 0; transform: rotate(4deg); }
.timer-chip {
  position: absolute; left: 0; bottom: 70px; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.timer-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 6px rgba(16,185,129,.18); animation: pulse 1.8s infinite; }
.timer-chip .t { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.timer-chip small { display: block; color: var(--muted); font-size: 12px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
@media (prefers-reduced-motion: reduce) { .timer-chip .dot { animation: none; } }

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .phones { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phone { width: 230px; border-radius: 38px; }
  .phone img { border-radius: 29px; }
  .phone.one { right: auto; left: 0; }
  .phone.two { right: 0; }
  .timer-chip { left: 50%; transform: translateX(-50%); bottom: 20px; }
}
@media (max-width: 420px) {
  .phones { height: 440px; }
  .phone { width: 190px; }
}

/* ---- Sections ---- */
.landing section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.landing h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -1.2px; margin: 12px 0; font-weight: 820; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 24px; box-shadow: var(--shadow);
}
.icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--tint); color: var(--brand); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { text-align: left; }
.feature-text p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F47628' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
/* Each phone as tall as its screenshot (not stretched to its neighbour's
   height, which showed as black below the screen). */
.shots { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.shots .phone { position: relative; width: 250px; transform: none; }
.shots .phone:nth-child(2) { margin-top: 48px; }@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .shots .phone { width: min(44vw, 230px); border-radius: 34px; padding: 8px; }
  .shots .phone img { border-radius: 27px; }
}

.band {
  background: linear-gradient(135deg, var(--tint-2), var(--tint));
  border-block: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.landing .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 800px) { .landing .steps { grid-template-columns: 1fr; } }
.landing .step { counter-increment: step; }
.landing .step::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 14px;
}

.cta { text-align: center; }
.cta .card { padding: 56px 24px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: var(--on-brand); border: 0; }
.cta h2 { margin-top: 0; }
.cta .card p { margin: 0 auto 28px; max-width: 520px; font-size: 18px; color: inherit; opacity: .8; }
.cta .stores { justify-content: center; }
.cta .store { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }

/* ================= Documents ================= */

.doc { line-height: 1.65; }
.doc a { color: var(--eyebrow-text); }
.doc nav a, .doc footer a { color: inherit; }
.doc nav .brand { color: var(--text); }
.doc header { padding: 56px 0 8px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -1.2px; margin: 16px 0 10px; font-weight: 700; text-wrap: balance; }
.updated { color: var(--muted); font-size: 14px; margin: 0; }

.doc article { padding: 24px 0 64px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; margin-bottom: 36px; }
/* More specific than .doc h2 below, so its 40px top margin doesn't apply here. */
.doc .summary h2 { margin-top: 0; }
.summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.3px; margin: 40px 0 10px; font-weight: 700; text-wrap: balance; }
.doc h3 { font-size: 16px; margin: 24px 0 6px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.doc td:first-child { font-weight: 600; white-space: nowrap; }
.todo { background: var(--todo-bg); color: var(--todo-text); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.doc ol.steps { padding-left: 22px; display: grid; gap: 6px; }
.doc .note { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
