/* Clean Copy Lab — site styles.
 * Colours and fonts come from tokens.css. Nothing here hard-codes a colour that
 * needs to differ between themes.
 */

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ccl-blue); }
a:hover { color: var(--ccl-blue-hover); }

:focus-visible { outline: 2px solid var(--ccl-blue); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ccl-blue); color: #fff; padding: 10px 16px;
  border-radius: var(--ccl-radius); text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- type */

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 20ch; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--ccl-body);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ccl-rust); margin: 0 0 14px;
}

.section-lead { color: var(--ccl-muted); max-width: 62ch; font-size: 17px; }
.section-foot { margin: 26px 0 0; font-size: 15px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ccl-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ccl-border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
/* The supplied logo has a white background baked in, so on the dark theme it
 * would read as a white tile. The artwork is circular anyway — clipping it to a
 * circle turns that into a deliberate badge instead of an artefact.
 * If a transparent .svg/.png of the mark turns up, drop the radius. */
.brand-mark { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.brand-name {
  font-family: var(--ccl-display); font-size: 19px; color: var(--ccl-heading);
  white-space: nowrap;
}
.brand-name strong { font-weight: 600; }
.brand-name em { color: var(--ccl-blue); font-style: italic; font-weight: 600; }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--ccl-text); text-decoration: none; font-size: 15px; touch-action: manipulation;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ccl-blue); border-bottom-color: var(--ccl-blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: transparent; color: var(--ccl-muted);
  border: 1px solid var(--ccl-border); border-radius: var(--ccl-radius);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ccl-blue); border-color: var(--ccl-blue); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none; width: 40px; height: 38px; background: transparent;
  border: 1px solid var(--ccl-border); border-radius: var(--ccl-radius);
  cursor: pointer; padding: 10px 9px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ccl-text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ccl-body); font-size: 15px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--ccl-radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  line-height: 1.2; text-align: center;
  touch-action: manipulation;
}
.btn-primary { background: var(--ccl-blue); color: var(--ccl-on-brand); }
.btn-primary:hover { background: var(--ccl-blue-hover); color: var(--ccl-on-brand); }
.btn-ghost { background: transparent; color: var(--ccl-blue); border-color: var(--ccl-border); }
.btn-ghost:hover { border-color: var(--ccl-blue); background: color-mix(in srgb, var(--ccl-blue) 7%, transparent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------------------------------------------------------------- sections */

section { padding: 88px 0; }
/* Anchor targets must clear the sticky header when the page is opened
 * directly on a hash (the JS offset only applies to in-page clicks). */
section[id], [id]:target { scroll-margin-top: 84px; }
.band { background: var(--ccl-bg-band); }

.grid { display: grid; gap: 20px; list-style: none; margin: 36px 0 0; padding: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--ccl-card); border: 1px solid var(--ccl-border);
  border-radius: var(--ccl-radius); padding: 26px; box-shadow: var(--ccl-shadow);
  /* Bug 1: long unbroken words used to push these past the viewport. */
  min-width: 0; overflow-wrap: break-word;
}

.split-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end;
}
.split-head h2 { margin-bottom: 0; }

.pull {
  margin: 0; font-family: var(--ccl-display); font-style: italic;
  color: var(--ccl-muted); font-size: 17px; line-height: 1.55;
  border-left: 2px solid var(--ccl-rust); padding-left: 18px;
}

/* ---------------------------------------------------------------- hero */

.hero { padding: 56px 0 78px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ccl-card); border: 1px solid var(--ccl-border);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ccl-muted);
  margin: 0 0 22px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ccl-rust); }

.hero-title {
  font-size: clamp(44px, 7vw, 76px); margin: 0 0 4px; letter-spacing: -.025em;
  font-weight: 400;
}
.hero-title .u { border-bottom: 3px solid var(--ccl-rust); padding-bottom: 2px; }
.hero-title em { color: var(--ccl-blue); font-style: italic; font-weight: 600; }

.rule-line {
  display: flex; align-items: center; gap: 16px; margin: 18px 0 20px;
  color: var(--ccl-muted); font-family: var(--ccl-display); font-style: italic; font-size: 16px;
}
.rule-line::before, .rule-line::after {
  content: ""; height: 1px; background: var(--ccl-border); flex: 1 1 0; min-width: 20px;
}
.rule-line span { flex: 0 1 auto; }

