/* crosstowntech.com/build/ — the build-studio landing page.
   Self-contained by necessity: the root site's /style.css and /assets/* are hashed by
   vite at build time, so a static page copied into dist/ cannot link them. The tokens,
   type scale, card treatment and spacing below MIRROR root style.css deliberately —
   if the root design changes, change it here too. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --color-background: #ffffff;
  --color-foreground: #0a0a0a;
  --color-muted: #6b7280;
  --color-muted-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-card: #ffffff;
  --color-soft: #f9fafb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .15s ease, opacity .15s ease; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }
.narrow { max-width: 820px; margin: 0 auto; }

/* ---------- header / footer (mirrors root) ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; max-width: 1180px; margin: 0 auto; width: 100%;
}
@media (min-width: 768px) { .site-header { padding: 1.5rem 1.75rem; } }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; letter-spacing: -.01em; }
.logo-mark { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; color: var(--color-muted); }
.nav-links a:hover { color: var(--color-foreground); }

.site-footer {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 2rem 1.5rem; border-top: 1px solid var(--color-border);
  margin: 3rem auto 0; max-width: 1180px; width: 100%;
  font-size: .75rem; color: var(--color-muted);
}
@media (min-width: 640px) { .site-footer { flex-direction: row; } }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a:hover { color: var(--color-foreground); }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
@media (min-width: 768px) { .hero { padding: 5rem 0 3rem; } }
.hero-content { max-width: 760px; text-align: center; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 500; letter-spacing: -.045em;
  line-height: 1.05; margin-bottom: 1.25rem; text-wrap: balance;
}
.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--color-muted); line-height: 1.65;
  max-width: 580px; margin: 0 auto; text-wrap: balance;
}

/* trust strip */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: .8125rem; color: var(--color-muted); }

/* ---------- sections ---------- */
section { padding: 3rem 0; }
@media (min-width: 768px) { section { padding: 4rem 0; } }
.section-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .75rem; text-align: center; }
@media (min-width: 768px) { .section-title { font-size: 1.75rem; } }
.section-sub { text-align: center; color: var(--color-muted); max-width: 620px; margin: 0 auto 3rem; text-wrap: balance; }

/* ---------- configurator ---------- */
.quote-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1fr 400px; } }

.quote-form, .quote-result {
  border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-card);
  padding: 1.75rem;
}
@media (min-width: 900px) { .quote-result { position: sticky; top: 1.5rem; } }
.quote-result { background: var(--color-soft); }

.bq-row { margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.bq-row:last-of-type { margin-bottom: 0; }
.bq-row > label, .bq-extras legend { font-weight: 500; font-size: .9375rem; }
.bq-form-title { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 1.25rem; }
select, textarea {
  padding: .65rem .7rem; border: 1px solid var(--color-border); border-radius: 8px;
  font: inherit; font-size: .9375rem; background: #fff; color: inherit; width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
  padding-right: 2.2rem;
}
textarea { appearance: auto; background-image: none; padding-right: .7rem; resize: vertical; }
/* A <select>'s min-width:auto resolves to its WIDEST OPTION's text, which width:100%
   cannot override — the longest build option is ~430px and was widening the whole
   document to ~500px on a 390px phone. min-width:0 lets it shrink; ellipsis keeps the
   collapsed label readable. */
select, textarea { min-width: 0; }
select { text-overflow: ellipsis; }
select:focus, textarea:focus { outline: 2px solid var(--color-foreground); outline-offset: 1px; }
.bq-extras { border: 0; padding: 0; margin-bottom: 1.15rem; }
.bq-extras label { font-weight: 400; font-size: .9375rem; display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.bq-extras input { width: 16px; height: 16px; accent-color: var(--color-foreground); }
.bq-hint { font-weight: 400; color: var(--color-muted); font-size: .8125rem; }

.bq-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted-light); margin-bottom: .5rem; }
.bq-price { font-size: 2rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.bq-time { color: var(--color-muted); font-size: .875rem; margin-top: .45rem; }
.bq-incl { list-style: none; margin: 1.15rem 0 0; padding: 0; border-top: 1px solid var(--color-border); padding-top: 1rem; }
.bq-incl li { font-size: .875rem; color: var(--color-muted); line-height: 1.5; padding-left: 1.35rem; position: relative; margin-bottom: .5rem; }
.bq-incl li::before { content: "✓"; position: absolute; left: 0; color: var(--color-foreground); font-size: .8rem; }

.btn {
  display: block; width: 100%; text-align: center; margin-top: 1.25rem;
  padding: .8rem 1.25rem; border-radius: 9px; background: var(--color-foreground);
  color: #fff; font-weight: 500; font-size: .9375rem;
}
.btn:hover { opacity: .85; }
.btn-note { text-align: center; margin-top: .6rem; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: .55; cursor: default; }

/* ---------- contact block: the Zoho hand-off ---------- */
.bq-contact { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--color-border); }
.bq-contact .bq-row { margin-bottom: .85rem; }
input[type="text"], input[type="email"] {
  padding: .65rem .7rem; border: 1px solid var(--color-border); border-radius: 8px;
  font: inherit; font-size: .9375rem; background: #fff; color: inherit;
  width: 100%; min-width: 0;
}
input[type="text"]:focus, input[type="email"]:focus {
  outline: 2px solid var(--color-foreground); outline-offset: 1px;
}
/* Honeypot. Positioned off-screen rather than display:none — bots increasingly skip
   display:none fields; tabindex="-1" plus aria-hidden keep it away from real people. */
