/*
  Zipper website styles.
  Shared by the home page, the legal and support pages, and /auth/callback
  (which uses .wrap, .center, .muted and .button, so keep those).
  Palette and type follow the app: warm ground, ink, one burnt-orange accent, teal for paid.
*/

:root {
  --ground: #f4f1ea;
  --surface: #ffffff;
  --sand: #eae5da;
  --track: #f0ece3;
  --border: #e4dfd3;
  --border-strong: #d9d3c6;
  --ink: #1a1a1f;
  --ink-soft: #37363d;
  --muted: #5f5e66;
  --accent: #c2410c;
  --accent-deep: #9a3412;
  --accent-tint: #f7e4d8;
  --paid: #0f766e;
  --on-ink: #f4f1ea;
  --on-ink-muted: #bdb8ae;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 150px);

  /* The zipper teeth from the logo, as a repeating line. */
  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M-3 5.5 0 2.5l3 3 3-3 3 3 3-3 3 3' fill='none' stroke='%23c2410c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- Base ---------- */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

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

::selection {
  background: #f3c8ae;
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin: 0 0 20px;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 24px 0 6px;
}

p,
li,
dd {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

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

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-deep);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 24px;
  height: 8px;
  background: var(--zig) repeat-x 0 50% / 12px 8px;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 6px;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  padding-block: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

@media (max-width: 760px) {
  .nav-wide {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(28px, 5vw, 72px) var(--section);
}

.hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(48px, 7.4vw, 96px);
  font-stretch: 92%;
  line-height: 0.95;
  letter-spacing: -0.036em;
  margin: 0 0 28px;
  max-width: 9.5em;
}

.zip {
  white-space: nowrap;
  padding-bottom: 0.12em;
  background: var(--zig) repeat-x 0 100% / 0.33em 0.22em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-lead {
  margin: 0;
  max-width: 31em;
  font-size: clamp(18px, 1.55vw, 20.5px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 20px 11px 14px;
  border: 1.5px dashed var(--ink);
  border-radius: 14px;
  line-height: 1.25;
}

.store-soon svg {
  flex: none;
  width: 26px;
  height: 26px;
}

.store-soon strong {
  display: block;
  font-size: 16px;
}

.store-soon span span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-facts {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}

.hero-facts li {
  display: flex;
  gap: 10px;
}

.hero-facts li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 8px;
  margin-top: 0.6em;
  background: var(--zig) repeat-x 0 50% / 12px 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.float-ai {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: min(270px, 86%);
  margin-top: -128px;
  transform: rotate(-1.5deg);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 80px);
  }

  .hero-visual {
    display: block;
    padding-left: 40px;
  }

  .hero-visual .phone {
    margin-left: auto;
  }

  .float-ai {
    position: absolute;
    left: -24px;
    bottom: -36px;
    margin: 0;
  }
}

/* ---------- Floating cards used around the mockups ---------- */

.card-float {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 24px 48px -24px rgba(26, 26, 31, 0.35), 0 4px 10px -4px rgba(26, 26, 31, 0.12);
  font-size: 14px;
  line-height: 1.45;
}

.fa-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
}

.fa-label span {
  font-weight: 500;
  color: var(--muted);
}

.fa-text {
  margin: 0;
  font-weight: 600;
}

.fa-next {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}

.fa-next b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  flex: none;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 620;
  padding: 9px;
  border-radius: 50px;
  background: #16161a;
  box-shadow: inset 0 0 0 1.5px #3d3d46, 0 44px 80px -40px rgba(26, 26, 31, 0.55),
    0 18px 36px -18px rgba(26, 26, 31, 0.3);
}

.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2b2b31;
}

.phone::before {
  right: -3px;
  top: 150px;
  height: 70px;
}

.phone::after {
  left: -3px;
  top: 118px;
  height: 44px;
  box-shadow: 0 58px 0 #2b2b31;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 11.5px;
  line-height: 1.35;
  text-align: left;
}

.screen p {
  margin: 0;
}

.m-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 2px 22px 0 32px;
  font-size: 13px;
  font-weight: 600;
}

.m-island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 86px;
  height: 25px;
  margin-left: -43px;
  border-radius: 20px;
  background: #0b0b0d;
}

.m-sys {
  display: block;
  width: 58px;
  height: 11px;
}

.m-body {
  padding: 2px 14px 0;
}

.m-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 6px 0 10px;
}

