/* nearbidly.com interim compliance site. Colors and type come from brand/tokens. */
:root {
  --coral-50: #FFF5F1; --coral-100: #FFEAE4; --coral-300: #FFB39F; --coral-500: #FF5A36; --coral-700: #B33F25;
  --navy-50: #F8FAFC; --navy-100: #F1F5F9; --navy-200: #E2E8F0; --navy-300: #CBD5E1; --navy-500: #64748B; --navy-600: #475569; --navy-700: #334155; --navy-800: #1E293B; --navy-900: #0F172A;
  --teal-50: #F0FDFA; --teal-100: #CCFBF1; --teal-500: #14B8A6; --teal-700: #0F766E;
  --paper-50: #FAF7F2; --paper-100: #F3EEE6; --paper-200: #E7E0D5;
  --bg: var(--paper-50); --surface: #FFFFFF; --sunken: var(--paper-100); --border: var(--navy-200);
  --text: var(--navy-900); --muted: var(--navy-600); --link: var(--coral-700);
  --focus: #2563EB;
  --font-display: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow: 0 4px 12px rgb(15 23 42 / 0.08), 0 1px 2px rgb(15 23 42 / 0.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; padding-block: .5rem; }
.brand img { width: 150px; height: auto; }
.nav { list-style: none; display: flex; gap: .25rem 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--navy-700); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .4rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--coral-500); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--coral-500); color: var(--navy-900); }
.btn-primary:hover { background: #ff6f4f; }
.btn-secondary { background: transparent; color: var(--navy-900); border-color: var(--navy-300); }
.btn-secondary:hover { border-color: var(--navy-900); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Hero & sections */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--coral-700); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.page-hero { padding: 3rem 0 1.5rem; }
section.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.band.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--coral-100); color: var(--coral-700); font-weight: 800; font-family: var(--font-display); margin-bottom: .75rem; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; }
.pill-live { background: var(--coral-700); color: #fff; font-size: .85rem; letter-spacing: .04em; }
.pill-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #fff; }
.pill-teal { background: var(--teal-100); color: var(--teal-700); }

/* Auction preview (decorative, on home) */
.preview { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 32px rgb(15 23 42 / .12); padding: 1.4rem; }
.preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.preview .bid { font: 800 2.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.preview .muted { color: var(--muted); font-size: .9rem; }
.preview .timer { font: 700 1.6rem/1 var(--font-display); color: var(--coral-700); font-variant-numeric: tabular-nums; }
.preview ol { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--border); }
.preview li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--navy-100); font-variant-numeric: tabular-nums; font-size: .95rem; }
.preview .fakebtn { margin-top: 1rem; width: 100%; justify-content: center; }

/* Notice / callouts */
.callout { border-left: 4px solid var(--teal-500); background: var(--teal-50); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout.coral { border-color: var(--coral-500); background: var(--coral-50); }
.callout p:last-child { margin-bottom: 0; }

/* SMS page */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.demo-label { display: inline-block; background: var(--navy-900); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 6px 6px 0 0; }
.demo-form { background: var(--surface); border: 2px dashed var(--navy-300); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); padding: 1.5rem; }
.demo-form fieldset { border: 0; padding: 0; margin: 0; }
.demo-form legend { font: 700 1.25rem/1.3 var(--font-display); margin-bottom: .25rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input { width: 100%; min-height: 44px; border: 1px solid var(--navy-300); border-radius: 10px; padding: .6rem .8rem; font: inherit; background: var(--navy-50); color: var(--navy-700); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; background: var(--navy-50); border: 1px solid var(--border); border-radius: 10px; padding: .9rem; margin: .5rem 0 1rem; font-size: .92rem; }
.consent input { width: 22px; height: 22px; margin-top: .15rem; }
.consent details { margin-top: .5rem; }
.consent summary { color: var(--link); font-weight: 600; cursor: pointer; }
.consent dl { margin: .5rem 0 0; }
.consent dt { font-weight: 700; margin-top: .5rem; }
.consent dd { margin: 0; color: var(--muted); }
.required { color: var(--muted); font-size: .85rem; }
.demo-form button[disabled] { width: 100%; justify-content: center; cursor: not-allowed; opacity: .85; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.sms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.sms { background: var(--navy-100); border-radius: 18px 18px 18px 4px; padding: .8rem 1rem; max-width: 46ch; font-size: .95rem; }
.sms-meta { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.sms code { font-size: .85em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; color: var(--muted); }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding-bottom: 4rem; align-items: start; }
.toc { position: sticky; top: 88px; font-size: .9rem; }
.toc summary { font-weight: 700; cursor: pointer; margin-bottom: .5rem; }
.toc ol { padding-left: 1.1rem; margin: 0; }
.toc li { margin: .3rem 0; }
.toc a { color: var(--navy-700); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2.5rem); max-width: 78ch; }
.prose h2 { margin-top: 2rem; padding-top: .5rem; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 1em; }
.prose li { margin: .3rem 0; }
.prose blockquote { margin: 1rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--coral-500); background: var(--coral-50); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { background: var(--navy-100); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--navy-50); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--navy-300); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-grid img { width: 140px; margin-bottom: 1rem; }
.footer-note { font-size: .9rem; color: var(--navy-300); }
.footer-h { font: 700 .8rem/1 var(--font-ui); color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; }
.footer-base { border-top: 1px solid var(--navy-800); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.footer-base p { margin: 0; }

/* 404 */
.center { text-align: center; padding: 5rem 0; }

@media (max-width: 880px) {
  .hero-grid, .two-col, .legal-layout, .footer-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc details:not([open]) ol { display: none; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
  .nav { gap: .25rem 1rem; }
  .brand img { width: 130px; }
}
.form-note-top { margin-top: 0; }
.center .lead { margin-inline: auto; }
.center .btn-row { justify-content: center; }