.bq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bq-sent { text-align: center; margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--color-border); }
.bq-sent-mark { font-size: 1.75rem; line-height: 1; }
.bq-sent h3 { font-size: 1.0625rem; font-weight: 500; margin: .6rem 0 .4rem; }
.bq-sent p { color: var(--color-muted); font-size: .875rem; line-height: 1.5; }
.bq-sent a { text-decoration: underline; }

/* ---------- portfolio ---------- */
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }
.product-card {
  padding: 1.75rem; border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-card); display: flex; flex-direction: column; gap: .875rem;
  transition: border-color .15s ease;
}
.product-card:hover { border-color: var(--color-muted-light); }
.product-icon { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; }
.product-card h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.product-card p { font-size: .9375rem; color: var(--color-muted); line-height: 1.6; flex: 1; }
.product-meta { font-size: .8125rem; color: var(--color-muted-light); }
.product-link { font-size: .875rem; font-weight: 500; align-self: flex-start; }
.product-link:hover { opacity: .6; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.5rem 1.75rem; border: 1px solid var(--color-border); border-radius: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--color-foreground);
  color: #fff; font-size: .8125rem; font-weight: 500; margin-bottom: .85rem;
}
.step h3 { font-size: 1rem; font-weight: 500; margin-bottom: .35rem; }
.step p { font-size: .9375rem; color: var(--color-muted); line-height: 1.6; }

/* ---------- price drivers + faq ---------- */
.driver { margin-bottom: 1.75rem; }
.driver h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: .3rem; }
.driver p { color: var(--color-muted); line-height: 1.7; }

details { border-bottom: 1px solid var(--color-border); padding: 1.05rem 0; }
details:first-of-type { border-top: 1px solid var(--color-border); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--color-muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: .75rem; color: var(--color-muted); line-height: 1.7; }
details a { text-decoration: underline; text-underline-offset: 2px; }

.closer { text-align: center; padding-bottom: 1rem; }
.closer .btn { display: inline-block; width: auto; padding-left: 2rem; padding-right: 2rem; }

/* ---------- small screens ----------
   The header is flex with no wrap: logo + 4 nav links exceed ~390px and widen the
   whole document, which clips every section to the right. Wrap it and tighten. */
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; gap: .5rem 1rem; padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; font-size: .85rem; }
  .stats { gap: 1.5rem 2rem; margin-top: 2rem; }
  .stat-num { font-size: 1.4rem; }
  .quote-form, .quote-result { padding: 1.35rem; }
  .bq-price { font-size: 1.7rem; }
  .hero { padding: 2.5rem 0 1.5rem; }
}