.m-h1 {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.m-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.m-round {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.m-round svg {
  width: 14px;
  height: 14px;
}

.m-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
}

.m-search svg {
  width: 12px;
  height: 12px;
}

.m-tabs {
  display: flex;
  gap: 5px;
  margin: 10px -14px 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.m-tab {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 600;
}

.m-tab b {
  margin-left: 3px;
  font-weight: 600;
  color: var(--muted);
}

.m-tab.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.m-tab.is-on b {
  color: rgba(255, 255, 255, 0.7);
}

.m-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.m-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-av {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg, #f3e4d7);
  color: var(--fg, #7a3e12);
  font-size: 10.5px;
  font-weight: 700;
}

.m-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.m-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.m-meta {
  overflow: hidden;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.m-price {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.m-new {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent);
}

.m-noquote {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.m-sum {
  display: flex;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.m-spark {
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  color: var(--accent);
}

.m-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.m-stage,
.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ground);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.m-stage::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, #57534e);
}

.m-badge--warn {
  background: #fef3c7;
  color: #92400e;
}

.m-badge--unpaid {
  background: #ffedd5;
  color: #9a3412;
}

.m-badge--paid {
  background: #ccfbf1;
  color: #115e59;
}

.m-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.m-btn--ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.m-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px 26px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.m-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.m-tabbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-tabbar .is-on {
  color: var(--accent);
}

.m-home {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 104px;
  height: 4px;
  margin-left: -52px;
  border-radius: 4px;
  background: var(--ink);
}

/* Today screen parts */

.m-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 4px;
}

.m-tile {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.m-tile b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
}

.m-tile span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--muted);
}

.m-tile--ink {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.m-tile--ink span {
  color: rgba(255, 255, 255, 0.78);
}

.m-sec {
  margin: 9px 0 5px !important;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.m-group {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.m-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.m-line + .m-line {
  border-top: 1px solid var(--border);
}

.m-line .m-name {
  display: flex;
  align-items: center;
  gap: 5px;
}

.m-line .m-meta {
  white-space: normal;
  line-height: 1.3;
}

.m-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  line-height: 1.05;
}

.m-date small {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted);
}

.m-date b {
  font-family: var(--display);
  font-size: 16px;
}

.m-line .m-badges {
  margin-top: 4px;
}

/* ---------- Statement band ---------- */

.statement {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: var(--section);
}

.statement-grid {
  display: grid;
  gap: 28px;
}

.statement-kicker {
  margin: 0;
  font-size: 15px;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--on-ink-muted);
}

.statement-text {
  margin: 0;
  max-width: 24em;
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.statement-resolve {
  margin: 32px 0 0;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--on-ink-muted);
}

.statement-resolve strong {
  color: var(--on-ink);
}

@media (min-width: 960px) {
  .statement-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 48px;
  }

  .statement-kicker {
    padding-top: 0.6em;
  }
}

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

.section {
  padding-block: calc(var(--section) * 0.5);
}

.hero + .statement {
  margin-top: 0;
}

.section-head {
  max-width: 44em;
}

.section-head h2 {
  max-width: 15em;
}

.section-intro {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  color: var(--ink-soft);
}

.one-intro h2,
.pricing-intro h2,
.faq-intro h2 {
  font-size: clamp(32px, 3.5vw, 46px);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 44px 32px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

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

.step-n {
  display: block;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.step h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

@media (max-width: 639px) {
  .steps {
    gap: 32px;
  }

  .step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
  }

  .step-n {
    grid-row: span 2;
    margin: 0;
    font-size: 44px;
  }
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step:nth-child(2) {
    margin-top: 36px;
  }

  .step:nth-child(3) {
    margin-top: 72px;
  }

  .step:nth-child(4) {
    margin-top: 108px;
  }
}

.pipeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
}

.pipe-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ground);
  white-space: nowrap;
}

.pipe-stage::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.pipe-stage em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.pipe-join {
  flex: none;
  width: 18px;
  height: 8px;
  margin: 5px 0 5px 12px;
  background: var(--zig) repeat-x 0 50% / 12px 8px;
  transform: rotate(90deg);
}

@media (min-width: 820px) {
  .pipeline {
    flex-direction: row;
    align-items: center;
    padding: 18px;
  }

  .pipe-join {
    flex: 1 1 24px;
    min-width: 20px;
    margin: 0 8px;
    transform: none;
  }
}

/* The stage track repeats step 3, so small screens skip it. */
@media (max-width: 819px) {
  .pipeline {
    display: none;
  }
}

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

.feature-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.feature-copy h2 {
  max-width: 13em;
}

