:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f3f4f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.page-shell { min-height: 100vh; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 60px);
  background: #111827;
  color: white;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.subtitle { margin-top: 2px; color: #9ca3af; font-size: 13px; }
.stage-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.container { width: min(1040px, calc(100% - 28px)); margin: 24px auto 56px; }
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 10px 30px rgba(17,24,39,.04);
}
.login-card { width: min(560px, 100%); margin: 36px auto 0; }
.current-card { margin-bottom: 28px; }
.section-block { margin: 30px 0; }

.notice {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
  font-size: 14px;
}
.notice.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.notice.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.notice.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.notice.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.hidden { display: none !important; }

.section-heading { margin-bottom: 22px; }
.section-heading.split { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h1, .section-heading h2 { margin: 3px 0 7px; }
.section-heading h1 { font-size: clamp(25px, 5vw, 34px); }
.section-heading h2 { font-size: clamp(22px, 4vw, 29px); }
.section-heading p { margin: 0; color: #6b7280; line-height: 1.6; }
.eyebrow { color: #6b7280; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: #374151; }
input, select {
  width: 100%;
  border: 1px solid #d1d5db;
  background: white;
  color: #111827;
  border-radius: 11px;
  padding: 12px 13px;
  outline: none;
}
input:focus, select:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.08); }

.button {
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform .06s ease, opacity .2s ease;
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.primary { color: white; background: #111827; }
.button.secondary { color: #111827; background: #e5e7eb; }
.button.danger { color: #991b1b; background: #fee2e2; }
.button.ghost { color: #374151; background: white; border: 1px solid #d1d5db; }
.button.small { padding: 9px 12px; font-size: 13px; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 26px 0 18px;
}
.welcome { font-size: 13px; color: #6b7280; margin-bottom: 7px; }
.shop-select { min-width: min(380px, 72vw); font-weight: 800; }

.status-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}
.status-pill.good { background: #d1fae5; color: #065f46; }
.status-pill.warn { background: #fef3c7; color: #92400e; }
.status-pill.bad { background: #fee2e2; color: #991b1b; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.summary-item { padding: 15px; border-radius: 13px; background: #f9fafb; border: 1px solid #f3f4f6; }
.summary-item span { display: block; color: #6b7280; font-size: 12px; margin-bottom: 5px; }
.summary-item strong { display: block; font-size: 14px; word-break: break-word; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
}
.plan-card.recommended { border: 2px solid #111827; }
.plan-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: #111827;
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.plan-name { font-size: 20px; font-weight: 850; }
.plan-price { margin: 14px 0 4px; font-size: 34px; font-weight: 900; }
.plan-price small { font-size: 14px; font-weight: 700; color: #6b7280; }
.plan-note { min-height: 48px; color: #6b7280; font-size: 14px; line-height: 1.55; }
.plan-card .button { width: 100%; margin-top: 18px; }

.payments-list { display: grid; gap: 10px; }
.payment-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 2px;
  font-size: 14px;
}
.payment-row:last-child { border-bottom: 0; }
.payment-empty { color: #6b7280; text-align: center; padding: 22px 0; }
.payment-status { font-weight: 800; }
.payment-status.paid { color: #047857; }
.payment-status.failed { color: #b91c1c; }

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1040px); margin-top: 16px; }
  .topbar { padding: 14px 14px; }
  .stage-badge { font-size: 11px; }
  .toolbar { align-items: stretch; }
  .shop-select { min-width: 0; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: 1fr 1fr; }
  .section-heading.split { flex-direction: column; }
}

@media (max-width: 460px) {
  .summary-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; }
  .toolbar .button { align-self: flex-start; }
  .payment-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}


.brand-wrap { color: inherit; text-decoration: none; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; border-radius:13px; background:#f3f4f6; margin-bottom:24px; }
.auth-tab { border:0; border-radius:9px; padding:11px 12px; font-weight:850; background:transparent; color:#6b7280; }
.auth-tab.active { background:#111827; color:#fff; box-shadow:0 4px 12px rgba(17,24,39,.12); }
.auth-hint { margin:18px 0 0; text-align:center; color:#6b7280; font-size:14px; }
.text-button { border:0; background:transparent; color:#111827; font-weight:850; padding:0; text-decoration:underline; text-underline-offset:3px; }
.check-row { grid-template-columns:auto 1fr; align-items:flex-start; gap:10px; font-weight:500; line-height:1.55; }
.check-row input { width:18px; height:18px; margin-top:2px; }
.check-row a { color:#111827; font-weight:800; }
.verify-icon { width:58px; height:58px; display:grid; place-items:center; border-radius:50%; margin:4px auto 14px; background:#eff6ff; font-size:27px; }
.verify-heading { text-align:center; }
.verify-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.onboarding-card { width:min(680px,100%); margin:36px auto 0; }
.form-two { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.optional { color:#9ca3af; font-weight:500; font-size:12px; }
.onboarding-note { display:grid; gap:4px; padding:14px 16px; border-radius:12px; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; font-size:14px; line-height:1.5; }
.setup-logout { display:block; margin:18px auto 0; color:#6b7280; }
@media (max-width:600px) { .form-two { grid-template-columns:1fr; } }

/* ===== 2026-08-30 accessibility + CC Garage light theme ===== */
:root {
  --ink: #13213a;
  --muted: #65738a;
  --line: #dce6f1;
  --soft: #f3f8fd;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #0ea5e9;
  --teal: #0f9f87;
}
html { font-size: 17px; }
body { background: #f8fbff; color: var(--ink); font-size: 17px; line-height: 1.65; }
.topbar {
  min-height: 78px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(38,74,110,.04);
}
.brand-wrap { position: relative; padding-left: 52px; }
.brand-wrap::before {
  content: "CC";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--blue),var(--sky));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(37,99,235,.2);
}
.brand { color: #163057; font-size: 22px; }
.subtitle { color: var(--muted); font-size: 14px; }
.stage-badge { font-size: 14px; background: #fff7dd; color: #9a5a00; border: 1px solid #f6d982; }
.container { width: min(1080px, calc(100% - 28px)); }
.card { border-color: var(--line); border-radius: 20px; box-shadow: 0 16px 42px rgba(43,73,110,.07); }
.login-card { width: min(600px, 100%); }
.notice { font-size: 16px; padding: 15px 17px; }
.notice.warning { background: #fffaf0; border-color: #f5d980; color: #8a5100; }
.notice.info { background: #eef6ff; border-color: #bfdbfe; color: #174ea6; }
.notice.success { background: #edfdf7; border-color: #a7ead4; color: #08735e; }
.notice.error { background: #fff2f2; border-color: #fecaca; color: #a12828; }
.section-heading h1 { color: #11233e; }
.section-heading h2 { color: #163057; }
.section-heading p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.eyebrow { color: var(--blue); font-size: 14px; letter-spacing: .08em; }
label { font-size: 16px; color: #32435d; gap: 8px; }
input, select { font-size: 17px; min-height: 50px; border-color: #cbd9e8; border-radius: 12px; padding: 13px 14px; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.button { min-height: 48px; font-size: 17px; border-radius: 12px; }
.button.primary { background: linear-gradient(135deg,var(--blue),var(--blue-dark)); box-shadow: 0 9px 22px rgba(37,99,235,.18); }
.button.secondary { color: #173761; background: #edf5ff; border: 1px solid #cfe0f4; }
.button.ghost { color: #334a67; border-color: #cbd9e8; }
.button.small { font-size: 15px; }
.auth-tabs { background: #edf4fb; border: 1px solid #dce6f1; }
.auth-tab { color: #5d6d82; font-size: 17px; min-height: 46px; }
.auth-tab.active { background: linear-gradient(135deg,var(--blue),var(--blue-dark)); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.18); }
.auth-hint { color: var(--muted); font-size: 16px; }
.text-button { color: var(--blue); font-size: 16px; }
.check-row { font-size: 16px; }
.check-row a { color: var(--blue); }
.verify-icon { background: #eaf3ff; color: var(--blue); }
.onboarding-note { font-size: 16px; background: #edfdf7; border-color: #a7ead4; color: #08735e; }
.optional { font-size: 14px; color: #7b8ba0; }
.setup-logout { color: #65738a; }
.welcome { font-size: 15px; color: var(--muted); }
.shop-select { font-size: 17px; }
.status-pill { font-size: 15px; }
.summary-item { background: #f5f9fd; border-color: #e3ebf3; }
.summary-item span { font-size: 15px; color: var(--muted); }
.summary-item strong { font-size: 16px; color: #173761; }
.plan-card { border-color: var(--line); box-shadow: 0 10px 28px rgba(43,73,110,.05); }
.plan-card.recommended { border-color: var(--blue); }
.plan-badge { background: linear-gradient(135deg,var(--blue),var(--blue-dark)); font-size: 13px; }
.plan-name { color: #163057; font-size: 21px; }
.plan-price { color: #11233e; }
.plan-price small { font-size: 15px; color: var(--muted); }
.plan-note { font-size: 16px; color: var(--muted); line-height: 1.7; }
.payment-row { font-size: 16px; }
.payment-empty { font-size: 16px; color: var(--muted); }

@media (max-width: 760px) {
  .topbar { min-height: 72px; }
  .subtitle { font-size: 13px; }
  .stage-badge { font-size: 13px; }
  .container { width: min(100% - 18px, 1080px); }
}
