/* The new homepage (release 7c-1, #21) and the "What we're building" page. Plain words, little text, built for phones first.
   Colours come from theme.css. */
/* ---------- hero: the words and buttons stay put; only the picture beside them changes (hero-show.css) */
.home-hero { padding: 64px 0 48px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.home-hero .hero-inner { max-width: 540px; padding: 0; margin: 0; }
.home-hero h1 { font-size: clamp(36px, 3.45vw, 44px); line-height: 1.12; margin-bottom: 18px; }
.home-hero .hero-sub { font-size: 18px; margin-bottom: 26px; }
.home-hero .hero-actions { flex-wrap: wrap; }
.home-hero .sub-short { display: none; }
.home-hero .hero-trust { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.home-hero .hero-trust::before { content: ""; flex: none; width: 16px; height: 18px; margin-top: 2px; background: var(--amber-dark); clip-path: polygon(50% 0, 100% 16%, 100% 56%, 50% 100%, 0 56%, 0 16%); }
.home-hero .hero-facts { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.home-hero .hero-facts li::before { content: "✓"; margin-right: 6px; color: var(--amber-dark); font-weight: 700; }
.home-hero .hero-facts a, .home-hero .hero-wa a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 2px 0; }
.home-hero .t-short, .home-hero .hero-wa { display: none; }
.home-hero .hero-wa { margin: 6px 0 0; font-size: 13px; }
@media (max-width: 999px) {
  .home-hero { padding: 32px 0 28px; }
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .home-hero h1 { font-size: 36px; }
  .home-hero .hero-sub { font-size: 16px; margin-bottom: 20px; }
}
@media (max-width: 480px) { .home-hero .hero-actions .btn { width: 100%; } }
/* phones: the words start right under the header and the picture follows at once; headline, short line and Get started fit one screen */
@media (max-width: 760px) {
  .home-hero { padding: 0 0 16px; }
  .hero-split { gap: 16px; }
  .home-hero .hero-inner { display: flex; flex-direction: column; max-width: none; padding: 20px 0 0; }
  .home-hero .hero-actions .btn-outline-dark { display: none; }
  .home-hero .sub-long { display: none; }
  .home-hero .sub-short { display: inline; }
  .home-hero h1 { font-size: clamp(29px, 9.2vw, 42px); margin-bottom: 14px; }
  .home-hero .hero-sub { font-size: 17px; margin-bottom: 20px; }
  .home-hero .hero-actions .btn { width: 100%; min-height: 54px; font-size: 17px; }
  .home-hero .hero-trust { font-size: 13px; margin-top: 14px; }
  /* one compact line under Get started, then the registration line and the WhatsApp link */
  .home-hero .hero-facts { order: 1; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: clamp(10.5px, 3.1vw, 13px); white-space: nowrap; }
  .home-hero .hero-facts li::before { margin-right: 3px; }
  .home-hero .hero-facts .t-long, .home-hero .hero-facts .fact-wide { display: none; }
  .home-hero .hero-facts .t-short { display: inline; }
  .home-hero .hero-trust { order: 2; }
  .home-hero .hero-wa { order: 3; display: block; }
  .home-hero .show { margin-top: 0; }
}
@media (max-width: 360px) { .home-hero .hero-sub { font-size: 15px; } }
@media (max-width: 760px) and (max-height: 640px) {
  .home-hero .hero-inner { padding: 10px 0; }
  .home-hero h1 { font-size: clamp(26px, 8vw, 32px); margin-bottom: 10px; }
  .home-hero .hero-sub { margin-bottom: 14px; }
  .home-hero .hero-actions .btn { min-height: 48px; }
  .home-hero .hero-trust { margin-top: 10px; }
}

/* ---------- section titles */
.home-title { font-size: 32px; margin-bottom: 8px; }
.home-lead { font-size: 16px; margin-bottom: 28px; max-width: 560px; }
@media (max-width: 600px) { .home-title { font-size: 26px; } }

/* ---------- what we build */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.build-card { display: flex; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.build-card:hover, .build-card:focus-within { transform: translateY(-3px); border-color: var(--amber-dark); box-shadow: 0 16px 32px rgba(23, 21, 15, .12); }
.build-link { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 22px; border-radius: var(--radius); color: inherit; }
.build-link:focus-visible { outline: 3px solid var(--amber-dark); outline-offset: 2px; }
.build-card svg { width: 30px; height: 30px; color: var(--amber-dark); }
.build-card h3 { font-size: 18px; }
.build-card p { font-size: 14px; }
.build-card h3 + p { flex: 1; }
.build-price { font-size: 20px !important; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; min-height: 30px; }
.build-note { font-size: 12.5px !important; color: var(--ink-soft); margin-top: -6px; }
.build-start { align-self: flex-start; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.build-more { margin-top: 18px; font-size: 14px; }
.build-more a { text-decoration: underline; }
@media (max-width: 960px) { .build-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .build-grid { grid-template-columns: 1fr; } }

/* ---------- our work */
.work-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--amber); color: #1a1305; font-size: 12px; font-weight: 700; }
/* one big card at a time; it can be swiped, and slides on by itself (home.js) */
.wc { max-width: 620px; margin: 0 auto; }
.wc-track { display: flex; gap: 16px; margin: 0; padding: 4px 0 10px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wc-track::-webkit-scrollbar { display: none; }
.wc-track:focus-visible { outline: 3px solid var(--amber-dark); outline-offset: 2px; border-radius: var(--radius); }
.wc-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.wc-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); color: inherit; }
.wc-card:focus-visible { outline: 3px solid var(--amber-dark); outline-offset: -3px; }
.wc-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.wc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; flex: 1; }
.wc-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; font-weight: 800; color: var(--ink); }
.wc-title small { font-size: 12px; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--surface-line); border-radius: 99px; padding: 2px 9px; }
.wc-line { font-size: 15px; color: var(--ink-soft); flex: 1; }
.wc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--tan); color: var(--ink); }
.wc-view { align-self: stretch; text-align: center; }
@media (min-width: 760px) { .wc-view { align-self: flex-start; } }
.wc-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.wc-dots { display: flex; }
.wc-controls button { display: grid; place-items: center; min-width: 40px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 10px; font: inherit; font-size: 14px; }
.wc-controls button[hidden] { display: none; }
.wc-dot::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: currentColor; opacity: .3; transition: width .25s ease, opacity .25s ease; }
.wc-dot[aria-current="true"]::before { width: 22px; opacity: 1; background: #e8b84b; box-shadow: inset 0 0 0 1px rgba(23, 21, 15, .35); }
.wc-controls button:focus-visible { outline: 3px solid var(--amber-dark); outline-offset: -3px; }
.wc-count { font-size: 13px; font-weight: 600; color: var(--ink-soft); min-width: 48px; text-align: center; }
@media (max-width: 420px) { .wc-controls .wc-dot { min-width: 34px; } }

/* ---------- how it works */
/* a timeline: the steps joined by a line, across on wide screens and down on phones */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; background: var(--amber); color: #1a1305; font-weight: 800; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 3px; background: var(--amber); opacity: .55; transform-origin: left; }
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { font-size: 14px; }
.steps.is-animated li > * , .steps.is-animated li::before { opacity: 0; transform: translateY(10px); transition: opacity .45s ease var(--wait, 0s), transform .45s ease var(--wait, 0s); }
.steps.is-animated li:not(:last-child)::after { transform: scaleX(0); transition: transform .5s ease calc(var(--wait, 0s) + .2s); }
.steps.is-animated li.is-in > *, .steps.is-animated li.is-in::before { opacity: 1; transform: none; }
.steps.is-animated li.is-in:not(:last-child)::after { transform: none; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start; text-align: left; padding: 0 0 22px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { top: 38px; bottom: 0; left: 18px; width: 3px; height: auto; transform-origin: top; }
  .steps li h3 { padding-top: 8px; }
  .steps.is-animated li:not(:last-child)::after { transform: scaleY(0); }
  .steps.is-animated li.is-in:not(:last-child)::after { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .steps li > *, .steps li::before, .steps li::after { opacity: 1; transform: none !important; transition: none !important; } .steps li::after { opacity: .55; } }

/* ---------- questions */
.home-faq { max-width: 760px; }
.home-faq details { border-bottom: 1px solid var(--surface-line); }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 0; cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink); list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--amber-dark); }
.home-faq details[open] summary::after { content: "\2212"; }
.home-faq summary:focus-visible { outline: 3px solid var(--amber-dark); outline-offset: 2px; border-radius: 6px; }
.home-faq p { padding: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.home-faq a { color: var(--ink); text-decoration: underline; }

/* ---------- TBMS early access (shown only when the owner switches TBMS on) */
.tbms-band { background: var(--surface-3); color: #f7f2e7; border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.tbms-band h2 { color: #f7f2e7; font-size: 24px; margin-bottom: 6px; }
.tbms-band p { color: #d8d2bd; font-size: 15px; }
.tbms-count { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tbms-count li { min-width: 62px; text-align: center; background: #242118; border: 1px solid #3a3626; border-radius: 10px; padding: 8px 6px; }
.tbms-count b { display: block; font-size: 22px; color: #e8b84b; font-variant-numeric: tabular-nums; }
.tbms-count small { font-size: 11px; color: #bdb7a2; }

/* ---------- final call */
.ready { background: var(--surface-3); color: #f7f2e7; text-align: center; padding: 64px 0; }
.ready h2 { color: #f7f2e7; font-size: 32px; margin-bottom: 18px; }
.ready .hero-actions { justify-content: center; flex-wrap: wrap; display: flex; gap: 12px; }
.ready .btn-outline-light { color: #f7f2e7; }
@media (max-width: 480px) { .ready .btn { width: 100%; } .ready { padding: 48px 0; } }

/* ---------- What we're building page */
.section.building { padding-top: 0; }
.building-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.building-card { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.building-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.building-card .tags span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--surface-line); color: var(--ink-soft); }
.building-card h2 { font-size: 24px; }
.notify { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.notify label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.notify input { min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--surface-line); background: var(--cream); color: var(--ink); font: inherit; font-size: 16px; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify .note { font-size: 13px; }
.notify .note a { text-decoration: underline; }
.notify .status { font-size: 14px; min-height: 20px; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .building-grid { grid-template-columns: 1fr; } }

/* ---------- dark (follows the device) */
