/* MyCars (mycars.<platform domain>): mobile-first — most entries are made at the pump.
   Its own palette in the EzyClub family: deep teal and a warm amber, light and dark. */
:root {
  --bg: #F4F6F4; --surface: #FFFFFF; --sunk: #EAEFEC; --ink: #16201D; --ink-2: #4B5A55; --muted: #6D7B76;
  --line: #D8E0DC; --brand: #0E5A4E; --brand-ink: #FFFFFF; --brand-soft: #DDEFEA; --accent: #E0902B; --accent-soft: #FCEBD3;
  --good: #1F7A4D; --good-soft: #DFF2E7; --bad: #B3261E; --bad-soft: #FBE3E1; --warn: #9A5B00; --warn-soft: #FDF0D8;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,32,28,.06), 0 6px 20px rgba(16,32,28,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1715; --surface: #17211E; --sunk: #111A18; --ink: #E9F0ED; --ink-2: #B8C6C0; --muted: #8C9C96;
    --line: #2A3834; --brand: #3FB39E; --brand-ink: #06231D; --brand-soft: #16362F; --accent: #F0A94B; --accent-soft: #3A2A12;
    --good: #5BD095; --good-soft: #143325; --bad: #FF8A80; --bad-soft: #3A1714; --warn: #F5C063; --warn-soft: #3A2C10;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mc { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); text-underline-offset: 2px; }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; font-weight: 800; }
h2 { font-size: 1.1rem; margin: 0 0 10px; font-weight: 700; }
p { margin: 0 0 12px; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.mc-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.mc-main { flex: 1; padding: 20px 0 32px; }

/* Header */
.mc-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.mc-top-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.mc-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; flex: none; }
.mc-mark { width: 32px; height: 32px; }
.mc-mark rect { fill: var(--brand); } .mc-mark path { fill: var(--brand-ink); } .mc-mark circle { fill: var(--brand); }
.mc-switch { flex: 1; min-width: 0; display: flex; justify-content: center; }
.mc-switch select { width: 100%; max-width: 320px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); color: var(--ink);
  font: 600 .95rem var(--font); padding: 0 36px 0 16px; text-overflow: ellipsis; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.mc-acct { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.signed-in .mc-acct { margin-left: 0; }
.mc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; text-decoration: none; }
.mc-avatar[aria-current] { background: var(--brand); color: var(--brand-ink); }
.mc-link { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Menu: a row under the header on wide screens, a tab bar at the bottom on phones */
.mc-tabs { border-top: 1px solid var(--line); }
.mc-tabs-in { display: flex; gap: 4px; }
.mc-tab { display: flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; }
.mc-tab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-tab[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.mc-tab.add { color: var(--brand); }
@media (max-width: 720px) {
  .signed-in .mc-main { padding-bottom: 96px; }
  .mc-tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
  .mc-tabs .mc-wrap { padding: 0 4px; }
  .mc-tabs-in { justify-content: space-around; gap: 0; }
  .mc-tab { flex: 1; flex-direction: column; gap: 2px; font-size: .7rem; padding: 8px 2px 9px; border-bottom: 0; border-top: 3px solid transparent; min-height: 56px; justify-content: center; }
  .mc-tab[aria-current] { border-top-color: var(--brand); }
  .mc-tab.add svg { width: 30px; height: 30px; background: var(--brand); stroke: var(--brand-ink); border-radius: 50%; padding: 5px; margin-top: -6px; }
  .mc-brand span { display: none; }
  .signed-out .mc-brand span, body:not(.signed-in) .mc-brand span { display: inline; }
}

/* Buttons, fields */
.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; }
.mc-btn:hover { filter: brightness(1.06); }
.mc-btn.sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.mc-btn.lg { min-height: 52px; padding: 0 22px; font-size: 1.02rem; }
.mc-btn.block { width: 100%; }
.mc-btn.ghost { background: transparent; color: var(--brand); }
.mc-btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.mc-linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; }
.mc-form { display: grid; gap: 14px; }
.mc-field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.mc-field input, .mc-field select, .mc-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 400 1rem var(--font); padding: 10px 12px; }
.mc-field input:focus, .mc-field select:focus, .mc-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.mc-field.err input { border-color: var(--bad); }
.mc-field.grow { flex: 1; }
.mc-ferr { color: var(--bad); font-size: .86rem; font-weight: 600; }
.mc-hint { color: var(--muted); font-size: .86rem; font-weight: 400; }
.mc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.mc-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.mc-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }

/* Surfaces */
.mc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.mc-card h2 { margin-bottom: 8px; }
.mc-card.danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.mc-narrow { max-width: 460px; margin: 0 auto; }
.mc-narrow.wide { max-width: 640px; }
.mc-lede { font-size: 1.1rem; color: var(--ink-2); }
.mc-lede.sm { font-size: 1rem; margin-bottom: 16px; }
.mc-alt { text-align: center; color: var(--ink-2); margin: 14px 0 0; }
.mc-flash, .mc-alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 500; overflow-wrap: anywhere; }
.mc-flash.good, .mc-alert.good { background: var(--good-soft); color: var(--good); }
.mc-flash.bad, .mc-alert.bad { background: var(--bad-soft); color: var(--bad); }
.mc-alert.warn, .mc-flash.warn { background: var(--warn-soft); color: var(--warn); }
.mc-sent { text-align: center; }
.mc-sent-ic { width: 48px; height: 48px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; margin-bottom: 6px; }

/* Landing */
.mc-hero { display: grid; gap: 28px; align-items: center; padding: 8px 0 28px; }
.mc-hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
.mc-eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }
.mc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.mc-phone { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); max-width: 380px; width: 100%; justify-self: center; }
.mc-phone-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mc-phone-top span { color: var(--muted); font-size: .85rem; }
.mc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mc-stats div { background: var(--sunk); border-radius: 12px; padding: 10px; display: grid; }
.mc-stats small { color: var(--muted); font-size: .72rem; } .mc-stats b { font-size: 1.25rem; } .mc-stats span { color: var(--muted); font-size: .72rem; }
.mc-bars { display: flex; align-items: end; gap: 6px; height: 70px; margin: 14px 0; }
.mc-bars i { flex: 1; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 55%, transparent)); border-radius: 6px 6px 2px 2px; }
.mc-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.mc-mini li { display: flex; align-items: center; gap: 8px; } .mc-mini b { margin-left: auto; }
.mc-mini li.due { color: var(--warn); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .dot.fuel { background: var(--brand); } .dot.service { background: var(--accent); } .dot.due { background: var(--warn); }
.mc-features { display: grid; gap: 12px; margin: 10px 0 24px; }
.mc-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.mc-feature p { color: var(--ink-2); margin: 0; }
.mc-club { background: var(--brand-soft); border-radius: var(--radius); padding: 20px; }
.mc-club p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) {
  .mc-hero { grid-template-columns: 1.1fr .9fr; padding: 24px 0 40px; }
  .mc-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  h1 { font-size: 2rem; }
}

/* Footer */
.mc-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.mc-foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.mc-foot a { color: var(--ink-2); }
@media (max-width: 720px) { .signed-in .mc-foot { padding-bottom: 76px; } }
