/* Routefort landing, legal and status pages. Tokens and fonts: /brand/tokens.css.
   No divider lines between list items: separate with space, weight or a surface. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-x: clip;
}
::selection { background: var(--brand); color: #fff; }

.band { padding: 6rem 0; }
.band-tint { background: var(--paper-2); }
.band-deep, .band-pine { background: var(--deep); color: var(--on-deep); }
.band-pine .wordmark { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; font-weight: 700; font-size: 1.3rem; line-height: 1; text-decoration: none; }
.band-pine .wordmark svg { width: 24px; height: 24px; }
.band-pine .masthead nav a, .band-pine a { color: #fff; }
.band-pine .status-meta { color: var(--deep-muted); }
.shell { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 1rem; }
ul, ol { margin: 0; padding: 0; }
.lede { max-width: 40rem; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; }

a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (hover: hover) { a:hover { color: var(--brand-hover); } }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.band-deep :focus-visible { outline-color: #fff; }

/* masthead */
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; padding: 1.5rem 0; }
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 1.5rem; width: auto; }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; font-weight: 600; font-size: 0.975rem; }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav .lang { padding: 0.2rem 0.6rem; background: var(--paper-2); border-radius: var(--radius); font-size: 0.9rem; }
@media (hover: hover) { .masthead nav a:hover { color: var(--brand); } }

/* hero: text on white, then a full-width image */
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; margin: 4rem 0 4rem; }
.hero-text h1 { max-width: 15ch; }
.hero-text .lede { margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.link-quiet { font-weight: 600; text-decoration: none; }
@media (hover: hover) { .link-quiet:hover { text-decoration: underline; } }

/* bridge posters: cut out on the white page, never boxed or cropped */
.art { margin-block: 0; line-height: 0; }
.art img { display: block; width: 100%; height: auto; }
.art:not(.art-hero) img { max-width: 56rem; margin: 0 auto 4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem;
  background: var(--brand); color: #fff; font: 600 1rem/1 var(--font); border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background-color 0.2s var(--ease);
}
@media (hover: hover) { .btn:hover { background: var(--brand-hover); color: #fff; } }
.btn:active { background: var(--brand-pressed); }
.btn[disabled] { background: var(--brand-tint-stroke); cursor: not-allowed; }

/* services: three surfaces, no rules */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service { display: flex; flex-direction: column; padding: 2rem; background: var(--paper-2); border-radius: var(--radius-lg); }
.service .price { margin-top: 0.5rem; color: var(--muted); }
.service .price .num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); margin-right: 0.25rem; }
.service .for { margin: 1rem 0 1.5rem; }
.service ul { list-style: none; display: grid; gap: 0.7rem; color: var(--muted); }
.service li { position: relative; padding-left: 1.6rem; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.85rem; height: 0.5rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* how it works */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 2.5rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; }
.steps h3 { margin-bottom: 0.6rem; }
.steps p { color: var(--muted); max-width: 34ch; }

/* questions: spaced surfaces, no rules */
.faq { display: grid; gap: 0.75rem; max-width: 50rem; margin-top: 2rem; }
.faq details { background: var(--paper-2); border-radius: var(--radius-lg); }
.faq summary { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; align-self: center; width: 1rem; height: 1rem; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%23000' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%23000' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 5rem; align-items: start; }
form { max-width: 36rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.25rem; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #C7C7C7;
  border-radius: var(--radius); padding: 0.65rem 0.8rem; transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--fail); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
#form-status { margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 500; }
#form-status:empty { display: none; }
#form-status.ok { background: var(--brand-tint); color: var(--brand-pressed); }
#form-status.err { background: var(--fail-tint); color: #8A0B16; }

/* legal pages */
.band.legal { padding-top: 0; }
.legal h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin: 3rem 0 1rem; }
.legal .meta { color: var(--muted); margin-bottom: 3rem; }
.legal h2 { font-size: 1.375rem; margin: 2.75rem 0 0.75rem; }
.legal p, .legal li { max-width: 66ch; }
.legal ul { padding-left: 1.25rem; margin-top: 0.75rem; }
.legal li + li { margin-top: 0.4rem; }

/* footer */
footer { padding: 3rem 0; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; font-size: 0.95rem; }
footer img { height: 1.25rem; width: auto; display: block; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer a { color: var(--on-deep); }

/* status page (recovery.py writes this markup) */
.status-meta { max-width: 52rem; margin-top: 1rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; }
.table-wrap table { min-width: 52rem; }
th, td { text-align: left; padding: 0.6rem 1rem 0.6rem 0; vertical-align: top; }
tbody tr:nth-child(odd) { background: var(--paper-2); }
th { font-weight: 600; }
td.pass { color: var(--pass); font-weight: 600; }
td.fail { color: var(--fail); font-weight: 600; }
td.slow { color: var(--slow); font-weight: 600; }
td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* responsive */
@media (max-width: 60rem) {
  .hero-text, .services, .steps, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .band { padding: 4rem 0; }
  .shell { padding-inline: 1rem; }
  .hero-text { margin: 2rem 0 2.5rem; }
  .service { padding: 1.5rem; }
  .masthead nav { gap: 0.25rem 1.1rem; font-size: 0.95rem; }
}
