/* Crazy For Cars Partner Center */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eeea;
  --text: #1c1b19;
  --muted: #6b675f;
  --line: #e2ded6;
  --brand: #803434;          /* CFC theme red (Studio's CFCThemeRedColor) */
  --brand-ink: #ffffff;
  --accent: #803434;         /* links, focus, selected */
  --accent-fill: #803434;    /* primary buttons */
  --accent-ink: #ffffff;
  --accent-soft: #f4e6e6;
  --amber: #b9770e;
  --amber-soft: #fbf0d9;
  --green: #1f7a45;
  --green-soft: #e1f3e8;
  --red: #b42318;
  --red-soft: #fde8e6;
  --slot: #111214;
  --slot-2: #1d1f23;
  --slot-text: #f2f2f2;
  --slot-muted: #9a9ea6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141517; --surface: #1c1d20; --surface-2: #232528; --text: #ecebe8; --muted: #a29e96; --line: #2f3135;
    --accent: #c45050; --accent-fill: #a64343; --accent-soft: #3a2323; --amber: #e3a23b; --amber-soft: #3a2c14; --green: #4cc184; --green-soft: #16301f;
    --red: #f2776a; --red-soft: #3b1c19; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141517; --surface: #1c1d20; --surface-2: #232528; --text: #ecebe8; --muted: #a29e96; --line: #2f3135;
  --accent: #c45050; --accent-fill: #a64343; --accent-soft: #3a2323; --amber: #e3a23b; --amber-soft: #3a2c14; --green: #4cc184; --green-soft: #16301f;
  --red: #f2776a; --red-soft: #3b1c19; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Header */