.feature-lead {
  margin: 0;
  max-width: 32em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
}

.feature-visual {
  order: 2;
  min-width: 0;
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 7vw, 112px);
  }

  .feature-grid--flip {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .feature-visual {
    order: 0;
  }
}

.plate {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
  border-radius: 28px;
  background: var(--sand);
}

.points {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--border-strong);
}

.points li {
  padding: 16px 0;
  border-top: 1px solid var(--border-strong);
  color: var(--ink-soft);
}

.points strong {
  color: var(--ink);
}

.facts {
  margin: 32px 0 0;
  border-bottom: 1px solid var(--border-strong);
}

.facts > div {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--border-strong);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 560px) {
  .facts > div {
    grid-template-columns: 12.5em minmax(0, 1fr);
    gap: 24px;
  }
}

/* Chat mockup */

.chat {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--ground);
  box-shadow: 0 40px 80px -44px rgba(26, 26, 31, 0.45);
  font-size: 14px;
  line-height: 1.45;
}

.chat p {
  margin: 0;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.chat-head .m-av {
  width: 36px;
  height: 36px;
  font-size: 12.5px;
}

.chat-head .m-name {
  font-size: 15px;
}

.chat-head .m-meta {
  font-size: 12.5px;
}

.chat-head .m-stage {
  font-size: 11.5px;
  padding: 4px 10px;
}

.chat-back {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.chat-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.chat-sum {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--accent-tint);
}

.chat-sum .fa-label {
  font-size: 12.5px;
}

.chat-sum .cs-text {
  font-size: 15.5px;
  font-weight: 600;
}

.cs-next {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(154, 52, 18, 0.18);
  color: var(--ink-soft);
}

.cs-next b {
  font-weight: 600;
  color: var(--ink);
}

.bubbles {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.bubble {
  max-width: 82%;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
}

.bubble + .bubble {
  border-radius: 6px 18px 18px 6px;
}

.chat-time {
  margin-top: 3px !important;
  font-size: 12px;
  color: var(--muted);
}

.chat-draft {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cd-label {
  margin-bottom: 6px !important;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.cd-text {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--ground);
}

.cd-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.cd-actions .m-btn {
  padding: 8px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

/* Order and payment request mockups */

.pay-stack {
  display: flex;
  flex-direction: column;
}

.order-card,
.request-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 30px 60px -36px rgba(26, 26, 31, 0.4);
}

.order-card p,
.request-card p {
  margin: 0;
}

.order-card {
  width: min(100%, 360px);
  padding: 20px 20px 52px;
}

.request-card {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: min(92%, 340px);
  margin-top: -36px;
  padding: 18px 20px 20px;
}

.oc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oc-title,
.rc-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.oc-head .m-stage {
  font-size: 11.5px;
  padding: 4px 10px;
}

.oc-for {
  margin-top: 2px !important;
  color: var(--muted);
  font-size: 13.5px;
}

.oc-items {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.oc-items li,
.oc-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.oc-items small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.oc-total {
  border-top: 1.5px solid var(--ink);
  font-weight: 600;
}

.oc-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ground);
  font-size: 13px;
}

.oc-pay .m-badge {
  font-size: 11.5px;
  padding: 3px 9px;
}

.rc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.rc-title + .rc-row {
  margin-top: 10px;
}

.rc-k {
  font-size: 13px;
  color: var(--muted);
}

.rc-v {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.rc-row code {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.rc-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--border);
}

.rc-m {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.rc-m.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.rc-m.is-soon {
  border-style: dashed;
  color: var(--muted);
}

.rc-preview {
  padding: 10px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

/* ---------- Everything in one place ---------- */

.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;
}

.one-grid {
  display: grid;
  gap: 36px;
}

.one-intro p:not(.eyebrow) {
  margin: 0 0 14px;
  max-width: 30em;
  color: var(--ink-soft);
}

.one-intro .one-honest {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 15.5px;
  color: var(--muted);
}

.swap {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.swap li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-strong);
}

.swap-from {
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(194, 65, 12, 0.75);
  text-decoration-thickness: 1.5px;
}

.swap-arrow {
  display: none;
  font-weight: 600;
  color: var(--accent);
}

.swap-to {
  color: var(--ink-soft);
}

.swap-to b {
  font-weight: 600;
  color: var(--ink);
}

.swap code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.made-for {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .swap li {
    grid-template-columns: 12.5em 20px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
  }

  .swap-arrow {
    display: block;
  }
}

@media (min-width: 960px) {
  .one-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 28px 80px;
    align-items: start;
  }

  .one-intro {
    position: sticky;
    top: 32px;
  }

  .made-for {
    grid-column: 2;
  }
}

/* ---------- Analytics ---------- */

.an-band {
  margin-block: calc(var(--section) * 0.5);
  padding-block: var(--section);
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.an-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.an-head h2 {
  max-width: 13em;
  margin: 0;
}

.an-lead {
  margin: 0;
  max-width: 32em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-soft);
}

.an-grid {
  display: grid;
  gap: 12px;
}

.an-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 620px) {
  .an-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .an-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 80px;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .an-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.an-plate {
  align-items: center;
  padding-block: clamp(28px, 3vw, 40px);
}

.q-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--ground);
}

