/* rmbergonia.com shared design: black on white, square corners, dot grid.
   Mirrors the chat homepage so every page reads as one system. */
:root { --ink: #000; --bg: #fff; --green: #22c55e; }
* { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(0,0,0,.11) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 11px 11px;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.6;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.muted { opacity: .72; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; }
.skip:focus { left: 12px; z-index: 100; }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand .name { font-weight: 700; letter-spacing: -0.01em; }
.brand .sub { font-size: 12px; }
.topbar .right { display: flex; align-items: center; gap: 10px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; margin-right: 6px; }
.dot { width: 7px; height: 7px; background: #000; }

/* Right rail */
.rail { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 30; background: #fff; border: 1px solid #000; display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.rail .sep { height: 1px; background: #000; margin: 4px 2px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; position: relative; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: #000; color: #fff; }
.icon-btn[data-tip]::after { content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: #000; color: #fff; font-size: 12px; font-weight: 500; padding: 5px 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.icon-btn:hover[data-tip]::after { opacity: 1; }

/* Page column */
.page { max-width: 680px; margin: 0 auto; padding: 24px 20px 80px; }
.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lead { font-size: 17px; max-width: 620px; }
.section { padding: 34px 0; border-top: 1px solid #000; }
.section:first-of-type { border-top: 0; }
.num { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
ul { padding-left: 20px; margin: 6px 0 12px; } li { margin: 4px 0; }
figure { margin: 18px 0; border: 1px solid #000; background: #fff; }
figure img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
figure figcaption { padding: 8px 12px; font-size: 12px; border-top: 1px solid #000; }
hr { border: 0; border-top: 1px solid #000; margin: 24px 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.pill { font-size: 12.5px; padding: 5px 10px; border: 1px solid #000; background: #fff; }

/* Components shared with the chat */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
.stat { border: 1px solid #000; padding: 12px; background: #fff; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 12px; }
.stat.sm b { font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 14px 0; }
.card { display: block; text-decoration: none; border: 1px solid #000; background: #fff; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; display: block; filter: grayscale(1) contrast(1.05); }
.card-word { aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: 14px; background: #000; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; line-height: 1.05; }
.card .cb { padding: 10px 12px 12px; }
.card .ct { font-weight: 600; font-size: 14px; }
.card .cd { font-size: 12.5px; margin-top: 2px; }
.card .cm { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; font-weight: 600; }
.card:hover { background: #000; color: #fff; }
.card:hover .card-word { background: #fff; color: #000; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.box { border: 1px solid #000; background: #fff; padding: 14px 16px; }
.box h3 { margin-bottom: 6px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; text-decoration: none; border: 1px solid #000; background: #fff; }
.btn:hover { background: #000; color: #fff; }
.btn.primary { background: #000; color: #fff; }
.btn.primary:hover { background: #fff; color: #000; }
.timeline { border-left: 2px solid #000; margin: 14px 0 4px 6px; padding-left: 16px; display: flex; flex-direction: column; gap: 14px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; background: #000; }
.tl .y { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.tl .r { font-weight: 600; }
.tl .o { font-size: 13.5px; }
.steps { counter-reset: step; display: grid; gap: 10px; margin: 14px 0; }
.step { border: 1px solid #000; background: #fff; padding: 14px 16px 14px 56px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 16px; top: 14px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.faq details { border-top: 1px solid #000; }
.faq details:last-child { border-bottom: 1px solid #000; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 12px; margin: 0; }
.price { border: 1px solid #000; background: #fff; padding: 16px; }
.price .amt { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .per { font-size: 12px; }
.price ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; }
.cta { background: #000; color: #fff; padding: 28px; margin-top: 34px; }
.cta h2 { margin-bottom: 8px; }
.cta p { max-width: 560px; }
.cta .btn { border-color: #fff; background: #000; color: #fff; }
.cta .btn:hover, .cta .btn.primary { background: #fff; color: #000; }
.cta .btn.primary:hover { background: #000; color: #fff; }
.note { font-size: 13.5px; border-left: 2px solid #000; padding-left: 12px; margin: 18px 0; }
.related { display: grid; gap: 6px; margin: 10px 0; }
.related a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #000; background: #fff; text-decoration: none; font-weight: 500; }
.related a:hover { background: #000; color: #fff; }

/* Footer */
.foot { max-width: 680px; margin: 0 auto; padding: 0 20px 40px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; border-top: 1px solid #000; padding-top: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 899px) {
  .rail { top: auto; right: 12px; bottom: 16px; transform: none; flex-direction: row; padding: 4px; }
  .rail .sep { width: 1px; height: auto; margin: 2px 4px; }
  .icon-btn[data-tip]::after { display: none; }
  .page { padding-bottom: 110px; }
}
@media (max-width: 720px) {
  .topbar { padding: 10px 12px; min-height: 60px; }
  .status { display: none; }
  .stat-row, .stat-row.four, .grid2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .stat-row, .stat-row.four, .grid2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
