:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #536171;
  --line: #d7dde5;
  --soft: #f5f7f9;
  --paper: #ffffff;
  --charcoal: #151a1f;
  --red: #b42318;
  --red-dark: #7f1d1d;
  --teal: #0f766e;
  --blue: #1d4ed8;
  --yellow: #d97706;
  --green: #15803d;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .site-header,
body.auth-locked main,
body.auth-locked .site-footer,
body.auth-locked #guild-chat-root {
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.74)),
    url("assets/images/demo-thumb.jpg") center / cover no-repeat;
}

body:not(.auth-locked) .auth-gate {
  display: none;
}

.auth-card {
  width: min(480px, 100%);
  padding: clamp(24px, 5vw, 40px);
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
}

.auth-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 2.55rem);
}

.auth-card label {
  display: block;
  margin: 20px 0 10px;
  font-weight: 820;
}

.auth-row {
  display: flex;
  gap: 10px;
}

.auth-row input {
  min-width: 0;
  flex: 1;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(29, 78, 216, 0.16);
}

.auth-error {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--red);
  font-weight: 760;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: #374151;
  font-size: 0.95rem;
}

.nav-links a,
.text-link {
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--red);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.header-action svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86vh;
  padding: clamp(80px, 12vw, 150px) clamp(18px, 6vw, 84px) 84px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
    url("assets/images/demo-thumb.jpg") center / cover no-repeat;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffcc66;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(4.25rem, 13vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 750;
}

