/* MyCleanPay public site. Phones first; wider screens add the house picture. */
:root {
  --night: #0E2238;
  --night-2: #16324F;
  --gold: #F4C95D;
  --cream: #F6F3EC;
  --mist: #C9D6E5;
  --ink-soft: #3D5068;
  --blue: #1E5A96;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: #FFFFFF;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a { color: inherit; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }
h1 strong, h2 strong { font-weight: 600; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; padding: 8px 14px; background: #FFFFFF; color: var(--night); z-index: 10; }

/* Top bar */
.bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 19px; }
.brand svg path { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand svg .tick { stroke-width: 2.4; }

nav { display: flex; gap: 12px; align-items: center; font-size: 15px; }
nav a { text-decoration: none; color: var(--mist); }
nav .wide { display: none; }
.pill { padding: 9px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; white-space: nowrap; }

/* Hero */
.hero { max-width: 1180px; margin: 0 auto; padding: 40px 16px 56px; display: grid; gap: 32px; align-items: center; }
h1 { font-weight: 300; font-size: clamp(44px, 11vw, 96px); line-height: 1; letter-spacing: -0.02em; }
h1 strong { color: var(--gold); }
.lead { margin-top: 20px; font-size: 20px; color: var(--mist); max-width: 30rem; }

.methods { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; }
.methods li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.10); }

.hero-art .house { display: none; }

