/* ==========================================================================
   BarkLogger — barklogger.com
   Palette: night-blue structure, paper surfaces, one signal orange.
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (data).
   The mono face carries the timestamps, which are the product's whole argument.
   ========================================================================== */

:root {
  --night:   #131A24;
  --slate:   #24303F;
  --slate-2: #33415420;
  --paper:   #F7F5F0;
  --paper-2: #EDEAE3;
  --signal:  #F07818;
  --signal-d:#C85E0B;
  --ash:     #7C8798;
  --ink:     #101720;
  --rule:    #DAD7CE;

  --measure: 1180px;
  --radius:  14px;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3:  clamp(2rem, 1.62rem + 1.9vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; }

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

.wrap {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 26, 36, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.brand span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.masthead nav a:not(.btn) {
  color: #B9C2D0;
  text-decoration: none;
  font-size: var(--step--1);
}

.masthead nav a:not(.btn):hover { color: var(--paper); }

@media (max-width: 720px) {
  .masthead nav a:not(.btn) { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--signal);
  /* Dark ink rather than white: white on this orange is only 2.84:1, which
     fails WCAG AA. Ink gives 6.35:1 and keeps the brand colour vivid instead
     of dulling it to a burnt orange to make white work. */
  color: var(--night);
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--night);
  color: var(--signal);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}

.btn--ghost:hover { background: var(--paper-2); border-color: var(--ash); }

.btn--lg { padding: 0.95rem 1.6rem; font-size: var(--step-0); border-radius: 12px; }

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

.hero {
  background: var(--night);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: var(--step-4);
  color: #fff;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero p {
  color: #AEB8C6;
  font-size: var(--step-1);
  margin: 1.4rem 0 2rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ash);
  letter-spacing: 0.02em;
}

/* ---------- signature: the incident log ---------- */

.ledger {
  background: #0D131B;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ash);
}

.ledger-head .live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--signal);
}

.ledger-head .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

.ledger-rows {
  height: 340px;
  overflow: hidden;
  position: relative;
  padding: 0.4rem 0;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.ledger-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.42rem 1.1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  color: #C6CEDA;
  opacity: 0;
  transform: translateY(6px);
  animation: rowIn 0.45s ease forwards;
}

@keyframes rowIn { to { opacity: 1; transform: none; } }

.ledger-row .t { color: var(--signal); }
.ledger-row .k { color: #E4E9F0; }
.ledger-row .db { color: var(--ash); font-size: 0.78rem; }

.ledger-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.8rem 1.1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--ash);
  display: flex;
  justify-content: space-between;
}

.ledger-foot b { color: var(--paper); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .ledger-row { opacity: 1; transform: none; animation: none; }
  .ledger-head .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- day strip ---------- */

.strip-section {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.strip-head h2 { font-size: var(--step-2); max-width: 22ch; }

.strip-head p {
  margin: 0;
  color: #5A6474;
  font-size: var(--step--1);
  max-width: 34ch;
}

.strip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 96px;
  padding: 0 2px;
}

.strip i {
  flex: 1;
  background: var(--signal);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  display: block;
}

.strip i[data-empty] { background: #CDCABF; }

.strip-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--ash);
  letter-spacing: 0.05em;
}

/* ---------- generic sections ---------- */

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }

.section--dark {
  background: var(--night);
  color: var(--paper);
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.9rem;
}

.section h2 { font-size: var(--step-3); max-width: 20ch; text-wrap: balance; }

.section > .wrap > p.lede {
  font-size: var(--step-1);
  color: #55606F;
  max-width: 52ch;
  margin: 1.1rem 0 0;
}

.section--dark p.lede { color: #A9B3C1; }

/* ---------- steps (a real sequence, so numbered) ---------- */

.steps {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step { border-top: 2px solid var(--ink); padding-top: 1rem; }

.section--dark .step { border-top-color: var(--signal); }

.step .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--signal);
  letter-spacing: 0.1em;
}

.step h3 { font-size: var(--step-1); margin: 0.5rem 0 0.5rem; }

.step p { margin: 0; color: #5A6474; font-size: var(--step--1); }

.section--dark .step p { color: #A2ACBB; }

/* ---------- feature cards ---------- */

.cards {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }

.card p { margin: 0; color: #5A6474; font-size: var(--step--1); }

.card .tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--signal-d);
  background: #FDF0E4;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.85rem;
}

/* ---------- honest limits ---------- */

.limits {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  overflow: hidden;
}

.limit {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.limit:last-child { border-bottom: none; }

.limit svg { width: 18px; height: 18px; margin-top: 0.28rem; color: var(--signal); }

.limit b { display: block; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }

.limit span { color: #A2ACBB; font-size: var(--step--1); }

/* ---------- price ---------- */

.price-wrap {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 780px) { .price-wrap { grid-template-columns: 1fr; } }

.price {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #fff;
}

.price--paid { border-color: var(--signal); box-shadow: 0 8px 30px rgba(240, 120, 24, 0.13); }

.price .amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price .amount small {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ash);
  letter-spacing: 0;
}

.price ul { list-style: none; margin: 1.1rem 0 0; padding: 0; }

.price li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  color: #4C5666;
}

.price li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--signal);
}

/* ---------- final cta ---------- */

.cta-band {
  background: var(--signal);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}

.cta-band h2 { font-size: var(--step-3); color: var(--night); margin-inline: auto; }

.cta-band p { color: #3B1D02; max-width: 46ch; margin: 1rem auto 2rem; }

.cta-band .btn {
  background: var(--night);
  color: #fff;
}

.cta-band .btn:hover { background: #fff; color: var(--night); }

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

footer {
  background: var(--night);
  color: #97A1B0;
  padding: 2.75rem 0 3.25rem;
  font-size: var(--step--1);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

footer a:not(.brand) { color: #C3CBD8; text-decoration: none; }
footer a:not(.brand):hover { color: var(--signal); }

footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

footer .fine { max-width: 46ch; color: #6E7889; margin: 0.9rem 0 0; font-size: 0.82rem; }

/* ---------- legal pages ---------- */

.doc { padding: clamp(2.5rem, 5vw, 4rem) 0 5rem; }

.doc .wrap { max-width: 74ch; }

.doc h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }

.doc .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--ash);
  margin: 0 0 2.25rem;
}

.doc h2 {
  font-size: var(--step-1);
  margin: 2.25rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.doc p { color: #414B5A; margin: 0 0 1rem; }

.doc .summary {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}

.doc .summary p:last-child { margin-bottom: 0; }
