/* China Tyre. Amber is a fill or text on charcoal. It is not text on paper. */

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

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

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600.woff2") format("woff2");
}

:root {
  --charcoal: #1c1f24;
  --teal: #0e7c6b;
  --teal-ink: #085c50;
  --mint: #3fc1a9;
  --amber: #f2a900;
  --paper: #f6f7f8;
  --paper-deep: #e3e6ea;
  --white: #ffffff;
  --muted: #5b6270;
  --line: #e3e6ea;
  --danger: #8c2f2f;
  --footer-text: #f6f7f8;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Inter, Arial, Helvetica, sans-serif;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color-scheme: light;
  overflow-wrap: break-word;
}

:focus {
  outline: none;
}

main {
  flex: 1;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--teal-ink);
}

a:hover {
  color: var(--charcoal);
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

h1,
h2,
h3,
a,
button,
input,
select,
textarea,
summary {
  scroll-margin-top: 5.5rem;
}

.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 40;
  background: var(--amber);
  color: var(--charcoal);
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .wrap {
    width: min(var(--wrap), calc(100% - 3rem));
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stripe {
  height: 6px;
  background: var(--amber);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  min-width: 0;
  color: var(--charcoal);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

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

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(168px, 46vw);
}

.site-footer .brand-logo {
  height: 42px;
  max-width: 200px;
}

.header-quote,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 0.95rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.header-quote {
  flex: none;
  padding-inline: 0.7rem;
}

.mq-long {
  display: none;
}

.header-quote {
  background: var(--teal);
  color: #fff;
}

.header-quote:hover {
  background: #0b6a5c;
  color: #fff;
}

.btn-amber {
  background: var(--amber);
  color: var(--charcoal);
}

.btn-amber:hover {
  background: #ffc233;
  color: var(--charcoal);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: #0b6a5c;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--footer-text);
  border-color: var(--footer-text);
}

.btn-ghost:hover {
  background: var(--footer-text);
  color: var(--charcoal);
}

.btn-line {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-line:hover {
  background: var(--charcoal);
  color: var(--paper);
}

.btn:disabled {
  background: #5c616a;
  color: #fff;
  cursor: wait;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  margin-inline: auto;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 1rem 0.75rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.site-nav a[aria-current="page"] {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

@media (min-width: 23rem) {
  .brand {
    font-size: 1.7rem;
  }

  .mq-short {
    display: none;
  }

  .mq-long {
    display: inline;
  }
}

@media (min-width: 56rem) {
  .nav-toggle,
  .header-quote {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.15rem;
  }

  .site-nav a {
    min-height: 0;
    border: 0;
    padding: 0.35rem 0;
  }

  .site-nav a.nav-cta {
    min-height: 44px;
    padding: 0 0.9rem;
    background: var(--teal);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 8px;
  }

  .site-nav a.nav-cta:hover {
    background: #0b6a5c;
    color: #fff;
  }

  .site-nav a.nav-cta[aria-current="page"] {
    outline: 2px solid var(--charcoal);
    outline-offset: -4px;
  }
}

.hero {
  background: var(--charcoal);
  color: var(--footer-text);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  padding: 2.25rem 0 2.5rem;
}

.hero h1,
.page-head h1,
.section h2,
.cta-band h2,
.prose h2,
.steps h2,
.steps h3,
.tier h2,
.tier h3,
.form-card h2,
.success h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.005em;
}

.hero h1 {
  margin: 0 0 0.85rem;
  color: #f7f4ee;
  font-size: clamp(3.3rem, 12vw, 6.5rem);
}

.rule {
  width: 4.5rem;
  height: 6px;
  background: var(--amber);
  margin: 0 0 1rem;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.lede-follow {
  margin-top: 0.85rem;
}

.fine.spaced {
  margin-top: 1rem;
}

.hero .lede {
  color: #e4e0d6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.status {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.5rem;
  background: var(--amber);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--teal-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

.spec {
  background: var(--paper);
  color: var(--charcoal);
  border-top: 6px solid var(--amber);
  padding: 0.35rem 1rem;
}

.spec div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.spec div:last-child {
  border-bottom: 0;
}

.spec dt {
  margin: 0;
  color: var(--teal-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.8fr;
    align-items: end;
    gap: 3rem;
    padding: 4.25rem 0 4rem;
  }
}

.section {
  padding: 2.75rem 0;
}

.section h2,
.cta-band h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}

.section-intro {
  max-width: 40rem;
  margin: 0;
}

.band {
  background: var(--paper-deep);
}

.steps,
.tiers,
.plain-list {
  margin: 1.4rem 0 0;
  padding: 0;
}

.steps {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.steps li,
.tier,
.form-card,
.callout,
.toc {
  background: var(--white);
  border: 1px solid var(--line);
}

.steps li,
.tier {
  padding: 1.1rem 1.1rem 1.2rem;
}

.steps h2,
.steps h3,
.tier h2,
.tier h3 {
  margin: 0 0 0.45rem;
  font-size: 1.85rem;
  line-height: 1;
}

.num {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--teal);
  font-size: 1.7rem;
}

.steps p,
.tier p {
  margin: 0;
}

.tiers {
  display: grid;
  gap: 0.9rem;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 6px solid var(--teal);
  text-decoration: none;
  color: inherit;
}

a.tier:hover {
  border-color: var(--charcoal);
  border-top-color: var(--teal);
  color: inherit;
}

a.tier:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.tier .meta,
.hint,
.fine {
  color: var(--muted);
  font-size: 0.98rem;
}

.tier .meta {
  margin-top: auto;
}

@media (min-width: 64rem) {
  .section {
    padding: 4.25rem 0;
  }

  .steps.cols-3,
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 80rem) {
  .steps.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.callout {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 6px solid var(--amber);
}

.callout p:first-child {
  margin-top: 0;
}

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

.cta-band {
  background: var(--charcoal);
  color: var(--footer-text);
  padding: 2.75rem 0;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 0 1.2rem;
  color: #e4e0d6;
}

.page-head {
  padding: 2rem 0 0.25rem;
}

.page-head h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.8rem, 8vw, 4.7rem);
}

.page-head .lede {
  margin-bottom: 0.4rem;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin: 2.1rem 0 0.45rem;
  font-size: 2rem;
}

.prose h3 {
  margin: 1.4rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.prose p,
.prose li {
  font-size: 1.0625rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.toc {
  padding: 0.85rem 1rem 1rem;
  margin: 1.25rem 0 0;
}

.toc ol {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.facts {
  margin: 1.2rem 0 0;
  padding: 0;
}

.facts div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.facts dd {
  margin: 0;
}

@media (min-width: 40rem) {
  .facts div {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.quote-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.form-card {
  padding: 1.15rem 1rem 1.25rem;
}

.form-card h2 {
  margin: 0 0 0.9rem;
  font-size: 2.2rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

label,
.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid var(--charcoal);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  font: inherit;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.98rem;
  font-weight: 600;
}

.hint,
.fine {
  margin: 0.35rem 0 0;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.consent input {
  width: 1.35rem;
  height: 1.35rem;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--teal);
  flex: none;
}

.consent label {
  margin: 0;
  font-weight: 400;
}

.form-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #f8e8e8;
  border: 1px solid var(--danger);
  color: #6f2222;
  font-weight: 600;
}

.success {
  padding: 1.1rem 1rem 1.2rem;
  background: #e7f4f0;
  border-left: 6px solid var(--teal);
}

.success h2 {
  margin: 0 0 0.45rem;
  font-size: 2.2rem;
}

.success h2:focus {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.form-actions {
  margin-top: 0.4rem;
}

.form-actions .btn {
  width: 100%;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .quote-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 2.5rem;
  }

  .form-card {
    padding: 1.4rem 1.4rem 1.5rem;
  }

  .form-actions .btn {
    width: auto;
    min-width: 14rem;
  }
}

.site-footer {
  background: var(--charcoal);
  color: var(--footer-text);
  padding: 2.4rem 0 1.5rem;
}

.footer-top {
  display: grid;
  gap: 1.6rem;
}

.site-footer .brand {
  color: #f7f4ee;
}

.brand-tag {
  margin: 0.7rem 0 0.55rem;
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}

.footer-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.3rem;
}

.site-footer a {
  color: #f7f4ee;
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer p {
  margin: 0 0 0.55rem;
}

.footer-legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid #34383f;
  color: #d5d0c6;
  font-size: 0.98rem;
}

.footer-legal p {
  margin: 0 0 0.45rem;
}

.footer-legal a {
  color: #f7f4ee;
}

@media (min-width: 48rem) {
  .footer-top {
    grid-template-columns: 1.4fr 0.8fr 0.9fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .cta-band,
  .skip,
  .actions,
  .form-actions {
    display: none !important;
  }

  body,
  .hero,
  .site-footer,
  .band {
    background: #fff;
    color: #000;
  }

  .hero h1,
  .hero .lede,
  .site-footer,
  .site-footer a,
  .brand-tag {
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
