/* Trades Hub landing page, v3 (Nov 14, 2026): the sunset first screen, who it is for, the community phone, the founder.
   Loaded after styles.css. Everything is visible without app.js; motion is added only when the visitor has not asked for less. */

/* ---------- Top bar: section links ---------- */
.bar { gap: 8px; }
.links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; font: 600 14.5px 'Inter', sans-serif; color: var(--soft); text-decoration: none; }
.links a:hover { color: var(--text); }
.links .wide { display: none; }
.btn.small { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

/* ---------- First screen: the sunset jobsite ---------- */
.hero.sunset::before { top: 0; bottom: 0; height: auto; background: #1D2939 url('img/scene.jpg') 50% 70% / cover no-repeat; opacity: 1; filter: saturate(1.05) contrast(1.05); -webkit-mask-image: none; mask-image: none; }
.hero.sunset::after { background: linear-gradient(to bottom, rgba(15,23,35,.82) 0%, rgba(15,23,35,.42) 34%, rgba(15,23,35,.5) 62%, #0F1723 100%), linear-gradient(to right, rgba(15,23,35,.72) 0%, rgba(15,23,35,.2) 70%); }
.hero.sunset .hero-in { z-index: 2; }
.hero.sunset .lead { font-size: 18.5px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.avail { margin-top: 20px; font-size: 15px; line-height: 1.65; font-weight: 500; color: var(--soft); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.avail b { font-weight: 700; color: var(--text); }
.honest { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* The phone: glass edge, gold rim light, a slow sweep of light and a turning halo */
.stage { position: relative; }
.halo { position: absolute; left: 50%; top: 46%; width: min(118vw, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from 0deg, rgba(200,144,44,0) 0deg, rgba(200,144,44,.55) 60deg, rgba(200,144,44,0) 130deg, rgba(94,167,227,0) 200deg, rgba(94,167,227,.4) 260deg, rgba(94,167,227,0) 320deg); -webkit-mask-image: radial-gradient(circle, transparent 56%, #000 57%, #000 59%, transparent 60%); mask-image: radial-gradient(circle, transparent 56%, #000 57%, #000 59%, transparent 60%); pointer-events: none; }
.phone.future { border: 3px solid #0a0f16; border-radius: 38px; box-shadow: 0 0 0 1.5px rgba(200,144,44,.75), 0 0 0 6px rgba(15,23,35,.9), 0 0 0 7px rgba(255,255,255,.12), -34px 46px 80px rgba(0,0,0,.7), 0 0 110px rgba(200,144,44,.35); }
.phone.future::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.16) 46%, rgba(255,255,255,0) 58%); background-size: 260% 100%; background-position: 130% 0; }
.stage .try { position: relative; margin-top: 26px; text-shadow: 0 2px 12px rgba(0,0,0,.7); color: var(--soft); }
@keyframes sweep { 0%, 55% { background-position: 130% 0; } 100% { background-position: -60% 0; } }
@keyframes turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Who it is for ---------- */
.cards { display: grid; gap: 14px; margin-top: 30px; }
.who { background: var(--card); border: 1px solid var(--line-strong); border-top: 3px solid var(--gold); border-radius: 14px; padding: 22px 20px 24px; }
.who h3 { font-size: 34px; text-transform: uppercase; }
.who > p { margin-top: 6px; font-size: 16.5px; font-weight: 600; color: var(--text); }
.who ul { list-style: none; display: grid; gap: 11px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.who li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.45; color: var(--soft); }
.who li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--gold); }
.who.blue { border-top-color: var(--blue); }
.who.blue li::before { background: var(--blue); }
.later { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding: 14px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.later .kick { font-size: 14px; letter-spacing: 3px; color: var(--muted); }
.later ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.later li { font: 600 14px 'Inter', sans-serif; color: var(--soft); background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; }
.later p { font-size: 14px; color: var(--muted); }

/* ---------- Community and the phone ---------- */
.comm { display: grid; gap: 46px; }
.sub { margin-top: 16px; font-size: 18px; max-width: 30em; }
.points { margin-top: 26px; border-bottom: 1px solid var(--line-strong); }
.points > div { position: relative; padding: 16px 0 17px 20px; border-top: 1px solid var(--line-strong); }
.points > div::before { content: ''; position: absolute; left: 0; top: 19px; width: 4px; height: 24px; background: var(--gold); }
.points > .blue::before { background: var(--blue); }
.points h3 { font-size: 25px; text-transform: uppercase; }
.points p { margin-top: 3px; font-size: 16px; max-width: 32em; }

.demo { display: grid; justify-items: center; }
.demo-tabs { display: none; }
.js .demo-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 26px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; }
.demo-tabs button { cursor: pointer; min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; font: 700 17px 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--soft); }
.demo-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.demo-tabs span { margin-left: 5px; font: 700 10.5px 'Inter', sans-serif; letter-spacing: .8px; opacity: .85; }
.demo-stage { position: relative; display: grid; justify-items: center; }
#demo-phone { width: min(86vw, 336px); box-shadow: 0 0 0 1.5px rgba(200,144,44,.75), 0 0 0 6px rgba(15,23,35,.9), 0 0 0 7px rgba(255,255,255,.12), 0 44px 80px rgba(0,0,0,.6), 0 0 90px rgba(200,144,44,.2); }
.view { position: relative; height: 100%; }
.view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.view .after { opacity: 0; transition: opacity .28s ease; }
.is-sent #view-room .after, .is-on #view-clock .after { opacity: 1; }
.demo .hot { display: none; }
.js .demo .hot { display: block; }
/* The real Send button on the 390 x 844 screen: x 336, y 712, 44 x 44 (capture/landing25rooms.spec.ts writes boxes.json). */
.hot-send { left: 86.15%; top: 84.36%; width: 11.28%; height: 5.21%; border-radius: 50%; }
.hot-send span { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.hot-in { top: 38.5%; }
.hot-out { top: 33.5%; }
.demo .try { margin-top: 24px; max-width: 26em; }
.demo .honest { max-width: 30em; text-align: center; }

/* ---------- The founder ---------- */
.founder { display: grid; gap: 30px; align-items: center; }
/* His own photo in a plain frame: a crop and a resize, nothing cut out and nothing retouched (see PHOTO-CREDITS.md). */
.portrait { position: relative; width: min(100%, 400px); aspect-ratio: 600 / 704; margin: 0 auto; perspective: 900px; --px: 0; --py: 0; }
.portrait-in { position: absolute; inset: 0; transform: rotateY(calc(var(--px) * 4deg)) rotateX(calc(var(--py) * -4deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.portrait-back { position: absolute; inset: 0; border-radius: 20px; border: 1px solid var(--line-strong); background: #151F2C; box-shadow: 0 34px 70px rgba(0,0,0,.5); }
.portrait-back::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 20px 20px; background: var(--gold); }
.portrait-clip { position: absolute; inset: 1px 1px 3px 1px; overflow: hidden; border-radius: 19px 19px 17px 17px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.04) translate(calc(var(--px) * 5px), calc(var(--py) * 4px)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.founder-copy .lead { font-size: 20px; font-weight: 600; color: var(--text); max-width: 26em; margin-top: 18px; }
.founder-copy > p:not(.kick):not(.lead) { margin-top: 16px; max-width: 34em; }
.founder-copy .sign { font-weight: 700; color: var(--text); }

/* ---------- The date, the questions, the last call ---------- */
.datebar h2 { font-size: clamp(48px, 12vw, 104px); }
.faq summary { min-height: 44px; padding-block: 8px; box-sizing: border-box; }
.last .cta-row { margin-top: 26px; }
.form .err { font-weight: 600; font-size: 14px; color: #FFB3A6; }
.form [aria-invalid="true"]:not([type=checkbox]) { border-color: #F08A78; }
.form .check .err { grid-column: 2; }
.form-note { font-weight: 700; font-size: 15px; color: #FFB3A6; border-left: 3px solid #F08A78; padding-left: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-underline-offset: 4px; }
.foot-links a:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .halo { animation: turn 18s linear infinite; }
  .phone.future::after { animation: sweep 5.5s ease-in-out infinite; }
  .js #hero-phone { animation: hover 5s ease-in-out infinite; }
  .hot-send span { animation: ring 1.6s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hot-send span { opacity: .8; }
  .view .after, .portrait-in, .portrait img { transition: none; }
}

@media (max-width: 359px) {
  .bar { padding-inline: 12px; }
  .brand { font-size: 19px; gap: 7px; letter-spacing: 1px; }
  .brand img { width: 28px; height: 28px; }
  .links a { padding: 0 7px; font-size: 14px; }
  .btn.small { padding-inline: 12px; }
}
@media (min-width: 900px) {
  .links { gap: 6px; margin-right: 14px; }
  .links .wide { display: inline-flex; }
  .links a { padding: 0 12px; font-size: 15px; }
  .hero.sunset .lead { font-size: 20px; max-width: 27em; }
  .avail { font-size: 15.5px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
  .who { padding: 28px 26px 30px; }
  .comm { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
  .sub { font-size: 19px; }
  #demo-phone { width: 310px; }
  .founder { grid-template-columns: .82fr 1.18fr; gap: 72px; }
  .portrait { width: 100%; max-width: 420px; }
}
