/* RestoStay public website — Warm Navy + Gold on white/off-white.
   Palette mirrors BrandColors in lib/app/app.dart. System fonts only:
   no third-party requests. */
:root {
  --navy: #1F2B45; --navy-2: #16203A; --navy-3: #2A3957;
  --gold: #C49A2C; --gold-2: #A9831F; --gold-soft: #F3E8C8; --gold-ink: #7A5E12;
  --off: #FAF8F3; --white: #FFFFFF; --ink: #1B1D22; --muted: #585F6E;
  --line: #E8E2D4; --ok: #1E6B4A; --ok-bg: #E4F2EA; --pilot: #8A5A00; --pilot-bg: #FBEFD2;
  --plan: #4B5566; --plan-bg: #EEF0F4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(22,32,58,.06), 0 8px 24px rgba(22,32,58,.07);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.center { text-align: center; }
.fine { font-size: .875rem; color: var(--muted); }
.eyebrow { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .9em; }
.eyebrow-gold { color: var(--gold); }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 44rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 650 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-2); }
.btn-gold:hover { background: #D2AA3F; color: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold-soft); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 700 1.3rem/1 var(--serif); }
.brand:hover { color: var(--navy); }
.logo-mark { border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; padding: 10px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.site-nav a:not(.btn):hover { background: var(--off); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .nav-cta { margin: 14px 0 0; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--gold-soft) 0%, rgba(243,232,200,0) 60%), linear-gradient(180deg, var(--off), #fff); padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { color: var(--navy-3); font-weight: 550; }
.hero-sub { color: var(--muted); max-width: 36rem; }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--navy-3); font-size: .93rem; font-weight: 600; }
.hero-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.hero-visual { position: relative; padding: 10px 10px 64px; }
.screen { background: var(--navy); color: #E9ECF3; border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(22,32,58,.28); border: 1px solid var(--navy-3); }
.screen-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; color: #C5CCDA; margin-bottom: 14px; flex-wrap: wrap; }
.chip { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.chip-offline { background: rgba(196,154,44,.18); color: #F0D68C; border: 1px solid rgba(196,154,44,.45); }
.screen-lines { list-style: none; margin: 0; padding: 0; }
.screen-lines li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: .96rem; }
.screen-lines em { font-style: normal; font-size: .75rem; color: var(--gold); margin-left: 6px; border: 1px solid rgba(196,154,44,.5); padding: 1px 6px; border-radius: 6px; }
.screen-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; }
.screen-total strong { font: 700 1.6rem/1 var(--serif); color: #fff; }
.screen-actions { display: flex; gap: 10px; margin-top: 12px; }
.pill { flex: 1; text-align: center; padding: 11px; border-radius: 12px; background: var(--navy-3); font-weight: 650; font-size: .92rem; }
.pill-gold { background: var(--gold); color: var(--navy-2); }
.float-card { position: absolute; left: -18px; bottom: 0; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 300px; }
.float-card strong { display: block; color: var(--navy); font-size: .95rem; }
.float-card span:not(.dot) { font-size: .82rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2E9E6A; box-shadow: 0 0 0 4px #DDF1E6; flex: none; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, var(--off), #fff); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 48rem; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--off); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head .lede { margin-bottom: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillars-4 { grid-template-columns: repeat(4, 1fr); }
.pillars article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.pillars article p { color: var(--muted); }
.pillars article a { font-weight: 650; text-decoration: none; }
.pillars article h3::before { content: ""; display: block; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 14px; }
.section-soft .pillars article { box-shadow: none; }

/* Navy band */
.band-navy { background: var(--navy); color: #D8DDE8; padding: 76px 0; }
.band-navy h2 { color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band-list li { background: var(--navy-3); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--gold); border-radius: 12px; padding: 16px 18px; }
.band-list strong { display: block; color: #fff; }
.band-list span { font-size: .93rem; }

/* Capabilities */
.cap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.cap p { color: var(--muted); font-size: .95rem; margin: 0; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.cap-top h3 { margin: 0; font-size: 1.02rem; }
.cap-planned { background: #FCFCFD; border-style: dashed; }
.badge { flex: none; font: 700 .7rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.badge-available { background: var(--ok-bg); color: var(--ok); }
.badge-pilot { background: var(--pilot-bg); color: var(--pilot); }
.badge-planned, .badge-coming_soon, .badge-withdrawn { background: var(--plan-bg); color: var(--plan); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps h3 { margin-bottom: .3em; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 700 1rem/1 var(--serif); }

/* Feature rows */
.feature-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-row h3 { margin: 0; }
.feature-row p:last-child { margin-bottom: 0; }
.feature-row p { color: #3C424F; }
.ticks { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 50rem; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; color: var(--navy); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.6rem/1 var(--sans); color: var(--gold-2); }
details[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 18px; color: #3C424F; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy) 60%, var(--navy-3)); color: #D8DDE8; padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 38rem; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band .cta-row { margin-top: 0; }

/* Related */
.related { padding: 56px 0 64px; }
.related-h { font-size: 1.3rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.related a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.related strong { display: block; color: var(--navy); }
.related span { color: var(--muted); font-size: .92rem; }

/* Downloads */
.dl-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.dl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.dl-card.is-live { border-color: var(--gold); }
.dl-head { display: flex; gap: 14px; align-items: flex-start; }
.dl-head h3 { margin: 0; }
.dl-head .badge { margin-left: auto; }
.dl-icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--off); color: var(--navy); flex: none; }
.dl-role { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.dl-note { color: #3C424F; font-size: .95rem; margin: 14px 0 10px; }
.dl-meta { margin: 0 0 12px; display: grid; gap: 4px; font-size: .88rem; }
.dl-meta div { display: flex; gap: 8px; }
.dl-meta dt { color: var(--muted); min-width: 92px; }
.dl-meta dd { margin: 0; }
.integrity { font-size: .78rem; word-break: break-all; }
.integrity span { display: block; color: var(--muted); }
.dl-action { margin-top: auto; padding-top: 8px; }
.dl-action .btn { width: 100%; }

/* Pricing */
.quote-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; background: var(--off); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.quote-panel h2 { font-size: 1.7rem; }
.plan-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.plan-hl { border: 2px solid var(--gold); }
.plan-price { font: 700 2rem/1 var(--serif); color: var(--navy); margin: 12px 0 4px; }
.plan-price span { font: 500 .95rem var(--sans); color: var(--muted); }
.plan .btn { margin-top: auto; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 16px; min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 6px; color: var(--navy); }
.field small { color: var(--muted); font-size: .8rem; }
.req { color: #A3361F; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #CFC8B8; border-radius: 10px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(196,154,44,.35); }
[aria-invalid="true"] { border-color: #A3361F !important; }
.field-error { display: block; color: #A3361F; font-size: .82rem; margin-top: 4px; }
fieldset { border: 0; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.checks legend { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; font-weight: 500; color: var(--ink); cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.consent { margin: 4px 0 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 8px 0 14px; font-weight: 600; }
.form-status.err { color: #A3361F; }
.form-status.ok { color: var(--ok); }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; }
.contact-side h2 { font-size: 1.2rem; margin-top: 1.4em; }
.contact-side h2:first-child { margin-top: 0; }
.mini-steps { padding-left: 1.2em; color: #3C424F; }
.mini-steps li { margin-bottom: .5em; }

/* Support */
.support-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc-h { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 14px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.toc a:hover { color: var(--navy); box-shadow: inset 2px 0 0 var(--gold); }
.support-topic { margin-bottom: 36px; scroll-margin-top: 90px; }
.support-topic h2 { font-size: 1.5rem; }
.contact-card { background: var(--off); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* Legal */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose li { margin-bottom: .45em; }
.draft-banner { background: var(--pilot-bg); border: 1px solid #EBCB7A; color: #5C3D00; border-radius: 12px; padding: 14px 18px; margin-bottom: 1.5rem; }
mark.ph { background: #FFF1BF; color: #5C3D00; padding: 1px 4px; border-radius: 4px; }
.link-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.link-list a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-2); color: #B8C0D0; padding: 56px 0 0; }
.site-footer a { color: #E4E8F0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .logo-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
.foot-brand p { font-size: .93rem; margin-top: 14px; max-width: 22rem; }
.foot-h { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .94rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .85rem; }
.foot-base p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .band-grid, .contact-grid, .quote-panel { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .pillars, .pillars-4, .cap-grid, .related ul { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .support-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .page-hero { padding: 40px 0 28px; }
  .section { padding: 52px 0; }
  .pillars, .pillars-4, .cap-grid, .related ul, .form-grid, .checks { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; }
  .cta-row .btn { flex: 1 1 100%; }
  .float-card { position: relative; left: auto; margin: -24px 12px 0; }
  .hero-visual { padding: 0; }
  .lead-form { padding: 20px; }
  .quote-panel { padding: 24px; }
  .dl-grid { grid-template-columns: 1fr; }
}
