/* Backstop — marketing site
   Copyright © 2026 Kagebito. All rights reserved.

   One stylesheet, no framework, no build step, no external requests. The palette is the app icon's
   own — deep teal ground, cream ink, bright teal accent — so the icon, the app, and the site read as
   one product. Dark and committed rather than adaptive: this is a page about keeping things safe,
   and it should feel like the inside of a vault, not a whiteboard. */

:root {
  --ground: #0c1a1e;          /* the icon's deep teal, darkened to a page ground   */
  --ground-raised: #10242a;   /* panels                                            */
  --ground-well: #081114;     /* code, recesses                                    */
  --ink: #f2eee3;             /* cream, from the icon's mark                       */
  --ink-soft: #b7c4c6;
  --ink-faint: #7d908f;
  --rule: #1e3a40;
  --rule-bright: #2c5058;
  --accent: #4fd0c7;          /* the teal, lit                                     */
  --accent-deep: #12747c;
  --accent-ink: #06272b;      /* text on accent-filled surfaces                    */
  --good: #5fd88f;
  --bad: #ff8f87;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --measure: 34rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-deep); color: var(--ink); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---- navigation ---- */

header.site {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
}

.brand img { width: 26px; height: 26px; display: block; }

header.site nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }

header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

header.site nav a:hover { color: var(--ink); }
header.site nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- type ---- */

h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  font-weight: 680;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 3.5rem 0 0.8rem;
  font-weight: 650;
}

h3 { font-size: 1.06rem; margin: 2rem 0 0.4rem; font-weight: 630; }

p { margin: 0 0 1.05rem; max-width: var(--measure); color: var(--ink-soft); }

p strong, li strong { color: var(--ink); font-weight: 620; }

.lede {
  font-size: 1.22rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

small, .fine { font-size: 0.86rem; color: var(--ink-faint); }
.fine a { color: var(--ink-faint); }

/* ---- hero ---- */

.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
}

/* A faint drafting grid and a teal glow behind the hero. Quiet on purpose: texture that reads as
   engineering, never as decoration that competes with the words. */
.hero::before {
  content: "";
  position: absolute;
  inset: -4rem -50vw 0;
  background:
    radial-gradient(46rem 24rem at 30% 0%, color-mix(in srgb, var(--accent-deep) 26%, transparent), transparent 70%),
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.hero .claim {
  display: inline-block;
  font: 0.78rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* ---- the proof card: the product's central sentence, drawn like the app draws it ---- */

.proof-card {
  margin: 2.4rem 0 0;
  padding: 1.3rem 1.4rem 1.15rem;
  background: var(--ground-raised);
  border: 1px solid var(--rule-bright);
  border-radius: 14px;
  max-width: 40rem;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
}

.proof-card .seal {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.proof-card .seal .tick {
  color: var(--good);
  font-weight: 700;
}

.proof-card .seal strong { color: var(--ink); font-weight: 620; letter-spacing: -0.01em; }

.proof-card .explain {
  margin: 0.65rem 0 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
  max-width: none;
}

/* Thirty days of evidence as a strip of bars — the dashboard's timeline, echoed. */
.timeline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
}

.timeline i {
  flex: 1;
  max-width: 11px;
  background: var(--accent-deep);
  border-radius: 2px;
  min-height: 6px;
}

.timeline i.hi { background: var(--accent); }
.timeline i.chk { background: var(--good); }
.timeline i.off { background: var(--rule); min-height: 4px; }

/* ---- trust badges ---- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.9rem 0 0;
}

.badges span {
  font: 0.78rem/1 var(--mono);
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border: 1px solid var(--rule-bright);
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  background: color-mix(in srgb, var(--ground-raised) 60%, transparent);
  white-space: nowrap;
}

.badges span::before { content: "✓ "; color: var(--accent); }

/* ---- layout helpers ---- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.cols > div {
  background: var(--ground-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.2rem 1.25rem 1.1rem;
}

.cols h3 { margin: 0 0 0.35rem; }
.cols p { margin-bottom: 0; font-size: 0.95rem; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 3.5rem 0; }

/* ---- code ---- */

pre {
  background: var(--ground-well);
  color: #d9e4e2;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  overflow-x: auto;
  font: 13.5px/1.65 var(--mono);
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--rule);
}

code {
  font: 0.92em var(--mono);
  background: var(--ground-raised);
  border: 1px solid var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ---- tables ---- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
  background: var(--ground-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }

th {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--ground-well);
}

td { color: var(--ink-soft); }
td strong { color: var(--ink); }
td.yes { color: var(--good); }
td.no { color: var(--bad); }

.table-scroll { overflow-x: auto; }

/* ---- pricing ---- */

.price-card {
  border: 1px solid var(--rule-bright);
  border-radius: 16px;
  padding: 1.9rem;
  background:
    radial-gradient(30rem 16rem at 15% -20%, color-mix(in srgb, var(--accent-deep) 30%, transparent), transparent 70%),
    var(--ground-raised);
  max-width: 27rem;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
}

.price {
  font-size: 2.8rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.price span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }

ul.ticks { list-style: none; padding: 0; margin: 1.3rem 0 0; }

ul.ticks li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

ul.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- buttons ---- */

.button {
  display: inline-block;
  margin-top: 1.5rem;
  margin-right: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 620;
  letter-spacing: -0.005em;
  transition: transform 0.06s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--accent) 65%, transparent);
}

.button:hover {
  color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.button.secondary {
  background: none;
  color: var(--ink);
  border: 1px solid var(--rule-bright);
  box-shadow: none;
}

.button.secondary:hover { border-color: var(--accent); color: var(--ink); }

/* ---- callout used on inner pages ---- */

.proof-line {
  margin: 2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--good);
  background: var(--ground-raised);
  border-radius: 0 10px 10px 0;
  max-width: 40rem;
}

.proof-line strong { font-weight: 620; color: var(--ink); }

/* ---- faq ---- */

.faq h3 { margin-top: 2.5rem; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 5.5rem;
  padding: 2.2rem 0 3.2rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

footer.site nav { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 40rem) {
  .hero { padding: 3.2rem 0 2.2rem; }
  header.site .wrap { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  header.site nav { margin-left: 0; width: 100%; gap: 1rem; }
  .button { display: block; text-align: center; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