.hero-lead { color: var(--ccl-muted); font-size: 17px; max-width: 52ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ccl-muted); }
.chips-stack { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }

.tick {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ccl-blue); position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 5px; top: 4.5px; width: 4px; height: 7px;
  border: solid var(--ccl-on-brand); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* hero media — the tracked-changes panel that replaced the broken video */

.hero-media { min-width: 0; width: 100%; }
.edit-card {
  background: var(--ccl-card); border: 1px solid var(--ccl-border);
  border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(17,17,17,.4);
}
.edit-card-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--ccl-border);
  background: var(--ccl-bg-band);
}
.edit-card-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ccl-border); }
.edit-card-file {
  margin-left: 8px; font-size: 12.5px; color: var(--ccl-muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.edit-card-body { padding: 22px 20px 18px; }

.edit-line { font-size: 15.5px; line-height: 1.9; color: var(--ccl-text); margin: 0 0 14px; }
.edit-line del {
  text-decoration: line-through; text-decoration-thickness: 1.5px;
  color: #c2554a; background: color-mix(in srgb, #c2554a 12%, transparent);
  padding: 1px 3px; border-radius: 2px;
}
.edit-line ins {
  text-decoration: none; color: #1f7a4d;
  background: color-mix(in srgb, #1f7a4d 14%, transparent);
  padding: 1px 3px; border-radius: 2px; font-weight: 700;
}
:root[data-theme="dark"] .edit-line del { color: #f08a7d; }
:root[data-theme="dark"] .edit-line ins { color: #64d39a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .edit-line del { color: #f08a7d; }
  :root:not([data-theme="light"]) .edit-line ins { color: #64d39a; }
}

.edit-note {
  border-left: 2px solid var(--ccl-rust); padding: 10px 0 10px 14px;
  font-size: 13.5px; color: var(--ccl-muted); line-height: 1.6;
}
.edit-note-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ccl-rust); margin-bottom: 4px;
}
.edit-card-foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 14px 20px; border-top: 1px solid var(--ccl-border); background: var(--ccl-bg-band);
}
.edit-stat { font-size: 13px; color: var(--ccl-muted); }
.edit-stat strong { color: var(--ccl-heading); font-size: 15px; }

/* ---------------------------------------------------------------- stats */

.stat-num {
  font-family: var(--ccl-display); font-size: 44px; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ccl-blue); margin: 0 0 12px;
}
.stat-text { color: var(--ccl-muted); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- steps */

.step-grid { counter-reset: step; }
.step-num {
  font-family: var(--ccl-display); font-size: 15px; color: var(--ccl-blue);
  margin: 0 0 10px; letter-spacing: .04em;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ccl-muted); font-size: 14.5px; margin: 0; }

/* ---------------------------------------------------------------- pricing */

.price-grid { align-items: start; }
.price { display: flex; flex-direction: column; height: 100%; position: relative; }
.price-featured { border-color: var(--ccl-blue); border-width: 2px; }
.price-flag {
  position: absolute; top: -12px; left: 26px;
  background: var(--ccl-blue); color: var(--ccl-on-brand);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin: 0;
}
.price h3 { font-family: var(--ccl-display); font-size: 23px; margin-bottom: 6px; }
.price-note { color: var(--ccl-muted); font-size: 14px; min-height: 42px; }
.price-amount { margin: 6px 0 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-figure {
  font-family: var(--ccl-display); font-size: 38px; color: var(--ccl-blue); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-unit { font-size: 14px; color: var(--ccl-muted); }

.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.ticks li {
  display: grid; grid-template-columns: 17px 1fr; gap: 10px; align-items: start;
  font-size: 14.5px; color: var(--ccl-muted);
}
.ticks li::before {
  content: ""; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ccl-blue); margin-top: 3px;
  clip-path: polygon(28% 52%, 44% 68%, 74% 32%, 84% 42%, 44% 84%, 18% 60%);
}

.guarantee {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 30px 0 0; font-size: 14.5px; color: var(--ccl-muted); text-align: center;
}

/* ---------------------------------------------------------------- reviews */

.rating { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: wrap; }
.stars { color: var(--ccl-rust); letter-spacing: 2px; font-size: 17px; }
.rating-text { font-size: 14px; color: var(--ccl-muted); }

.quote-mark {
  font-family: var(--ccl-display); font-size: 34px; color: var(--ccl-blue);
  line-height: 1; margin: 0 0 8px; display: block;
}
.quote-text { font-family: var(--ccl-display); font-size: 16px; line-height: 1.65; color: var(--ccl-text); }
.quote-who { margin: 16px 0 0; font-size: 14px; }
.quote-who strong { display: block; color: var(--ccl-heading); }
.quote-who span { color: var(--ccl-muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- resource */

.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sample-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ccl-muted); margin: 0 0 16px;
}
.sample-foot { font-size: 13px; color: var(--ccl-muted); margin: 4px 0 0; font-style: italic; }

/* ---------------------------------------------------------------- faq */

.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.faq-intro h2 { max-width: 14ch; }

.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--ccl-border); }
.faq-item:first-child { border-top: 1px solid var(--ccl-border); }
.faq-item summary {
  touch-action: manipulation;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 16.5px; color: var(--ccl-heading); font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ccl-blue); }
