:root {
  color-scheme: light;
  --background: #f7faff;
  --background-deep: #eaf1fb;
  --ink: #071122;
  --ink-soft: #0d1c33;
  --muted: #5d6a80;
  --muted-soft: #8995a8;
  --hairline: rgba(95, 115, 145, 0.18);
  --hairline-soft: rgba(95, 115, 145, 0.12);
  --surface: rgba(255, 255, 255, 0.86);
  --accent: #2f6feb;
  --accent-soft: rgba(47, 111, 235, 0.1);
  --evidence: #25a568;
  --confidence: #3a7cf6;
  --caution: #d58a14;
  --shadow: 0 28px 80px -24px rgba(20, 35, 60, 0.22), 0 8px 24px -12px rgba(20, 35, 60, 0.12);
  --fine-shadow: 0 18px 48px -24px rgba(20, 35, 60, 0.18), 0 4px 14px -8px rgba(20, 35, 60, 0.1);
  --cta-shadow: 0 14px 30px -10px rgba(7, 17, 34, 0.36), 0 2px 6px -2px rgba(7, 17, 34, 0.24);
  --cta-shadow-hover: 0 20px 40px -10px rgba(7, 17, 34, 0.4), 0 4px 10px -2px rgba(7, 17, 34, 0.28);
  --field-shadow: 0 12px 34px -22px rgba(20, 35, 60, 0.28);
}

@font-face {
  font-family: "TrustCueWordmark";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/Sora-ExtraBold.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(47, 111, 235, 0.06), transparent 70%),
    radial-gradient(1200px 620px at 50% 56%, #ffffff 0%, var(--background) 58%, var(--background-deep) 100%);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: clip;
}

.page-shell {
  width: min(100%, 1180px);
  min-height: calc(100svh - 58px);
  margin: 0 auto;
  padding: clamp(18px, 3.4vh, 38px) 22px clamp(10px, 1.6vh, 20px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 3vh, 28px);
  align-items: center;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-name {
  font-family: "TrustCueWordmark", Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: clamp(36px, 3.6vw, 44px);
  aspect-ratio: 1;
  place-items: center;
}

.mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  align-self: start;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(26px, 4.2vw, 58px);
  align-items: center;
}

.hero-copy {
  --eyebrow-title-space: clamp(16px, 2.4vh, 24px);
  --title-body-space: clamp(18px, 2.5vh, 26px);
  --body-cta-space: clamp(26px, 3.4vh, 36px);
  --hint-proof-space: clamp(22px, 3vh, 30px);
  display: grid;
  justify-items: start;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 var(--eyebrow-title-space);
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(47, 111, 235, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 640;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 235, 0.18);
}

.hero-title {
  max-width: 680px;
  margin: 0;
  font-family: "Iowan Old Style", "New York", Charter, Georgia, ui-serif, serif;
  font-size: clamp(3rem, 5.4vw, 4.9rem);
  font-weight: 740;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.12em;
  margin-left: 0.055em;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: baseline;
}

.hero-lede {
  max-width: 590px;
  margin: var(--title-body-space) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.48;
  text-wrap: balance;
}

.notify-form {
  width: min(100%, 520px);
  margin-top: var(--body-cta-space);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.notify-input {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--field-shadow);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.notify-input::placeholder {
  color: var(--muted-soft);
}

.notify-input:focus {
  border-color: rgba(47, 111, 235, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 111, 235, 0.12), var(--field-shadow);
}

.notify-input:invalid:not(:placeholder-shown) {
  border-color: rgba(213, 138, 20, 0.55);
}

.signal-stage {
  position: relative;
  width: min(100%, 590px);
  min-height: clamp(286px, 35vw, 352px);
  margin: 0;
}

.signal-lines {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: 100%;
  height: 250px;
  transform: translate(-50%, -42%);
  pointer-events: none;
}

.signal-lines path {
  fill: none;
  stroke: rgba(47, 111, 235, 0.18);
  stroke-width: 1.4;
}

.signal-lines path:first-child {
  stroke: rgba(37, 165, 104, 0.2);
}

.source-window,
.signal-card {
  position: absolute;
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--fine-shadow);
  backdrop-filter: blur(18px);
}

.source-window {
  left: 0;
  bottom: 20px;
  width: min(430px, 68%);
  height: clamp(204px, 24vw, 232px);
  border-radius: 20px;
  padding: 68px 38px 28px;
}

