/* Pawcket website. Same colours and fonts as the app (src/renderer/styles/tokens.css).
   Fonts are served from this site, not Google, so visitors aren't tracked. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink: #14213d;
  --paper: #f5f5f1;
  --cream: #f6efe3;
  --card: #ffffff;
  --border: #e1e4ea;
  --muted: #4a5672;
  --teal: #0f5f58;
  --teal-dark: #0b4f49;
  --teal-soft: #e3f1ee;
  --danger: #b83a26;
  --amber-bg: #fbf0cf;
  --amber-text: #6e4a00;
  --radius: 12px;
  --wide: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--teal-dark);
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(36px, 5.4vw, 58px);
}
h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}
h3 {
  font-size: 22px;
}
p {
  margin: 0 0 16px;
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
}
.muted {
  color: var(--muted);
}
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 16px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--teal);
}
.site-nav .btn {
  color: #fff;
}
@media (max-width: 760px) {
  .site-nav .hide-small {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream), var(--paper));
  padding: 64px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lead {
  font-size: 21px;
  color: var(--muted);
}
.small-print {
  font-size: 15px;
  color: var(--muted);
}
.shot {
  border-radius: 16px;
}

/* Sections */
section {
  padding: 80px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.band {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Three short points under the hero */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.band .card {
  background: var(--paper);
}
.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* Feature rows: text one side, picture the other, alternating */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 96px;
}
.feature:last-child {
  margin-bottom: 0;
}
.feature.flip > :first-child {
  order: 2;
}
.label {
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  font-weight: 500;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}
.note {
  font-size: 15px;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding-left: 14px;
  margin-top: 18px;
}

/* Accounting systems */
.systems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.system {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
}
.system span {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}
.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 8px;
}
.chip-ok {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.chip-check {
  background: var(--amber-bg);
  color: var(--amber-text);
}

/* Call to action */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta p {
  color: #d5dae6;
  margin: 0;
}
.cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #56627d;
}
.cta .btn-secondary:hover {
  border-color: #fff;
}
.cta .actions {
  margin: 0;
}
.cta img {
  width: 150px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  min-height: 44px;
  list-style-position: inside;
}
.faq details > div {
  padding: 0 24px 8px;
  color: var(--muted);
}

