/*
 * Truehome static site: homepage only (hero diagram, Progressa section, how it works).
 * The Progressa illustrations use Progressa's own type (IBM Plex) and colours.
 */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

.home h1, .home h2, .home h3 { margin: 0; letter-spacing: -0.02em; }
.home h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; }

/* Hero: what we build */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #293237 0%, #1e262a 45%, #0F766E 100%); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 70% at 85% 10%, rgba(13,148,136,.28), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 88px; }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; } .hero .wrap { padding-top: 80px; padding-bottom: 100px; } }
.hero .eyebrow { color: #5eead4; }
.pg-chip { display: inline-flex; align-items: center; gap: 8px; background: #f9fafb; color: #101828; font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 1rem; padding: 6px 12px 6px 10px; border-radius: 6px; margin: 16px 0 18px; }
.pg-chip svg { width: 26px; height: 18px; display: block; }
.hero p.lede { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 32rem; margin: 0 0 28px; }

.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.7rem); font-weight: 800; line-height: 1.06; margin: 14px 0 18px; }
.parties { max-width: 34rem; width: 100%; margin: 0 auto; }
.parties svg { display: block; width: 100%; height: auto; overflow: visible; }
.parties .tangle line { stroke: #FBBF24; stroke-opacity: .7; stroke-width: 1.5; stroke-dasharray: 3 7; animation: buzz 1.2s linear infinite; }
.parties .hub line { stroke: #5eead4; stroke-width: 2; stroke-opacity: .9; }
.parties .ring { fill: rgba(94,234,212,.08); stroke: rgba(94,234,212,.4); stroke-width: 1.2; }
.parties .dotn { fill: #5eead4; }
.parties text { fill: rgba(255,255,255,.82); font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 19px; }
.parties .core-disc { fill: #f9fafb; }
.parties .core-glow { fill: rgba(94,234,212,.18); }
.parties .tangle { animation: showA 12s ease-in-out infinite; }
.parties .hub, .parties .core-glow { animation: showB 12s ease-in-out infinite; }
.parties .core { animation: coreFade 12s ease-in-out infinite; }
.captions { position: relative; height: 3rem; margin-top: 10px; text-align: center; }
.cap { position: absolute; left: 0; right: 0; top: 0; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.cap-a { color: #FCD34D; animation: showA 12s ease-in-out infinite; }
.cap-b { color: #5eead4; animation: showB 12s ease-in-out infinite; }
@keyframes showA { 0%, 35% { opacity: 1; } 45%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes showB { 0%, 35% { opacity: 0; } 45%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes coreFade { 0%, 35% { opacity: .45; } 45%, 90% { opacity: 1; } 100% { opacity: .45; } }
@keyframes buzz { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) {
  .parties .tangle, .cap-a { animation: none; opacity: 0; }
  .parties .hub, .parties .core-glow, .cap-b, .parties .core { animation: none; opacity: 1; }
  .parties .tangle line { animation: none; }
}
@media (max-width: 959px) { .parties { max-width: 26rem; } }

/* What we build (light) */
section.build { background: #fff; padding: 88px 0; }
section.build h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 0 0 18px; }
section.build p.lede { font-size: 1.12rem; line-height: 1.6; color: var(--text-2); max-width: 32rem; margin: 0 0 28px; }
section.build .pg-chip { border: 1px solid #e4e7ec; }
section.build .pg-window { border: 1px solid #e4e7ec; box-shadow: 0 30px 60px -28px rgba(41,50,55,.35); }
section.build .pg-source { color: var(--muted); }

/* Progressa illustrations (Progressa's own type and colours) */
.pg, .pg * { font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; }
.pg em { font-style: normal; }
.pg .mono, .pg .mono * { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.pg-window { background: #f9fafb; color: #101828; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 34rem; width: 100%; justify-self: center; }
.pg-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f3; border-bottom: 1px solid #e4e7ec; }
.pg-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0d5dd; display: block; }
.pg-bar span { margin-left: 10px; font-size: .72rem; color: #667085; background: #fff; border: 1px solid #e4e7ec; border-radius: 4px; padding: 2px 10px; }
.pg-body { padding: 8px 18px 20px; }
.pg-net { display: block; width: 100%; height: auto; }
.pg-net .edge { fill: none; stroke: #d0d5dd; stroke-width: 1.3; }
.pg-net .node { fill: #f9fafb; stroke: #24486b; stroke-width: 1.4; }
.pg-net .node.filled { fill: #24486b; }
.pg-net .dot { fill: #b45309; }
.pg-net .dot.back { fill: none; stroke: #b45309; stroke-width: 1; }
.pg-net .still { display: none; }
@media (prefers-reduced-motion: reduce) { .pg-net .moving { display: none; } .pg-net .still { display: inline; } }
.pg-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 2px; padding: 14px 18px 6px; }
.pg-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px solid #e4e7ec; }
.pg-card-head b { font-weight: 500; font-size: .95rem; }
.pg-card-head .mono { font-size: .68rem; letter-spacing: .1em; color: #475467; white-space: nowrap; }
.pg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 0; border-bottom: 1px solid #eaecf0; font-size: .86rem; }
.pg-row:last-child { border-bottom: 0; }
.pg-row .name { flex: 1 1 8rem; }
.pg-status { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.pg-meta { flex-basis: 100%; font-size: .7rem; color: #667085; }
.pill-done { background: #15803d; color: #fff; border-radius: 10px; font-size: .72rem; padding: 2px 8px; display: inline-flex; align-items: center; gap: 4px; }
.pill-done svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill-await { border: 1px solid #667085; color: #667085; border-radius: 10px; font-size: .72rem; padding: 1px 8px; }
.pill-up { border: 1px solid #d0d5dd; color: #98a2b3; border-radius: 10px; font-size: .72rem; padding: 1px 8px; }
.pg-day { font-size: .72rem; color: #475467; min-width: 3.2rem; text-align: right; }
.pg-row.later .name { color: #98a2b3; }
.pg-source { text-align: center; font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 10px; font-weight: 600; }

.phones { display: grid; gap: 28px; }
@media (min-width: 820px) { .phones { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ph { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ph-frame { width: 100%; max-width: 17.5rem; background: #0f1417; border-radius: 34px; padding: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 24px 50px -20px rgba(0,0,0,.6); }
.ph-screen { background: #fff; color: #101828; border-radius: 27px; padding: 12px 16px 22px; min-height: 27.5rem; }
.ph-status { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; font-weight: 600; padding: 0 4px 14px; }
.ph-notch { width: 4.6rem; height: 1.15rem; border-radius: 999px; background: #0f1417; display: block; }
.ph-batt { width: 1.2rem; height: .55rem; border: 1px solid #475467; border-radius: 2px; display: block; position: relative; }
.ph-batt::after { content: ''; position: absolute; inset: 1px 4px 1px 1px; background: #475467; border-radius: 1px; }
.ph-addr b { display: block; font-weight: 500; font-size: .86rem; }
.ph-addr small { display: block; font-size: .7rem; color: #667085; margin-top: 1px; }
.ph-title { font-weight: 500; font-size: .95rem; line-height: 1.35; margin: 12px 0 4px; }
.ph-need { font-size: .72rem; color: #475467; line-height: 1.45; padding-bottom: 10px; border-bottom: 1px solid #e4e7ec; }
.ph-need.calm { color: #667085; }
ul.ph-steps { list-style: none; margin: 12px 0 0; padding: 0; }
ul.ph-steps li { position: relative; padding: 0 0 14px 20px; font-size: .78rem; line-height: 1.4; }
ul.ph-steps li::before { content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid #24486b; background: #fff; }
ul.ph-steps li::after { content: ''; position: absolute; left: 7px; top: 15px; bottom: 0; width: 1px; background: #e4e7ec; }
ul.ph-steps li:last-child::after { display: none; }
ul.ph-steps li.done::before { background: #15803d; border-color: #15803d; }
ul.ph-steps li.next::before { border-color: #d0d5dd; }
ul.ph-steps li.next b, ul.ph-steps li.next span { color: #98a2b3; font-weight: 400; }
ul.ph-steps b { display: block; font-weight: 500; }
ul.ph-steps span { display: block; color: #475467; margin-top: 3px; }
ul.ph-steps .mono { display: block; font-size: .66rem; color: #667085; margin-top: 3px; }
ul.ph-steps .pill-done, ul.ph-steps .pill-await { display: inline-flex; margin-top: 5px; font-size: .66rem; }
ul.ph-steps .pill-done { color: #fff; }
ul.ph-steps .pill-await { color: #667085; }
.ph-btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
ul.ph-steps .ph-btns span { display: inline-block; margin: 0; border: 1px solid #e4e7ec; color: #475467; border-radius: 4px; font-size: .66rem; padding: 3px 7px; }
ul.ph-steps .ph-btns span.on { border-color: #24486b; color: #fff; background: #24486b; }
.ph figcaption { margin-top: 16px; font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.72); text-align: center; max-width: 17.5rem; }
.ph figcaption b { color: #fff; }

/* How it works (light) */
section.how { background: var(--beige-soft); padding: 88px 0; }
.how-head { max-width: 44rem; margin-bottom: 36px; }
.how-head h2 { margin: 12px 0 12px; }
.how-head p { font-size: 1.08rem; line-height: 1.65; color: var(--text-2); margin: 0; }
section.how .ph-frame { box-shadow: 0 24px 50px -24px rgba(41,50,55,.45); }
section.how .ph figcaption { color: var(--text-2); }
section.how .ph figcaption b { color: var(--text); }
.aud { display: grid; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(212,210,204,.9); }
@media (min-width: 820px) { .aud { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.aud b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 6px; }
.aud-link { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.aud p { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--text-2); }
