/* Unitgrove — site styles
   Palette: asphalt text, concrete ground, grove green, lot-line yellow, overdue red */
:root {
  --asphalt: #1E2226;
  --asphalt-2: #3A4047;
  --muted: #5E666E;
  --concrete: #EEF0EE;
  --concrete-2: #E1E5E2;
  --paper: #FFFFFF;
  --grove: #1D5A43;
  --grove-ink: #134030;
  --grove-soft: #D7E8DF;
  --line: #F2C230;
  --line-soft: #FBEFC4;
  --overdue: #C2452D;
  --overdue-soft: #F6DCD5;
  --rule: #CDD3CF;
  --focus: #1D5A43;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.5rem, 5.4vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--grove); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--grove-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--asphalt);
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--asphalt); font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.25rem; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: var(--step--1); }
.nav a { color: var(--asphalt-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--grove); text-decoration: underline; }
.nav .btn { color: var(--paper); text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 4rem; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--rule); z-index: 5; font-size: var(--step-0); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: .4rem .7rem; font: inherit; font-size: var(--step--1); color: var(--asphalt); cursor: pointer; }
  .site-header { position: relative; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--grove); color: var(--paper);
  font-family: var(--f-body); font-weight: 650; font-size: var(--step-0);
  padding: .8rem 1.3rem; border: 0; border-radius: 6px; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--grove-ink); color: var(--paper); text-decoration: none; }
