/* home.css — homepage-only sections (hero, problem scroll-story + broken-workflow scene, workflow diagram, outcomes, submit, pricing teaser, faq, final). */

/* ----------  Hero  ---------- */
.hero { padding-block: clamp(5rem, 13vw, 9rem) clamp(3rem, 8vw, 6rem); }
.hero .lead { margin-top: 1.5rem; }
.hero-cta { margin-top: 2.5rem; display: flex; gap: 0.75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-cta .btn-link::after { content: " →"; }

/* ----------  Product-visual placeholders  ---------- */
.visual {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fbfdfd, #eef3f4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
}
.visual.tall { aspect-ratio: 16 / 10; }
.visual-inner { text-align: center; padding: 2rem; max-width: 30rem; }
.visual .ph-tag {
  display: inline-block; font-size: var(--type-label); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink);   /* amber text on the yellow tint, AA */
  background: var(--accent-tint); padding: 0.4rem 0.8rem; border-radius: 999px;
}
.visual .ph-title { margin-top: 1.1rem; font-size: 1.25rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.visual .ph-desc { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
/* subtle frame chrome so a placeholder reads as a product surface, not a void */
.visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(214,158,9,0.10), transparent 60%);
  pointer-events: none;
}
.visual .dots { position: absolute; top: 16px; left: 18px; display: flex; gap: 7px; }
.visual .dots span { width: 11px; height: 11px; border-radius: 50%; background: #d4dadb; }

/* ----------  Problem section  ---------- */
.problem { background: var(--surface-cool); }
.parties {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.party {
  background: var(--bg); padding: 1.75rem 1.25rem; text-align: center;
}
.party .role { font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; }
.party .tool { margin-top: 0.35rem; font-size: 0.875rem; color: var(--ink-faint); }
.party .fight { margin-top: 0.9rem; font-size: 0.8125rem; color: var(--ink-soft); }
@media (max-width: 720px) { .parties { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Problem scroll-story (pinned, line-by-line reveal) ----------
   The pain is a cascade, so it's delivered one beat at a time while the headline
   stays pinned. Enhancement only: JS adds .is-scrolly when motion is allowed; with
   no JS or reduced motion this stays a normal, fully-visible stacked block. */
.problem .parties { margin-top: clamp(2rem, 6vh, 3.5rem); }
.problem-lines { margin-top: 1.5rem; display: grid; gap: 1em; }
.pline { margin: 0; font-size: var(--type-lead); line-height: 1.45; color: var(--ink-soft); font-weight: 400; }
.pline .hl { color: var(--accent-ink); font-weight: 600; }

.problem-scrolly.is-scrolly { position: relative; }
.is-scrolly .problem-stage {
  position: sticky; top: var(--nav-h, 64px);        /* clears the sticky nav */
  min-height: calc(100vh - var(--nav-h, 64px));
  display: grid; align-content: center;
}
.is-scrolly .problem-lines { margin-top: clamp(1.75rem, 5vh, 3rem); gap: clamp(1rem, 2.6vh, 1.7rem); }
.is-scrolly .pline {
  font-size: clamp(1.375rem, 3.2vw, 2.375rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 500;
  color: var(--ink); opacity: 0; transform: translateY(0.4em);
  transition: opacity .55s var(--ease), transform .55s var(--ease), color .55s var(--ease);
}
.is-scrolly .pline.is-past   { opacity: 0.3; color: var(--ink-faint); transform: none; }
.is-scrolly .pline.is-active { opacity: 1;   color: var(--ink);       transform: none; }
@media (prefers-reduced-motion: reduce) {
  .problem-scrolly .problem-stage { position: static; min-height: 0; }
  .is-scrolly .pline { opacity: 1; transform: none; }
}

/* ---------- Broken-workflow diagram (right column of the pinned Problem section) ----------
   A scroll-driven scene of the current pain: architect designs in SketchUp/Rhino -> a BIM
   modeller rebuilds it in Revit -> [camera pulls back] structural & M&E bring their own BIM
   models -> a BIM coordinator has to coordinate them all. Two-column + scene are wide-screen
   only; with no JS / reduced motion the section stays the plain centered pain text. */
.px-scene { display: none; }
@media (min-width: 1024px) {
  .is-scrolly .problem-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    align-items: center; gap: clamp(2rem, 5vw, 5rem);
  }
  .is-scrolly .problem-stage > .measure { max-width: 34rem; margin-inline: 0; text-align: left; }
  .is-scrolly .problem-stage .problem-lines { margin-top: clamp(1rem, 3vh, 1.75rem); }
  .is-scrolly .problem-stage .pline { font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
  .is-scrolly .px-scene { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1.05; overflow: hidden; }
}
.px-cam { position: absolute; inset: 0; transform-origin: 20% 22%; transform: scale(1.7); transition: transform .7s var(--ease); }
.px-cam.is-wide { transform: scale(1); }
.px-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.px-link { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; vector-effect: non-scaling-stroke; transition: stroke-dashoffset .6s var(--ease), stroke .4s var(--ease); }
.px-link.is-on { stroke-dashoffset: 0; stroke: var(--accent); }
.px-node { position: absolute; transform: translate(-50%, -50%); }
.px-card {
  display: grid; gap: 2px; padding: 0.55rem 0.7rem; border-radius: 12px; text-align: center; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.px-node.is-in .px-card { opacity: 1; transform: none; }
.px-role { font-size: 0.78rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.px-tool { font-size: 0.66rem; color: var(--ink-faint); }
.px-coord .px-card { border-color: var(--accent); background: var(--accent-tint); }
.px-coord .px-role { color: var(--accent-ink); }

/* ----------  Trust strip (slim band, all labelled placeholders)  ----------
   A quiet credibility band: a SG line + a row of placeholder logos + one headline stat.
   Everything is a clearly-labelled placeholder, styled like the existing .visual ph-tags. */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.trust-line { text-align: center; font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); }
.trust-logos {
  margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: clamp(0.75rem, 3vw, 2rem);
  align-items: center; justify-content: center;
}
.trust-logo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 108px; height: 44px; padding: 0 1rem;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: var(--type-label); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-faint);
}
.trust-stat { margin-top: 1.75rem; text-align: center; }
.trust-stat .stat-num {
  display: inline-block; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
.trust-stat .stat-ph {
  display: inline-block; margin-left: 0.6rem; font-size: var(--type-label); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-tint); padding: 0.35rem 0.75rem; border-radius: 999px; vertical-align: middle;
}

/* ----------  Promise turn (closes the problem section)  ---------- */
.promise { margin-top: clamp(2.5rem, 6vw, 3.5rem); text-align: center; }
.promise .promise-h { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.promise .promise-h .hl { color: var(--accent-ink); }   /* amber emphasis: AA on white, never bright-yellow text */

/* ----------  Workflow at a glance (condensed 5-step strip)  ----------
   A single compact horizontal row of the 5 steps, small labelled items, ending in a
   "See how it works →" link to the Features page. */
.workflow { background: var(--bg); border-top: 1px solid var(--line); }
.workflow .measure { margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
/* ---------- Workflow diagram (horizontal, draws on scroll) ----------
   A connected 5-step flow. Default state is complete (no-JS safe: filled nodes, labels
   shown, connector hidden). JS adds .is-flow to place + show the connector; when motion is
   allowed the line draws left->right and each node pops in as the line reaches it, tied to
   scroll position. Under reduced motion the completed diagram is shown at once. */
.wf-diagram { position: relative; }
.wf-line { display: none; position: absolute; height: 2px; background: var(--line); border-radius: 2px; z-index: 0; }
.wf-line-fill { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 2px; transform-origin: left center; }
.is-flow .wf-line { display: block; }
.wf-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.6rem, 1.5vw, 1rem); }
.wf-step { text-align: center; }
.wf-node {
  width: 3rem; height: 3rem; margin: 0 auto; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -8px rgba(214,158,9,0.55);
}
.wf-nm { margin-top: 0.9rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.wf-ds { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.45; }

/* JS pre-animation state (motion allowed): connector empty, nodes idle until reached */
.is-flow .wf-line-fill { transform: scaleX(0); transition: transform .12s linear; }
.is-flow .wf-step { opacity: .38; transition: opacity .5s var(--ease); }
.is-flow .wf-node {
  background: var(--bg); color: var(--ink-faint); border-color: var(--line); box-shadow: none; transform: scale(0.9);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.is-flow .wf-step.is-on { opacity: 1; }
.is-flow .wf-step.is-on .wf-node {
  background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1);
  box-shadow: 0 6px 16px -8px rgba(214,158,9,0.55);
}
@media (prefers-reduced-motion: reduce) {
  .is-flow .wf-line-fill { transform: none; }
  .is-flow .wf-step { opacity: 1; }
  .is-flow .wf-node { background: var(--accent); color: #fff; border-color: var(--accent); transform: none; box-shadow: 0 6px 16px -8px rgba(214,158,9,0.55); }
}

.workflow .see-how { margin-top: 2rem; text-align: center; }
.workflow .see-how .btn-link::after { content: " →"; }

/* Mobile: stack into a vertical flow (connector hidden; nodes still reveal in sequence) */
@media (max-width: 620px) {
  .wf-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .wf-step { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; column-gap: 1rem; text-align: left; }
  .wf-node { grid-row: 1 / span 2; align-self: center; margin: 0; }
  .wf-nm { grid-column: 2; margin-top: 0; }
  .wf-ds { grid-column: 2; }
  .is-flow .wf-line { display: none; }
}

/* ----------  Three outcomes = the 3 roles (the Home → Features bridge)  ----------
   Three cards; each = outcome headline + blurb + an "Explore →" link that deep-links into
   the role-tabbed Features page (#architect / #bim-manager / #submission). Reuses the
   .parties grid feel but as standalone cards with their own border + a bridging CTA. */
.outcomes { background: var(--surface); border-top: 1px solid var(--line); }
.outcome-grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch;
}
.outcome {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.6rem; text-align: left;
}
.outcome .outcome-role {
  font-size: var(--type-label); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink);   /* amber, AA */
}
.outcome .outcome-h { margin-top: 0.7rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.outcome .outcome-copy { margin-top: 0.7rem; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.outcome .outcome-cta { margin-top: 1.25rem; }
.outcome .outcome-cta .btn-link { padding-left: 0; }
.outcome .outcome-cta .btn-link::after { content: " →"; }
@media (max-width: 860px) { .outcome-grid { grid-template-columns: 1fr; } }

/* ----------  Submission flow  ---------- */
.submit { background: var(--surface); }
.flow {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0;
}
.flow-step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; text-align: left;
}
.flow-step .step-eyebrow { font-size: var(--type-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.flow-step .step-title { margin-top: 0.6rem; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.flow-step .step-desc { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.5; }
.flow-step.is-exit { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-tint), #fff); }
.flow-step.is-exit .step-eyebrow { color: var(--accent-ink); }   /* amber text, not bright yellow */
.flow-arrow { display: grid; place-items: center; color: var(--accent-ink); font-size: 1.5rem; padding-inline: 0.75rem; }  /* amber arrow, visible on white */
.flow-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--ink-faint); }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 0.75rem; }
  .flow-arrow { transform: rotate(90deg); padding-block: 0.25rem; }
}

/* ----------  Pricing teaser  ---------- */
.pricing { background: var(--bg); }
.tiers {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  align-items: stretch;
}
.tier {
  position: relative; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem; text-align: left;
  display: flex; flex-direction: column;
}
.tier.is-recommended { border-color: var(--accent); border-width: 2px; }
.tier .tier-badge {
  position: absolute; top: -0.75rem; left: 1.5rem;
  background: var(--accent); color: #fff;   /* white text on gold */
  font-size: var(--type-label); font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.tier .tier-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.tier .tier-best { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-faint); }
.tier .tier-price { margin-top: 1.1rem; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.tier .tier-price small { font-size: 0.9375rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.tier .tier-ph { font-size: 0.75rem; color: var(--accent-ink); font-weight: 600; }  /* placeholder marker */
.tier .tier-founding { margin-top: 0.3rem; font-size: 0.8125rem; color: var(--accent-ink); font-weight: 500; }
.tier .tier-founding s { color: var(--ink-faint); font-weight: 400; }
.tier .tier-gets { margin-top: 1.1rem; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.tier .tick-list { list-style: none; margin-top: 1.1rem; flex: 1; }
.tier .tick-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 7px; line-height: 1.4; }
.tier .tick-list li::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7-7' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.tier .tier-seat { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--ink-faint); }
.tier .tier-cta { margin-top: 1.5rem; }
.tier .tier-cta .btn { width: 100%; }
.pricing .see-all { margin-top: 2rem; }
.pricing .see-all .btn-link::after { content: " →"; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

/* ----------  FAQ (NEW, ported from pricing page)  ---------- */
.faq-wrap { background: var(--surface); }
.faq-wrap h2 { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.faq-q { font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.faq-a { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; }
.faq-a a { color: var(--accent-ink); }

/* ----------  Final CTA  ---------- */
.final { text-align: center; }
.final .btn-primary { min-height: 54px; padding: 0 2rem; font-size: 1.0625rem; }
