/* Tax Ledger marketing site. Palette and rules in design/README.md. */
:root {
  --green: #0e5a4b;
  --white: #ffffff;
  --ink: #15191e;
  --gray: #55595f;
  --line: #e4e2dc;
  --sand: #f4f0e8;
  --clay: #b5451b;
  --mustard: #e3b23c;
  /* status pills, product mock only */
  --complete-bg: #e3f2ec;
  --complete-fg: #075a48;
  --receipt-bg: #fdebd3;
  --receipt-fg: #7a3b00;
  --lift: 0 10px 28px rgba(21, 25, 30, 0.2);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* sticky header is 65px at every width (the no-JS wrapped header is not sticky) + ~19px */
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}
.hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--white);
}

h1,
h2,
h3 {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.005em;
}
h3 {
  font-weight: 600;
  line-height: 1.25;
}
p {
  margin: 0;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
  color: var(--white);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .ext {
  flex: none;
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-invert {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.btn-invert:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  min-height: 50px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: "\2192";
  content: "\2192" / "";
  transition: transform 0.15s ease;
}
.link-arrow:hover {
  color: var(--white);
  text-decoration: underline;
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
/* 24px keeps the mark's 24-unit grid on whole pixels. The mark sits on white in the header and footer. */
.brand svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--green);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.site-nav a {
  padding: 8px 12px;
  color: var(--gray);
  font-size: 15px;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.signin {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.signin:hover {
  text-decoration: underline;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-signin {
  display: none;
}

@media (max-width: 959px) {
  .header-inner {
    gap: 8px 12px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 6px;
  }
  .header-actions .signin {
    display: none;
  }
  .nav-signin {
    display: block;
  }
  /* Without JS the nav wraps under the brand (header ~156px tall), so don't keep it sticky. */
  .no-js .site-header {
    position: static;
  }
  /* With JS, collapse the nav behind the toggle; without JS it simply wraps. */
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .site-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .js .site-nav.is-open {
    display: flex;
  }
  .js .site-nav a {
    padding: 12px 8px;
  }
}
@media (max-width: 380px) {
  .brand span {
    font-size: 17px;
  }
  .header-actions {
    gap: 8px;
  }
}
@media (max-width: 340px) {
  /* The serif wordmark is wider than the sans. This keeps the header on one line at 320px. */
  .brand span {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .header-actions .btn {
    max-width: 108px;
    padding: 4px 10px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}
@media (min-width: 720px) {
  .section {
    padding: 88px 0;
  }
}
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 42px);
}
.section-head p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--gray);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: var(--white);
}
/* A quieter version of the original graph paper, fading around the product preview. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 85% 45%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 85% at 85% 45%, #000, transparent 80%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 56px;
}
@media (max-width: 979px) {
  .hero::before {
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 65% 72%, #000, transparent 85%);
    mask-image: radial-gradient(ellipse 100% 60% at 65% 72%, #000, transparent 85%);
  }
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.1;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 20px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--sand);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 24px;
}
.hero-ctas .btn {
  min-height: 50px;
  padding: 0 24px;
}
.hero-note {
  margin-top: 14px;
  max-width: 520px;
  text-wrap: balance;
  font-size: 14px;
  color: var(--sand);
}
.hero-note a,
.hero-note a:hover {
  color: var(--white);
}
.price-line {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sand);
}
.price-line strong {
  color: var(--white);
  font-weight: 600;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: start;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .hero-copy {
    position: sticky;
    top: 112px;
  }
}

/* Hero scene: order, assistant, ledger as a numbered vertical stack */
.scene {
  margin: 0;
  width: 100%;
  max-width: 600px;
  color: var(--ink);
}
.scene-steps {
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.scene-steps > li {
  position: relative;
  min-width: 0;
}
.scene-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--sand);
}
.scene-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
.order,
.chat-card,
.ledger {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--lift);
}
/* numerals move into a left rail, joined by a line from each marker to the next */
@media (min-width: 640px) {
  .scene-steps > li {
    padding-left: 44px;
  }
  .scene-num {
    position: absolute;
    left: 0;
    top: 0;
  }
  .scene-steps > li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 13.5px;
    top: 28px;
    bottom: -24px;
    width: 1px;
    background: rgba(255, 255, 255, 0.35);
  }
}