.chev {
  flex: none; width: 11px; height: 11px; border-right: 2px solid var(--ccl-muted);
  border-bottom: 2px solid var(--ccl-muted); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.faq-item[open] .chev { transform: rotate(225deg) translate(-2px, -2px); }
.faq-body { padding: 0 0 22px; max-width: 62ch; }
.faq-body p { color: var(--ccl-muted); margin: 0; font-size: 15.5px; }

/* ---------------------------------------------------------------- form */

.submit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-card { padding: 30px; }

.steps {
  display: flex; gap: 10px; list-style: none; margin: 0 0 26px; padding: 0 0 20px;
  border-bottom: 1px solid var(--ccl-border);
}
.steps-item {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px;
  color: var(--ccl-muted); flex: 1;
}
.steps-item span {
  display: grid; place-items: center; width: 25px; height: 25px; flex: none;
  border-radius: 50%; border: 1px solid var(--ccl-border);
  font-size: 12.5px; font-weight: 700;
}
.steps-item.is-current { color: var(--ccl-heading); font-weight: 700; }
.steps-item.is-current span { background: var(--ccl-blue); color: var(--ccl-on-brand); border-color: var(--ccl-blue); }
.steps-item.is-done span { background: var(--ccl-blue); color: var(--ccl-on-brand); border-color: var(--ccl-blue); }

.step-panel { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step-panel.is-active { display: block; }

.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label, .label-text {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--ccl-heading); margin-bottom: 7px;
}
.opt { font-weight: 400; color: var(--ccl-muted); font-size: 12.5px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%; max-width: 100%; font-family: var(--ccl-body); font-size: 15px;
  color: var(--ccl-text); background: var(--ccl-bg);
  border: 1px solid var(--ccl-border); border-radius: var(--ccl-radius);
  padding: 11px 13px;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--ccl-blue); outline-offset: 0; }

