/*
 * copycatgo.com — one stylesheet, no build step.
 *
 * Colour pairs are the ones measured to pass in the vault note
 * rf-copycatgo-brand-colour-contrast. The brand orange #E65E09 carries text
 * nowhere: it is decoration, or large display type on white. Text and
 * buttons use #C04F08, which keeps the hue and passes 4.5:1 with white.
 */

:root {
  color-scheme: light;

  --ink: #1c2629;
  --muted: #4a5659;
  --line: #d4dcdd;
  --paper: #ffffff;
  --wash: #f4f7f7;
  --blush: #fff1f4;

  --teal: #004c4d;          /* brand deep teal: 9.8:1 with white */
  --teal-soft: #e2f1f1;
  --teal-bright: #2eb7b8;   /* decoration only, never text */

  --orange: #c04f08;        /* text and button orange: 4.8:1 with white */
  --orange-brand: #e65e09;  /* decoration and 24px+ bold display only */
  --orange-soft: #fcebe0;

  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; }
h2 { font-size: 1.5rem; font-weight: 700; color: var(--teal); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.section.wash { background: var(--wash); }
.section-head { max-width: 680px; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; order: 3; width: 100%; margin: 0 -8px; padding-bottom: 6px; scrollbar-width: none; }
.site-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px; color: var(--ink); border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
.header-account { margin-left: auto; text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px; }
.header-account[aria-current="page"] { background: var(--teal-soft); }
.header-search { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 44px; padding: 0 4px; }
.header-search svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: #a54306; color: #fff; }
.btn.secondary { background: var(--paper); color: var(--teal); border-color: var(--teal); }
.btn.secondary:hover { background: var(--teal); color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- home hero: all four answers above the fold on a phone ---------- */

.hero { background: linear-gradient(180deg, var(--blush) 0%, var(--blush) 55%, var(--teal-soft) 100%); padding: 18px 0 22px; }
.hero .wrap { position: relative; }
.hero h1 { font-size: 2rem; margin: 0 0 10px; }
.hero h1 .accent { color: var(--orange); display: block; }
.hero .lede { font-size: 1rem; margin-bottom: 12px; }
.hero-cat { display: none; position: absolute; right: var(--gutter); top: 0; width: 170px; }
/* The cat needs room beside the headline; on a phone the logo carries it. */
.hero-start { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0 0 14px; font-size: .9rem; }
.hero-start strong { font-weight: 700; }
.hero-start a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; }
.steps-mini { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; padding: 0; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.steps-mini li { background: rgba(255,255,255,.75); border-radius: 10px; padding: 8px; }
.steps-mini b { display: block; color: var(--orange); font-size: 1rem; }
.trust { font-size: .85rem; margin: 0; padding: 10px 12px; background: var(--paper); border-left: 4px solid var(--teal); border-radius: 8px; }

/* ---------- how it works ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps img { height: 48px; width: auto; margin-bottom: 8px; }
.steps h3 { color: var(--teal); }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Kitt cards ---------- */

.card-grid { display: grid; gap: 16px; }
.kitt-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.kitt-card:hover { border-color: var(--teal); }
.kitt-card a.cover { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.kitt-art { aspect-ratio: 16 / 7; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; color: var(--teal); background: var(--teal-soft); }
.kitt-art.type-shopkitt { background: var(--orange-soft); color: var(--orange); }
.kitt-art.type-coachkitt { background: var(--blush); color: var(--teal); }
.kitt-art img { width: 100%; height: 100%; object-fit: cover; }
.kitt-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.kitt-type { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.kitt-card h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--ink); }
.kitt-card p { color: var(--muted); font-size: .95rem; }
.milestone { font-size: .9rem; color: var(--ink) !important; }
.milestone::before { content: "First milestone: "; font-weight: 700; }
.price-pair { display: flex; gap: 18px; margin: auto 0 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; }
.price-pair dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.price-pair dd { margin: 0; font-weight: 700; }
.by { font-size: .85rem !important; margin: 0 0 10px; }
.card-cta { font-weight: 700; color: var(--teal); }
.card-cta::after { content: " →"; }

/* ---------- chips and filters ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--paper); }
.chips a[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Kitt page ---------- */

.page-hero { background: var(--wash); padding: 28px 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-hero .tagline { font-size: 1.1rem; max-width: 720px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 16px 0 18px; }
.hero-facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.hero-facts dd { margin: 0; font-size: 1.25rem; font-weight: 700; }
.hero-facts dd small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); max-width: 260px; }

/* Readable line length, aligned with the page's left edge rather than centred. */
.prose > * { max-width: 720px; }
.prose > .cost-table, .prose > .cost-total { max-width: 820px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; font-weight: 700; color: var(--teal); }

.two-sides { display: grid; gap: 16px; }
.side { border-radius: var(--radius); padding: 20px; }
.side h2 { font-size: 1.3rem; margin-bottom: 2px; }
.side .sub { font-size: .9rem; margin-bottom: 12px; }
.side ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.side.catnip { background: var(--teal-soft); }
.side.catnip h2 { color: var(--teal); }
.side.litter { background: var(--orange-soft); }
.side.litter h2 { color: #7a3305; }
.side .empty { font-style: italic; color: var(--muted); }

.cost-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 12px; }
.cost-table th, .cost-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cost-table td.num, .cost-table th.num { text-align: right; white-space: nowrap; }
.cost-table small { display: block; color: var(--muted); }
.cost-table small + small { margin-top: 4px; }
.cost-total { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.cost-total p { margin: 0; }
.cost-total strong { font-size: 1.2rem; }
.notice { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; }

.person { display: grid; gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.person img, .person .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-family: var(--font-display); font-size: 2.4rem; }
.person .role { color: var(--muted); font-weight: 600; }

.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

.ownership { border: 2px solid var(--teal); border-radius: var(--radius); padding: 16px 20px; font-weight: 600; color: var(--teal); max-width: 720px; }

/* ---------- lists of Purrks and Purrfessionals ---------- */

.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row-list > li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.row-list h3 { margin-bottom: 4px; }
.row-list p { margin: 0 0 6px; color: var(--muted); }
.meta { font-size: .85rem; color: var(--muted); }
.price-tag { font-weight: 700; color: var(--ink); }

/* ---------- search ---------- */

.search-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: 20px; }
.search-form input { flex: 1; min-height: 48px; padding: 10px 14px; font: inherit; border: 2px solid var(--line); border-radius: 12px; min-width: 0; }
.search-form input:focus { border-color: var(--teal); outline: none; }

/* ---------- forms: checkout, the account, applications ---------- */

.stack-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .choices legend { font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; }
.field small { color: var(--muted); }
.field .field-error { color: #8f1d1d; font-weight: 600; }

.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { font-size: 1.5rem; color: var(--teal); padding: 0; margin-bottom: .5em; }
.choices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.choice input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--teal); }
.choice label { display: grid; gap: 4px; }
.choice-note { font-size: .9rem; color: var(--muted); }
.choice.understood { background: var(--teal-soft); border-color: var(--teal); }
.choice.understood label { display: block; }
.alert + form, .alert + .alert { margin-top: 14px; }