.btn.small { padding: .5rem .9rem; font-size: var(--step--1); }
.btn.ghost { background: transparent; color: var(--grove); box-shadow: inset 0 0 0 2px var(--grove); }
.btn.ghost:hover { background: var(--grove-soft); color: var(--grove-ink); }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--asphalt-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.hero-note { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* The site map — the one memorable thing: a product window, slightly tilted, with a live toast */
.mapstage { position: relative; perspective: 1600px; padding: 0 0 2.9rem 0; }
.app {
  margin: 0; background: var(--paper); border: 1px solid #D5DBD7; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(30,34,38,.06), 0 24px 48px -18px rgba(19,64,48,.35);
  transform: rotateY(-7deg) rotateX(3deg); transform-origin: 60% 50%;
}
.app-bar { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; background: #F4F6F5; border-bottom: 1px solid #E3E8E5; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D7DCD9; }
.dots i:first-child { background: #E9A39A; } .dots i:nth-child(2) { background: #EED38A; } .dots i:last-child { background: #9CCDB2; }
.tabs { display: flex; gap: .3rem; font-size: .75rem; color: var(--muted); }
.tabs > * { padding: .25rem .6rem; border-radius: 6px; font-weight: 500; }
.tabs b { background: var(--paper); color: var(--asphalt); box-shadow: 0 0 0 1px #E1E6E3; font-weight: 650; }
.app-head { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.1rem .8rem; }
.ring-wrap { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: #E6EBE8; }
.ring-fg { stroke: var(--grove); stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.app-head strong { display: block; font-family: var(--f-display); font-stretch: 108%; font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.app-head small { display: block; font-size: .72rem; color: var(--muted); }
.stat { text-align: right; }
#due { color: var(--overdue); }
.yard { margin: 0 1.1rem; padding: .9rem; border-radius: 10px; background: #2B3034;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 12px 12px; }
.bldg { background: #3A4045; border-radius: 6px; padding: 6px; display: grid; gap: 6px; }
.row { display: grid; gap: 5px; }
.row.r10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.row.r5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aisle { position: relative; height: 34px; margin: 2px 0; }
.aisle::before { content: ""; position: absolute; left: 3.4rem; right: 0; top: 50%; border-top: 2px dashed rgba(242,194,48,.7); }
.gate { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: .62rem; font-weight: 700; color: #2B3034; background: var(--line); padding: .15rem .45rem; border-radius: 3px; letter-spacing: .02em; }
.u {
  position: relative; aspect-ratio: 1 / 1.1; border-radius: 3px; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 3px; font-family: var(--f-display); font-stretch: 90%; font-size: .58rem; font-weight: 650;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.13) 0 1px, transparent 1px 5px);
  transition: background-color .6s ease, box-shadow .6s ease, transform .6s ease;
}
.u.wide { aspect-ratio: 2.1 / 1.1; }
.u span { background: rgba(0,0,0,.18); padding: 0 3px; border-radius: 2px; line-height: 1.5; }
.u.occupied { background-color: #2C7259; color: #E3F1EA; }
.u.vacant { background-color: #474E54; background-image: none; color: #A7B0AB; box-shadow: inset 0 0 0 1.5px #69726D; }
.u.vacant span { background: none; }
.u.reserved { background-color: var(--line); color: #3D3210; }
.u.reserved span { background: rgba(255,255,255,.35); }
.u.overdue { background-color: var(--overdue); color: #FFE9E2; }
.u.flash { box-shadow: 0 0 0 2px #FFFFFF, 0 0 16px 2px rgba(242,194,48,.75); transform: translateY(-2px); z-index: 1; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1rem; padding: .8rem 1.1rem 1rem; font-size: .74rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.k { width: .75rem; height: .75rem; border-radius: 2px; display: inline-block; }
.k.occupied { background: #2C7259; } .k.vacant { background: #474E54; box-shadow: inset 0 0 0 1.5px #69726D; }
.k.reserved { background: var(--line); } .k.overdue { background: var(--overdue); }
.toast {
  position: absolute; left: -1.25rem; bottom: 0; display: flex; align-items: center; gap: .7rem;
  background: var(--paper); border: 1px solid #DDE3DF; border-radius: 12px; padding: .65rem .95rem .65rem .7rem;
  box-shadow: 0 16px 32px -12px rgba(30,34,38,.35); width: 17.5rem;
  opacity: 0; transform: translateY(10px);
}
.toast.show { animation: toast-in .45s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes toast-in { to { opacity: 1; transform: translateY(0); } }
.toast strong { display: block; font-size: .85rem; line-height: 1.3; }
.toast small { display: block; font-size: .74rem; color: var(--muted); }
.toast-ico { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--grove-soft); color: var(--grove); }
.toast[data-kind="warn"] .toast-ico { background: var(--overdue-soft); color: var(--overdue); }
.toast[data-kind="info"] .toast-ico { background: var(--line-soft); color: #7A5D00; }
@media (max-width: 900px) {
  .app { transform: none; }
  .mapstage { padding-bottom: 4.75rem; }
  .toast { left: .75rem; right: .75rem; width: auto; }
  .legend { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .app-head { gap: .9rem; }
  .stat:last-child { display: none; }
  .u { font-size: .5rem; }
  .u span { padding: 0 1px; }
  .yard { margin: 0 .6rem; padding: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .toast { opacity: 1; transform: none; } .app { transform: none; } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.white { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-intro { max-width: 40rem; margin-bottom: 2.5rem; }
.section-intro p { color: var(--asphalt-2); font-size: var(--step-1); line-height: 1.5; }

/* Job rows: what it does */
.jobs { display: grid; gap: 0; border-top: 2px solid var(--asphalt); }
.job { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem 3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.job h3 { margin: 0; }
.job p { margin: 0; color: var(--asphalt-2); max-width: 46rem; }
@media (max-width: 720px) { .job { grid-template-columns: 1fr; gap: .4rem; } }

/* Industries: unit types */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.industry {
  display: block; text-decoration: none; color: var(--asphalt);
  background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--grove);
  padding: 1.25rem 1.1rem 1.4rem; border-radius: 4px;
}
.industry:nth-child(2) { border-top-color: var(--line); }
.industry:nth-child(3) { border-top-color: var(--asphalt-2); }
.industry:nth-child(4) { border-top-color: var(--overdue); }
.industry h3 { margin-bottom: .35rem; }
.industry p { font-size: var(--step--1); color: var(--asphalt-2); margin: 0 0 .9rem; }
.industry .go { font-size: var(--step--1); font-weight: 650; color: var(--grove); text-decoration: underline; }
.industry:hover h3 { color: var(--grove); }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } }

/* Steps — a real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-left: 3px solid var(--line); padding-left: 1.1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 2.2rem; line-height: 1; color: var(--grove); margin-bottom: .5rem; }
.steps p { color: var(--asphalt-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Compare table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0 2rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); min-width: 32rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--concrete-2); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--grove); }
.plan h3 { margin-bottom: .2rem; }
.plan .units { color: var(--muted); font-size: var(--step--1); margin-bottom: 1rem; }
.price { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 2.6rem; line-height: 1; }
.price small { font-family: var(--f-body); font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin: 1.2rem 0 1.5rem; font-size: var(--step--1); color: var(--asphalt-2); }
.plan ul li { margin-bottom: .35rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.founding { background: var(--line-soft); border-left: 4px solid var(--line); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; margin: 0 0 2rem; max-width: 46rem; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.4rem; line-height: 1; color: var(--grove); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--asphalt-2); }

/* Waitlist */
.waitlist { background: var(--grove); color: #EAF3EE; border-radius: 10px; padding: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
.waitlist h2 { color: var(--paper); }
.waitlist p { color: #CFE1D7; }
.waitlist a { color: var(--line); }
@media (max-width: 860px) { .waitlist { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: .3rem; color: var(--paper); }
.form input, .form select {
  width: 100%; font: inherit; font-size: var(--step-0); padding: .7rem .8rem; border-radius: 6px;
  border: 1px solid #A9C6B7; background: var(--paper); color: var(--asphalt);
}
.form .btn { background: var(--line); color: var(--asphalt); width: 100%; }
.form .btn:hover { background: #E3B21F; color: var(--asphalt); }
.form .fine { font-size: .8rem; color: #B9D2C4; margin: 0; }
.hp { position: absolute !important; left: -5000px !important; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Industry & generic page header */
.page-head { background: var(--paper); border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { font-size: var(--step-1); color: var(--asphalt-2); max-width: 40rem; line-height: 1.5; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }

/* Two-col feature list on industry pages */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; }
.split h3 { margin-bottom: .3rem; }
.split p { color: var(--asphalt-2); margin: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Articles */
.article-layout { display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 1fr); gap: 4rem; padding: 2.5rem 0 4rem; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: .8rem 1.2rem; border-left: 4px solid var(--line); background: var(--line-soft); border-radius: 0 6px 6px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose .table-wrap table { font-size: .95rem; }
.prose code { background: var(--concrete-2); padding: .1em .35em; border-radius: 3px; font-size: .92em; }
.byline { font-size: var(--step--1); color: var(--muted); margin-top: 1rem; }
.answer { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--grove); padding: 1.1rem 1.3rem; border-radius: 0 6px 6px 0; margin: 0 0 2rem; }
.answer strong:first-child { display: block; font-family: var(--f-display); font-stretch: 112%; margin-bottom: .3rem; }
.answer p:last-child { margin: 0; }
.aside-box { position: sticky; top: 1.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 1.4rem; }
.aside-box h3 { font-size: 1.15rem; }
.aside-box p { font-size: var(--step--1); color: var(--asphalt-2); }
.related { list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: var(--step--1); }
.related li { padding: .45rem 0; border-top: 1px solid var(--rule); }

/* Blog index */
.post-groups { display: grid; gap: 3rem; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--asphalt); }
.post-list li { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 2rem; }
.post-list a { font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--asphalt); }
.post-list a:hover { color: var(--grove); text-decoration: underline; }
.post-list p { grid-column: 1; margin: 0; color: var(--asphalt-2); font-size: var(--step--1); }
.post-list time { grid-row: 1; grid-column: 2; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) { .post-list li { grid-template-columns: 1fr; } .post-list time { grid-row: auto; grid-column: 1; } }

/* Footer */
.site-footer { background: var(--asphalt); color: #C9CFCB; padding: 3.5rem 0 2rem; font-size: var(--step--1); }
.site-footer a { color: #E6EAE7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot-grid h4 { color: var(--paper); font-size: 1rem; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-base { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #3B4146; color: #9BA39F; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Home: three short points */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.trio > div { border-top: 3px solid var(--grove); padding-top: 1rem; }
.trio h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.trio p { color: var(--asphalt-2); margin: 0; }
@media (max-width: 800px) { .trio { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* No double gap when two plain sections meet */
.section:not(.white) + #waitlist { padding-top: 0; }