/* order confirmation (synthetic, no marks) */
.order {
  padding: 12px 16px;
  font-size: 14px;
}
.order-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.order-head strong {
  font-weight: 600;
}
.order-head .mono {
  font-size: 13px;
  color: var(--gray);
}
.order-title {
  margin-top: 8px;
  font-weight: 600;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.order-item .dock {
  flex: none;
  width: 72px;
  height: 48px;
}
.order-name {
  min-width: 0;
  font-weight: 500;
  line-height: 1.35;
}
.nowrap {
  white-space: nowrap;
}
.order-name .meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
}
.order-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray);
}
.order-facts .mono {
  text-align: right;
  color: var(--ink);
}
.order-facts .strong {
  font-weight: 500;
}

/* chat */
.chat-card {
  overflow: hidden;
}
.chat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}
.seg span {
  padding: 2px 10px;
  border-radius: 6px;
  color: var(--gray);
}
.seg .on {
  background: var(--ink);
  color: var(--white);
}
.works {
  font-size: 12px;
  color: var(--gray);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
.msg {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.msg p + p {
  margin-top: 6px;
}
.msg-role {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
}
.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
}
.msg-user .msg-role {
  color: var(--line);
}
.attach {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 13px;
}
.msg-agent {
  align-self: flex-start;
  background: var(--sand);
}
.msg-agent .msg-role {
  color: var(--gray);
}
.msg-agent .record {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--white);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
}
.record svg {
  flex: none;
  margin-top: 2px;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick span {
  padding: 3px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ledger */
.ledger {
  overflow: hidden;
}
.ledger-head,
.ledger-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.ledger-head .mono {
  font-weight: 400;
  color: var(--gray);
}
.ledger-foot {
  border-top: 1px solid var(--line);
  font-weight: 500;
  color: var(--gray);
}
.ledger-foot .mono {
  color: var(--green);
}
.ledger ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.tag-new {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}
.ledger .vendor {
  font-weight: 500;
  min-width: 0;
}
.ledger .meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
}
.ledger .amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pill-complete {
  background: var(--complete-bg);
  color: var(--complete-fg);
}
.pill-receipt {
  background: var(--receipt-bg);
  color: var(--receipt-fg);
}
@media (max-width: 420px) {
  .ledger li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ledger .pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .msg {
    max-width: 96%;
  }
  .order-item .dock {
    width: 64px;
    height: 43px;
  }
}

/* ---------- Audience strip ---------- */
.who-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.who-title {
  font-size: 20px;
}
.who-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.who-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}
.who-list svg {
  flex: none;
}

/* ---------- How it works ---------- */
#how {
  padding-top: 40px;
}
.steps {
  display: grid;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  min-width: 0;
}
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}
.step h3 {
  margin-top: 16px;
  font-size: 20px;
}
.step p {
  margin-top: 8px;
  color: var(--gray);
}
.step > :last-child {
  margin-top: 20px;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    column-gap: 56px;
    row-gap: 0;
  }
  .step {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
  }
}
.mini-connect {
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.mini-connect span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mini-connect b {
  font-weight: 600;
}
.mini-connect i {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}
.chips span {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}
.zip {
  align-self: start;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}
.zip div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.zip div:first-child {
  font-weight: 500;
}
.zip span:first-child {
  white-space: nowrap;
}
.zip span + span {
  color: var(--gray);
  font-family: var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Say it (sand band) ---------- */
.say,
.pricing {
  background: var(--sand);
}
.says {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}
.says li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.says q {
  display: block;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  quotes: "\201C" "\201D";
}
.says p {
  margin-top: 8px;
  color: var(--gray);
}
@media (min-width: 760px) {
  .says {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
  }
}

/* ---------- Connect ---------- */
.connect-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) {
  .connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
.connect-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.connect-card h3 {
  font-size: 22px;
}
.connect-card > p {
  margin: 6px 0 18px;
  color: var(--gray);
}
.connect-card > .cgpt-show {
  margin-top: 16px;
  color: var(--green);
}
.tiny-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tiny;
  font-size: 14px;
  color: var(--gray);
}
.tiny-steps li {
  counter-increment: tiny;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tiny-steps li::before {
  content: counter(tiny) ".";
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}
.tiny-steps li + li::after {
  order: -1;
  content: "\2192";
}
@media (max-width: 480px) {
  .tiny-steps {
    flex-direction: column;
    gap: 2px;
  }
  .tiny-steps li + li::after {
    content: none;
  }
}
.js #chatgpt:not(:target):not(.is-open) .cgpt-steps {
  display: none;
}
.no-js .cgpt-show,
#chatgpt:target .cgpt-show,
#chatgpt.is-open .cgpt-show {
  display: none;
}
.num-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: num;
}
.num-steps > li {
  position: relative;
  counter-increment: num;
  padding: 10px 0 10px 32px;
  border-top: 1px solid var(--line);
}
.num-steps > li:first-child {
  border-top: 0;
  padding-top: 0;
}
.num-steps > li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}
.num-steps > li:first-child::before {
  top: -2px;
}
.num-steps b {
  font-weight: 600;
}
.copy {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.copy input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
}
.copy input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.copy .btn {
  border-radius: 8px;
}
.no-js [data-copy] {
  display: none;
}
.copy-msg {
  display: block;
  min-height: 1.4em;
  margin-top: 6px;
  font-size: 13px;
  color: var(--green);
}
.small {
  font-size: 14px;
}
.connect-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--gray);
}
.connect-note svg {
  flex: none;
  margin-top: 4px;
  color: var(--ink);
}