.q-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.q-viz {
  margin-block: auto;
}

.q-viz p {
  margin: 0;
}

.q-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.q-note strong {
  color: var(--ink);
}

/* Shared bar tracks: neutral fills work on any card colour. */
.qb-track,
.qs-track,
.qf-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(26, 26, 31, 0.07);
}

.qb-track i,
.qs-track i,
.qf-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.q-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.q-big span {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--paid);
}

.q-bars {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  font-size: 12.5px;
}

.qb-l {
  color: var(--muted);
  white-space: nowrap;
}

.qb-v {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qb-track i.is-prev {
  background: rgba(26, 26, 31, 0.24);
}

.q-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 108px;
}

.q-days span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.q-days b {
  font-size: 12px;
  font-weight: 600;
}

.q-days i {
  display: block;
  width: 100%;
  max-width: 30px;
  height: var(--h);
  border-radius: 6px;
  background: rgba(26, 26, 31, 0.16);
}

.q-days small {
  font-size: 11.5px;
  color: var(--muted);
}

.q-days .is-best i {
  background: var(--accent);
}

.q-days .is-best small {
  font-weight: 600;
  color: var(--ink);
}

.q-sellers {
  display: grid;
  gap: 12px;
  font-size: 13.5px;
}

.q-sellers > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
}

.q-sellers > div > span:first-child {
  font-weight: 600;
}

.q-sellers > div > span:nth-child(2) {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.q-sellers em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.qs-track {
  grid-column: 1 / -1;
}

.q-funnel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 2em;
  align-items: center;
  gap: 8px 10px;
  font-size: 13px;
}

.qf-track {
  height: 20px;
  border-radius: 6px;
}

.qf-track i {
  background: rgba(26, 26, 31, 0.16);
}

.qf-track i.is-paid {
  background: var(--accent);
}

.q-funnel b {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.q-funnel .is-paid {
  font-weight: 600;
}

/* Analytics screen parts inside the phone mockup */

.m-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 9px;
  padding: 3px;
  border-radius: 10px;
  background: var(--sand);
}

.m-seg span {
  padding: 5px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

.m-seg .is-on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 26, 31, 0.12);
}

.m-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.m-kpi {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.m-kpi small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}

.m-kpi b {
  display: block;
  margin: 1px 0;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.15;
}

.m-kpi em {
  display: block;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  color: var(--paid);
}

.m-kpi--wide {
  grid-column: 1 / -1;
}

.m-panel {
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.m-panel-h {
  font-size: 12px;
  font-weight: 600;
}

.m-panel-n {
  font-size: 9.5px;
  color: var(--muted);
}

.m-weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 10px;
  height: 126px;
  margin-top: 8px;
}

.m-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.m-week b {
  font-size: 9px;
  font-weight: 600;
}

.m-week i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 7px 7px 3px 3px;
  background: var(--accent);
  opacity: 0.4;
}

.m-week.is-now i {
  opacity: 1;
}

.m-week small {
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Weekly summary and teams band ---------- */

.band {
  margin-block: calc(var(--section) * 0.5);
  padding-block: var(--section);
  background: var(--sand);
}

.weekly-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .weekly-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 7vw, 112px);
  }
}

.weekly-card {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 36px 70px -40px rgba(26, 26, 31, 0.45);
}

.weekly-card p {
  margin: 0;
}

.wc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.wc-x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ground);
  color: var(--muted);
}

.wc-x svg {
  width: 12px;
  height: 12px;
}

.wc-headline {
  margin: 10px 0 20px !important;
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.4;
}

.wc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.wc-stats b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wc-stats span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
}

.wc-foot {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}

.team {
  display: grid;
  gap: 28px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border-strong);
}

.team h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 12px;
}

.team p {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
}

.team-stack {
  display: flex;
  align-items: center;
}

