:root {
  --sand: #F6F3EC;
  --card: #FFFFFF;
  --line: #E3DDD0;
  --line-soft: #ECE7DC;
  --ink: #14202B;
  --ink-2: #2E3A44;
  --muted: #4A5560;
  --accent: #0F5E73;
  --accent-dark: #0B4A5B;
  --accent-tint: #E4EFF1;
  --option-line: #C9C2B4;
  --ring: #6B7680;
  --track: #DDD6C8;
  --disabled: #CFC8BA;
  --disabled-ink: #3A444D;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
[hidden] { display: none !important; }

.page { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--sand); }
@media (min-width: 520px) {
  body { background: #EFEBE2; }
  .page { box-shadow: 0 0 0 1px var(--line); }
}

/* Header */
.site-header { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; line-height: 1.4; color: var(--muted); }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 8px 8px; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-title { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
.hero h1 { font-size: 42px; line-height: 1.05; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.section-title { font-size: 22px; line-height: 1.25; }
.step h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; }
.hint { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.tiny { font-size: 13px; line-height: 1.5; color: var(--muted); }
.center { text-align: center; }

/* Sections */
.hero { display: flex; flex-direction: column; gap: 14px; padding: 32px 20px 30px; }
.section { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.stats { margin: 0 20px 28px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.stat:last-of-type { border-bottom: 0; padding-bottom: 0; }
.stat-value { font-family: var(--serif); font-size: 36px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; line-height: 1.4; color: var(--muted); }

.sales { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.sale { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.sale:last-child { border-bottom: 0; }
.sale-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.sale-address { font-weight: 600; }
.sale-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sale-meta { font-size: 14px; line-height: 1.4; color: var(--muted); }

.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-list span:last-child { padding-top: 4px; }

.about { margin: 0 20px 30px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.about-head { display: flex; align-items: center; gap: 14px; }
.avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 36px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; font-weight: 600; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-family: var(--serif); font-size: 22px; line-height: 1.2; font-weight: 600; }
.about p { margin: 0; }
.two-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.site-footer { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 32px; background: var(--card); border-top: 1px solid var(--line); margin-top: auto; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--accent); color: #FFFFFF; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn:disabled { background: var(--disabled); color: var(--disabled-ink); cursor: not-allowed; }
.btn-outline { min-height: 48px; background: var(--card); color: var(--accent); border: 1.5px solid var(--accent); font-size: 16px; border-radius: 12px; }
.btn-outline:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn-plain { min-height: 52px; background: var(--card); color: var(--ink); border: 1.5px solid var(--option-line); font-size: 16px; border-radius: 12px; }
.btn-plain:hover { background: #FBFAF6; color: var(--ink); }

/* Steps */
.step { display: flex; flex-direction: column; min-height: 100vh; }
.progress { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 0; }
.progress-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.progress-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress-bar span { height: 6px; border-radius: 3px; background: var(--track); }
.progress-bar span.on { background: var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 22px; padding: 24px 20px 0; }
.step-head { display: flex; flex-direction: column; gap: 8px; }
.step-foot { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 28px; margin-top: auto; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .legend { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--option-line); background: var(--card); color: var(--ink); font-size: 16px; }
.input:focus { border-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2314202B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.choices { display: grid; gap: 8px; margin-top: 10px; }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--option-line); background: var(--card); color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--option-line); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; }
.option .radio { flex-shrink: 0; width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--ring); display: flex; align-items: center; justify-content: center; }
.option[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); }
.option[aria-pressed="true"] .radio { border-color: var(--accent); }
.option[aria-pressed="true"] .radio::after { content: ''; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--option-line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--option-line); }
.consent.on { border-color: var(--accent); }
.consent input { flex-shrink: 0; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent label { font-size: 15px; line-height: 1.5; cursor: pointer; }

.notice { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.error { margin: 0; font-size: 14px; line-height: 1.45; color: #9A2C12; font-weight: 600; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Thanks */
.done-icon { width: 64px; height: 64px; border-radius: 32px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.offer { margin-top: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.offer h2 { font-size: 22px; line-height: 1.25; }
.offer p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.confirm { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-tint); font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--accent-dark); }
.confirm.soft { background: #F1EEE6; color: var(--ink-2); font-weight: 400; }

/* Privacy page */
.prose { padding: 28px 20px 36px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: 34px; line-height: 1.1; }
.prose h2 { font-size: 21px; line-height: 1.25; margin-top: 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.prose p { margin: 0; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Building pages: link back to the list */
.crumbs { padding: 10px 10px 0; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 600; text-decoration: none; }
.hero-tight { padding-top: 10px; }
.cta-line { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; font-weight: 600; }

/* List of buildings */
.search { -webkit-appearance: none; appearance: none; }
.blist { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.blist li { border-bottom: 1px solid var(--line-soft); }
.blist li:last-child { border-bottom: 0; }
.blist li.is-last { border-bottom: 0; }
.blist a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px 12px 18px; color: var(--ink); text-decoration: none; }
.blist a:hover { background: #FBFAF6; color: var(--ink); }
.b-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.b-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.b-addr { font-size: 14px; line-height: 1.4; color: var(--muted); }
.b-meta { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--accent); }
.b-go { flex-shrink: 0; color: var(--accent); }
.missing { margin: 0 20px 30px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.missing p { margin: 0; color: var(--ink-2); }
.choices .span-2 { grid-column: span 2; }
fieldset .small { margin-top: 2px; }
.input.floor { max-width: 160px; }


/* Highland branding: same palette as aristarr.com (navy #002D5B, sky #BCDDF4, cream #EFEBE3) */
:root {
  --sand: #EFEBE3;
  --card: #FFFFFF;
  --line: #E2DDD3;
  --line-soft: #EDEDED;
  --ink: #002D5B;
  --ink-2: #002D5B;
  --muted: #33577C;
  --accent: #002D5B;
  --accent-dark: #001C3A;
  --accent-tint: #BCDDF4;
  --option-line: #B8C4D0;
  --ring: #002D5B;
  --track: #D6DEE6;
  --disabled: #C9D3DD;
  --disabled-ink: #002D5B;
}
@media (min-width: 520px) { body { background: #E6E1D6; } }
h1, h2, h3 { font-weight: 500; }
.site-header, .topbar { background: #BCDDF4; border-bottom: 0; }
.brand-sub { color: #002D5B; }
.btn { background: #BCDDF4; color: #002D5B; border-radius: 3px; }
.btn:hover { background: #A9D2EF; color: #002D5B; }
.card, .btn-outline, .btn-plain, .input, .choice, .option, .consent, .notice, .confirm, .chip { border-radius: 3px; }
.site-footer { background: #EFEBE3; border-top: 1px solid #E2DDD3; }

/* Desktop layout: fill the screen on computers. Phones stay exactly as before. */
@media (min-width: 960px) {
  body { background: #EFEBE3; }
  .page { max-width: none; box-shadow: none; }
  .site-header { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 22px max(40px, calc((100% - 1120px) / 2)); }
  .brand-name { font-size: 24px; }
  .site-footer { padding: 32px max(40px, calc((100% - 1120px) / 2)); }
  .page > div > main { max-width: 1120px; margin: 0 auto; padding: 40px 40px 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; align-items: start; }
  .page > div > main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
  .page > div > main > .crumbs,
  .page > div > main > .hero,
  .page > div > main > section:last-child,
  .page > div > main > section:has(#blist) { grid-column: 1 / -1; }
  .hero { max-width: 760px; padding-left: 0; padding-right: 0; }
  .hero h1 { font-size: 60px; }
  .lead { font-size: 19px; }
  .btn { max-width: 400px; }
  .two-buttons .btn { max-width: none; }
  .search { max-width: 520px; }
  #blist { display: grid; grid-template-columns: repeat(3, 1fr); }
  #blist li { border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
  .page > section.step { max-width: 640px; margin: 48px auto; min-height: 0; background: #FFFFFF; border: 1px solid #E2DDD3; border-radius: 3px; }
  .page > div > main > section.section { padding-left: 0; padding-right: 0; }
  .hero .small.center { display: block; max-width: 400px; }
  .step .btn { max-width: none; }
}