.alert { background: #fdecec; border: 2px solid #8f1d1d; color: #5c1010; border-radius: var(--radius); padding: 14px 16px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert p { margin: 6px 0 0; }
.said { background: var(--teal-soft); border: 2px solid var(--teal); color: var(--teal); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.test-bar { background: #3d2a00; color: #fff; font-size: .9rem; font-weight: 600; text-align: center; padding: 8px var(--gutter); }
.buy-box .meta { margin: 10px 0 0; }
.card-box { border: 2px solid var(--line); border-radius: 12px; padding: 14px; min-height: 64px; background: var(--paper); }
.pay-status { min-height: 1.6em; margin: 0; font-weight: 600; color: var(--teal); }
.pay-status.bad { color: #8f1d1d; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cost-table tr.line-failed td { background: #fdecec; }
.receipt-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 16px 0; }
.receipt-facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.receipt-facts dd { margin: 0; font-weight: 600; word-break: break-all; }

/* ---------- the account and staff pages ---------- */

.sub-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.sub-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); }
.sub-nav a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.signed-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .9rem; color: var(--muted); margin: 0; }
.link-button { font: inherit; font-weight: 700; color: var(--teal); background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--orange); }
.owned { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: var(--paper); }
.owned > h2 { margin-bottom: 4px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.field textarea.tall { min-height: 200px; }
.rules { background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.rules summary { font-weight: 700; color: var(--teal); cursor: pointer; min-height: 32px; }
.rules ul { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }
.tripped { margin-top: 6px; }
.photo-now { border-radius: 50%; object-fit: cover; }
.legal h2 { margin-top: 28px; }
.legal ul, .legal ol { padding-left: 22px; }
.as-written { white-space: pre-line; background: var(--wash); border-left: 4px solid var(--line); border-radius: 8px; padding: 12px 16px; }
/* A box only a script would fill. Off-screen rather than display:none, which some scripts look for. */
.not-for-people { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- a Client's business on its way to ready ---------- */

.tracker { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; counter-reset: step; }
.tracker li { counter-increment: step; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--paper); font-weight: 600; }
.tracker li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-size: .8rem; flex: none; }
.tracker li.done { color: var(--teal); }
.tracker li.done::before { content: "✓"; background: var(--teal); border-color: var(--teal); color: #fff; }
.tracker li.now { color: var(--ink); border-color: var(--teal); background: var(--teal-soft); }
.tracker li.now::before { border-color: var(--teal); color: var(--teal); }
.business-message { font-weight: 600; }
.business-url { font-size: 1.15rem; font-weight: 700; }
.address-input { display: flex; align-items: center; gap: 6px; }
.address-input input { flex: 1; min-width: 0; }
.address-input span { font-weight: 700; white-space: nowrap; }

/* ---------- spoken input: the Record button beside every multi-line box ----------
   Drawn by /assets/speak.js. Ported from freezermealbiz-app's speak.css onto
   this stylesheet's colours. Only the recording state is red, and every
   button is at least 48 by 48: it is pressed by someone who cannot aim. */

.speak { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }
/* The hidden attribute loses to display:flex without this. */
.speak[hidden], .speak [hidden] { display: none !important; }
.speak button {
  width: auto; min-height: 48px; min-width: 48px; margin: 0; padding: 12px 16px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; box-shadow: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.speak button:hover { border-color: var(--ink); }
.speak button[disabled] { opacity: .75; cursor: progress; }
.speak .speak-rec::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #8f1d1d; margin-right: 8px; }
.speak.on .speak-rec { background: #fdecec; border-color: #8f1d1d; color: #5c1010; }
.speak.on .speak-rec::before { border-radius: 2px; }
.speak-status { flex-basis: 100%; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.speak-status:empty { display: none; }
.speak-status.warn { color: #8f1d1d; font-weight: 700; }

/* Signed in: PurrHelp's recorder. A dashed panel, the Record button filled,
   a clock, a sound meter, and a player once there is something to play. */
.speak-rich { border: 2px dashed var(--line); border-radius: 12px; padding: 12px; background: var(--wash); }
.speak-rich .speak-rec { background: var(--teal); border-color: var(--teal); color: #fff; }
.speak-rich .speak-rec::before { display: none; }
.speak-rich.on .speak-rec { background: #fdecec; border-color: #8f1d1d; color: #5c1010; }
.speak-clock { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 3.2em; font-size: .9rem; }
.speak-meter { width: 64px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; flex: 0 0 auto; }
.speak-meter i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .06s linear; }
.speak-player { height: 40px; max-width: 260px; }

/* ---------- drafts (local preview only) ---------- */

.preview-bar { background: #3d2a00; color: #fff; font-size: .85rem; font-weight: 600; text-align: center; padding: 6px var(--gutter); }
.draft { background: #fff6d6; border: 2px dashed #8a6d00; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; font-size: .9rem; color: #3d2a00; }
.draft strong { display: block; }
.draft-tag { display: inline-block; background: #fff6d6; color: #3d2a00; border: 1px dashed #8a6d00; border-radius: 6px; font-size: .72rem; font-weight: 700; padding: 1px 6px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- footer ---------- */

.site-footer { background: var(--teal); color: #fff; padding: 36px 0 28px; margin-top: 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blush); }
.site-footer .motto { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.site-footer small { opacity: .9; }

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  h1 { font-size: 2.8rem; }
  .site-nav { order: 0; width: auto; margin: 0 0 0 16px; padding: 0; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 3.2rem; margin-right: 0; max-width: 640px; }
  .hero .lede { font-size: 1.15rem; max-width: 600px; }
  .hero-cat { display: block; right: 24px; }
  .hero-text { max-width: 680px; }
  .steps-mini { max-width: 560px; font-size: .9rem; }
  .trust { max-width: 600px; font-size: .95rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .two-sides { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 96px 1fr; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
  .tracker { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-cat { width: 210px; right: 80px; }
}
