/* Redback Feedback marketing site. No build step, no external requests, system fonts only. */

:root {
  color-scheme: light;
  --red: #c8102e;
  --red-dark: #a60d26;
  --accent: #c8102e;
  --ink: #1a1a1a;
  --muted: #5a5753;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #e4ded4;
  --field: #8a857d;
  --disc: #ffffff;
  --ok: #2e7d4f;
  --code-bg: #1a1a1a;
  --code-bar: #2a2a2a;
  --code-ink: #f2efe9;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.08);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #ff5c73;
    --ink: #f2efe9;
    --muted: #b5b0a8;
    --bg: #141414;
    --card: #1f1f1f;
    --line: #353535;
    --field: #6b6b6b;
    --disc: #f2efe9;
    --ok: #5fc08a;
    --code-bg: #0d0d0d;
    --code-bar: #232323;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
@media (min-width: 40em) { .wrap { width: min(100% - 3rem, 68rem); } }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; background: var(--ink); color: var(--bg); padding: 0.5rem 0.9rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; min-height: 4rem; flex-wrap: wrap; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; }
.nav a:hover { text-decoration: underline; }
.nav .signin { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--field); border-radius: 999px; padding: 0.3rem 0.8rem; }
.nav .signin:hover { color: var(--ink); text-decoration: none; border-color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48em) { .hero .wrap { grid-template-columns: 1.3fr 1fr; } }
.hero-art { justify-self: center; width: min(100%, 300px); aspect-ratio: 1; display: grid; place-items: center; background: var(--disc); border-radius: 50%; box-shadow: var(--shadow); }
.hero-art img { width: 72%; height: auto; object-fit: contain; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.6rem 1.25rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--red); color: #ffffff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections and cards */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head p { font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
@media (max-width: 25em) { .card { padding: 1.1rem; } .mock { padding: 0.8rem; } }

/* Form mocks */
.mock { margin: 0 0 1.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; font-size: 0.95rem; }
.mock .sig { color: var(--muted); margin: 0 0 0.5rem; }
.mock .q { font-weight: 600; margin: 0 0 0.5rem; }
.rate-row { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0 0 0.6rem; flex-wrap: wrap; }
.rate { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 1.5rem; font-weight: 600; }
.mock .url { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; margin: 0; }

/* Question types and stats */
.types { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0 0 2rem; }
.types li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.types b { display: block; margin-bottom: 0.15rem; }
.types span { color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 600; font-size: 0.95rem; }

/* Code blocks */
.code { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; margin: 0 0 0.5rem; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0.6rem 0.4rem 1rem; background: var(--code-bar); font-size: 0.8rem; color: var(--code-ink); }
.code pre { margin: 0; padding: 1rem; overflow-x: auto; font: 0.875rem/1.5 var(--mono); }
.code code { font: inherit; background: none; border: 0; padding: 0; }
.copy { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 6px; border: 1px solid #6f6a63; background: var(--code-bg); color: var(--code-ink); cursor: pointer; }
.copy:hover { background: #3a3a3a; }
.copy:focus-visible { outline-color: #ffffff; outline-offset: 2px; }
.copy-note { font-size: 0.85rem; color: var(--muted); min-height: 1.3em; margin: 0 0 1rem; }
.tools { padding-left: 1.2rem; }
.tools li { margin-bottom: 0.3rem; }

/* Trust list */
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.trust li { position: relative; padding-left: 1.75rem; }
.trust li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.65em; height: 0.35em; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.trust b { display: block; }

/* Invite form */
.form { max-width: 38rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--field); border-radius: 8px; padding: 0.65rem 0.8rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.form-status:empty { display: none; }
.form-status.ok { border-color: var(--ok); }
.form-status.err { border-color: var(--red); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 0.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--ink); }
.site-footer p { margin: 0; }

/* Legal pages and 404 */
.prose { max-width: 44rem; padding-block: clamp(2rem, 5vw, 4rem); }
.prose h1 { margin-bottom: 0.25em; }
.prose .meta { color: var(--muted); margin-bottom: 2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound img { width: min(60%, 220px); margin-bottom: 1rem; }
.notfound .actions { justify-content: center; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-art img { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