/* ---------- Features ---------- */
.features-band {
  padding-top: 0;
}
.features-band > .wrap > .section-head {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: none;
}
.features {
  display: grid;
  gap: 32px 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 14px;
}
.feature svg {
  grid-row: span 2;
  margin-top: 1px;
}
.feature h3 {
  font-size: 17px;
}
.feature p {
  margin-top: 4px;
  color: var(--gray);
  font-size: 15px;
}

/* ---------- Pricing (sand band) ---------- */
.plan {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.plan h3 {
  font-size: 18px;
}
.billing-selector {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.billing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sand);
}
.billing-toggle label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
#billing-monthly:checked ~ .billing-toggle label[for="billing-monthly"],
#billing-annual:checked ~ .billing-toggle label[for="billing-annual"] {
  background: var(--green);
  color: var(--white);
}
#billing-monthly:focus-visible ~ .billing-toggle label[for="billing-monthly"],
#billing-annual:focus-visible ~ .billing-toggle label[for="billing-annual"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.billing-annual,
#billing-annual:checked ~ .plan-pricing .billing-monthly {
  display: none;
}
#billing-annual:checked ~ .plan-pricing .billing-annual {
  display: block;
}
.plan-pricing {
  min-height: 116px;
  padding-top: 8px;
}
.badge {
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.plan-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.plan-price .amount {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.plan-price .per,
.plan-note {
  color: var(--gray);
}
.plan-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  font-size: 14px;
}
.plan ul {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  flex: 1 1 auto;
}
.plan li {
  position: relative;
  padding: 7px 0 7px 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 11px;
  height: 5px;
  border-left: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(-45deg);
}
.fine-print {
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.faq-list details[open] summary::after {
  content: "\2212";
}
.faq-list summary:hover {
  color: var(--green);
}
.faq-list .answer {
  padding: 0 40px 20px 0;
  color: var(--gray);
}

/* ---------- Closing band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.cta-band h2 {
  font-size: clamp(30px, 4.4vw, 42px);
}
.cta-band p {
  margin-top: 10px;
  font-size: 15px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 28px;
}
@media (min-width: 340px) and (max-width: 639px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}
.footer-brand p {
  margin-top: 10px;
  max-width: 300px;
  font-size: 14px;
  color: var(--gray);
}
.footer-col h2 {
  font-size: 15px;
}
.footer-col ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.footer-col li {
  padding: 4px 0;
  font-size: 14px;
}
.footer-col a {
  color: var(--gray);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-col .footer-small {
  font-size: 13px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--gray);
}
/* hairline limited to the content width */
.footer-bottom::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: 10px;
  background: var(--line);
}

/* ---------- Prose pages ---------- */
.prose-page {
  padding: 56px 0 72px;
}
.prose {
  max-width: 720px;
}
.prose h1 {
  font-size: clamp(34px, 5.4vw, 50px);
}
.prose .lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--gray);
}
.prose h2 {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 25px;
}
.prose p,
.prose ul {
  margin-top: 12px;
}
.prose ul {
  padding-left: 20px;
}
.prose li + li {
  margin-top: 6px;
}
.prose .updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray);
}
.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.prose .code {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose .code code {
  padding: 0;
  border: 0;
  font-size: inherit;
}
.prose .code .prompt {
  color: var(--line);
  user-select: none;
}
.not-found {
  padding: 96px 0 120px;
}
.not-found .code-num {
  font-size: 15px;
  color: var(--gray);
}
.not-found h1 {
  margin-top: 12px;
}
.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Connection guide ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 20px;
}
.jump a {
  font-size: 15px;
  font-weight: 500;
}
.prose .before {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose .before h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 20px;
}
.prose .before ul {
  margin-top: 8px;
}
.guide-cta {
  margin-bottom: 8px;
}
.prose .num-steps {
  margin-top: 18px;
}
.prose .try-list {
  list-style: none;
  padding-left: 0;
}
.try-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}
.try-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.prose .try-list li + li {
  margin-top: 0;
}
.prose .faq-list {
  margin-top: 14px;
}

