:root {
  --ink: #102c27;
  --ink-2: #173e37;
  --green: #1f6a56;
  --green-2: #2e8b70;
  --mint: #dff2e8;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --gold: #d8993b;
  --gold-2: #f0bc63;
  --rose: #b95445;
  --blue: #3f6f82;
  --text: #223530;
  --muted: #697a74;
  --line: #dce4df;
  --shadow: 0 18px 55px rgba(16, 44, 39, 0.10);
  --shadow-sm: 0 10px 28px rgba(16, 44, 39, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.prototype-bar {
  display: flex; justify-content: center; gap: 12px; align-items: center;
  padding: 7px 16px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .02em;
}
.prototype-bar span { opacity: .78; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(220,228,223,.8); }
.nav-shell { max-width: var(--max); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-2); color: #fff; font-family: Georgia, serif; font-size: 24px; font-weight: 700; box-shadow: inset 0 0 0 4px rgba(255,255,255,.12); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.desktop-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 650; }
.desktop-nav a { color: #39534c; }
.desktop-nav a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.role-label { font-size: 11px; font-weight: 750; color: var(--muted); }
.role-switcher { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 32px 9px 10px; color: var(--ink); font-size: 12px; }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; padding: 9px 13px; border-radius: 9px; }
.mobile-menu { display: none; padding: 10px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: grid; gap: 12px; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 16px; border-radius: 10px; font-weight: 750; border: 1px solid transparent; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink-2); color: #fff; box-shadow: var(--shadow-sm); }
.button.secondary { background: var(--gold); color: #1b211f; }
.button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.button.soft { background: var(--mint); color: var(--ink); }
.button.danger { background: #fff1ef; color: #8f2f24; border-color: #f2cac3; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 12px; }

.shell { max-width: var(--max); margin: 0 auto; padding: 56px 20px 76px; }
.shell.tight { padding-top: 32px; }
.section { padding: 66px 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink); color: #fff; }
.section.soft { background: linear-gradient(180deg, #eff8f3 0%, #fffdf8 100%); }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-title { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.035em; margin: 13px 0 18px; }
.section.dark .section-title { color: #fff; }
.lead { max-width: 760px; font-size: 18px; color: #51645e; }
.section.dark .lead { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }
.note { font-size: 12px; color: var(--muted); }

.hero { overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(216,153,59,.23), transparent 28%), linear-gradient(180deg,#fffdf8 0%,#f8f1e4 100%); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.2vw, 86px); line-height: .96; letter-spacing: -.05em; margin: 14px 0 24px; color: var(--ink); }
.hero p { max-width: 720px; font-size: 19px; color: #50635c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; color: #426058; font-size: 13px; font-weight: 700; }
.hero-visual { position: relative; min-height: 510px; }
.hero-card { position: absolute; background: #fff; border: 1px solid rgba(220,228,223,.9); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.hero-card.main { inset: 28px 14px 60px 38px; background: linear-gradient(145deg,#173e37,#275d50); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-card.main::before { content: "R"; position: absolute; right: -18px; top: -70px; font: 700 280px/1 Georgia, serif; color: rgba(255,255,255,.06); }
.hero-card.main h3 { font: 700 31px/1.1 Georgia, serif; margin: 10px 0 8px; }
.hero-card.metric { right: -2px; top: 0; width: 210px; }
.hero-card.metric strong { display: block; font-size: 28px; color: var(--ink); }
.hero-card.quote { left: 0; bottom: 2px; width: 260px; }
.search-box { display: grid; grid-template-columns: 1.5fr .8fr auto; gap: 10px; margin-top: 28px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.search-box input, .search-box select, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 13px; color: var(--text); outline: none; }
.search-box input:focus, .search-box select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46,139,112,.11); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.card.flat { box-shadow: none; }
.card.dark-card { background: #14372f; color: #fff; border-color: rgba(255,255,255,.08); }
.card h3, .card h4 { color: var(--ink); margin-top: 0; }
.card.dark-card h3, .card.dark-card h4 { color: #fff; }
.stat { padding: 20px; border-left: 4px solid var(--gold); }
.stat strong { display: block; font: 700 32px/1 Georgia, serif; color: var(--ink); }
.stat span { color: var(--muted); font-size: 13px; }

.listing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.listing-card { overflow: hidden; padding: 0; }
.listing-art { min-height: 190px; display: grid; place-items: center; background: linear-gradient(145deg,#e6f3ec,#f7edd9); position: relative; }
.listing-art .art-code { font: 800 44px/1 Georgia, serif; letter-spacing: .08em; color: rgba(23,62,55,.32); }
.favorite { position: absolute; right: 13px; top: 13px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid rgba(220,228,223,.9); font-size: 18px; }
.favorite.active { color: var(--rose); }
.listing-body { padding: 17px; }
.listing-topline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.listing-topline h3 { margin: 0; font-size: 18px; }
.price { font-size: 20px; color: var(--ink); white-space: nowrap; }
.price small { color: var(--muted); font-size: 11px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; background: #f3f6f4; color: #486159; border: 1px solid #e2e9e5; border-radius: 999px; font-size: 11px; font-weight: 750; }
.pill.gold { background: #fff6e7; border-color: #f0d39d; color: #865d18; }
.pill.green { background: #e9f6ef; border-color: #cce7d9; color: #28634f; }
.pill.red { background: #fff0ee; border-color: #f1d0cb; color: #954538; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin: 24px 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 750; }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.app-shell { max-width: 1420px; margin: 0 auto; padding: 30px 20px 80px; display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 24px; }
.sidebar { position: sticky; top: 110px; align-self: start; background: var(--ink); color: #fff; border-radius: 18px; padding: 18px; }
.sidebar .who { padding: 10px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.sidebar .who strong { display: block; }
.sidebar .who small { color: rgba(255,255,255,.65); }
.side-nav { display: grid; gap: 4px; }
.side-nav a { padding: 10px 11px; border-radius: 9px; color: rgba(255,255,255,.79); font-size: 13px; font-weight: 700; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.11); color: #fff; }
.dashboard-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.dashboard-header h1 { margin: 0; font: 700 38px/1.1 Georgia, serif; color: var(--ink); }
.dashboard-header p { margin: 7px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px; }
.metric strong { display: block; margin-top: 8px; font-size: 28px; color: var(--ink); }
.metric small { color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 690px; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
th { background: #f5f7f5; color: #51645e; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #53665f; font-weight: 800; }
.field textarea { min-height: 110px; resize: vertical; }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.check-card { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fff; }
.check-card input { margin-top: 4px; }

.detail-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.detail-art { min-height: 430px; display: grid; place-items: center; background: linear-gradient(145deg,#dff2e8,#f5e6ca); border-radius: 24px; position: relative; overflow: hidden; }
.detail-art strong { font: 800 72px/1 Georgia, serif; letter-spacing: .08em; color: rgba(23,62,55,.28); }
.booking-panel { position: sticky; top: 120px; }
.price-breakdown { display: grid; gap: 8px; margin: 16px 0; }
.price-line { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }
.price-line.total { font-weight: 850; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
.savings-box { background: #ecf7f1; border: 1px solid #cde7d9; padding: 13px; border-radius: 12px; }
.savings-box strong { color: var(--green); }

.progress { height: 9px; background: #e8eeea; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.module { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.module-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 850; }
.module.done .module-number { background: var(--mint); }
.module h4 { margin: 0 0 3px; }
.module p { margin: 0; font-size: 12px; color: var(--muted); }

.pis-score { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 850; font-size: 18px; }
.opportunity { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.opportunity:last-child { border-bottom: 0; }

.step-list { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 15px; align-items: start; }
.step-number { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 850; color: var(--green); background: #fff; }

.banner { border-radius: 22px; padding: 28px; background: linear-gradient(135deg,var(--ink),#245d4f); color: #fff; position: relative; overflow: hidden; }
.banner::after { content: "R"; position: absolute; right: 20px; top: -55px; font: 700 180px/1 Georgia, serif; color: rgba(255,255,255,.06); }
.banner h2 { margin: 0 0 10px; font: 700 35px/1.1 Georgia, serif; }
.banner p { max-width: 760px; color: rgba(255,255,255,.74); }

.callout { border-left: 4px solid var(--gold); background: #fff7e8; padding: 14px 16px; border-radius: 0 12px 12px 0; }
.callout strong { color: #6b4b16; }
.prototype-note { border: 1px dashed #d1b982; background: #fffaf0; border-radius: 14px; padding: 14px 16px; color: #6d5a31; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(11,31,27,.62); display: grid; place-items: center; padding: 18px; }
.modal { width: min(660px,100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 35px 100px rgba(0,0,0,.28); padding: 24px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.modal-head h2 { margin: 0; font: 700 30px/1.1 Georgia, serif; color: var(--ink); }
.close-button { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 50%; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 46px 20px 70px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-brand { min-width: 0; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; font-size: 13px; }
.footer-note { grid-column: 1/-1; color: var(--muted); font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%,30px); opacity: 0; pointer-events: none; z-index: 1000; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); transition: .2s ease; font-size: 13px; }
.toast.show { transform: translate(-50%,0); opacity: 1; }

.bottom-nav { display: none; }

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .nav-shell { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .menu-button { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 18px; }
  .hero-visual { min-height: 430px; }
  .listing-grid, .grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid.four, .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
}

@media (max-width: 720px) {
  .prototype-bar { text-align: center; flex-direction: column; gap: 1px; }
  .prototype-bar span { display: none; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; font-size: 20px; }
  .role-label, .desktop-only { display: none !important; }
  .role-switcher { max-width: 150px; padding-right: 20px; }
  .shell { padding: 36px 15px 82px; }
  .inner { padding: 0 15px; }
  .section { padding: 48px 0; }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 16px; }
  .search-box { grid-template-columns: 1fr; }
  .hero-visual { min-height: 350px; }
  .hero-card.main { inset: 20px 0 46px 18px; }
  .hero-card.metric { width: 170px; right: 0; }
  .hero-card.quote { width: 220px; left: 0; }
  .listing-grid, .grid.two, .grid.three, .grid.four, .metric-grid, .form-grid, .check-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .dashboard-header { display: grid; }
  .app-shell { padding: 22px 14px 84px; }
  .module { grid-template-columns: 46px 1fr; }
  .module .button { grid-column: 1/-1; }
  .opportunity { grid-template-columns: 54px 1fr; }
  .opportunity .button { grid-column: 1/-1; }
  .detail-art { min-height: 300px; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 96px; }
  .bottom-nav { display: grid; position: fixed; z-index: 110; left: 10px; right: 10px; bottom: 10px; grid-template-columns: repeat(4,1fr); background: rgba(16,44,39,.96); border-radius: 14px; padding: 8px; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
  .bottom-nav a { display: grid; place-items: center; color: rgba(255,255,255,.76); font-size: 10px; font-weight: 700; padding: 6px 2px; }
  .bottom-nav a strong { color: #fff; font-size: 15px; }
}

/* v2.0 expanded marketplace, services, investor and compliance surfaces */
.lane-icon { display:inline-grid; place-items:center; min-width:44px; height:32px; padding:0 10px; border-radius:999px; background:var(--green-soft); color:var(--green); font-size:11px; font-weight:900; letter-spacing:.08em; }
.emphasis-card { border-top:4px solid var(--green); }
.service-art { background: linear-gradient(145deg,#eff8f4,#fbf1d9); }
.service-detail { background: radial-gradient(circle at 20% 25%,#fff8e6 0 8%,transparent 9%),linear-gradient(145deg,#e9f6f1,#fbefd3); }
.status-standard { background:#e9f6ef !important; color:#1d6a47 !important; border-color:#badfc9 !important; }
.status-enhanced { background:#fff5d9 !important; color:#815800 !important; border-color:#ead18d !important; }
.status-review { background:#fff0dc !important; color:#8b4f00 !important; border-color:#e8bd7a !important; }
.status-prohibited { background:#fde8e8 !important; color:#982c2c !important; border-color:#efb5b5 !important; }
.status-future { background:#eceef8 !important; color:#4b5578 !important; border-color:#cbd0e4 !important; }
.danger-callout { border-left-color:#b94b48; background:#fff3f2; }
.addon-list { display:grid; gap:8px; margin:10px 0 16px; }
.addon-row { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:10px 12px; cursor:pointer; background:#fff; }
.addon-row input { width:18px; height:18px; }
.addon-row span { display:grid; gap:2px; }
.addon-row small { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.addon-row b { color:var(--ink); }
.process-strip { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-top:12px; }
.process-strip span { position:relative; padding:8px 12px; background:#f3f7f5; border:1px solid var(--line); border-radius:999px; font-size:11px; font-weight:800; color:var(--ink); }
.process-strip span:not(:last-child)::after { content:'›'; position:absolute; right:-9px; color:var(--green); font-size:17px; top:50%; transform:translateY(-52%); z-index:2; }
.process-strip.wide { gap:10px; }
.architecture-card { background:linear-gradient(180deg,#fff,#f7faf8); }
.decision-card { border-width:2px; }

/* Standalone due-diligence pages */
.standalone-page { background:var(--paper); color:var(--text); }
.standalone-header { position:sticky; top:0; z-index:90; background:rgba(255,255,255,.96); border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
.standalone-nav { max-width:var(--max); margin:0 auto; padding:13px 20px; display:flex; align-items:center; gap:18px; }
.standalone-nav .spacer { flex:1; }
.standalone-nav-links { display:flex; flex-wrap:wrap; gap:15px; font-size:12px; font-weight:750; }
.standalone-hero { padding:72px 0 52px; background:linear-gradient(145deg,#102c27,#1b4f43); color:#fff; }
.standalone-hero h1 { margin:8px 0 14px; font:700 clamp(42px,7vw,76px)/.98 Georgia,serif; max-width:980px; }
.standalone-hero p { color:rgba(255,255,255,.75); max-width:900px; font-size:18px; }
.page-section { padding:54px 0; }
.page-section.alt { background:#f6f1e7; }
.page-section.dark { background:var(--ink); color:#fff; }
.page-section.dark p,.page-section.dark li { color:rgba(255,255,255,.76); }
.page-title { margin:6px 0 12px; font:700 clamp(34px,5vw,54px)/1.05 Georgia,serif; color:var(--ink); }
.page-section.dark .page-title { color:#fff; }
.eyebrow { color:var(--green); font-weight:900; text-transform:uppercase; letter-spacing:.12em; font-size:11px; }
.tech-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.tech-card { padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.tech-card small { color:var(--muted); font-size:10px; text-transform:uppercase; font-weight:850; letter-spacing:.08em; }
.tech-card h3 { margin:7px 0 5px; }
.stack-flow { display:grid; gap:12px; margin-top:24px; }
.stack-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.stack-node { min-height:86px; display:grid; align-content:center; justify-items:center; text-align:center; border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff; }
.stack-node strong { color:var(--ink); }
.stack-node small { color:var(--muted); margin-top:4px; }
.stack-arrow { text-align:center; color:var(--green); font-weight:900; font-size:22px; line-height:1; }
.comparison-table th { min-width:160px; }
.comparison-table td:first-child { font-weight:800; color:var(--ink); }
.risk-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.risk-card { border:1px solid var(--line); border-radius:16px; background:#fff; padding:18px; }
.risk-card h3 { margin-top:8px; }
.control-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.control-card { border:1px solid var(--line); border-radius:16px; padding:18px; background:#fff; }
.search-panel { display:grid; grid-template-columns:2fr 1fr 1fr; gap:10px; margin:20px 0; }
.search-panel input,.search-panel select { width:100%; }
.rule-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.rule-card { border:1px solid var(--line); border-radius:17px; padding:18px; background:#fff; }
.rule-card h3 { margin:8px 0 6px; }
.rule-card .examples { color:var(--muted); font-size:12px; }
.rule-card ul { padding-left:18px; }
.rule-meta { display:flex; flex-wrap:wrap; gap:7px; margin:8px 0 12px; }
.source-list { display:grid; gap:8px; }
.source-item { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; }
.source-item a { font-weight:850; color:var(--green); }
.source-item p { margin:4px 0 0; font-size:12px; color:var(--muted); }
.rule-output { border:2px solid var(--line); border-radius:18px; padding:20px; background:#fff; margin-top:18px; }
.legend { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.note-box { border:1px dashed #d2bd88; background:#fff9eb; color:#6a582d; padding:14px 16px; border-radius:13px; }
.codebox { background:#102c27; color:#dfeee8; border-radius:14px; padding:18px; overflow:auto; white-space:pre; font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; }
.timeline { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; counter-reset:milestone; }
.timeline-card { border:1px solid var(--line); border-radius:16px; background:#fff; padding:18px; }
.timeline-card::before { counter-increment:milestone; content:counter(milestone,decimal-leading-zero); display:inline-grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--green); color:#fff; font-weight:900; margin-bottom:10px; }
.checklist { list-style:none; padding:0; display:grid; gap:8px; }
.checklist li { padding-left:25px; position:relative; }
.checklist li::before { content:'✓'; position:absolute; left:0; color:var(--green); font-weight:900; }
.split-stat { display:grid; grid-template-columns:1fr auto; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.split-stat:last-child { border-bottom:0; }
.sticky-toc { position:sticky; top:88px; }
.toc-grid { display:grid; grid-template-columns:240px 1fr; gap:30px; align-items:start; }
.toc { border:1px solid var(--line); border-radius:16px; padding:15px; background:#fff; display:grid; gap:7px; }
.toc a { padding:7px 9px; border-radius:8px; font-size:12px; font-weight:750; }
.toc a:hover { background:var(--green-soft); color:var(--green); }

@media (max-width: 1000px) {
  .tech-grid,.timeline { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stack-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .risk-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .toc-grid { grid-template-columns:1fr; }
  .sticky-toc { position:static; }
  .toc { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .standalone-nav-links { display:none; }
  .standalone-hero { padding-top:48px; }
  .tech-grid,.risk-grid,.control-grid,.rule-grid,.timeline,.stack-row,.search-panel { grid-template-columns:1fr; }
  .toc { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .process-strip.wide { display:grid; grid-template-columns:1fr 1fr; }
  .process-strip span::after { display:none; }
}

/* RentShare homepage polish hotfix v2.1 */

/* ---------- REAL BRAND ---------- */

.brand {
  min-width: 214px;
  gap: 11px;
}

.brand-logo-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  display: block;
}

.brand-copy strong {
  font-size: 23px;
}

.nav-shell {
  max-width: 1380px;
  padding: 12px 24px;
  gap: 16px;
}

.desktop-nav {
  gap: 18px;
  font-size: 13px;
}

.nav-actions {
  margin-left: 2px;
}

.role-switcher {
  max-width: 190px;
}


/* ---------- HOMEPAGE HERO ---------- */

.hero {
  padding-bottom: 24px;
}

.hero-grid {
  min-height: 610px;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(410px, .92fr);
  gap: 54px;
}

.hero h1 {
  font-size: clamp(50px, 5.4vw, 76px);
  line-height: .98;
  max-width: 760px;
}

.hero p {
  max-width: 690px;
}

.search-box {
  grid-template-columns:
    minmax(230px, 1.45fr)
    minmax(155px, .8fr)
    auto;
}


/* Remove the overlapping absolute-card layout */
.hero-visual {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.hero-card {
  position: relative;
  inset: auto;
  border-radius: 18px;
}

.hero-card.main {
  inset: auto;
  grid-column: 1 / -1;
  min-height: 330px;
  padding: 34px;
}

.hero-card.main::before {
  right: -28px;
  top: -84px;
  opacity: .7;
}

.hero-card.main small {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.72);
  font-weight: 850;
  letter-spacing: .11em;
}

.hero-card.main h3 {
  position: relative;
  z-index: 2;
  font-size: 34px;
}

.hero-card.main p {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.82);
  margin-bottom: 0;
}

.hero-brand-watermark {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.12));
}

.hero-card.metric {
  right: auto;
  top: auto;
  width: auto;
  min-height: 132px;
}

.hero-card.quote {
  left: auto;
  bottom: auto;
  width: auto;
  min-height: 132px;
}

.hero-card.metric .note,
.hero-card.quote .note {
  display: block;
  margin-top: 8px;
  color: #5c6e68;
  line-height: 1.45;
}


/* ---------- TABLET ---------- */

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 28px;
  }

  .hero-visual {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
}


/* ---------- MOBILE ---------- */

@media (max-width: 720px) {
  .nav-shell {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    padding-bottom: 12px;
  }

  .hero-grid {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-card.main,
  .hero-card.metric,
  .hero-card.quote {
    grid-column: 1;
    width: auto;
    min-height: 0;
    inset: auto;
  }

  .hero-card.main {
    min-height: 300px;
    padding: 28px 24px;
  }

  .hero-brand-watermark {
    width: 72px;
    height: 72px;
    top: 20px;
    left: 22px;
  }
}