/* The CFC red bar, as in Studio's title bar */
.top {
  position: sticky; top: 0; z-index: 10; background: var(--brand); color: var(--brand-ink);
}
.top-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
/* The app's icon with iPhone-style corners (22.37% of its size); a thin light edge keeps it apart from the red bar */
.app-icon { display: block; flex: none; border-radius: 22.37%; object-fit: cover; }
.brand .app-icon { width: 32px; height: 32px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.hero-icon { width: 72px; height: 72px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.brand small { font-weight: 500; color: rgba(255,255,255,.72); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: rgba(255,255,255,.78); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.nav a.on { color: #fff; background: rgba(255,255,255,.18); }
.top-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.top .btn { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.top .btn:hover { border-color: #fff; }
.top .btn.primary { background: #fff; border-color: #fff; color: var(--brand); }
.top .btn.ghost { border-color: transparent; }
@media (max-width: 480px) {
  .brand small { display: none; }
  .top-inner { gap: 10px; }
  .top .btn { min-height: 34px; padding: 6px 12px; }
}
/* Narrow phones: the icon alone stands for the name, so the buttons fit on the same line */
@media (max-width: 400px) {
  .brand > span { display: none; }
}

main { max-width: 1080px; margin: 0 auto; padding: 28px 16px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

/* Cards and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .split > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
.stat .num { font-size: 26px; font-weight: 700; }
.stat .label { color: var(--muted); font-size: 13px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* Forms */
label.field { display: block; }
label.field > span, .field-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; min-height: 40px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.count { float: right; font-weight: 500; color: var(--muted); }
.count.over { color: var(--red); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.choice:hover { border-color: var(--muted); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
.choice b { display: block; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; }
.checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.checks input { accent-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600;
  border-radius: 9px; padding: 9px 16px; min-height: 40px; cursor: pointer; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); white-space: nowrap;
}
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--red); }
.btn.small { min-height: 32px; padding: 5px 11px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn.big { min-height: 48px; padding: 12px 22px; font-size: 16px; }

/* Status chips and notices */
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.notice { border-radius: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.notice.amber { background: var(--amber-soft); border-color: transparent; }
.notice.green { background: var(--green-soft); border-color: transparent; }
.notice.red { background: var(--red-soft); border-color: transparent; }
.notice b { display: block; margin-bottom: 2px; }
.error { color: var(--red); font-weight: 500; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* Lists */
.list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--surface-2); text-decoration: none; }
.list-row .main { flex: 1; min-width: 0; }
.list-row .main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* The app's screenshot. .shot-ad covers the screenshot's own ad spot ("Your ad here": 562 x 159 px at 53, 412 in the
   666 x 1378 picture), in shares of the picture so it lines up at any size; cqw = 1% of the picture's width. */
.shot { position: relative; width: 100%; max-width: 340px; container-type: inline-size; }
.shot > img { display: block; width: 100%; height: auto; }
.shot-ad {
  position: absolute; left: 7.96%; top: 29.9%; width: 84.38%; height: 11.54%;
  border-radius: 2.4cqw; overflow: hidden; background: var(--slot-2); color: var(--slot-text);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0.3cqw rgba(255,255,255,.12);
}
.shot-ad > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shot-label {
  position: absolute; top: 1.4cqw; right: 2cqw; z-index: 1; font-size: 2.1cqw; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); padding: .3cqw 1.2cqw; border-radius: 1cqw;
}
.shot-ad .slot-card { gap: 3cqw; padding: 0 4cqw; }
.shot-ad .slot-card .logo { width: 14cqw; height: 14cqw; border-radius: 3cqw; font-size: 6cqw; }
.shot-ad .slot-card .t { font-size: 4.6cqw; }
.shot-ad .slot-card .s { font-size: 3.3cqw; margin-top: .5cqw; }
.shot-ad .slot-card .go { font-size: 6cqw; }
.shot-ad .slot-empty { font-size: 3.4cqw; }
.slot { margin: 8px 0; }
.slot-label { font-size: 10.5px; color: var(--slot-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 4px 4px; }
.slot-box { background: var(--slot-2); border-radius: 10px; height: 66px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slot-box > img { width: 100%; height: 100%; object-fit: contain; display: block; min-width: 0; }
.slot-card { display: flex; gap: 10px; align-items: center; padding: 0 12px; width: 100%; height: 100%; }
.slot-card .logo { width: 44px; height: 44px; border-radius: 8px; background: #2e3136; flex: none; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: var(--slot-muted); }
.slot-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.slot-card .txt { flex: 1; min-width: 0; }
.slot-card .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-card .s { font-size: 12.5px; color: var(--slot-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-card .go { color: var(--slot-muted); font-size: 18px; }
.slot-empty { color: var(--slot-muted); font-size: 13px; }
.wide-frame { background: var(--slot); border-radius: 14px; padding: 14px; }
.wide-frame .slot-box { height: auto; aspect-ratio: 728 / 90; }

/* Uploads */
.uploads { display: grid; gap: 10px; }
.upload { display: flex; gap: 12px; align-items: center; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.upload.has { border-style: solid; }
.upload .thumb { width: 120px; height: 40px; border-radius: 6px; background: var(--slot); display: grid; place-items: center; overflow: hidden; flex: none; }
.upload .thumb img { width: 100%; height: 100%; object-fit: contain; }
.upload .thumb.square { width: 40px; }
.upload .info { flex: 1; min-width: 0; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); }

/* Landing */
.hero { background: var(--slot); color: #fff; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 44px 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: 38px; color: #fff; }
.hero p { color: #c9ccd2; font-size: 17px; }
/* Running offers: pills under the pitch, and cards on sign-up and Home */
.hero-offers { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: -4px 0 20px; }
.hero-offer { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
              color: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; }
.hero-offer b { background: var(--accent-fill); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.offer { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.offer-tag { flex: none; background: var(--accent-fill); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.hero .shot { margin-left: auto; max-width: 300px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 32px 20px; }
  .hero h1 { font-size: 30px; }
  .hero .shot { margin: 0 auto; max-width: 280px; }
}
/* How it works: numbered stops joined by a line, each step centered under its stop; across on wide screens, down on phones */
.how { text-align: center; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.timeline li { position: relative; padding: 56px 8px 0; text-align: center; }
.timeline li::after {   /* the line from this stop to the next one's (the next column's middle) */
  content: ""; position: absolute; top: 19px; left: calc(50% + 28px); width: calc(100% - 28px); height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--line));
}
.timeline li:last-child::after { display: none; }
.timeline .stop {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 720px) {
  .how { text-align: left; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 6px 0 26px 60px; min-height: 66px; text-align: left; }
  .timeline .stop { left: 0; transform: none; }
  .timeline li::after { top: 48px; bottom: 4px; left: 19px; width: 2px; height: auto;
                        background: linear-gradient(180deg, var(--brand), var(--line)); }
}
.section { margin-top: 40px; }
.auth { max-width: 420px; margin: 20px auto; }
.footer { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
ul.rules { padding-left: 20px; margin: 0; }
ul.rules li + li { margin-top: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.steps li.done::before { content: "✓"; background: var(--green-soft); color: var(--green); }
.steps li .main { flex: 1; }
