/* Ralston & Anthony — brand tokens and base styles.
   Matches the ralstonandanthony.com landing pages (.ra-lp): same type, colors, radius and button language. */
:root {
  --brand: #8e191c;
  --brand-dark: #6f1316;
  --brand-light: rgba(142,25,28,.08);
  --on-brand: #ffffff;
  --surface: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f9f9f9;
  --surface-3: #efece7;
  --outline: #e7e3dd;
  --outline-strong: #cfc9c0;
  --ink: #181818;
  --ink-2: #5b5b5b;
  --ink-3: #8a8a8a;
  --ok: #2e7d32;
  --ok-bg: #e8f3e8;
  --warn: #9a6700;
  --warn-bg: #fdf3dc;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --info-bg: #f3f0ec;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Quattrocento Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(24,24,24,.05);
  --shadow-2: 0 18px 40px -24px rgba(24,24,24,.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; color: var(--ink); margin: 0 0 .5rem; letter-spacing: -1px; line-height: 1.2em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; letter-spacing: -.5px; }
h4 { font-size: 17px; letter-spacing: -.3px; }
@media (min-width: 760px) { h1 { font-size: 40px; } h2 { font-size: 28px; } }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .muted { color: var(--ink-2); }
.muted-3 { color: var(--ink-3); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--outline); padding: .05em .35em; border-radius: 6px; }
pre { background: var(--surface-2); border: 1px solid var(--outline); padding: 14px 16px; border-radius: var(--radius); overflow: auto; line-height: 1.5; }
hr { border: 0; border-top: 1px solid var(--outline); margin: 1.5rem 0; }

/* Eyebrow label, as on the landing page */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 680px; }

/* Layout */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 820px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: #fff; border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; }
.card + .card { margin-top: 22px; }
.grid > .card + .card { margin-top: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card.lift { transition: transform .25s ease, box-shadow .25s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* Buttons — landing-page language: rectangular 10px radius, bold 15px, lift on hover */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .3px; padding: 14px 30px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .25s ease, background .25s ease, color .25s ease; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); transform: none; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #8f1d16; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Forms */
label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 5px; line-height: 1.5; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--outline-strong); border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(142,25,28,.12); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235b5b5b' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.actions .btn-group { display: flex; gap: 10px; align-items: center; flex-shrink: 0; white-space: nowrap; }
.field { margin-bottom: 20px; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline label { margin: 0; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 16px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.input-error { border-color: var(--bad) !important; }
.error-text { color: var(--bad); font-size: 14px; margin-top: 5px; }
fieldset { border: 1px solid var(--outline); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 22px; }
legend { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.3px; padding: 0 8px; }

/* Status chips and alerts */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--outline); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe6cf; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: #f0dca8; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: #f1c7c3; }
.chip.brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.alert { padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; border-left: 4px solid var(--outline-strong); background: var(--surface-2); margin-bottom: 18px; }
.alert.ok { border-left-color: var(--ok); }
.alert.warn { border-left-color: var(--warn); }
.alert.bad { border-left-color: var(--bad); }
.alert.info { border-left-color: var(--brand); }

/* Tables */
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--outline); vertical-align: top; }
table.data th { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-2); font-weight: 700; background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--outline); }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brandmark { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brandmark:hover { text-decoration: none; }
.brandmark img.logo { max-height: 46px; max-width: 280px; width: auto; height: auto; display: block; }
.brandmark .sub { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); padding-left: 14px; border-left: 1px solid var(--outline); line-height: 1.2; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 9px 14px; border-radius: var(--radius); color: var(--ink-2); font-weight: 700; font-size: 15px; }
.nav a.active, .nav a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.page { padding: 40px 0 74px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { margin-bottom: 6px; }
footer.site { padding: 26px 0; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--outline); background: var(--surface-2); }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--outline); border-radius: var(--radius); padding: 18px 20px; }
.tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-2); font-weight: 700; }
.tile .v { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.5px; margin-top: 4px; line-height: 1.15; color: var(--ink); }
.tile .v.brand { color: var(--brand); }

/* Timeline */
.timeline { display: flex; gap: 0; overflow-x: auto; padding: 6px 0; }
.timeline .st { flex: 1; min-width: 100px; text-align: center; position: relative; font-size: 13px; color: var(--ink-3); padding-top: 24px; line-height: 1.3; }
.timeline .st::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--outline-strong); }
.timeline .st::after { content: ""; position: absolute; top: 11px; left: calc(50% + 8px); right: calc(-50% + 8px); height: 2px; background: var(--outline); }
.timeline .st:last-child::after { display: none; }
.timeline .st.done { color: var(--ink); }
.timeline .st.done::before { background: var(--brand); border-color: var(--brand); }
.timeline .st.done::after { background: var(--brand); }
.timeline .st.current { color: var(--brand); font-weight: 700; }
.timeline .st.current::before { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(142,25,28,.18); }

/* Key/value lists */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: 16px; }
dl.kv dt { color: var(--ink-2); }
dl.kv dd { margin: 0; }

/* Utility */
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 16px; }
.w-50 { width: 50%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .n, .price { font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 40px; line-height: 1; letter-spacing: -1px; }
.price small, .price .per { font-family: var(--body); font-weight: 400; color: var(--ink-2); font-size: 16px; letter-spacing: 0; }

/* Material Symbols (Material 3 iconography where the brand system defines none) */
.ms { font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; vertical-align: middle; flex: none; }
.ms.filled, .active > .ms { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.nav a { display: inline-flex; align-items: center; gap: 8px; }
.nav a .ms { font-size: 20px; color: var(--ink-3); }
.nav a.active .ms { color: var(--brand); }
.btn .ms { font-size: 20px; margin-left: -4px; }
.btn-sm .ms { font-size: 18px; }
.no-ms .ms { display: none; }
