/* ═══════════════════════════════════════════════════════════════════════════
   Rindit — the marketing site.

   One stylesheet for seven static pages. No framework and no build step, so a
   copywriter can change a sentence without installing anything — which is the
   practical difference between copy that gets improved and copy that gets
   frozen.

   **The palette is the application's**, lifted from `frontend/src/styles/
   tokens.css` rather than reinvented, so the site and the product look like one
   thing. That includes the darkened green: WhatsApp's #00a884 clears neither
   white nor dark text at 4.5:1 in a light theme, and the app fixed it. A
   marketing site that used the undarkened version would fail the contrast rule
   the product holds itself to, on the page that claims the product is careful.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* From the app */
  --ground: #ffffff;
  --rail: #f7f8fa;
  --field: #f0f2f5;
  --ink: #111b21;
  --ink-2: #61717b;
  --rule: #e9edef;
  --accent: #007d62;
  --accent-ink: #ffffff;
  --crit: #ba3a3a;

  /* The site's own, for surfaces the app has no equivalent of */
  --rule-firm: #d3dade;
  --accent-wash: #e8f3f0;
  --ink-3: #7d8b94;
  --yes: #1f6b4f;
  --no: #9b4a3f;

  --sans: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 36rem;
  --page: 62rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111b21;
    --rail: #1a252b;
    --field: #202c33;
    --ink: #e9edef;
    --ink-2: #8696a0;
    --rule: #222d34;
    --accent: #00a884;
    --accent-ink: #111b21;
    --crit: #f16070;

    --rule-firm: #33424b;
    --accent-wash: #14282a;
    --ink-3: #6f8089;
    --yes: #64c39c;
    --no: #e08b7c;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ── skeleton ──────────────────────────────────────────────────────────── */
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--rail);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
/* The app's own mark: a filled circle with a lowercase `r`.
   Lifted from `.brand` in the application's shell.css, including the two things
   that are easy to get wrong about it — the letter is white on both themes
   rather than following the ink colour, and it is set larger than a capital
   would be, because a lowercase `r` is an x-height glyph and at the same size
   reads as a shrunken mark rather than a smaller letter. */
.brand .logo {
  width: 2rem; height: 2rem; border-radius: 999px; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.nav a.link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a.link:hover { color: var(--ink); }
.nav a.link[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 46rem) {
  .brand { margin-right: 0; width: 100%; }
  .nav .wrap { padding-top: 0.75rem; padding-bottom: 0.75rem; gap: 1rem; }
}

/* ── type ──────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
p { margin: 0 0 1rem; max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
a { color: var(--accent); }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--field);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.75rem 0 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--rule-firm);
}
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.btn-note { font-size: 0.88rem; color: var(--ink-3); margin: 0; }

/* ── hero ──────────────────────────────────────────────────────────────── */
/* A wash behind the first screenful rather than a picture. Built from
   `--accent`, so it follows the dark theme without a second rule and without a
   file to download; `color-mix` keeps it to a tint of the brand instead of a
   colour somebody has to keep in step with it.
   `transparent 60%` puts the whole fade above the fold on a laptop and off the
   side of a phone, which is the only place it would otherwise sit behind body
   text and cost contrast. */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(
      60rem 30rem at 85% -10%,
      color-mix(in srgb, var(--accent) 12%, transparent),
      transparent 60%
    );
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 54rem) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }

/* ── the honest line: stated early, never in a footnote ────────────────── */
.honest {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 1rem 1.25rem;
  margin: 2rem 0 0;
  max-width: var(--measure);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.honest strong { color: var(--ink); }

/* ── the iPhone section ────────────────────────────────────────────────── */
.app-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 54rem) { .app-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
/* Tighter than a standalone list: these sit under a lede and above buttons, so
   the default 0.7rem gap opens a hole in the middle of one block of text. */
ul.ticks.tight { gap: 0.45rem; margin: 1.25rem 0 0; }

/* The phone, drawn here rather than shipped as chrome baked into every
   screenshot. A frame in CSS stays sharp at any density, re-colours itself in
   the dark theme, and — the practical half — means a replacement screenshot is
   a plain rectangle somebody can take on a phone without editing it. */
.phone-shot {
  justify-self: center;
  position: relative;
  width: min(17.5rem, 100%);
  padding: 0.55rem;
  border-radius: 2.6rem;
  background: linear-gradient(170deg, var(--rule-firm), var(--rule));
  box-shadow: 0 18px 40px rgba(11, 20, 26, 0.16);
}
.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.1rem;
  background: var(--field);
}
/* No drawn speaker slot: the captures are of a current iPhone, and they carry
   the Dynamic Island themselves. A second notch on top of it reads as a fault. */

/* ── inside the app: the other screens ─────────────────────────────────── */
/* A row that swipes on a phone and sits flat on a laptop. On a narrow screen
   five phones cannot fit side by side at a readable size, and stacking them
   would make the section five screens tall. */
