/* ROMULUS & CO. public site. Brushed gold on black, Roman serif, fine rules. Loads after site.css. */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08090b; --surface: #0e0f12; --panel: #111215; --panel-2: #16171b;
  --ink: #f3f0e9; --muted: #aca89e; --faint: #8d897f;
  --line: rgba(217, 179, 108, 0.14); --line-strong: rgba(217, 179, 108, 0.34);
  --gold: #d9b36c; --gold-bright: #f0dca6; --gold-ink: #d9b36c; --link: #e6c988; --focus: #f0dca6;
  --brushed: linear-gradient(105deg, #a8843f 0%, #e9cf8f 26%, #c49a4f 50%, #f6e7b6 72%, #b08a42 100%);
  --rule: linear-gradient(90deg, transparent, #8f6e33 15%, #f0dca6 50%, #8f6e33 85%, transparent);
  --navy: #08090b; --navy-ink: #f3f0e9; --btn: #d9b36c; --btn-ink: #0b0a08;
  --proven-bg: rgba(217, 179, 108, 0.18); --proven-ink: #f0dca6;
  --build-bg: transparent; --build-ink: #d9b36c;
  --plan-bg: transparent; --plan-ink: #aca89e;
  --warn-bg: rgba(217, 179, 108, 0.1); --warn-ink: #f0dca6; --warn-line: rgba(217, 179, 108, 0.4);
  --radius: 4px; --max: 76rem; --gutter: clamp(20px, 3.4vw, 40px); --section: clamp(52px, 6.4vw, 76px);
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(217, 179, 108, 0.32); }
.wrap { padding: 0 var(--gutter); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.24; margin-bottom: 14px; color: var(--ink); }
h3 { font-weight: 600; font-size: 1rem; letter-spacing: 0; }
p { max-width: 66ch; }
a { color: var(--link); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(8, 9, 11, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { min-height: 64px; }
.brand { gap: 12px; letter-spacing: 0; }
.brand img { width: 24px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; color: transparent; background: var(--brushed); -webkit-background-clip: text; background-clip: text; line-height: 1.15; }
.brand small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.nav a { color: var(--muted); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 0; padding: 8px 12px; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); background: none; box-shadow: none; }
.nav a.signin { color: var(--gold); border: 1px solid var(--line-strong); padding: 8px 18px; border-radius: var(--radius); margin-left: 12px; }
.nav a.signin:hover { border-color: var(--gold); color: var(--gold-bright); background: none; }
.menu > summary { color: var(--ink); border-color: var(--line-strong); border-radius: var(--radius); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Buttons */
.btn { border-radius: var(--radius); border: 1px solid transparent; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 22px; background: var(--brushed); background-size: 180% 100%; color: var(--btn-ink); transition: background-position 0.5s ease; }
.btn:hover { background-position: 100% 0; }
.btn.secondary, .hero .btn.secondary { background: transparent; color: var(--gold-bright); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--gold); }
.hero .btn { background: var(--brushed); background-size: 180% 100%; color: var(--btn-ink); border-color: transparent; }

/* Sections */
section { padding: var(--section) 0; position: relative; }
section.alt { background: var(--surface); }
section.alt::before, .ticker::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); opacity: 0.55; }
.page-head { padding: clamp(44px, 5.4vw, 64px) 0 20px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.16; }
.page-head h1::after { content: ""; display: block; width: 72px; height: 1px; background: var(--brushed); margin-top: 16px; }
.page-head p { font-size: 1.02rem; margin-top: 12px; }
.page-head + section { padding-top: 28px; }
.eyebrow { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }

/* Cards */
.card, .steps li, .tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: border-color 0.3s; }
section.alt .card { background: var(--panel-2); }
.card { padding: 22px; }
.card p { font-size: 0.93rem; }
.card::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--brushed); transition: width 0.45s ease; }
.card:hover { border-color: var(--line-strong); }
.card:hover::before { width: 100%; }
.card p { color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--gold-bright); }
.card .freq { color: var(--faint); font-size: 0.82rem; }
.steps li::before { background: transparent; color: var(--gold); border: 1px solid var(--line-strong); font-family: var(--serif); border-radius: 0; }
.tier { padding: 24px; }
.tier h2 { font-size: 1.3rem; margin-bottom: 6px; }
.tier h3 { font-size: 0.9rem; margin: 18px 0 6px; }
.tier .for { font-size: 0.92rem; min-height: 2.9em; }
.tier .ticks { font-size: 0.92rem; }
.tier .ticks li { margin-bottom: 4px; }
.tier .btn { width: 100%; text-align: center; }
.tier.highlight { border-color: var(--gold); }
.price div { background: rgba(217, 179, 108, 0.06); border-radius: var(--radius); }
.price .amt { font-family: var(--serif); font-size: 1.14rem; font-weight: 500; color: var(--gold-bright); }
.price-note { color: var(--muted); font-size: 0.95rem; margin-top: 20px; }
thead th { background: rgba(217, 179, 108, 0.06); }
.badge { border-radius: 2px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; }
.badge.in_build { border: 1px solid var(--line-strong); }
.badge.planned { border: 1px solid rgba(172, 168, 158, 0.35); }
.module { border-top-color: var(--line); }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=time], input[type=date], input[type=search], select, textarea { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }

/* Footer */
.site-foot { position: relative; background: #060708; color: var(--muted); margin-top: 0; padding: 64px 0 32px; }
.site-foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
.site-foot a { color: var(--ink); }
.site-foot h2 { font-family: var(--serif); color: var(--gold); letter-spacing: 0.08em; font-size: 0.95rem; }
.site-foot .fine { border-top-color: var(--line); color: var(--faint); }

/* Reveal on scroll: only once the script has switched it on */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: clamp(36px, 4.4vw, 52px) 0 clamp(56px, 6vw, 72px); }
.hero > .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
#signal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-mark { position: relative; width: clamp(72px, 6.6vw, 96px); aspect-ratio: 560 / 708; margin-bottom: 18px; }
.hero-mark img { width: 100%; height: 100%; display: block; }
.hero-mark .sheen { position: absolute; inset: 0; -webkit-mask: url("/assets/mark.png") center / contain no-repeat; mask: url("/assets/mark.png") center / contain no-repeat; background: linear-gradient(105deg, transparent 42%, rgba(255, 250, 230, 0.85) 50%, transparent 58%); background-size: 260% 100%; background-position: 130% 0; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 45% { background-position: 130% 0; } 85%, 100% { background-position: -40% 0; } }
.hero .kicker { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.hero .kicker::before, .hero .kicker::after { content: ""; width: 36px; height: 1px; background: var(--brushed); }
.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.16; font-weight: 500; letter-spacing: 0.005em; margin: 0 0 14px; max-width: 30ch; }
.hero h1 .grad { display: block; }
.grad { background: var(--brushed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1rem; color: #d4d0c6; max-width: 62ch; margin: 0 0 24px; }
.hero .actions { justify-content: center; }
.motion-toggle { position: absolute; right: var(--gutter); bottom: 18px; z-index: 3; background: none; color: var(--faint); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 11px; font: inherit; font-size: 0.72rem; letter-spacing: 0.06em; cursor: pointer; }
.motion-toggle:hover { color: var(--ink); border-color: var(--line-strong); }

/* Source ticker */
.ticker { position: relative; overflow: hidden; padding: 14px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: slide 60s linear infinite; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding: 0 24px; margin: 0; list-style: none; }
.ticker-track li::before { content: "\25C6"; color: var(--gold); margin-right: 14px; font-size: 0.5rem; vertical-align: 2px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* The hub: live sample briefing */
.hub { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.console { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.console-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.console-top b { font-family: var(--serif); color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; }
.console-live { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-bright); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.console-feed { list-style: none; margin: 0; padding: 0; height: 280px; overflow: hidden; }
.console-feed li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 10px 20px; font-size: 0.85rem; line-height: 1.45; border-bottom: 1px solid var(--line); color: #dcd8cf; }
.console-feed li.new { animation: feedin 0.7s ease-out; }
@keyframes feedin { from { opacity: 0; transform: translateY(-8px); background: rgba(217, 179, 108, 0.08); } }
.tag { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.console-foot { padding: 11px 20px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--faint); }

/* Value grid */
.bento { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--line); border: 1px solid var(--line); }
.bento .card { background: var(--bg); border: 0; border-radius: 0; padding: 24px 22px; display: flex; flex-direction: column; gap: 4px; }
section.alt .bento .card { background: var(--surface); }
.bento .wide { grid-column: span 2; }
.bento .card p { margin: 0; font-size: 0.92rem; }
.ico { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 10px; color: var(--gold); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; padding: 0; margin: 20px 0 0; position: relative; counter-reset: flow; }
.flow li { position: relative; padding-top: 54px; counter-increment: flow; }
.flow li::before { content: counter(flow, upper-roman); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: transparent; background: var(--brushed); -webkit-background-clip: text; background-clip: text; }
.flow li::after { content: ""; position: absolute; top: 37px; left: 0; right: -32px; height: 1px; background: var(--line-strong); }
.flow li:last-child::after { right: 0; }
.flow p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Sample town */
.town { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.town-stage { background: var(--panel); padding: 20px; }
.town-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chipbtn { background: none; border: 1px solid var(--line); color: var(--muted); padding: 7px 14px; border-radius: var(--radius); font: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.chipbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.chipbtn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-bright); }
.town-map { width: 100%; height: auto; display: block; }
.tw { stroke: #08090b; stroke-width: 3; cursor: pointer; transition: opacity 0.3s, fill 0.5s; outline: none; }
.town-map.has-sel .tw:not(.sel) { opacity: 0.45; }
.tw.sel, .tw:focus-visible { stroke: var(--gold-bright); stroke-width: 2.5; }
.tw-label { fill: #ffffff; font-family: var(--serif); font-size: 19px; font-weight: 600; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, 0.6); stroke-width: 3px; }
.tw-lake { fill: rgba(217, 179, 108, 0.06); }
.tw-laketext { fill: var(--gold); font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; opacity: 0.75; }
.town-side { background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.town-side .k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.town-big { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1.05; color: transparent; background: var(--brushed); -webkit-background-clip: text; background-clip: text; width: fit-content; }
.town-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 6px 0; }
.town-stats div { background: var(--panel-2); padding: 12px 14px; }
.town-stats b { display: block; font-size: 1rem; font-weight: 600; }
.town-stats span { font-size: 0.78rem; color: var(--muted); }
.town-side ul { margin: 4px 0 0; padding-left: 1.1rem; font-size: 0.93rem; color: #dcd8cf; }
.sample-note { font-size: 0.82rem; color: var(--faint); margin: 14px 0 0; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.numbers div { padding: 6px 26px; border-left: 1px solid var(--line-strong); }
.numbers b { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.15; color: transparent; background: var(--brushed); -webkit-background-clip: text; background-clip: text; width: fit-content; }
.numbers span { color: var(--muted); font-size: 0.9rem; }

/* Service explorer */
.explorer-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.explorer-bar input { flex: 1 1 220px; max-width: 300px; padding: 8px 14px; font: inherit; font-size: 0.92rem; }
.explorer-count { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--faint); margin: 0 0 16px; }
.legend { color: var(--muted); margin-bottom: 28px; }

/* Closing call */
.cta { text-align: center; padding: clamp(64px, 7.6vw, 92px) 0; background: radial-gradient(600px 300px at 50% 100%, rgba(217, 179, 108, 0.1), transparent 70%); }
.cta img { width: 46px; margin: 0 auto 20px; display: block; }
.cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-inline: auto; max-width: 20ch; }
.cta p { margin-inline: auto; color: var(--muted); }
.cta .actions { justify-content: center; margin-top: 28px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 980px) {
  .town, .hub { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .wide { grid-column: span 2; }
  .flow, .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers { row-gap: 28px; }
  .flow li::after { right: 0; }
}
@media (max-width: 560px) {
  .bento, .flow { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; }
  .hero .actions { width: 100%; flex-direction: column; }
  .hero .actions .btn { text-align: center; }
  .console-feed { height: 290px; }
  .console-feed li { grid-template-columns: 72px 1fr; }
}
.paused .ticker-track, .paused .pulse, .paused .sheen { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .pulse, .sheen { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
html:not(.js) .console-wrap { display: none; }

/* Pricing: three plans side by side, then one column. Never two and one. */
.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier .for { min-height: 0; } }
.legal h2 { font-size: 1.1rem; }
.module h3 { font-size: 1.05rem; }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* Uniform plans: same rows, buttons on one line */
.tiers { align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier .for { min-height: 3.2em; margin-bottom: 8px; }
.tier .price { margin-top: 0; }
.tier > p:last-child { margin: auto 0 0; padding-top: 16px; }
@media (max-width: 860px) { .tier .for { min-height: 0; } }
h1, h2, .hero p.lead, .lede, .cta p { text-wrap: balance; }
.tier.highlight { border-width: 1px; box-shadow: inset 0 0 0 1px var(--gold); }

/* Scannable two-step code: needs a light background to scan on the dark page. */
.qr { display: block; background: #fff; padding: 12px; margin-bottom: 1rem; box-sizing: content-box; max-width: 100%; height: auto; }
