/*
  The landing page's look: Lagoon, deeper (Phase 14.5), the same palette as the
  popup (apps/extension/src/popup.html) and the web app (apps/web/src/styles/
  index.css). test:landing holds the brand teal and the coral equal to theirs.

  The system's own fonts, on purpose: a web font would be a request to another
  host (or a file to keep), and the popup and app use system-ui too.
*/
:root {
  --canvas: #edf4f3;
  --surface: #ffffff;
  --tint: #e8f1f0;
  --line: #e0e8e7;
  --ink: #15211f;
  --soft: #3d4c4a;
  --quiet: #56625f;
  --primary: #0a7a82;
  --link: #0a6f76;
  --coral: #c2361f;
  --coral-bright: #ff6b4a;
  --band: linear-gradient(135deg, #064b51 0%, #075960 38%, #19b8b4 100%);
  --on-band: #ffffff;
  --on-band-soft: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 40px rgba(6, 40, 44, 0.28);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d1515;
    --surface: #172323;
    --tint: #223131;
    --line: #283737;
    --ink: #e6efee;
    --soft: #bfccca;
    --quiet: #93a3a0;
    --primary: #5ec8cc;
    --link: #6fd0d3;
    --coral: #ff7a5c;
    --coral-bright: #ff7a5c;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, .cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

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

/* ---- The band: header and hero, in the mark's teal ---------------------- */
.band { background: var(--band); color: var(--on-band); padding-bottom: 72px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { display: block; border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--on-band-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--on-band); text-decoration: underline; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-top: 36px; }
.hero.single { grid-template-columns: 1fr; }
.pitch { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -0.02em; font-weight: 800; }
.lead { font-size: 19px; color: var(--on-band-soft); max-width: 34em; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: #ffffff; color: #075960;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: default;
}
.cta.dark { background: var(--primary); color: #ffffff; box-shadow: none; }
@media (prefers-color-scheme: dark) { .cta.dark { color: #0c1616; } }
.soon { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--coral); color: #ffffff; border-radius: 999px; padding: 2px 8px; }
@media (prefers-color-scheme: dark) { .soon { color: #1a0d0c; } }
.ghost { color: var(--on-band); font-weight: 600; text-underline-offset: 4px; }
.cta-note { font-size: 14px; color: var(--on-band-soft); }

/* ---- A picture of the popup, drawn with the page's own colours ---------- */
.popup {
  justify-self: center; width: 100%; max-width: 330px;
  background: var(--surface); color: var(--ink);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transform: rotate(2deg);
}
.p-band { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: linear-gradient(135deg, #075960 25%, #19b8b4); color: #ffffff; }
.p-band b { font-size: 16px; }
.p-keys { margin-left: auto; display: flex; gap: 6px; }
.p-keys i { font-style: normal; font-size: 13px; padding: 1px 7px; border-radius: 7px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.p-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.p-tabs span { padding: 6px 8px; font-size: 13px; color: var(--quiet); border-bottom: 2px solid transparent; }
.p-tabs .on { color: var(--ink); font-weight: 600; border-bottom-color: var(--coral); }
.p-rows { list-style: none; margin: 0; padding: 6px 6px 10px; }
.p-rows li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto; gap: 7px; align-items: baseline; padding: 9px 8px; border-radius: 8px; }
.p-rows li:first-child { background: var(--tint); }
.p-rows i { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.p-rows .unread i { background: var(--coral); }
.p-rows b { font-weight: 600; }
.p-rows span { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-rows time { color: var(--quiet); font-size: 12px; }

/* ---- Sections ------------------------------------------------------------ */
.block { padding-block: 72px 8px; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; }
.sub { color: var(--soft); margin-top: 10px; max-width: 38em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 18px; }
.card p { color: var(--soft); font-size: 15.5px; }
.chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--primary); }

/* Three steps in one row, stacked on a phone - never two and a lonely third. */
.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.steps li::before {
  content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--band); color: #ffffff; font-weight: 800; font-size: 17px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.more { margin-top: 20px; font-weight: 600; }
.steps p { color: var(--soft); font-size: 15.5px; }

.closing { padding-block: 72px; }
.closing-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.closing-card > div { flex: 1; min-width: min(100%, 260px); display: flex; flex-direction: column; gap: 6px; }
.closing-card h2 { font-size: clamp(22px, 2.6vw, 28px); }
.closing-card p { color: var(--soft); }
.closing-card img { flex: none; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-block: 28px 44px; border-top: 1px solid var(--line); }
.brand.small { font-size: 16px; color: var(--ink); }
.brand.small img { border-radius: 6px; box-shadow: none; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.fine { color: var(--quiet); font-size: 14px; width: 100%; }

/* ---- The how-to page ------------------------------------------------------ */
.band.slim { padding-bottom: 44px; }
.band.slim .hero { padding-top: 12px; }
.top nav a[aria-current="page"] { color: var(--on-band); text-decoration: underline; text-underline-offset: 4px; }
.guide { display: flex; flex-direction: column; gap: 56px; padding-block: 44px 72px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.step { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 20px; }
.step > p { color: var(--soft); max-width: 44em; }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 3vw, 30px); }
.step h2 .num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: #ffffff; font-size: 17px; font-weight: 800; }
.shot { margin: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.shot img { display: block; width: 320px; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(6, 40, 44, 0.16); }
.shot figcaption { min-width: 0; padding-top: 6px; }
.pair-shots { display: flex; flex-wrap: wrap; gap: 28px; }
.shot.bare { grid-template-columns: 320px; gap: 12px; }
.shot.bare figcaption { color: var(--quiet); font-size: 15px; padding-top: 0; }
/* The numbers match the coral discs pnpm howto:shots draws on each picture. */
.callouts { list-style: none; counter-reset: callout; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.callouts li { counter-increment: callout; position: relative; padding-left: 40px; color: var(--soft); font-size: 16px; }
.callouts li b { color: var(--ink); }
.callouts li::before {
  content: counter(callout);
  position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--coral); color: #ffffff; font-weight: 700; font-size: 14px;
}
@media (prefers-color-scheme: dark) { .callouts li::before { color: #1a0d0c; } }
.faq { margin: 0; display: grid; gap: 8px 0; max-width: 46em; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 0; color: var(--soft); }

@media (max-width: 760px) {
  .shot { grid-template-columns: 1fr; gap: 18px; }
  .shot img { width: 100%; max-width: 320px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .popup { transform: none; }
  .band { padding-bottom: 48px; }
  .top nav { gap: 16px; }
  .block { padding-block: 56px 8px; }
  .steps { grid-template-columns: 1fr; }
}