.source-window::before {
  content: "";
  position: absolute;
  inset: 46px 0 auto;
  height: 1px;
  background: var(--hairline-soft);
}

.window-dot {
  position: absolute;
  top: 22px;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8e0ea;
}

.window-dot:nth-child(1) { left: 26px; }
.window-dot:nth-child(2) { left: 52px; }
.window-dot:nth-child(3) { left: 78px; }

.source-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d5dbe5, #ebeff5);
}

.source-line-strong {
  width: 72%;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #bfc8d5, #dbe1e9);
}

.source-line-short {
  width: 62%;
  margin-top: 16px;
}

.source-grid {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.source-thumbnail {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 11px;
  background: linear-gradient(145deg, #e6ebf2, #f8fafc);
}

.source-copy-lines span {
  display: block;
  height: 8px;
  margin: 11px 0;
  border-radius: 999px;
  background: #d8dfe8;
}

.source-copy-lines span:nth-child(1),
.source-copy-lines span:nth-child(2) { width: 100%; }
.source-copy-lines span:nth-child(3) { width: 82%; }
.source-copy-lines span:nth-child(4) { width: 64%; }

.signal-card {
  right: 0;
  top: clamp(8px, 3vh, 26px);
  z-index: 1;
  width: min(362px, 58%);
  border-radius: 22px;
  padding: 20px 24px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
    radial-gradient(120% 80% at 50% 0%, rgba(47, 111, 235, 0.08), transparent 60%);
  box-shadow: var(--shadow);
}

.signal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.mini-shield,
.row-icon {
  display: grid;
  place-items: center;
}

.mini-shield {
  width: 32px;
  aspect-ratio: 1;
}

.signal-card-name {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.signal-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 50px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 640;
  text-align: left;
  --row-color: var(--ink);
}

.row-icon {
  width: 30px;
  aspect-ratio: 1;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.row-icon svg,
.signal-lines {
  display: block;
}

.row-icon svg {
  width: 20px;
  height: 20px;
}

.row-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.signal-row-evidence { --row-color: var(--evidence); color: var(--row-color); }
.signal-row-confidence { --row-color: var(--confidence); color: var(--row-color); }
.signal-row-caution { --row-color: var(--caution); color: var(--row-color); }

.signal-label {
  color: var(--ink);
}

.signal-bars {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  min-width: 38px;
  height: 24px;
}

.signal-bars i {
  width: 5px;
  border-radius: 999px;
  background: currentColor;
}

.signal-bars i:nth-child(1) { height: 7px; opacity: 0.55; }
.signal-bars i:nth-child(2) { height: 12px; opacity: 0.72; }
.signal-bars i:nth-child(3) { height: 18px; opacity: 0.88; }
.signal-bars i:nth-child(4) { height: 23px; }

.signal-row-caution .signal-bars i:nth-child(3),
.signal-row-caution .signal-bars i:nth-child(4) {
  background: #d5dbe4;
  opacity: 1;
}

.notify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 60px;
  padding: 17px 30px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 660;
  line-height: 1;
  letter-spacing: 0.002em;
  text-decoration: none;
  box-shadow: var(--cta-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.notify-button:hover {
  background: var(--ink-soft);
  box-shadow: var(--cta-shadow-hover);
  transform: translateY(-1px);
}

.notify-button:active {
  transform: translateY(0);
}

.notify-button svg {
  display: block;
  width: 22px;
  height: 22px;
}

.notify-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.notify-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.notify-status.is-success {
  color: var(--evidence);
}

.notify-status.is-error {
  color: var(--caution);
}

.signal-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(14px, 2.5vw, 26px);
  margin: var(--hint-proof-space) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 580;
}

.signal-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.evidence-dot { background: var(--evidence); }
.confidence-dot { background: var(--confidence); }
.caution-dot { background: var(--caution); }

.site-footer {
  min-height: 58px;
  padding: 0 22px 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.96rem;
}

.brand:focus-visible,
.notify-button:focus-visible {
  outline: 3px solid rgba(47, 111, 235, 0.4);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100%, 760px);
    justify-items: center;
    gap: 30px;
  }

  .brand {
    justify-self: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    --eyebrow-title-space: 18px;
    --title-body-space: 18px;
    --body-cta-space: 26px;
    --hint-proof-space: 24px;
    justify-items: center;
    text-align: center;
  }

  .hero-title {
    max-width: 680px;
    font-size: clamp(2.85rem, 10.5vw, 4.8rem);
    line-height: 0.96;
  }

  .hero-lede {
    max-width: 620px;
    margin-inline: auto;
  }

  .notify-form {
    justify-items: center;
  }

  .signal-features {
    justify-content: center;
  }

  .signal-stage {
    width: min(100%, 640px);
  }
}

@media (max-width: 760px) {
  .page-shell {
    min-height: calc(100svh - 52px);
    padding-top: 30px;
  }

  .brand {
    gap: 12px;
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .hero-title {
    max-width: min(100%, 720px);
    font-size: clamp(2.25rem, 9.6vw, 3.05rem);
    line-height: 1;
  }

  .hero-lede {
    max-width: 380px;
    font-size: 1.04rem;
  }

  .signal-stage {
    min-height: 284px;
  }

  .source-window {
    left: 0;
    bottom: 0;
    width: 70%;
    height: 206px;
    padding: 66px 22px 22px;
    border-radius: 17px;
  }

  .source-grid {
    grid-template-columns: 64px 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .source-thumbnail {
    width: 64px;
  }

  .source-line-strong {
    width: 78%;
    margin-bottom: 22px;
  }

  .signal-card {
    right: 0;
    width: 62%;
    min-width: 238px;
    padding: 18px;
    border-radius: 18px;
  }

  .signal-card-head {
    padding-bottom: 13px;
    margin-bottom: 12px;
  }

  .mini-shield {
    width: 28px;
  }

  .signal-card-name {
    font-size: 0.72rem;
  }

  .signal-row {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    min-height: 46px;
    font-size: 0.92rem;
  }

  .row-icon {
    width: 26px;
  }

  .row-icon svg {
    width: 17px;
    height: 17px;
  }

  .signal-bars {
    min-width: 30px;
    gap: 3px;
  }

  .signal-bars i {
    width: 4px;
  }

  .notify-form {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .notify-button {
    width: 100%;
    min-height: 56px;
  }

  .site-footer {
    min-height: 52px;
    padding-bottom: 18px;
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-inline: 18px;
  }

  .hero-title {
    max-width: 260px;
    font-size: clamp(1.85rem, 8.1vw, 2.05rem);
    line-height: 1.08;
    text-wrap: normal;
  }

  .signal-stage {
    min-height: 300px;
  }

  .source-window {
    width: min(78%, 270px);
    opacity: 0.85;
  }

  .signal-card {
    width: min(76%, 272px);
    min-width: 0;
  }

  .signal-row {
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
  }

  .signal-bars {
    min-width: 24px;
    gap: 2px;
  }

  .signal-bars i {
    width: 3px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body {
    grid-template-rows: 1fr;
  }

  .page-shell {
    min-height: 100svh;
    padding: 12px 18px;
    gap: 10px;
  }

  .brand {
    justify-self: center;
    gap: 10px;
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 30px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    --eyebrow-title-space: 8px;
    --title-body-space: 12px;
    --body-cta-space: 16px;
    justify-items: center;
    text-align: center;
  }

  .eyebrow {
    padding: 4px 10px 4px 9px;
    font-size: 0.7rem;
  }

  .hero-title {
    max-width: 650px;
    font-size: clamp(2.05rem, 5.7vw, 3rem);
    line-height: 0.94;
  }

  .hero-lede {
    max-width: 700px;
    margin-top: var(--title-body-space);
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .notify-form {
    width: min(100%, 520px);
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 8px;
    margin-top: var(--body-cta-space);
  }

  .notify-input,
  .notify-button {
    min-height: 48px;
  }

  .notify-input {
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .notify-button {
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .notify-button svg {
    width: 19px;
    height: 19px;
  }

  .notify-status {
    font-size: 0.82rem;
  }

  .signal-features,
  .signal-stage,
  .site-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .signal-card,
  .source-window,
  .notify-form,
  .signal-features {
    animation: rise-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .source-window { animation-delay: 90ms; }
  .notify-form { animation-delay: 160ms; }
  .signal-features { animation-delay: 220ms; }

  .eyebrow-dot {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(47, 111, 235, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(47, 111, 235, 0.04);
  }
}
