/* BorrowTag marketing site. No scripts, no third-party requests. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Label stock and the ink printed on it. */
  --paper: #eef2f0;
  --label: #ffffff;
  --ink: #17202b;
  --steel: #556170;
  --rule: #cfd8d4;
  /* Brand teal (same as the app) and the colours of lateness. */
  --teal: #0f766e;
  --teal-deep: #0a5650;
  --amber: #b97700;
  --rust: #b4380f;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

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

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.6rem/1 var(--condensed); letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

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

.hero { padding: clamp(32px, 7vw, 88px) 0 clamp(56px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
h1 {
  margin: 0;
  font: 700 clamp(3rem, 7.4vw, 6rem)/0.9 var(--condensed);
  letter-spacing: -0.015em;
}
h1 span { display: block; }
.lede { max-width: 34ch; margin: 28px 0 0; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.button {
  display: inline-block; padding: 14px 22px; border-radius: 6px;
  background: var(--teal); color: #fff; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--teal-deep); color: #fff; }
.cta-note { margin: 14px 0 0; font-size: 0.95rem; color: var(--steel); }

/* The asset label: the one loud thing on the page. */
.specimen { position: relative; padding: 8px 0 128px; }
.tag {
  position: relative;
  width: min(100%, 400px);
  padding: 22px 26px 18px 58px;
  background: var(--label);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -22px rgba(23, 32, 43, 0.45);
  transform: rotate(-2.5deg);
}
/* Grommet hole: it's a tag. */
.tag::before {
  content: ""; position: absolute; left: 20px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 1px 2px rgba(23, 32, 43, 0.35);
}
.tag-owner { margin: 0; font: 600 0.95rem/1.2 var(--condensed); color: var(--steel); letter-spacing: 0.02em; }
.tag-name { margin: 4px 0 14px; font: 700 2rem/1 var(--condensed); }
.tag .bars { width: 100%; height: 76px; fill: var(--ink); }
.tag-code { margin: 8px 0 0; font: 600 1.35rem/1 var(--condensed); letter-spacing: 0.18em; text-align: center; }

.notice {
  position: absolute; right: 0; bottom: 0;
  width: min(88%, 330px);
  padding: 16px 18px;
  background: var(--label);
  border-radius: 10px;
  border-left: 5px solid var(--amber);
  box-shadow: 0 22px 44px -20px rgba(23, 32, 43, 0.5);
  font-size: 0.95rem; line-height: 1.4;
  animation: arrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 900ms both;
}
.notice p { margin: 0; }
.notice-from { color: var(--steel); font-size: 0.85rem; }
.notice-subject { margin-top: 2px !important; font-weight: 600; }
.notice-body { margin-top: 6px !important; color: var(--steel); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notice-actions span { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 6px; font-weight: 500; font-size: 0.9rem; }
.notice-actions span:first-child { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Slides in but never hides, so a paused or skipped animation still shows the card. */
@keyframes arrive {
  from { transform: translate(-14px, 22px) scale(0.97); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .notice { animation: none; }
}

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

section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  max-width: 22ch; margin: 0 0 16px;
  font: 700 clamp(2.1rem, 4.6vw, 3.2rem)/1 var(--condensed);
  letter-spacing: -0.005em;
}
h3 { margin: 0 0 4px; font: 600 1.35rem/1.15 var(--condensed); letter-spacing: 0.01em; }
.intro { max-width: 52ch; margin: 0 0 40px; color: var(--steel); }

/* The overdue ladder: a real sequence, so it's an ordered list. */
.ladder { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.ladder li {
  --dot: var(--teal);
  position: relative;
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 28px;
  padding: 0 0 30px 34px;
}
.ladder li::before {
  content: ""; position: absolute; left: 6px; top: 0.55em; bottom: -0.55em; width: 2px; background: var(--rule);
}
.ladder li:last-child::before { display: none; }
.ladder li::after {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 4px var(--paper);
}
.ladder li.late { --dot: var(--amber); }
.ladder li.lost { --dot: var(--rust); padding-bottom: 0; }
.ladder .when { font: 600 1.2rem/1.3 var(--condensed); letter-spacing: 0.01em; }
.ladder .what { margin: 0; }
.ladder .what strong { font-weight: 600; }
.ladder-note { max-width: 60ch; margin: 36px 0 0; color: var(--steel); }
.ladder-note + .ladder-note { margin-top: 14px; }

/* Real screenshots, in a plain phone outline. */
.with-phone { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.phone-shot { margin: 0; }
.phone {
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 34px;
  background: var(--label);
  box-shadow: 0 30px 60px -32px rgba(23, 32, 43, 0.55);
}
.phone img { width: 100%; height: auto; }
.phone-shot figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--steel); }

/* Check-out steps and the feature list. */
.steps { margin: 0; padding-left: 1.4em; }
.steps li { padding-left: 0.3em; margin-bottom: 14px; }
.steps li::marker { font: 700 1.2rem var(--condensed); color: var(--teal); }
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.features li { padding-top: 14px; border-top: 2px solid var(--ink); }
.features p { margin: 0; color: var(--steel); font-size: 1rem; }

/* Pricing: a plain comparison table. */
.pricing-table { width: 100%; max-width: 760px; border-collapse: collapse; background: var(--label); border-radius: 10px; overflow: hidden; }
.pricing-table th, .pricing-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.pricing-table thead th { font: 700 1.6rem/1 var(--condensed); padding-top: 22px; }
.pricing-table tbody th { font-weight: 500; color: var(--steel); width: 34%; }
.pricing-table tr:last-child th, .pricing-table tr:last-child td { border-bottom: 0; }
.price { font: 700 2.4rem/1 var(--condensed); }
.price small { font: 500 1rem var(--body); color: var(--steel); margin-left: 4px; }
.pricing-notes { max-width: 60ch; margin: 24px 0 0; padding: 0; list-style: none; }
.pricing-notes li { margin-bottom: 8px; }

/* Questions. */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font: 600 1.3rem/1.2 var(--condensed); letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--body); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; max-width: 62ch; color: var(--steel); }

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

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--steel); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--steel); }

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

.doc { padding: clamp(32px, 6vw, 72px) 0 80px; }
.doc .wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.95; }
.doc .updated { margin: 12px 0 40px; color: var(--steel); }
.doc h2 { max-width: none; margin: 44px 0 10px; font-size: 1.8rem; }
.doc p, .doc li { line-height: 1.6; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }

/* ------------------------------------------------------------ narrow */

@media (max-width: 860px) {
  .hero .wrap, .with-phone { grid-template-columns: minmax(0, 1fr); }
  .phone-shot { max-width: 260px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen { max-width: 440px; padding-bottom: 0; }
  /* Stacked under the tag instead of floating over it. */
  .notice { position: relative; margin: -14px 0 0 auto; }
  .ladder li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .pricing-table th, .pricing-table td { padding: 12px 12px; }
  .pricing-table tbody th { width: auto; }
  .price { font-size: 2rem; }
  .price small { display: block; margin: 4px 0 0; }
  .tag { padding-left: 48px; }
  .tag::before { left: 15px; }
}
