/* Residara website — black & gold. Fonts are self-hosted (@font-face is inlined in each page). */
:root {
  --bg: #0b0a08; --bg-2: #14120d; --bg-3: #1b1812; --line: #2a2418; --line-2: #3a3222;
  --gold-1: #f3e2b5; --gold: #d4b26a; --gold-3: #a8823f; --gold-muted: #b9a06a; --hi: #e2c47f;
  --ink: #f6f1e6; --ink-2: #d9d1bf; --muted: #a59c88; --chip: #e9dcbc;
  --grad: linear-gradient(135deg, #f3e2b5 0%, #d4b26a 48%, #a8823f 100%);
  --radius: 14px; --wrap: 1180px; --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --serif: Cinzel, "Times New Roman", serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-1); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.center .lede { margin-left: auto; margin-right: auto; }
.ic { width: 28px; height: 28px; fill: var(--gold); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-gold { background: var(--grad); color: #17130b; box-shadow: 0 8px 24px -10px rgba(212,178,106,.6); }
.btn-gold:hover { color: #0b0a08; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(212,178,106,.75); }
.btn-ghost { border-color: var(--line-2); color: var(--chip); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-1); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,10,8,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.tb-left { display: flex; gap: 20px; align-items: center; min-width: 0; flex-wrap: wrap; }
.tb-left a, .tb-left span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.tb-left svg { width: 14px; height: 14px; fill: var(--gold); }
.tb-left a:hover { color: var(--gold-1); }
.tb-cta { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; margin-left: auto; padding: 6px 0; }
.mainbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.logo img { width: 147px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav ul a:hover { color: var(--gold-1); background: rgba(212,178,106,.06); }
.site-nav ul a.active { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav .login { color: var(--chip); border: 1px solid var(--line-2); border-radius: 999px !important; padding: 7px 16px !important; margin-left: 6px; }
.site-nav .login:hover { border-color: var(--gold); }
.nav-cta.active { box-shadow: 0 0 0 2px var(--gold-1); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--gold); content: ""; transition: transform .2s, opacity .2s; }
.menu-btn .bars { top: 22px; } .menu-btn .bars::before { top: -7px; left: 0; } .menu-btn .bars::after { top: 7px; left: 0; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 22px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 10px; font-size: 1rem; }
  .site-nav ul a.active { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .site-nav .login { margin: 8px 0 0; text-align: center; }
  .nav-cta { width: 100%; }
  .mainbar { position: relative; }
}
@media (max-width: 560px) { .tb-addr { display: none; } .topbar { font-size: .8rem; } .tb-left { gap: 12px; } }

.review-note { background: #3a2c10; color: var(--gold-1); font-size: .88rem; padding: 8px 0; border-bottom: 1px solid #5a4418; }
.todo { background: #3a2c10; color: var(--gold-1); padding: 0 4px; border-radius: 4px; }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 14px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--gold); }

/* sections */
section { padding: 84px 0; }
section.alt, .feature-row.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.page-hero { padding: 56px 0 40px; background: radial-gradient(700px 300px at 50% 0, rgba(212,178,106,.10), transparent 70%); }
.page-hero.slim { padding-bottom: 10px; }
.page-hero.nf { padding: 110px 0; }

/* hero */
.hero { padding: 64px 0 72px; background: radial-gradient(900px 500px at 80% 10%, rgba(212,178,106,.13), transparent 65%), radial-gradient(600px 400px at 0 100%, rgba(168,130,63,.08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-cta.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--chip); }
.hero-points li { display: flex; align-items: center; gap: 6px; } .hero-points .ic { width: 18px; height: 18px; }
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-phone { position: absolute; right: -10px; bottom: 0; width: 34%; max-width: 190px; }

/* device frames */
.browser { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #1c1a15; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1f1c15; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3426; }
.browser-bar span { margin-left: 10px; font-size: .72rem; color: var(--muted); background: #14120d; padding: 2px 10px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { width: 100%; }
.phone { margin: 0; border-radius: 26px; padding: 7px; background: #0d0c09; border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(212,178,106,.18); }
.phone img { border-radius: 20px; width: 100%; }
.phone.solo { max-width: 280px; margin: 0 auto; }
.sample-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 28px; }

/* value strip */
.value { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-grid div { padding: 26px 16px; text-align: center; border-left: 1px solid var(--line); }
.value-grid div:first-child { border-left: 0; }
.value-grid strong { display: block; font: 600 1.2rem/1.3 var(--serif); color: var(--gold); }
.value-grid span { font-size: .88rem; color: var(--muted); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: block; padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--gold-3); transform: translateY(-2px); color: var(--ink-2); }
.card h3 { margin-top: 14px; }
.card p { font-size: .94rem; margin-bottom: 12px; }
.card .more { font-size: .88rem; color: var(--gold); font-weight: 600; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), transparent); }
.steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #17130b; font: 700 1rem var(--serif); margin-bottom: 14px; }
.steps p { font-size: .94rem; margin: 0; }

/* solutions */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sol { display: block; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); background: var(--bg); transition: border-color .15s; }
.sol:hover { border-color: var(--gold-3); color: var(--ink-2); }
.sol h3 { margin-top: 12px; } .sol p { font-size: .94rem; margin: 0; }
.sol-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sol-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.sol-card h2 { font-size: 1.45rem; margin-top: 12px; }

/* split sections */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.split-grid.rev .split-media { order: -1; }
.split-media { position: relative; }
.web-mobile .split-media { padding-bottom: 50px; }
.float-phone { position: absolute; right: -6px; bottom: 0; width: 30%; max-width: 170px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { width: 20px; height: 20px; margin-top: 3px; }
.feature-row { padding: 72px 0; }
.feature-row .split-copy > .ic { width: 36px; height: 36px; margin-bottom: 12px; }
.web-mobile, .security-home { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* benefits */
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ben { padding: 26px; border-left: 2px solid var(--gold-3); background: linear-gradient(90deg, rgba(212,178,106,.05), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.ben p { margin: 0; font-size: .95rem; }

/* security page */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.sec-item h2 { font-size: 1.2rem; margin-top: 14px; }
.sec-item p { margin: 0; font-size: .95rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 4px; padding-bottom: 8px; }
.chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--chip); text-decoration: none; font-size: .88rem; }
.chips a:hover { border-color: var(--gold); color: var(--gold-1); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq summary:hover h3 { color: var(--gold-1); }
.faq-a { padding: 0 0 18px; } .faq-a p { margin: 0; }
.faq-cat { margin-bottom: 48px; } .faq-cat h2 { font-size: 1.4rem; color: var(--gold); }
.faq-home .center { margin-top: 32px; }

/* CTA band */
.cta-band { padding: 0 0 84px; }
.cta-band .wrap > * { position: relative; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 44px; border-radius: 20px; max-width: calc(var(--wrap) - 40px);
  background: radial-gradient(600px 240px at 100% 0, rgba(212,178,106,.18), transparent 70%), var(--bg-3); border: 1px solid var(--line-2); }
.cta-band h2 { margin-bottom: 8px; } .cta-band p { margin: 0; max-width: 40em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* forms */
.form-sec { padding-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.form-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.form-card { padding: 32px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); }
.form-aside { padding: 8px 4px; }
.form-aside h2 { font-size: 1.2rem; color: var(--gold); margin-top: 8px; }
.next-steps { padding-left: 20px; margin: 0 0 28px; } .next-steps li { margin-bottom: 8px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--gold); } .opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: 400 1rem/1.4 var(--sans); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,178,106,.2); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.4); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e07a6a; }
.hint { color: var(--muted); font-size: .8rem; }
.ferr { color: #f0a090; font-size: .84rem; min-height: 0; }
.ferr:empty { display: none; }
.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--gold); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.form-status { display: none; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; }
.form-status.err { display: block; background: #3b1a14; border: 1px solid #6b2c22; color: #f6c8bc; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .done-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); color: #17130b; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.form-done .ref { font: 600 1.05rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--gold); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 12px; } .contact-list strong { display: block; color: var(--ink); }

/* legal */
.legal h2 { font-size: 1.25rem; margin-top: 2em; color: var(--gold); font-family: var(--sans); font-weight: 650; }
.legal { padding-top: 0; }

/* footer */
.site-footer { background: #080706; border-top: 1px solid var(--line); padding: 60px 0 0; font-size: .93rem; }
.site-footer > .wrap:first-child { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-2); text-decoration: none; } .site-footer a:hover { color: var(--gold-1); }
.f-tag { font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-muted); margin: 14px 0 12px; }
.f-brand p:not(.f-tag) { color: var(--muted); max-width: 30em; }
.f-social { display: flex; gap: 14px; flex-wrap: wrap; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px !important; padding-bottom: 28px !important; margin-top: 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.rev .split-media { order: 0; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sol-grid, .ben-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer > .wrap:first-child { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  section { padding: 60px 0; }
  .hero { padding: 36px 0 52px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-grid div:nth-child(3) { border-left: 0; }
  .value-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .sol-grid, .ben-grid, .sec-grid, .sol-detail, .grid-form { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .cta-band .wrap { padding: 30px 22px; margin: 0 16px; max-width: none; width: auto; }
  .site-footer > .wrap:first-child { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-phone { width: 30%; right: 0; }
  .float-phone { right: 0; }
  .wrap { padding: 0 16px; }
}