.pay-card { width: 260px; margin: 0 auto; padding: 10px; border-radius: 36px; background: var(--night-2); border: 1px solid #24486F; }
.pay-card .screen { border-radius: 28px; background: #FFFFFF; color: var(--night); padding: 20px 18px; display: grid; gap: 10px; }
.pay-card .small { font-size: 13px; color: #4A5D75; }
.pay-card .name { font-weight: 600; font-size: 20px; }
.pay-card .line-item { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--night); display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.pay-card .pay { padding: 12px; border-radius: 999px; background: var(--night); color: #FFFFFF; text-align: center; font-weight: 600; font-size: 15px; }

/* The house drawing and the street */
.sun { fill: var(--gold); }
.line { fill: var(--night); stroke: var(--mist); stroke-width: 2.5; stroke-linejoin: round; }
.line.faint { stroke: #7E93AB; stroke-width: 2; }
.lit { fill: var(--gold); stroke: var(--mist); stroke-width: 2; }
.lit.dim { stroke: none; opacity: 0.8; }

/* Light sections */
.light { background: var(--cream); color: var(--night); padding: 56px 16px; }
.light h2, .collect h2 { font-weight: 300; font-size: clamp(32px, 7vw, 56px); line-height: 1.1; letter-spacing: -0.01em; text-align: center; }
.light > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.steps-section { padding-top: 0; }

.doors { margin-top: 28px; display: grid; gap: 16px; }
.door { text-decoration: none; padding: 28px; border-radius: 28px; display: flex; flex-direction: column; gap: 10px; }
.door.member { background: #FFFFFF; color: var(--night); }
.door.house-door { background: var(--night); color: #FFFFFF; }
.door:hover { color: inherit; transform: translateY(-2px); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.member .kicker, .member .go { color: var(--blue); }
.house-door .kicker, .house-door .go { color: var(--gold); }
.door-title { font-weight: 600; font-size: 30px; line-height: 1.15; }
.door-body { font-size: 18px; }
.member .door-body { color: var(--ink-soft); }
.house-door .door-body { color: var(--mist); }
.go { margin-top: 6px; font-weight: 600; font-size: 17px; }

.steps { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 16px; }
.steps li { padding: 24px; border-radius: 24px; background: #FFFFFF; }
.steps .num { font-size: 15px; font-weight: 600; color: var(--blue); }
.steps h3 { margin-top: 8px; font-size: 22px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 17px; color: var(--ink-soft); }

/* Collect */
.collect { padding-top: 64px; }
.collect h2 { max-width: 18ch; margin: 0 auto; padding: 0 16px; }
.facts { max-width: 1180px; margin: 0 auto; padding: 40px 16px; display: grid; gap: 28px; }
.facts .big { font-weight: 600; font-size: 40px; letter-spacing: -0.01em; color: var(--gold); }
.facts p + p { margin-top: 4px; font-size: 17px; color: var(--mist); }

.cost { max-width: 760px; margin: 0 16px 40px; padding: 28px 22px; border-radius: 28px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.cost h3 { font-weight: 600; font-size: 26px; }
.cost p { margin-top: 10px; color: var(--mist); }
.cost .fees { color: #FFFFFF; font-weight: 500; }

.ctas { padding: 0 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button { display: inline-block; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 18px; text-decoration: none; text-align: center; }
.button.gold { background: var(--gold); color: var(--night); }
.button.gold:hover { color: var(--night); background: #F8D98A; }
.button.ghost { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.signin { margin: 20px 16px 40px; text-align: center; font-size: 16px; color: var(--mist); }

.street { display: block; width: 100%; height: 110px; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  gap: 16px;
  font-size: 15px;
  color: var(--mist);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* Inner pages: a short dark opener, then light and dark bands of reading text. */
.page-hero { max-width: 1180px; margin: 0 auto; padding: 40px 16px 48px; }
.page-hero h1 { font-size: clamp(40px, 9vw, 72px); }
.page-hero .lead { max-width: 38rem; }
.jump { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); text-decoration: none; font-weight: 500; font-size: 16px; }
.page-hero .email { margin-top: 24px; font-size: clamp(22px, 5vw, 30px); font-weight: 500; }
.page-hero .email a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.prose-section { padding: 56px 16px; }
.prose-section > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose-section > .steps, .prose-section > .points, .prose-section > .doors { max-width: 1180px; }
.light.prose-section h2, .prose-section h2 { text-align: left; font-weight: 300; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
.prose-section h2 + * { margin-top: 20px; }
.prose-section p + p, .prose-section p + h2, .prose-section ul + h2, .prose-section div + p, .prose-section .table-wrap + p { margin-top: 20px; }
.prose-section .ctas { margin-top: 36px; padding: 0; justify-content: flex-start; }
.prose-section .signin { margin: 20px 0 0; text-align: left; }
.light.prose-section a { color: var(--blue); }
.dark-section { background: var(--night); color: #FFFFFF; }
.dark-section p, .dark-section li { color: var(--mist); }
.dark-section h3 { color: #FFFFFF; }
.dark-section .button.gold { color: var(--night); }
.dark-section .button.ghost { color: #FFFFFF; }

.note { margin-top: 24px; color: var(--ink-soft); }
.dark-section .note { color: var(--mist); }
.center { text-align: center; }
.light .center { margin-top: 28px; }
.button.dark { background: var(--night); color: #FFFFFF; }
.light.prose-section .button.dark { color: #FFFFFF; }
.button.dark:hover { background: var(--night-2); color: #FFFFFF; }
.more { margin-top: 24px; text-align: center; font-weight: 500; }
.more a { color: var(--blue); }
.more-links { margin-top: 28px; color: var(--mist); }
.light .more-links { color: var(--ink-soft); }

.points { list-style: none; padding: 0; display: grid; gap: 14px; }
.points li { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); }
.points h3 { font-size: 20px; font-weight: 600; }
.points p { margin-top: 6px; font-size: 17px; }
.light-points li { background: #FFFFFF; }
.light-points p { color: var(--ink-soft); }
.sub { margin-top: 44px; font-size: 24px; font-weight: 600; }
.setup { margin-top: 14px; padding-left: 22px; display: grid; gap: 10px; color: var(--mist); }
.setup li::marker { color: var(--gold); font-weight: 600; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }

.fee-line { font-size: 21px; font-weight: 500; }
.table-wrap { overflow-x: auto; margin-top: 24px; border-radius: 18px; background: #FFFFFF; }
.fees-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.fees-table th, .fees-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid #E4E0D6; }
.fees-table tr:last-child th, .fees-table tr:last-child td { border-bottom: 0; }
.fees-table th:first-child { text-align: left; }
.fees-table thead th { font-size: 14px; font-weight: 500; color: var(--ink-soft); vertical-align: bottom; }
.fees-table tbody th { font-weight: 600; }
.fees-table .muted { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }

.door .go { text-decoration: none; }
div.door:hover { transform: none; }
.ctas.left { justify-content: flex-start; padding: 0; margin-top: 28px; }

/* Wider screens: the full top bar, the house beside the hook, doors side by side. */
@media (min-width: 760px) {
  .bar { padding: 20px 24px; }
  .brand { font-size: 21px; gap: 10px; }
  nav { gap: 24px; font-size: 16px; }
  nav .wide { display: inline; }
  nav .narrow { display: none; }
  .pill { padding: 10px 18px; }
  .hero { padding: 64px 24px 72px; grid-template-columns: 1fr 1fr; gap: 48px; }
  .hero-art { position: relative; height: 520px; }
  .hero-art .house { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-art .pay-card { position: absolute; left: 0; bottom: 0; width: 220px; }
  .light { padding: 88px 24px; }
  .steps-section { padding-top: 0; }
  .doors { grid-template-columns: 1fr 1fr; gap: 20px; }
  .door { padding: 40px; border-radius: 32px; }
  .door-title { font-size: 34px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .collect { padding-top: 96px; }
  .facts { padding: 48px 24px 64px; grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .cost { margin: 0 auto 56px; padding: 32px 28px; }
  .street { height: 160px; }
  .foot { padding: 32px 24px; }
  .page-hero { padding: 72px 24px 72px; }
  .prose-section { padding: 88px 24px; }
  .points { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1180px) {
  .steps-5 { grid-template-columns: repeat(5, 1fr); }
  .steps-5 li { padding: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .door { transition: transform 0.15s ease; }
}
