@import url("/fonts/fonts.css");

/* FixAccess — palette taken from a code diff: ink, paper, removed (red), added (green). */
:root {
  --ink: #0f2540;
  --ink-soft: #4a5a70;
  --paper: #ffffff;
  --wash: #f3f5f8;
  --rule: #d5dce5;
  --removed: #b42318;
  --removed-bg: #fdecea;
  --added: #0a6b47;
  --added-bg: #e7f5ee;
  --panel: #14243a;
  --panel-text: #cfd8e3;
  --panel-removed: #e8b4b0;
  --panel-added: #9fd8bd;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--added); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 1.2rem/1 var(--sans); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 1.6rem; height: 1.6rem; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.975rem; padding: 0.6rem 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--added); color: #fff; padding: 0.6rem 1rem; border-radius: 6px; }
.site-nav .nav-cta:hover { background: #085a3c; text-decoration: none; }
@media (max-width: 720px) { .site-nav .nav-hide { display: none; } }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); max-width: 24ch; }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.925rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.75rem 1.4rem; border-radius: 6px; font: 600 1.0625rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--added); color: #fff; }
.btn-primary:hover { background: #085a3c; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--wash); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .lede { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the diff: the one bold element on the page */
.diff {
  background: var(--panel); color: var(--panel-text); border-radius: 10px;
  font: 400 0.86rem/1.65 var(--mono); overflow: hidden;
}
.diff-file { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid #24364f; color: #fff; font-weight: 500; }
.diff-file span:last-child { color: var(--panel-text); font-weight: 400; }
.diff pre { margin: 0; padding: 0.9rem 0; overflow-x: auto; }
.diff code { display: block; font: inherit; }
.ln { display: block; padding: 0 1.1rem 0 2.4rem; position: relative; white-space: pre; }
.ln::before { position: absolute; left: 1rem; }
.ln.del { color: var(--panel-removed); background: rgba(232, 180, 176, 0.08); }
.ln.del::before { content: "-"; }
.ln.add { color: var(--panel-added); background: rgba(159, 216, 189, 0.09); }
.ln.add::before { content: "+"; }
.diff-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.8rem 1.1rem; border-top: 1px solid #24364f; font-size: 0.8rem; }
.diff-foot b { color: #fff; font-weight: 500; }

/* one orchestrated moment: removed lines appear, then the added lines replace them */
@media (prefers-reduced-motion: no-preference) {
  .js .diff .ln.add { opacity: 0; transform: translateX(-6px); animation: land 420ms ease-out forwards; }
  .js .diff .ln.add:nth-child(n) { animation-delay: calc(700ms + var(--i, 0) * 90ms); }
  @keyframes land { to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.band { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--rule); }
.band-wash { background: var(--wash); }
.band-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* the complaint vs the fix */
.pairs { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.pair p { max-width: none; }
.pair .said { color: var(--removed); background: var(--removed-bg); padding: 0.15rem 0.45rem; border-radius: 4px; font-weight: 600; display: inline; }
.pair .did { color: var(--added); background: var(--added-bg); padding: 0.15rem 0.45rem; border-radius: 4px; font-weight: 600; display: inline; }
.pair-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 0.6rem; font-weight: 700; }
@media (max-width: 720px) { .pair, .pair-head { grid-template-columns: 1fr; gap: 0.6rem; } .pair-head { display: none; } }

/* results */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.result { border-left: 4px solid var(--added); padding-left: 1.4rem; }
.result .count { font: 600 clamp(2rem, 4vw, 2.75rem)/1.1 var(--serif); margin: 0.4rem 0 0.6rem; }
.result .count s { color: var(--removed); text-decoration-thickness: 2px; }
@media (max-width: 720px) { .results { grid-template-columns: 1fr; } }

/* steps: a real sequence, so numbers are information */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font: 600 1.6rem/1 var(--serif); color: var(--added); padding-top: 0.15rem; }
.steps h3 { margin-bottom: 0.35rem; }

/* deliverables for three readers */
.readers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.readers h3 { margin-bottom: 0.8rem; }
.readers ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
@media (max-width: 900px) { .readers { grid-template-columns: 1fr; gap: 2rem; } }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper); }
.price { padding: 2rem 1.75rem; display: grid; align-content: start; gap: 0.75rem; }
.price + .price { border-left: 1px solid var(--rule); }
.price .amount { font: 600 2.4rem/1 var(--serif); }
.price .amount small { font: 400 1rem var(--sans); color: var(--ink-soft); }
.price.featured { background: var(--added-bg); }
.price .btn { margin-top: 0.6rem; justify-self: start; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } .price + .price { border-left: 0; border-top: 1px solid var(--rule); } }
.guarantee { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 900px) { .guarantee { grid-template-columns: 1fr; } }
.guarantee h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

/* honesty list */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin: 0; padding: 0; list-style: none; }
.limits li { padding-left: 1.6rem; position: relative; }
.limits li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.8rem; height: 2px; background: var(--removed); }
@media (max-width: 720px) { .limits { grid-template-columns: 1fr; } }

/* form */
.preview .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 900px) { .preview .wrap { grid-template-columns: 1fr; } }
form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.35rem; }
label, legend { font-weight: 600; }
.hint { font-size: 0.9rem; color: var(--ink-soft); }
input[type="url"], input[type="email"], input[type="date"], input[type="text"], textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8796a8; border-radius: 6px;
  padding: 0.7rem 0.8rem; min-height: 3rem; width: 100%;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--added); outline-offset: 1px; border-color: var(--ink); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.choice { display: flex; gap: 0.6rem; align-items: center; min-height: 2.75rem; font-weight: 400; }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--added); }
.form-status { min-height: 1.5rem; font-weight: 600; }
.form-status.ok { color: var(--added); }
.form-status.err { color: var(--removed); }
.field-error { color: var(--removed); font-size: 0.9rem; font-weight: 600; }

/* faq */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font: 600 1.15rem/1.35 var(--serif); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1rem; font: 500 1.4rem var(--mono); color: var(--added); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.3rem; display: grid; gap: 0.75rem; }

/* footer */
.site-foot { background: var(--panel); color: var(--panel-text); padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { font: 600 1rem var(--sans); color: #fff; margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-foot address { font-style: normal; line-height: 1.6; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid #24364f; padding-top: 1.5rem; color: #9fb0c4; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* legal pages */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.doc .wrap { max-width: 50rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: none; margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; max-width: none; }
.doc p, .doc li { max-width: var(--measure); }
.doc p + p { margin-top: 0.9rem; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