/* Text pages (help, privacy) */
.page {
  padding: 56px 0 80px;
}
.page .wrap {
  max-width: 860px;
}
.page h2 {
  font-size: 28px;
  margin-top: 48px;
  scroll-margin-top: 90px;
}
.page h3 {
  font-size: 20px;
  margin-top: 28px;
}
.page ol,
.page ul {
  padding-left: 24px;
}
.page li {
  margin-bottom: 8px;
}
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 8px;
}
.toc ul {
  margin: 0;
  columns: 2;
}
.callout {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.callout strong {
  color: var(--amber-text);
}
kbd,
.ui {
  font-family: inherit;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.92em;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer a {
  color: var(--muted);
}

/* Phones and small tablets */
@media (max-width: 900px) {
  .hero .wrap,
  .feature,
  .cta {
    grid-template-columns: 1fr;
  }
  .feature {
    gap: 28px;
    margin-bottom: 72px;
  }
  .feature.flip > :first-child {
    order: 0;
  }
  .points {
    grid-template-columns: 1fr;
  }
  .systems {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta {
    padding: 40px 28px;
  }
  .cta img {
    display: none;
  }
  .toc ul {
    columns: 1;
  }
  section {
    padding: 60px 0;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 17px;
  }
  .wrap {
    padding: 0 16px;
  }
  .systems {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .site-nav .btn {
    width: auto;
  }
}

/* Small helpers */
.centre {
  text-align: center;
  margin-top: 24px;
}
.last {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------------- */
/* Interactive parts (site.js)                                                */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.section-head .label {
  display: block;
}
.chip-1 {
  background: #fbf0cf;
  color: #6e4a00;
}
.chip-31 {
  background: #fbe3cc;
  color: #7f3300;
}
.chip-61 {
  background: #f7d6d0;
  color: #8e2414;
}
.chip-90 {
  background: #5c1410;
  color: #fff;
}
.chip-promise {
  background: #dcebfa;
  color: #154c86;
}
.chip-disputed {
  background: #e9e7f6;
  color: #3f3596;
}
.chip-paid {
  background: #e3f1ee;
  color: #0b4f49;
}

/* The clickable demo in the hero */
.demo-wrap {
  position: relative;
}
.demo-hint {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}
.demo-hint__arrow {
  display: inline-block;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translateY(4px);
  }
}
.demo {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(20, 33, 61, 0.14);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
}
.demo__bar img {
  width: 22px;
  height: 22px;
}
.demo__mood {
  margin-left: auto;
  font-size: 13px;
  border-radius: 999px;
  padding: 2px 10px;
}
.demo__mood--happy {
  background: #e3f1ee;
  color: #0b4f49;
}
.demo__mood--grumpy {
  background: #fbe3cc;
  color: #7f3300;
}
.demo__mood--angry {
  background: #f7d6d0;
  color: #8e2414;
}
.demo__body {
  padding: 14px;
}
.demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.demo__reset {
  font: inherit;
  font-size: 14px;
  background: none;
  border: none;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 4px;
}
.demo__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi > span:first-child {
  font-size: 13px;
  color: var(--muted);
}
.kpi strong {
  font-size: 18px;
  font-weight: 500;
}
.kpi small {
  font-size: 12px;
  color: var(--danger);
}
.progress {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}
.progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.4s;
}
.demo__list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.drow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
}
.drow:first-child {
  border-top: none;
}
.drow:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.drow--done {
  background: #fafbf8;
}
.drow--paid .drow__amt .mono {
  text-decoration: line-through;
  color: var(--muted);
}
.drow__who strong {
  font-weight: 600;
}
.drow__who .mono {
  font-size: 13px;
}
.drow__amt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.drow__amt .chip,
.mini-row .chip {
  margin: 0;
  white-space: nowrap;
}
.drow__next {
  font-size: 14px;
  align-self: center;
}
.drow__act {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.drow__tick {
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  align-self: center;
}
.drow__menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.dbtn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.dbtn:hover {
  border-color: var(--muted);
}
.dbtn--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.dbtn--primary:hover {
  background: var(--teal-dark);
}
.dbtn[aria-expanded='true'] {
  border-color: var(--teal);
  color: var(--teal);
}

/* Before and after */
.compare {
  --pos: 50%;
  position: relative;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  user-select: none;
}
.compare:focus-within {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.compare__before,
.compare__after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 24px;
}
.compare__after {
  background: linear-gradient(135deg, #e3f1ee, var(--paper));
}
.compare__before {
  background: #e9e6df;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__tag {
  position: absolute;
  top: 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
}
.compare__tag--before {
  left: 14px;
  background: #fff;
  color: var(--danger);
}
.compare__tag--after {
  right: 14px;
  background: var(--teal);
  color: #fff;
}
.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 33, 61, 0.15);
  pointer-events: none;
}
.compare__line span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.25);
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.sheet {
  width: min(640px, 100%);
  background: #fff;
  border: 1px solid #c8c8c8;
  font-family: Calibri, 'Segoe UI', sans-serif;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: rotate(-1deg);
}
.sheet__bar {
  background: #1d6f42;
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
}
.sheet table {
  border-collapse: collapse;
  width: 100%;
}
.sheet td {
  border: 1px solid #dadada;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.sheet__cols td,
.sheet td:first-child {
  background: #f0f0f0;
  color: #666;
  text-align: center;
  font-size: 12px;
}
.sheet__head td {
  font-weight: 700;
}
.f-red {
  background: #ff9c9c;
}
.f-yellow {
  background: #ffeb7a;
}
.f-green {
  background: #9de29d;
}
.strike {
  text-decoration: line-through;
}
.sticky {
  position: absolute;
  width: 170px;
  padding: 14px;
  font-family: 'Segoe Print', 'Comic Sans MS', cursive;
  font-size: 15px;
  line-height: 1.3;
  color: #3d3200;
  background: #fff27a;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}
.sticky--one {
  top: 56px;
  right: 6%;
  transform: rotate(5deg);
}
.sticky--two {
  bottom: 22px;
  left: 5%;
  transform: rotate(-4deg);
  background: #ffc2e2;
  color: #4a1030;
}
.mini-window {
  width: min(640px, 100%);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(20, 33, 61, 0.14);
  font-size: 14px;
}
.mini-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
}
.mini-window__bar img {
  width: 20px;
  height: 20px;
}
.mini-window__body {
  padding: 12px;
}
.mini-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mini-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto 1.1fr;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
}
.mini-row span:first-child {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-row .mono {
  text-align: right;
}
.mini-done {
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  margin-top: 8px;
}
.pairs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pair p {
  margin: 0;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.45;
}
.pair span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.pair__before {
  background: #f4f1ec;
  color: var(--muted);
}
.pair__before span {
  color: var(--danger);
}
.pair__after {
  background: var(--teal-soft);
}
.pair__after span {
  color: var(--teal);
}

/* Feature tabs (only shown when site.js runs; otherwise every panel shows) */
.tabs {
  display: none;
}
.js .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.tab {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.tab:hover {
  border-color: var(--muted);
}
.tab[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tab-panel {
  margin-bottom: 72px;
}
.js .tab-panel {
  margin-bottom: 0;
}
.tab-panel[hidden] {
  display: none;
}
.tone {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: var(--card);
  margin: 6px 0 4px;
}
.tone__btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.tone__btn[aria-pressed='true'] {
  background: var(--teal);
  color: #fff;
}
.letter__paper {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.12);
  padding: 32px 36px;
  font-size: 14px;
  line-height: 1.55;
  border-top: 6px solid var(--teal);
}
.letter__paper--firm {
  border-top-color: #e07b24;
}
.letter__paper--final {
  border-top-color: var(--danger);
}
.letter__paper p {
  margin-bottom: 10px;
}
.letter__paper h4 {
  margin: 14px 0 10px;
  font-size: 16px;
}
.letter__top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.letter__top strong {
  color: var(--ink);
}
.letter__date {
  text-align: right;
  color: var(--muted);
}
.letter__table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 12px;
  font-size: 13px;
}
.letter__table th,
.letter__table td {
  text-align: left;
  padding: 5px 6px;
  border-bottom: 1px solid var(--border);
}
.letter__table th {
  color: var(--muted);
  font-weight: 600;
}
.letter__table td:last-child,
.letter__table th:last-child {
  text-align: right;
}
.letter__pay {
  background: var(--paper);
  border-radius: 6px;
  padding: 8px 12px;
}
.letter__sign {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 22px;
  color: #1b3a8a;
  margin: 0;
}

/* Meet Penny */
.moods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.mood {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 200px;
  padding: 20px 16px;
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s;
}
.mood:hover {
  transform: translateY(-3px);
}
.mood[aria-pressed='true'] {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.mood img {
  width: 120px;
  height: 120px;
}
.mood span {
  font-size: 14px;
  color: var(--muted);
}
.mood-says {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 19px;
  min-height: 3em;
}

/* Tailoring */
.tailor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tailor__self,
.tailor__ask {
  border-radius: 16px;
  padding: 32px;
}
.tailor__self {
  background: var(--paper);
  border: 1px solid var(--border);
}
.tailor__ask {
  background: var(--ink);
  color: #fff;
}
.tailor__ask p {
  color: #d5dae6;
}
.tailor__ask .small-print {
  color: #aab3c7;
  margin: 12px 0 0;
}
.tailor__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tailor__list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
}
.tailor__ask .btn-primary {
  background: #2fa597;
  color: #08221f;
}
.tailor__ask .btn-primary:hover {
  background: #49bcae;
  color: #08221f;
}
.cta .cta__family {
  margin-top: 12px;
  font-size: 15px;
  color: #aab3c7;
}

/* Penny, bottom right on every page */
.penny {
  position: fixed;
  right: 16px;
  bottom: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.penny__cat {
  width: 112px;
  height: 112px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 12px rgba(20, 33, 61, 0.25));
}
.penny__cat img {
  width: 112px;
  height: 112px;
}
.penny__bubble {
  position: relative;
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(20, 33, 61, 0.18);
  padding: 16px 18px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.45;
}
.penny__bubble[hidden] {
  display: none;
}
.penny__bubble::after {
  content: '';
  position: absolute;
  right: 44px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.penny__bubble p {
  margin: 8px 0 0;
}
.penny__bubble .btn {
  margin-top: 12px;
}
.penny__bubble .btn[hidden] {
  display: none;
}
.penny__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}
.penny__chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  background: #e3f1ee;
  color: #0b4f49;
}
.penny__chip--grumpy {
  background: #fbe3cc;
  color: #7f3300;
}
.penny__chip--angry {
  background: #f7d6d0;
  color: #8e2414;
}
.penny__coin {
  position: absolute;
  right: 50px;
  bottom: 60px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe680, #e3b341 60%, #b8861b);
  color: #6e4a00;
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  animation: coin-drop 1.1s ease-in forwards;
  pointer-events: none;
}
@keyframes coin-drop {
  0% {
    transform: translateY(-160px) scale(1.2);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  85% {
    transform: translateY(0) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(6px) scale(0.5);
    opacity: 0;
  }
}
.penny--pop .penny__cat {
  animation: pop 0.6s ease;
}
@keyframes pop {
  40% {
    transform: scale(1.15);
  }
}
.penny--purr .penny__cat {
  animation: purr 0.25s ease-in-out 6;
}
@keyframes purr {
  25% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-hint__arrow,
  .penny--pop .penny__cat,
  .penny--purr .penny__cat {
    animation: none;
  }
  .progress__fill,
  .mood {
    transition: none;
  }
}

@media (max-width: 900px) {
  .pairs,
  .tailor {
    grid-template-columns: 1fr;
  }
  .compare {
    height: 400px;
  }
  .sticky {
    width: 140px;
    font-size: 13px;
  }
}
@media (max-width: 560px) {
  .demo__kpis {
    grid-template-columns: 1fr 1fr;
  }
  .demo__kpis .kpi:last-child {
    grid-column: 1 / -1;
  }
  .drow {
    grid-template-columns: 1fr;
  }
  .drow__amt,
  .drow__act {
    justify-content: flex-start;
  }
  .compare__before,
  .compare__after {
    padding: 52px 12px 16px;
  }
  .mini-row {
    grid-template-columns: 1fr auto;
  }
  .mini-row span:nth-child(2),
  .mini-row span:nth-child(4) {
    display: none;
  }
  .sheet td:nth-child(4) {
    display: none;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .tailor__list {
    grid-template-columns: 1fr;
  }
  .tailor__self,
  .tailor__ask {
    padding: 24px;
  }
  .letter__paper {
    padding: 22px 18px;
  }
  .penny__cat,
  .penny__cat img {
    width: 80px;
    height: 80px;
  }
  .mood {
    width: 100%;
    max-width: 280px;
  }
}

/* The demo grows as rows open, so keep the headline still beside it */
.hero .wrap {
  align-items: start;
}
.hero .wrap > div:first-child {
  padding-top: 48px;
}
@media (max-width: 900px) {
  .hero .wrap > div:first-child {
    padding-top: 0;
  }
}