.plan-pricing .btn { margin-top: 20px; }

/* Audience navigation and persona landing pages. */
.audience-nav { position: relative; }
.audience-toggle { padding: 8px 12px; border: 0; background: transparent; color: var(--gray); font: inherit; font-size: 15px; cursor: pointer; }
.js .audience-links { display: none; }
.js .audience-nav.is-open .audience-links { display: block; }
.no-js .audience-toggle { display: none; }
.no-js .audience-links { position: static; width: auto; border: 0; }
.audience-links { position: absolute; top: 100%; left: 0; width: 264px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; z-index: 30; }
.site-nav .audience-links a { display: block; padding: 12px; }
.footer-audience-title { margin-top: 24px; font-size: 14px; }
.who-list a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.persona-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: var(--gray); }
.persona-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.persona-record { margin: 0; padding: 28px; background: var(--white); color: var(--ink); border-radius: 12px; min-width: 0; }
.persona-record figcaption { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--gray); }
.persona-record-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 20px; }
.persona-record-title strong { font-weight: 500; }
.persona-fields { margin: 20px 0; }
.persona-fields > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.persona-fields dt { color: var(--gray); font-size: 13px; }
.persona-fields dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.persona-status { display: inline-block; background: var(--complete-bg); color: var(--complete-fg); border-radius: 5px; font-size: 12px; padding: 4px 8px; }
.persona-status.needs-receipt { background: var(--receipt-bg); color: var(--receipt-fg); }
.persona-missing { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.persona-missing strong { display: flex; justify-content: space-between; gap: 12px; }
.persona-missing p { margin: 8px 0; font-size: 14px; }
.persona-benefits, .persona-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.persona-benefits h3, .persona-steps h3 { font-size: 19px; margin-bottom: 12px; }
.persona-benefits p, .persona-steps p { color: var(--gray); }
.persona-example { background: var(--sand); }
.persona-example-grid, .persona-package-grid { display: grid; gap: 32px; align-items: start; }
.persona-page h2 { font-size: clamp(28px, 3.5vw, 40px); }
.persona-example blockquote { margin: 0 0 24px; font: 500 clamp(23px, 3vw, 30px)/1.45 var(--serif); }
.persona-caption { margin-top: 18px; color: var(--gray); font-size: 14px; }
.persona-web-option { margin-top: 24px; }
.persona-package-grid p { margin-top: 20px; }
.persona-package { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.persona-package h3 { font-size: 18px; }
.persona-package dl { margin: 24px 0 0; }
.persona-package dt { font-size: 14px; margin-top: 20px; }
.persona-package dd { margin: 4px 0 0; font-size: 14px; color: var(--gray); }
.persona-availability { margin-top: 32px; max-width: 800px; color: var(--gray); font-size: 14px; }
.persona-faq { padding-top: 0; }
.persona-siblings { border-top: 1px solid var(--line); }
.persona-siblings nav { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; }
.persona-siblings a { padding: 10px 0; }
@media (min-width: 800px) {
  .persona-benefits, .persona-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .persona-example-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; }
  .persona-package-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
}
@media (min-width: 980px) {
  .persona-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 959px) {
  .audience-toggle { padding: 12px 8px; }
  .audience-links { position: static; width: 100%; border: 0; padding: 0 12px; }
}
@media (max-width: 420px) {
  .persona-record { padding: 20px; }
  .persona-hero-grid { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .persona-fields > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
