/*
  Breinz — the company site.

  The palette, type scale and spacing are lifted deliberately from
  smartebuild.com.au (WebsiteAstro/src/styles/tokens.css) so the two sites read
  as one business. Written as plain CSS with no build step: this site is one
  page, and it should be publishable by dropping a folder on a server.

  If the SmarteBuild tokens ever change, change them here too — they are
  duplicated on purpose, not shared, because the two sites are hosted apart.
*/

:root {
  --b-blue: #346cb0;
  --b-blue-deep: #24507f;
  --b-blue-wash: #eaf1f9;
  --b-blue-tint: #dde8f5;
  --b-teal: #00a28a;
  --b-teal-deep: #007764;
  --b-ink: #141b24;
  --b-body: #38434f;
  --b-muted: #5e6b7a;
  --b-faint: #8894a3;
  --b-rule: #d9e1ea;
  --b-rule-soft: #e6ebf2;
  --b-ground: #f3f6fa;
  --b-paper: #ffffff;

  --b-font: 'Fira Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --b-step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --b-step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --b-step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3125rem);
  --b-step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --b-step-3: clamp(1.75rem, 1.52rem + 1.1vw, 2.4rem);
  --b-step-4: clamp(2.1rem, 1.72rem + 1.9vw, 3.2rem);

  --b-gap-xs: 0.5rem;
  --b-gap: 1.25rem;
  --b-gap-l: 2rem;
  --b-gap-xl: 3.5rem;
  --b-band: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);

  --b-radius: 10px;
  --b-shadow-s: 0 1px 2px rgba(20, 27, 36, 0.06), 0 1px 3px rgba(20, 27, 36, 0.05);
  --b-container: 1100px;
}

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

body {
  margin: 0;
  font-family: var(--b-font);
  font-size: var(--b-step-0);
  line-height: 1.65;
  color: var(--b-body);
  background: var(--b-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--b-ink); line-height: 1.2; margin: 0 0 var(--b-gap); }
h1 { font-size: var(--b-step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--b-step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--b-step-1); }
p { margin: 0 0 var(--b-gap); }
a { color: var(--b-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--b-blue-deep); }

.container { width: min(100% - 2.5rem, var(--b-container)); margin-inline: auto; }
.band { padding-block: var(--b-band); }
.band--ground { background: var(--b-ground); }
.band--ink { background: var(--b-ink); color: #cfd8e3; }
.band--ink h2 { color: #fff; }
.measure { max-width: 46rem; }
.lede { font-size: var(--b-step-1); color: var(--b-body); }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b-blue-deep);
  margin-bottom: var(--b-gap-xs);
}

/* ---- header ---- */
.hdr {
  border-bottom: 1px solid var(--b-rule-soft);
  background: var(--b-paper);
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-gap);
  padding-block: 1rem;
  flex-wrap: wrap;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.mark__b {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 7px;
  background: var(--b-blue);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.hdr__nav { display: flex; align-items: center; gap: var(--b-gap); flex-wrap: wrap; }
.hdr__nav a { color: var(--b-body); text-decoration: none; font-size: var(--b-step--1); }
.hdr__nav a:hover { color: var(--b-blue); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--b-step--1);
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--b-blue); color: #fff; }
.btn--primary:hover { background: var(--b-blue-deep); color: #fff; }
.btn--ghost { border-color: var(--b-rule); color: var(--b-ink); background: var(--b-paper); }
.btn--ghost:hover { border-color: var(--b-blue); color: var(--b-blue); }
.btn--onink { background: #fff; color: var(--b-ink); }
.btn--onink:hover { background: var(--b-blue-tint); color: var(--b-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- hero ---- */
.hero { padding-block: var(--b-band); background: linear-gradient(180deg, var(--b-ground), var(--b-paper)); }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 42rem; }
.hero .btn-row { margin-top: var(--b-gap-l); }

/* ---- the product card ---- */
.product {
  display: grid;
  gap: var(--b-gap-l);
  padding: var(--b-gap-xl);
  background: var(--b-paper);
  border: 1px solid var(--b-rule);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow-s);
}
@media (min-width: 820px) { .product { grid-template-columns: 1fr 17rem; align-items: start; } }
.product h3 { font-size: var(--b-step-2); margin-bottom: 0.4rem; }
.product__tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--b-teal-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.ticks { list-style: none; margin: 0 0 var(--b-gap); padding: 0; display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--b-blue-tint);
  box-shadow: inset 0 0 0 2px var(--b-blue);
}

/* ---- product screenshots ---- */
.shots {
  display: grid;
  gap: var(--b-gap-l);
  margin-top: var(--b-gap-xl);
}
@media (min-width: 900px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--b-rule);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow-s);
  background: var(--b-paper);
}
.shot figcaption {
  margin-top: 0.6rem;
  font-size: var(--b-step--1);
  color: var(--b-muted);
}
.shot figcaption strong { color: var(--b-ink); }