.hint { font-size: 13px; color: var(--ccl-muted); margin: 6px 0 0; }
.error { font-size: 13px; color: #c2554a; margin: 6px 0 0; display: none; font-weight: 700; }
.error.is-shown { display: block; }
:root[data-theme="dark"] .error { color: #f08a7d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { color: #f08a7d; } }
.field.has-error input, .field.has-error .file-drop { border-color: #c2554a; }

.file-drop {
  position: relative; border: 1px dashed var(--ccl-border); border-radius: var(--ccl-radius);
  padding: 22px 16px; text-align: center; background: var(--ccl-bg);
  transition: border-color .15s, background-color .15s;
}
.file-drop.is-over { border-color: var(--ccl-blue); background: color-mix(in srgb, var(--ccl-blue) 6%, transparent); }
.file-drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.file-drop-text { font-size: 14.5px; color: var(--ccl-muted); overflow-wrap: anywhere; }
.file-drop.has-file .file-drop-text { color: var(--ccl-heading); font-weight: 700; }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: inline-flex; margin: 0; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio span {
  display: block; padding: 9px 15px; font-size: 14px; font-weight: 400;
  border: 1px solid var(--ccl-border); border-radius: 999px;
  color: var(--ccl-muted); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.radio input:checked + span {
  border-color: var(--ccl-blue); background: var(--ccl-blue); color: var(--ccl-on-brand); font-weight: 700;
}
.radio input:focus-visible + span { outline: 2px solid var(--ccl-blue); outline-offset: 2px; }

.prompts {
  margin: 10px 0 0; padding: 0 0 0 18px; color: var(--ccl-muted);
  font-size: 13.5px; line-height: 1.7;
}
.counter { text-align: right; font-size: 12.5px; color: var(--ccl-muted); margin: 6px 0 0; }
.form-foot { font-size: 13px; color: var(--ccl-muted); margin: 14px 0 0; text-align: center; }

.confirm { text-align: center; padding: 14px 0; }
.confirm-mark {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ccl-blue) 12%, transparent); color: var(--ccl-blue);
}
.confirm h3 { font-family: var(--ccl-display); font-size: 22px; }
.confirm p { color: var(--ccl-muted); font-size: 15px; }
.confirm-quote {
  background: color-mix(in srgb, var(--ccl-blue) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ccl-blue) 25%, transparent);
  border-radius: var(--ccl-radius); padding: 12px 14px; margin: 16px 0 0;
  font-size: 14.5px; color: var(--ccl-heading); font-variant-numeric: tabular-nums;
}

.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

.alternates { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ccl-border); }
.alternates-label { font-size: 13px; color: var(--ccl-muted); margin: 0 0 12px; text-align: center; }
.alternates-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alt-link {
  display: block; text-align: left; text-decoration: none; cursor: pointer;
  background: var(--ccl-bg); border: 1px solid var(--ccl-border);
  border-radius: var(--ccl-radius); padding: 13px 14px; font-family: var(--ccl-body);
  min-width: 0;
}
.alt-link:hover { border-color: var(--ccl-blue); }
.alt-link strong { display: block; font-size: 14px; color: var(--ccl-heading); margin-bottom: 2px; }
.alt-link span { display: block; font-size: 12.5px; color: var(--ccl-muted); line-height: 1.45; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ccl-bg-band); border-top: 1px solid var(--ccl-border); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 44px; padding-top: 62px; padding-bottom: 44px;
}
.footer-name { font-size: 22px; }
.footer-tag { font-family: var(--ccl-display); font-style: italic; color: var(--ccl-muted); margin: 10px 0 14px; }
.footer-desc { font-size: 14.5px; color: var(--ccl-muted); max-width: 40ch; }

.footer-head {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ccl-rust); margin: 0 0 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
/* :not(.btn) matters — without it this rule outranks .btn-primary on
 * specificity and repaints the "Start a project" button's label muted. */
.footer-col a:not(.btn) { color: var(--ccl-muted); text-decoration: none; font-size: 14.5px; }
.footer-col a:not(.btn):hover { color: var(--ccl-blue); }
.footer-item {
  display: flex; gap: 10px; align-items: flex-start; margin: 0;
  font-size: 14.5px; color: var(--ccl-muted);
}
.footer-item .tick { margin-top: 4px; }
.footer-cta { margin-top: 8px; }

.footer-legal {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  border-top: 1px solid var(--ccl-border); padding-top: 22px; padding-bottom: 30px;
  font-size: 13px; color: var(--ccl-muted);
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--ccl-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ccl-blue); }

/* ================================================================ responsive
 * Bug 1 on the old site: card text overflowed and clipped on a phone.
 * Bug 2: the hero media ran off the right edge.
 * Both are structural — grids collapse, and every card has min-width: 0.
 */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 560px; }
  .faq-grid, .submit-grid, .resource-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro h2 { max-width: none; }
  .split-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 24px 18px;
    background: var(--ccl-bg); border-bottom: 1px solid var(--ccl-border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--ccl-border); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-header { position: relative; }
  section[id], [id]:target { scroll-margin-top: 16px; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 36px 0 56px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .alternates-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-note { min-height: 0; }
  h2 { max-width: none; }
}