.team-stack span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-left: -12px;
  border: 3px solid var(--sand);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  font-weight: 700;
}

.team-stack span:first-child {
  margin-left: 0;
}

.team-stack .seat-open {
  border: 2px dashed #a9a399;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
}

.team-caption {
  margin-top: 10px !important;
  font-size: 14px;
  color: var(--muted) !important;
}

@media (min-width: 760px) {
  .team {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  gap: 40px;
}

.pricing-intro p:not(.eyebrow) {
  margin: 0;
  max-width: 28em;
  color: var(--ink-soft);
}

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.plan-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0;
  padding-top: clamp(28px, 5vw, 52px);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.plan-cur {
  margin-right: 3px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.plan-num {
  font-size: clamp(52px, 5.4vw, 72px);
}

.plan-alt {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.plan-alt b {
  font-weight: 600;
  color: var(--ink);
}

.plan-note {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 15px;
}

.plan-note span {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.plan--year {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.plan--year .plan-alt {
  color: var(--on-ink-muted);
}

.plan--year .plan-alt b {
  color: var(--on-ink);
}

.plan--year .plan-note span {
  border-color: rgba(255, 255, 255, 0.16);
}

.plan-terms {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.plan-terms li {
  display: flex;
  gap: 12px;
}

.plan-terms li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 8px;
  margin-top: 0.55em;
  background: var(--zig) repeat-x 0 50% / 12px 8px;
}

@media (min-width: 620px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
  }
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 36px 80px;
  }

  .plan-terms {
    grid-column: 2;
  }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  gap: 32px;
}

.faq-intro p {
  margin: 0 0 12px;
  max-width: 24em;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:hover {
  color: var(--accent-deep);
}

.faq-a {
  max-width: 40em;
  padding-bottom: 24px;
  color: var(--ink-soft);
}

.faq-a p {
  margin: 0 0 12px;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 80px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: calc(var(--section) * 0.5);
  padding-block: clamp(56px, 8vw, 96px) 40px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
}

.site-footer a {
  text-decoration-color: rgba(244, 241, 234, 0.35);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.footer-top {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.footer-big {
  margin: 0 0 16px;
  max-width: 12em;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 80px);
  font-stretch: 92%;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

.footer-soon {
  margin: 0;
  color: var(--on-ink-muted);
}

.footer-bottom {
  display: grid;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(244, 241, 234, 0.16);
}

.site-footer .brand {
  color: var(--on-ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  text-decoration: none;
  padding-block: 4px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-mail {
  margin: 0;
}

.footer-fine {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--on-ink-muted);
}

@media (min-width: 900px) {
  .footer-bottom {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* ---------- Legal and support pages ---------- */

.doc {
  padding-block: clamp(28px, 5vw, 72px) calc(var(--section) * 0.5);
}

.doc-grid {
  display: grid;
  gap: 32px;
}

.doc-head h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-stretch: 92%;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.doc-meta {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.doc-head .lead {
  margin: 8px 0 0;
}

.doc-head .lead a {
  font-weight: 600;
  color: var(--accent-deep);
}

.doc-body {
  min-width: 0;
}

@media (min-width: 960px) {
  .doc-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 72px;
    align-items: start;
  }

  .doc-head {
    position: sticky;
    top: 32px;
  }
}

.legal {
  max-width: 46em;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal > :first-child {
  margin-top: 0;
}

.legal > :last-child {
  margin-bottom: 0;
}

.legal h2 {
  margin: 2em 0 0.5em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border);
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal h3 {
  margin: 1.5em 0 0.3em;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
}

.legal ul,
.legal ol {
  padding-left: 1.3em;
}

.legal li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}

.legal ul > li::marker {
  color: var(--accent);
}

.legal ol > li::marker {
  font-weight: 600;
  color: var(--accent-deep);
}

.legal strong {
  color: var(--ink);
}

.legal a {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

.legal a:hover {
  text-decoration-thickness: 2px;
}

.notice {
  max-width: 46em;
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 1px solid #b6ddd6;
  border-left: 5px solid var(--paid);
  border-radius: 16px;
  background: #e7f4f1;
}

.notice h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.notice p {
  margin: 0;
}

/* ---------- Motion (only when people haven't asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  .button,
  .faq-list summary {
    transition: color 0.15s ease, background-color 0.15s ease, text-decoration-color 0.15s ease;
  }

  .faq-list summary::after {
    transition: transform 0.2s ease;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header nav,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal {
    border: 0;
    padding: 0;
  }
}
