/* Self-hosted Inter — one-file-per-weight, latin only. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-bold.woff2") format("woff2");
}

/* Self-hosted Archivo SemiCondensed (display face). One variable latin subset carries
   both weights; the stretch descriptor pins the wdth axis to 87.5 (SemiCondensed). */
@font-face {
  font-family: "Archivo SemiCondensed";
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 87.5%;
  font-display: swap;
  src: url("/assets/fonts/archivo-sc.woff2") format("woff2");
}

:root {
  /* Surfaces */
  --paper: #F7F3EC;
  --paper-2: #EFE9DE;
  --card: #FFFFFF;
  --topbar: #1C1A16;

  /* Ink */
  --ink: #15130F;
  --ink-2: #3A3732;
  --muted: #625D53;
  --faint: #8C8679;          /* placeholders, disabled text: 3.3:1, decorative only */
  --line: #DDD6C8;           /* borders on paper */
  --line-2: #E8E1D4;         /* borders on white */

  /* Signal (the one orange) */
  --signal: #C43E0B;         /* fills: white text 5.20:1 */
  --signal-hover: #B83A0A;   /* white text 5.76:1 */
  --signal-ink: #9C3509;     /* text/links: 6.49:1 on paper, 7.18:1 on white */
  --signal-soft: #FBE4D8;    /* tinted surfaces; signal-ink on it 5.87:1 */
  --signal-bright: #E4572E;  /* graphics only (tag illustration), never text */
  --ring: 0 0 0 3px rgba(196, 62, 11, 0.22);

  /* Semantic */
  --ok: #166534;      --ok-soft: #DCFCE7;     /* 6.49:1 */
  --warn: #92400E;    --warn-soft: #FEF3C7;   /* 6.37:1 */
  --danger: #B91C1C;  --danger-soft: #FEE2E2; /* white on danger 6.48:1; danger on soft 5.30:1 */
  --info: #1E40AF;    --info-soft: #DBEAFE;   /* 7.15:1 */

  /* Legacy aliases — KEEP: pages and _shell.css reference these names */
  --bg: var(--paper);
  --bg-soft: var(--paper-2);
  --bg-dark: var(--topbar);
  --brand: var(--signal);
  --brand-ink: var(--signal-ink);
  --brand-soft: var(--signal-soft);
  --accent: var(--signal);
  --accent-ink: var(--signal-ink);
  --border: var(--line-2);        /* .ps-card, sales-script.html */
  --bg-subtle: var(--paper-2);    /* .ps-services li */

  /* Shape */
  --r-xs: 2px;   /* tag corners on the mark only */
  --r-sm: 4px;   /* chips, badges, code */
  --r: 6px;      /* buttons, inputs, selects */
  --r-md: 8px;   /* cards, panels, empty-state icon box */
  --r-lg: 12px;  /* modals, hero tag card */
  --radius: var(--r);                          /* legacy name */
  --shadow-sm: 0 1px 0 var(--line-2);          /* sticky nav underline */
  --shadow: 0 1px 2px rgba(21, 19, 15, 0.06);  /* legacy name; near-flat now */
  --shadow-lg: 0 16px 40px rgba(21, 19, 15, 0.16); /* modals, menus, toasts only */

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo SemiCondensed", "Archivo", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;

  /* Motion */
  --t-fast: 120ms;
  --t: 160ms;
  --t-slow: 240ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, summary:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--signal-ink);
  outline-offset: 2px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* Inline icon (24x24 viewBox, 1.5 stroke, currentColor); the visible label carries meaning */
.i {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 700px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) { display: none; }   /* mark + CTA only; the footer carries the links */
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { white-space: nowrap; }
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 15px;
}