/* ---- phone screenshots ---- */
.phones__head { margin-top: var(--b-gap-xl); margin-bottom: 0.3rem; }
.phones__lede { margin-bottom: 0; }
.phones {
  display: grid;
  gap: var(--b-gap-l);
  margin-top: var(--b-gap-l);
}
.phone { margin: 0 auto; width: 100%; max-width: 20rem; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--b-rule);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow-s);
  background: var(--b-paper);
}
.phone figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--b-muted);
}
@media (min-width: 760px) {
  .phones { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  /* the three screenshots are not all the same shape, so stand them on the
     same line along the bottom; then the captions under them line up too */
  .phone { max-width: none; display: flex; flex-direction: column; }
  .phone img { margin-top: auto; }
  /* better still where the browser has it: the three figures share one image row
     and one caption row, so a caption that runs to two lines cannot push its
     screenshot up out of line with the others */
  @supports (grid-template-rows: subgrid) {
    .phones { grid-template-rows: auto auto; }
    .phone { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
    .phone img { align-self: end; margin-top: 0; }
  }
}

/* ---- split ---- */
.split { display: grid; gap: var(--b-gap-xl); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---- company facts ---- */
.facts { margin: var(--b-gap-l) 0 0; }
.facts__row {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--b-rule-soft);
}
@media (min-width: 620px) {
  .facts__row { grid-template-columns: 13rem 1fr; gap: var(--b-gap); align-items: baseline; }
}
.facts dt { font-weight: 600; color: var(--b-ink); }
.facts dd { margin: 0; color: var(--b-body); }

/* ---- contact ---- */
.direct { list-style: none; margin: var(--b-gap-l) 0 0; padding: 0; display: grid; gap: var(--b-gap); }
.direct span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b-faint);
  margin-bottom: 0.15rem;
}
.direct a { color: #fff; text-decoration: none; font-size: var(--b-step-1); }
.direct a:hover { text-decoration: underline; }
.direct p { margin: 0; color: #cfd8e3; }

.enq {
  background: var(--b-paper);
  border-radius: var(--b-radius);
  padding: var(--b-gap-xl);
  color: var(--b-body);
}
.enq h3 { margin-bottom: 0.3rem; }
.enq__lede { font-size: var(--b-step--1); color: var(--b-muted); margin-bottom: var(--b-gap-l); }
.enq label { display: block; margin-bottom: var(--b-gap); font-weight: 600; color: var(--b-ink); font-size: var(--b-step--1); }
.enq small { font-weight: 400; color: var(--b-muted); }
.enq input,
.enq textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 400;
  color: var(--b-ink);
  background: var(--b-paper);
  border: 1px solid var(--b-rule);
  border-radius: 7px;
}
.enq input:focus-visible,
.enq textarea:focus-visible { outline: 2px solid var(--b-blue); outline-offset: 1px; border-color: var(--b-blue); }
.enq textarea { resize: vertical; }
.enq__row { display: grid; gap: var(--b-gap); }
@media (min-width: 560px) { .enq__row { grid-template-columns: 1fr 1fr; } }
.enq__fine { font-size: 0.8rem; color: var(--b-muted); margin: -0.4rem 0 var(--b-gap); }
.enq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enq__foot { display: flex; align-items: center; gap: var(--b-gap); flex-wrap: wrap; margin-top: var(--b-gap-l); }
.enq__status { margin: 0; font-size: var(--b-step--1); color: var(--b-muted); }
.enq__status[data-kind='ok'] { color: var(--b-teal-deep); font-weight: 600; }
.enq__status[data-kind='bad'] { color: #a32d4c; font-weight: 600; }

/* ---- footer ---- */
.ftr {
  background: var(--b-ink);
  color: #9aa7b8;
  padding-block: var(--b-gap-xl) var(--b-gap-l);
  font-size: var(--b-step--1);
}
.ftr a { color: #cfd8e3; }
.ftr a:hover { color: #fff; }
.ftr__in { display: flex; flex-wrap: wrap; gap: var(--b-gap); justify-content: space-between; }
.ftr__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--b-gap); margin: 0; padding: 0; }
.ftr__legal { margin-top: var(--b-gap-l); padding-top: var(--b-gap); border-top: 1px solid rgba(255,255,255,0.08); }

.note { font-size: var(--b-step--1); color: var(--b-muted); }