.hero-body {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-strip {
  position: absolute;
  right: clamp(18px, 6vw, 84px);
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(660px, calc(100% - 36px));
}

.hero-strip span {
  padding: 9px 12px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 750;
}

.intro-band,
.workflow-band,
.pricing-band,
.exit-band {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-head {
  max-width: 980px;
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: center;
}

.section-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.product-stage {
  padding: clamp(12px, 2.5vw, 26px);
  background: #e8edf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-shell {
  overflow: hidden;
  background: #111827;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #22c55e;
  margin-right: 12px;
}

.app-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
  padding: 14px;
}

.call-panel,
.schedule-panel {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
}

.call-panel h3,
.phone-shell h3 {
  color: var(--ink);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

dl,
dd {
  margin: 0;
}

.call-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.call-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

dt {
  color: var(--muted);
}

dd {
  color: var(--ink);
  font-weight: 760;
  text-align: right;
}

.voice-meter {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 54px;
  padding: 10px;
  background: #f1f5f9;
  border-radius: var(--radius);
}

.voice-meter span {
  flex: 1;
  background: var(--red);
  border-radius: 3px;
  animation: meter 1.4s ease-in-out infinite;
}

.voice-meter span:nth-child(1) { height: 38%; }
.voice-meter span:nth-child(2) { height: 72%; animation-delay: 0.1s; }
.voice-meter span:nth-child(3) { height: 52%; animation-delay: 0.2s; }
.voice-meter span:nth-child(4) { height: 86%; animation-delay: 0.3s; }
.voice-meter span:nth-child(5) { height: 44%; animation-delay: 0.4s; }

@keyframes meter {
  0%, 100% { transform: scaleY(0.62); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.calendar-grid span {
  min-height: 54px;
  background: #f1f5f9;
  border-radius: var(--radius);
}

.calendar-grid .busy {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.calendar-grid .booked {
  background: #dcfce7;
  border: 1px solid #86efac;
}

.job-stack {
  display: grid;
  gap: 10px;
}

.job-stack div {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
}

.job-stack p,
.job-stack strong {
  grid-column: 2;
  margin: 0;
}

.job-stack p {
  color: var(--ink);
  font-weight: 780;
  line-height: 1.2;
}

.job-stack strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
}

.status.ready { background: var(--green); }
.status.wait { background: var(--yellow); }
.status.ship { background: var(--blue); }

.proof-list {
  display: grid;
  gap: 16px;
}

.proof-list article {
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-list strong {
  display: block;
  margin-bottom: 8px;
}

.proof-list p,
.workflow-card p,
.comparison p,
.price-card p,
.founder-band p {
  margin-bottom: 0;
}

.media-band,
.call-band,
.founder-band,
.signup-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.media-band,
.founder-band {
  background: var(--soft);
}

.media-copy,
.call-copy,
.signup-copy,
.founder-band > div {
  max-width: 650px;
}

.demo-image,
.founder-band figure {
  margin: 0;
}

.demo-image img,
.founder-band img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workflow-band {
  background: #fff;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-card {
  min-height: 268px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #fff;
  border-radius: var(--radius);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-box.phone { background: var(--red); }
.icon-box.calendar { background: var(--teal); }
.icon-box.assist { background: var(--blue); }
.icon-box.invoice { background: var(--yellow); }
.icon-box.parts { background: #7c3aed; }
.icon-box.training { background: var(--green); }

.call-band {
  background: #12171d;
  color: #fff;
}

.call-band p {
  color: rgba(255, 255, 255, 0.75);
}

.call-copy audio {
  width: 100%;
  max-width: 520px;
  margin-top: 18px;
}

.call-visual {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(390px, 100%);
  padding: 24px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.call-pill {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 10px;
  color: #065f46;
  background: #d1fae5;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 820;
}

.phone-shell p {
  color: var(--muted);
}

.transcript {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.transcript span {
  padding: 12px;
  color: var(--ink);
  background: #f3f4f6;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pricing-band {
  background: #f8fafc;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.price-card,
.comparison {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.08);
}

.price-label {
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 850;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.price-card h3 span {
  color: var(--muted);
  font-size: 1.15rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #374151;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
}

.comparison {
  display: grid;
  gap: 12px;
  align-content: start;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
}

.comparison-row strong {
  white-space: nowrap;
}

.comparison-row.office {
  background: #fff7ed;
  border-color: #fed7aa;
}

.founder-band .text-link,
.signup-form .text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--red);
  font-weight: 820;
}

.exit-band {
  background: #fff;
}

.signup-band {
  background: #111827;
  color: #fff;
}

.signup-band p {
  color: rgba(255, 255, 255, 0.76);
}

.signup-form {
  width: min(600px, 100%);
  justify-self: end;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 820;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(29, 78, 216, 0.16);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted) !important;
  font-size: 0.94rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 780;
}

.guild-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.guild-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.guild-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 50;
  display: none;
  flex-direction: column;
  width: 370px;
  max-width: calc(100vw - 28px);
  height: 540px;
  max-height: 80vh;
  overflow: hidden;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.guild-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 820;
}

.guild-close {
  width: 34px;
  height: 34px;
  color: #cbd5e1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.guild-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.guild-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--radius);
  line-height: 1.4;
}

.guild-msg.bot {
  align-self: flex-start;
  background: #1f2937;
}

.guild-msg.user {
  align-self: flex-end;
  color: #fff;
  background: var(--red);
}

.guild-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guild-btn {
  padding: 8px 10px;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  cursor: pointer;
}

.guild-btn.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.guild-input-wrap {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.guild-input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 0 10px;
  color: #fff;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.guild-send {
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  font-weight: 820;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .product-layout,
  .media-band,
  .call-band,
  .pricing-layout,
  .founder-band,
  .signup-band {
    grid-template-columns: 1fr;
  }

  .signup-form {
    justify-self: stretch;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .site-header {
    min-height: 62px;
  }

  .header-action {
    padding: 0 12px;
  }

  .header-action span {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 72px;
    background-position: 57% center;
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 5.5rem);
  }

  .hero-strip {
    position: static;
    justify-content: flex-start;
    margin-top: 38px;
    max-width: none;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card {
    min-height: 0;
  }

  .panel-row,
  .comparison-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-row {
    flex-direction: column;
  }

  .auth-row {
    flex-direction: column;
  }

  .form-row .button {
    width: 100%;
  }

  .guild-panel {
    right: 14px;
    bottom: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .voice-meter span {
    animation: none;
  }
}
