/* Vacation Rental Reset website: the app's "Control Room" look.
   Near-black grounds, one lime accent, monospaced data. Matches
   HomeAI/Design/Theme.swift and android-app/src/ui/theme.ts.

   Spacing runs on one 8-point scale (--s-*). Page rhythm uses three
   responsive tokens so every page lines up the same way:
     --page-top  space under the header before the first content
     --section   space between major sections of the home page
     --page-end  space after the last content, before the footer   */
:root {
  color-scheme: dark;
  --bg: #0A0B0D;
  --surface: #121417;
  --raised: #1C2025;
  --border: #1F2328;
  --text: #F2F4F6;
  --text-body: #C9CED4;
  --text-2: #8B939C;
  --text-3: #5D6570;
  --lime: #C8F560;
  --on-lime: #0A0B0D;
  --amber: #FFB547;
  --blue: #6CB6FF;
  --coral: #FF6B5B;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --gutter: 24px;
  --wrap: 1120px;
  --doc: 720px;
  --header-h: 64px;
  --page-top: var(--s-8);
  --section: var(--s-10);
  --page-end: var(--s-9);
  --radius-card: 16px;
  --radius-band: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* ---------- Header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  background: rgb(10 11 13 / 85%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 100%; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); font-weight: 750; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: var(--s-5); }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding-block: var(--s-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); margin-top: var(--page-end); padding: var(--s-6) 0; color: var(--text-3); font-size: 14px; line-height: 1.4; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Shared bits ---------- */
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin: 0 0 var(--s-4); }
.muted { color: var(--text-2); }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: 12px; font-weight: 650; text-decoration: none; font-size: 16px; line-height: 1; }
.button.primary { background: var(--lime); color: var(--on-lime); }
.button.primary:hover { background: #d6fa82; }
.button.ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.button.ghost:hover { border-color: var(--text-3); }

/* Cards share one padding; the 4px status bar sits inside the left edge. */
.card, .steps li, .callout, .toc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--s-5);
}
.card, .callout { padding-left: calc(var(--s-5) + 4px); }
.card::before, .callout::before {
  content: ""; position: absolute; left: 0; top: var(--s-5); bottom: var(--s-5);
  width: 4px; border-radius: 0 4px 4px 0; background: var(--bar, var(--lime));
}
.card.blue { --bar: var(--blue); }
.card.amber, .callout.amber { --bar: var(--amber); }
.card.coral { --bar: var(--coral); }
.card h3, .steps h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s-2); }
.card p, .steps p { color: var(--text-2); font-size: 16px; }

/* ---------- Home: hero ---------- */
.hero { padding-top: var(--page-top); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; }
.hero h1 .dim { color: var(--text-3); }
.hero .lede { font-size: 20px; color: var(--text-2); max-width: 34em; margin: var(--s-5) 0 var(--s-6); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero .availability { margin-top: var(--s-5); font: 13px/1.4 var(--mono); color: var(--text-3); }
.hero .availability b { color: var(--lime); font-weight: 600; }

.phone { position: relative; border-radius: 40px; padding: 10px; background: #050607; border: 1px solid var(--border); box-shadow: 0 40px 120px rgb(200 245 96 / 9%), 0 20px 60px rgb(0 0 0 / 60%); max-width: 340px; margin-inline: auto; }
.phone img { border-radius: 31px; width: 100%; height: auto; }

/* ---------- Home: sections ---------- */
.section { padding-top: var(--section); }
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 780; }
.section-head .sub { color: var(--text-2); font-size: 19px; margin-top: var(--s-4); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); align-items: start; }
.showcase figure { margin: 0; }
.showcase figcaption { margin-top: var(--s-5); color: var(--text-2); font-size: 15px; }
.showcase figcaption b { display: block; color: var(--text); font-size: 17px; margin-bottom: var(--s-1); }
.showcase .phone { max-width: 300px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 600 13px/1 var(--mono); color: var(--lime); letter-spacing: 0.1em; margin-bottom: var(--s-4); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.roles .card ul { margin: var(--s-3) 0 0; padding-left: 20px; color: var(--text-2); font-size: 16px; }
.roles .card li + li { margin-top: var(--s-2); }

.cta-band { margin-top: var(--section); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-band); padding: var(--s-8) var(--s-7); text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 780; }
.cta-band p { color: var(--text-2); margin: var(--s-4) auto var(--s-6); max-width: 34em; }

/* ---------- Document pages (privacy, terms, support, delete, 404) ---------- */
.doc { width: min(var(--doc), calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-top: var(--page-top); }
.doc h1 { font-size: clamp(36px, 6vw, 54px); font-weight: 800; margin-bottom: var(--s-4); }
.doc .updated { font: 13px/1.4 var(--mono); color: var(--text-3); margin-bottom: var(--s-6); }
.doc .intro { font-size: 19px; color: var(--text-2); }
.doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: var(--s-7) 0 var(--s-4); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.doc p, .doc li { color: var(--text-body); }
.doc .intro, .doc .muted { color: var(--text-2); }
.doc .eyebrow { color: var(--lime); }
.doc > p + p, .doc > p + ul, .doc > p + ol, .doc > ul + p, .doc > ol + p { margin-top: var(--s-4); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { margin: 0; padding-left: 22px; }
.doc li + li { margin-top: var(--s-2); }
.doc li::marker { color: var(--text-3); }
.doc > .callout, .doc > .toc { margin: var(--s-6) 0; }
.doc > :last-child { margin-bottom: 0; }

.callout p + p { margin-top: var(--s-3); }
.contact-email { font: 600 18px/1.4 var(--mono); }
.doc-links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- Terms ---------- */
.toc { padding-block: var(--s-4); }
.toc ol { padding-left: 22px; columns: 2; column-gap: var(--s-6); font-size: 15px; }
.doc .toc li { margin: 0; padding-block: var(--s-1); break-inside: avoid; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--lime); }
.doc .caps { font-size: 15px; letter-spacing: 0.01em; }
.doc .credit { margin-top: var(--s-7); font-size: 13px; color: var(--text-3); }
.doc .credit a { color: var(--text-2); }

/* Details still to be filled in before launch (business name, address, state). */
mark.todo { background: rgb(255 181 71 / 16%); color: var(--amber); border-radius: 4px; padding: 0 var(--s-1); font: 600 0.92em var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section: var(--s-9); }
  .hero { grid-template-columns: 1fr; gap: var(--s-8); }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: var(--s-7); }
  .showcase figure { text-align: center; }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --page-top: var(--s-7);
    --section: 80px;
    --page-end: var(--s-8);
  }
  body { font-size: 16px; }
  .brand { font-size: 16px; gap: var(--s-2); }
  .brand img { width: 28px; height: 28px; }
  .site-nav { gap: var(--s-4); }
  .site-nav .hide-sm { display: none; }
  .eyebrow { letter-spacing: 0.08em; }
  .hero { gap: var(--s-7); }
  .hero .lede { font-size: 18px; }
  .features, .steps, .roles { grid-template-columns: 1fr; }
  .section-head { margin-bottom: var(--s-6); }
  .section-head .sub { font-size: 17px; }
  .cta-band { padding: var(--s-7) var(--s-5); }
  .toc ol { columns: 1; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); }
}