/* Founders ribbon (conditional strip under the nav) */
.ribbon {
  display: block;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--signal-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
}
.ribbon:hover { background: var(--signal-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.btn .i { width: 16px; height: 16px; }
.btn-primary,
.btn-brand {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.btn-primary:hover,
.btn-brand:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn-outline {
  background: var(--card);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--paper-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn-danger {
  background: var(--card);
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Typography helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: var(--signal-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.muted { color: var(--muted); }
.sub { font-size: 19px; line-height: 1.5; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Status dot (text first, colour second) */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
  margin-right: 6px;
  vertical-align: middle;
}
.dot.ok { background: var(--ok); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: var(--paper);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero p.sub {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.hero-trust .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ok); margin-right: 0;
}

/* Ticket mock (kept for pages that still use it; flat paper frame) */
.ticket-mock {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ticket-mock .tm-head,
.tag-card .tm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.ticket-mock .tm-chip,
.tag-card .tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
}
.tm-chip.wip { background: var(--warn-soft); color: var(--warn); }
.tm-chip.done { background: var(--ok-soft); color: var(--ok); }
.tm-chip.new { background: var(--info-soft); color: var(--info); }
.ticket-mock .tm-body,
.tag-card .tm-body { padding: 20px; }
.tm-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.tm-row:last-child { border-bottom: 0; }
.tm-row .k { color: var(--muted); font-weight: 500; }
.tm-row .v { color: var(--ink); font-weight: 500; }
.tm-footer {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
}

/* Tag card — the hero object (white swing tag pointing left, hole at the point) */
.tag-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tag-card .demo-chip { position: absolute; top: 12px; right: 12px; z-index: 1; }
.tag-card .ref { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.tag-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--ink-2);
}
.tag-card .chip.in_repair { background: #FFE4D1; color: #9A3412; }
.tag-card .chip.ready { background: var(--ok-soft); color: var(--ok); }
.tag-card .chip.invoiced, .tag-card .chip.info { background: var(--info-soft); color: var(--info); }
.tag-card .chip.closed { background: #F3F4F6; color: #4B5563; }
.tag-card .chip.ok { background: var(--ok-soft); color: var(--ok); }
.tag-card .tm-row .v strong { font-weight: 700; }
@media (min-width: 900px) {
  .tag-card {
    clip-path: polygon(0 50%, 10% 0, 100% 0, 100% 100%, 10% 100%);
    padding-left: 56px;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
  }
  .tag-card::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    z-index: 1;
  }
}

/* Sections */
section { padding: 80px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 19px; line-height: 1.5; }
.band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color var(--t-fast) var(--ease);
}
.feature-card:hover {
  border-color: var(--ink);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Demo / mock data chip — makes it obvious a card is illustrative */
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--muted);
  vertical-align: middle;
}
.demo-chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--faint);
  display: inline-block;
}

/* Pricing monthly / annual toggle (segmented control, not a CTA) */
.price-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px;
  margin: 0 auto 36px;
  gap: 4px;
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.price-toggle button.active {
  background: var(--ink);
  color: #fff;
}
.price-toggle .savings {
  display: inline-block;
  font-size: 10px;
  background: var(--signal-soft);
  color: var(--signal-ink);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.price-toggle button.active .savings { background: var(--signal); color: #fff; }
.plan .price .period-note { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 8px; }

/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.pw-toggle:hover { color: var(--ink); background: var(--paper-2); }

/* Welcome modal (first /app load) */
.welcome-backdrop {
  position: fixed; inset: 0;
  background: rgba(21,19,15,0.5);
  display: grid; place-items: center;
  z-index: 1000;
  padding: 20px;
}
.welcome-modal {
  background: var(--card);
  border-radius: var(--r-lg);
  max-width: 720px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.welcome-modal h2 { margin-bottom: 10px; }
.welcome-modal p.lead { color: var(--muted); margin-bottom: 24px; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .welcome-grid { grid-template-columns: 1fr; } }
.welcome-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: left;
}
.welcome-card h3 { font-family: var(--font); font-stretch: normal; font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.welcome-card p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.welcome-close {
  display: block;
  margin: 20px auto 0;
  background: transparent; border: 0;
  color: var(--muted); font-size: 13px; cursor: pointer;
  font-family: var(--font);
}

/* "+ add last name" toggle-row */
.addon-link {
  background: transparent; border: 0;
  color: var(--signal-ink); font-weight: 600; font-size: 13px;
  padding: 6px 0; cursor: pointer; font-family: var(--font);
}
.addon-link:hover { text-decoration: underline; }
.feature-card h3 { margin-bottom: 8px; font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step .num {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.popular {
  border: 2px solid var(--ink);
  position: relative;
}
.plan.popular::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .price {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 4px;
}
.plan .price small { font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex: 1;
}
.plan ul li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.plan .btn { width: 100%; }

/* Tick list (replaces glyph bullets; first cell is an inline SVG check) */
.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tick-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 6px 0;
  align-items: start;
  font-size: 14px;
}
.tick-list .i { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.plan ul.tick-list li { padding: 6px 0; display: grid; }

/* Proof strip (paper-2 band, four figures separated by hairlines) */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.proof-strip > * {
  padding: 24px 20px;
  border-left: 1px solid var(--line);
}
.proof-strip > *:first-child { border-left: 0; }
.proof-strip strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 6px;
}
.proof-strip span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 800px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip > *:nth-child(3) { border-left: 0; }
  .proof-strip > *:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Commitment list (numbered, 56 px number column) */
.commit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: commit;
}
.commit-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.commit-list li:last-child { border-bottom: 0; }
.commit-list li:not(.sign) { counter-increment: commit; }
.commit-list li:not(.sign)::before {
  content: counter(commit);
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--signal-ink);
  font-variant-numeric: tabular-nums;
}
.commit-list h3,
.commit-list strong {
  display: block;
  font-family: var(--font);
  font-stretch: normal;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 4px;
  text-wrap: initial;
}
.commit-list p { font-size: 15px; color: var(--muted); max-width: 62ch; }
.commit-list li.sign {
  grid-template-columns: 1fr;
  font-size: 14px;
  color: var(--muted);
  padding-top: 20px;
}

/* Tour (alternating text / screenshot rows) */
.tour { display: grid; gap: 8px; }
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
}
.tour-row:nth-child(even) .shot { order: -1; }
.tour-row h3 { margin: 10px 0 12px; }
.tour-row > div > p { color: var(--muted); font-size: 16px; max-width: 62ch; margin-bottom: 14px; }
.tour-row .tick-list li { font-size: 14px; }
.shot {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--card);
}
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.shot:empty { display: none; }
@media (max-width: 900px) {
  .tour-row { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .tour-row:nth-child(even) .shot { order: 0; }
}

/* UK band (six short cells, icon each) */
.uk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .uk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .uk-grid { grid-template-columns: 1fr; } }
.uk-grid > * {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 20px;
}
.uk-grid .i { width: 24px; height: 24px; color: var(--ink-2); margin-top: 1px; }
.uk-grid strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.uk-grid p { font-size: 14px; color: var(--muted); }

/* Auth forms */
.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--paper);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px;
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  font-family: var(--font);
  color: var(--ink);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  background: var(--card);
}
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A3732' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: var(--ring);
}
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); }
.field.error .hint { color: var(--danger); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--signal); }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card button[type=submit] {
  width: 100%;
  margin-top: 8px;
  height: 44px;
  font-size: 15px;
}
.auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.alert {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-err { background: var(--danger-soft); color: var(--danger); border: 1px solid #FECACA; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #BBF7D0; }

/* CTA banner */
.cta-band {
  background: var(--topbar);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin-bottom: 14px; }
.cta-band p { color: #B5AFA3; margin-bottom: 28px; font-size: 17px; }
.cta-band a.link { color: var(--paper); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: var(--font); font-stretch: normal; font-size: 12px; font-weight: 600; line-height: 1; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 62ch; }

/* Trust + legal pages */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 24px;
}
.trust-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.trust-card p {
  color: var(--muted);
  font-size: 14px;
}
.trust-card p + p { margin-top: 8px; }
.micro-proof {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .micro-proof { grid-template-columns: 1fr; } }
.micro-proof .item {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--card);
  padding: 14px 16px;
}
.micro-proof strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.micro-proof span {
  color: var(--muted);
  font-size: 13px;
}
.legal-shell {
  max-width: 860px;
  margin: 0 auto;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
}
.legal-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}
.legal-card h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
}
.legal-card ul {
  margin: 0;
  padding-left: 20px;
}
.legal-card li + li,
.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 10px;
}

/* Per-shop public SEO page (/s/:slug) */
.ps-hero {
  text-align: center;
  margin-bottom: 32px;
}
.ps-hero h1 {
  margin: 12px 0 6px;
}
.ps-sub {
  color: var(--muted, #625D53);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.ps-card {
  border: 1px solid var(--border, #E8E1D4);
  border-radius: var(--r-md);
  background: var(--card);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.ps-card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.ps-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-services li {
  background: var(--bg-subtle, #EFE9DE);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 0.9rem;
}
.ps-foot {
  text-align: center;
  margin-top: 28px;
}

/* Motion: nothing moves unless it has to */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