@media (max-width: 420px) {
  .shell { padding: 0 16px; }
  .brand-name { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
}

@media print {
  .site-header, .alternates, .nav-toggle, .theme-toggle { display: none; }
}

/* ================================================================ account */

.account-grid { max-width: 900px; margin-inline: auto; }

.tabs {
  display: flex; gap: 6px; margin: 0 0 22px; padding: 0 0 2px;
  border-bottom: 1px solid var(--ccl-border);
}
.tab {
  font-family: var(--ccl-body); font-size: 15px; font-weight: 700;
  background: transparent; border: 0; cursor: pointer; touch-action: manipulation;
  padding: 10px 4px; margin-right: 18px; color: var(--ccl-muted);
  border-bottom: 2px solid transparent; margin-bottom: -3px;
}
.tab:hover { color: var(--ccl-blue); }
.tab.is-current { color: var(--ccl-heading); border-bottom-color: var(--ccl-blue); }

.auth-panel { display: none; }
.auth-panel.is-active { display: block; }

.auth-error {
  background: color-mix(in srgb, #c2554a 10%, transparent);
  border: 1px solid color-mix(in srgb, #c2554a 35%, transparent);
  border-radius: var(--ccl-radius); padding: 11px 13px; margin: 0 0 18px;
  font-size: 14px; color: var(--ccl-heading);
}

.dash-head {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.dash-head h2 { margin: 0 0 4px; font-size: 28px; }
.dash-head .section-lead { margin: 0; font-size: 15px; }

.dash-section {
  font-family: "Lato", sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ccl-rust);
  margin: 38px 0 14px;
}

.empty {
  background: var(--ccl-card); border: 1px dashed var(--ccl-border);
  border-radius: var(--ccl-radius); padding: 26px; text-align: center;
}
.empty p { color: var(--ccl-muted); margin: 0 0 14px; font-size: 15px; }

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  background: var(--ccl-card); border: 1px solid var(--ccl-border);
  border-radius: var(--ccl-radius); overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.dash-table th, .dash-table td {
  text-align: left; padding: 12px 16px; font-size: 14.5px;
  border-bottom: 1px solid var(--ccl-border);
}
.dash-table th {
  background: var(--ccl-bg-band); color: var(--ccl-muted);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td { color: var(--ccl-text); }

.pill-stage {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--ccl-muted) 14%, transparent);
  color: var(--ccl-muted);
}
.pill-stage.stage-paid,
.pill-stage.stage-delivered {
  background: color-mix(in srgb, #1f7a4d 16%, transparent); color: #1f7a4d;
}
.pill-stage.stage-in_progress {
  background: color-mix(in srgb, var(--ccl-blue) 14%, transparent); color: var(--ccl-blue);
}
:root[data-theme="dark"] .pill-stage.stage-paid,
:root[data-theme="dark"] .pill-stage.stage-delivered { color: #64d39a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill-stage.stage-paid,
  :root:not([data-theme="light"]) .pill-stage.stage-delivered { color: #64d39a; }
}

@media (max-width: 560px) {
  .dash-head { flex-direction: column; align-items: flex-start; }
}

/* ================================================================ policies */

.policy-updated { font-size: 13.5px; color: var(--ccl-muted); margin-top: 18px; }
.policy-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px;
  padding-bottom: 90px; align-items: start;
}
.policy-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.policy-nav a {
  color: var(--ccl-muted); text-decoration: none; font-size: 14.5px;
  padding: 8px 0 8px 14px; border-left: 2px solid var(--ccl-border);
}
.policy-nav a:hover { color: var(--ccl-blue); border-left-color: var(--ccl-blue); }

.policy-body { max-width: 68ch; }
.policy-body section { padding: 0 0 44px; }
.policy-body h2 {
  font-size: 27px; margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ccl-border);
}
.policy-body h3 {
  font-family: var(--ccl-body); font-size: 15px; font-weight: 700;
  color: var(--ccl-heading); margin: 26px 0 8px;
}
.policy-body p, .policy-body li { color: var(--ccl-muted); font-size: 15.5px; }
.policy-body ul { padding-left: 20px; }
.policy-body li { margin-bottom: 7px; }
.policy-body strong { color: var(--ccl-heading); }
.policy-foot {
  border-top: 1px solid var(--ccl-border); padding-top: 22px;
  font-size: 15px; color: var(--ccl-muted);
}

@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; gap: 28px; }
  .policy-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .policy-nav a { border-left: 0; border: 1px solid var(--ccl-border);
                  border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
}

/* pay buttons on the quote */
.quote-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.quote-pay .btn { font-size: 14px; padding: 10px 16px; }