.gallery {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 1.25rem 1.5rem 0.5rem;
}
.gallery-item {
  flex: 0 0 11.5rem;
  margin: 0;
  scroll-snap-align: center;
}
@media (min-width: 62rem) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    max-width: var(--page);
    margin: 0 auto;
  }
}
.phone-shot.small {
  width: 100%;
  padding: 0.4rem;
  border-radius: 1.75rem;
  box-shadow: 0 12px 28px rgba(11, 20, 26, 0.14);
}
.phone-shot.small img { border-radius: 1.4rem; }
.gallery-item figcaption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.gallery-item figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ── the app screenshot, drawn rather than photographed ────────────────── */
.shot {
  border: 1px solid var(--rule-firm);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ground);
  box-shadow: 0 2px 14px rgba(11, 20, 26, 0.09);
}
@media (prefers-color-scheme: dark) { .shot { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); } }
.shot-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--rail);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.shot-bar .pill {
  margin-left: auto; display: flex; align-items: center; gap: 0.4rem;
}
.shot-badge {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  min-width: 1.15rem; height: 1.15rem;
  display: grid; place-items: center; padding: 0 0.3rem;
}
.shot-body { padding: 0.85rem; display: grid; gap: 0.7rem; background: var(--rail); }
.post {
  background: var(--ground); border: 1px solid var(--rule);
  border-radius: 10px; padding: 0.8rem;
}
.post-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.avatar {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; flex: none;
}
.avatar.alt { background: #6b4fa8; color: #fff; }
.post-who { font-size: 0.85rem; font-weight: 600; }
.post-when { font-size: 0.72rem; color: var(--ink-3); }
.post-text { font-size: 0.85rem; margin: 0; color: var(--ink-2); }
.thread { display: grid; gap: 0.4rem; }
.bubble {
  font-size: 0.82rem; padding: 0.45rem 0.7rem; border-radius: 10px;
  max-width: 82%; border: 1px solid var(--rule);
}
.bubble.them { background: var(--ground); justify-self: start; border-bottom-left-radius: 3px; }
.bubble.me {
  background: var(--accent-wash); justify-self: end; border-bottom-right-radius: 3px;
  border-color: transparent;
}
.lock-row {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; color: var(--ink-3);
  justify-content: center; padding-top: 0.15rem;
}

/* ── proof rows ────────────────────────────────────────────────────────── */
.proofs { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
@media (min-width: 50rem) { .proofs { grid-template-columns: repeat(3, 1fr); } }
.proof { background: var(--ground); padding: 1.5rem 1.25rem 1.5rem 0; }
@media (min-width: 50rem) {
  .proof { padding: 1.75rem 1.5rem; }
  /* The first cell aligns to the page column, not to its own gutter — otherwise
     the row starts a few pixels right of every heading above it, which reads as
     a mistake rather than as a grid. */
  .proof:first-child { padding-left: 0; }
  .proof:last-child { padding-right: 0; }
}
.proof h3 { margin-bottom: 0.35rem; }
.proof p { font-size: 0.92rem; color: var(--ink-2); margin: 0; max-width: none; }

/* ── generic lists ─────────────────────────────────────────────────────── */
ul.plain { margin: 1rem 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; max-width: var(--measure); }
ul.plain li { color: var(--ink-2); }
ul.plain strong { color: var(--ink); }
ul.ticks { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.7rem; max-width: var(--measure); }
ul.ticks li { display: grid; grid-template-columns: 1.35rem 1fr; gap: 0.65rem; color: var(--ink-2); }
/* A disc rather than a bare glyph. These lists are most of what the site is —
   the whole argument is "here is what is true and here is what is not" — and a
   loose ✓ at body weight was carrying that distinction on colour alone, which
   is the one channel a reader may not have.
   Kept in CSS rather than swapped for icon files: the glyph stays in the markup
   where it already sits behind `aria-hidden`, so nothing here changes what a
   screen reader is told, and there is no request for a picture of a tick. */
ul.ticks .mark {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ground);
  background: var(--yes);
}
ul.ticks .mark.no { background: var(--no); }
ul.ticks strong { color: var(--ink); }

/* ── tables ────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 34rem; }
caption {
  text-align: left; padding-bottom: 0.7rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-3);
}
th {
  text-align: left; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 1rem 0.55rem 0; border-bottom: 1px solid var(--rule-firm);
  vertical-align: bottom;
}
td {
  padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule);
  vertical-align: top; color: var(--ink-2);
}
td:first-child, th:first-child { padding-left: 0; }
td:first-child { color: var(--ink); font-weight: 500; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.y { color: var(--yes); font-weight: 700; }
.n { color: var(--no); font-weight: 700; }
.partial { color: var(--ink-3); }

/* ── pricing ───────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 1.25rem; margin: 2rem 0 0; }
@media (min-width: 46rem) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  border: 1px solid var(--rule-firm);
  border-radius: 12px;
  padding: 1.75rem;
  background: var(--ground);
  display: flex;
  flex-direction: column;
}
.plan.lead { border-color: var(--accent); border-width: 2px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.price { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.02em; margin: 0.5rem 0 0.15rem; }
.price small { font-size: 0.95rem; font-weight: 400; color: var(--ink-3); }
.price-alt { font-size: 0.88rem; color: var(--ink-3); margin: 0 0 1.1rem; }
.plan ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; }
.plan ul li { font-size: 0.93rem; color: var(--ink-2); display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.4rem; }
.plan ul .mark { color: var(--accent); font-weight: 700; }
.plan .foot { margin-top: auto; }

/* ── panels ────────────────────────────────────────────────────────────── */
.panel {
  background: var(--rail);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.panel h3 { margin-bottom: 0.5rem; }
.panel p:last-child { margin-bottom: 0; }

.callout {
  border-left: 3px solid var(--crit);
  padding: 0.9rem 1.2rem;
  background: var(--field);
  margin: 1.5rem 0;
  max-width: var(--measure);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ── sign-up form ──────────────────────────────────────────────────────── */
.signup {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin: 1.5rem 0 0.6rem; max-width: var(--measure);
}
.signup input {
  flex: 1 1 15rem;
  font: inherit; font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule-firm);
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink);
}
.signup input::placeholder { color: var(--ink-3); }
.signup input:focus-visible { border-color: var(--accent); }

/* ── closing band ──────────────────────────────────────────────────────── */
.band { background: var(--rail); border-top: 1px solid var(--rule); }
.band .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* ── footer ────────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-3);
}
footer.site .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { footer.site .wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
footer.site a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 0.4rem; }
footer.site a:hover { color: var(--accent); }
footer.site h4 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 0.7rem; font-weight: 500;
}
footer.site .small { font-size: 0.82rem; max-width: 22rem; }
