:root {
  color-scheme: light;
  --good-blue: #1b63b3;
  --good-blue-bright: #249ee9;
  --good-navy: #1d2d44;
  --good-ink: #15243a;
  --good-muted: #5c6b7e;
  --good-paper: #f5f9ff;
  --good-card: #ffffff;
  --good-line: #d8e5f4;
  --good-green: #24a66a;
}

html {
  background: var(--good-paper);
  scroll-behavior: smooth;
}

body.marketing-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(36, 158, 233, 0.14), transparent 28rem),
    linear-gradient(180deg, #f9fbff 0%, var(--good-paper) 72%);
  color: var(--good-ink);
  font-family: "Quicksand", sans-serif;
}

.marketing-page *,
.marketing-page *::before,
.marketing-page *::after {
  box-sizing: border-box;
}

.marketing-page a,
.marketing-page button,
.marketing-page input {
  font-family: inherit;
}

.marketing-page a:focus-visible,
.marketing-page button:focus-visible,
.marketing-page input:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--good-navy);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.marketing-container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 1.2rem 0;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  color: var(--good-navy);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.wordmark:hover {
  color: var(--good-navy);
}

.wordmark span {
  color: var(--good-blue);
}

.login-link,
.home-link {
  color: var(--good-navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(29, 45, 68, 0.3);
  text-underline-offset: 0.3rem;
}

.login-link:hover,
.home-link:hover {
  color: var(--good-blue);
  text-decoration-color: currentColor;
}

.hero-section {
  padding: 2.8rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 4rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--good-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1,
.not-found-card h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--good-navy);
  font-size: clamp(2.7rem, 13vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--good-muted);
  font-size: clamp(1.03rem, 3.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
}

.claim-form {
  max-width: 42rem;
  margin-top: 2rem;
}

.claim-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--good-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.claim-controls {
  display: grid;
  gap: 0.75rem;
}

.handle-control {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--good-line);
  border-radius: 0.85rem;
  background: var(--good-card);
  box-shadow: 0 0.8rem 2.2rem rgba(29, 45, 68, 0.08);
}

.handle-prefix {
  flex: none;
  padding-left: 1rem;
  color: var(--good-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.handle-control input {
  min-width: 0;
  width: 100%;
  height: 3.4rem;
  padding: 0.1rem 0.85rem 0.1rem 0;
  border: 0;
  background: transparent;
  color: var(--good-navy);
  font-size: 1rem;
  font-weight: 700;
}

.handle-control input::placeholder {
  color: #8c98a9;
  opacity: 1;
}

.claim-controls button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--good-blue);
  box-shadow: 0 0.8rem 1.8rem rgba(27, 99, 179, 0.24);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.claim-controls button:hover,
.primary-link:hover {
  background: #155497;
  color: #fff;
}

.form-note {
  margin: 0.65rem 0 0;
  color: var(--good-muted);
  font-size: 0.77rem;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.8rem 0 0;
  padding: 0;
  color: var(--good-navy);
  font-size: 0.78rem;
  font-weight: 600;
  list-style: none;
}

.benefit-list li::before {
  content: "✓";
  margin-right: 0.35rem;
  color: var(--good-green);
  font-weight: 700;
}

.preview-stage {
  position: relative;
  display: grid;
  min-height: 31rem;
  place-items: center;
}

.phone-preview {
  position: relative;
  z-index: 2;
  width: min(78vw, 17.5rem);
  min-height: 31rem;
  padding: 0.55rem;
  border: 0.38rem solid var(--good-navy);
  border-radius: 2.5rem;
  background: var(--good-navy);
  box-shadow: 0 2.5rem 5rem rgba(29, 45, 68, 0.22);
  transform: rotate(2.5deg);
}

.phone-top {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  z-index: 3;
  width: 4.5rem;
  height: 0.34rem;
  border-radius: 1rem;
  background: rgba(29, 45, 68, 0.55);
  transform: translateX(-50%);
}

.preview-card {
  display: flex;
  min-height: 29.25rem;
  padding: 3rem 1.2rem 1.35rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.9)),
    url("/images/treeline-1.jpg") center / cover;
  flex-direction: column;
  align-items: center;
}

.preview-avatar {
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--good-blue), var(--good-blue-bright));
  box-shadow: 0 0.7rem 1.6rem rgba(29, 45, 68, 0.18);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  place-items: center;
}

.preview-name {
  max-width: 100%;
  margin: 0.75rem 0 0;
  overflow: hidden;
  color: var(--good-navy);
  font-size: 1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-bio {
  margin: 0.3rem 0 0;
  color: var(--good-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.preview-links {
  display: grid;
  width: 100%;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.preview-links span {
  padding: 0.72rem 0.6rem;
  border: 1px solid rgba(29, 45, 68, 0.12);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--good-navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.preview-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.preview-socials span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--good-blue);
}

.preview-url {
  position: absolute;
  right: max(0rem, calc(50% - 11rem));
  bottom: 0.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  max-width: 92%;
  margin: 0;
  overflow: hidden;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--good-line);
  border-radius: 2rem;
  background: var(--good-card);
  box-shadow: 0 0.8rem 2rem rgba(29, 45, 68, 0.12);
  color: var(--good-navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--good-green);
  box-shadow: 0 0 0 0.22rem rgba(36, 166, 106, 0.13);
}

.preview-orbit {
  position: absolute;
  border: 1px solid rgba(27, 99, 179, 0.16);
  border-radius: 50%;
}

.preview-orbit-one {
  width: 24rem;
  height: 24rem;
}

.preview-orbit-two {
  width: 31rem;
  height: 31rem;
}

.ownership-strip {
  border-top: 1px solid var(--good-line);
  border-bottom: 1px solid var(--good-line);
  background: rgba(255, 255, 255, 0.5);
}

.ownership-inner {
  display: grid;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.strip-number {
  margin: 0;
  color: var(--good-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ownership-inner h2 {
  margin: 0;
  color: var(--good-navy);
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ownership-inner div p {
  max-width: 43rem;
  margin: 0.75rem 0 0;
  color: var(--good-muted);
  line-height: 1.65;
}

.site-footer {
  padding: 2rem 0;
}

.footer-inner {
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--good-muted);
  font-size: 0.78rem;
  text-align: right;
}

.footer-wordmark {
  font-size: 1.1rem;
}

.not-found-main {
  position: relative;
  display: grid;
  min-height: calc(100vh - 5rem);
  padding: 3rem 1rem 6rem;
  overflow: hidden;
  place-items: center;
}

.not-found-card {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  text-align: center;
}

.error-code {
  margin: 0 0 1.5rem;
  color: rgba(27, 99, 179, 0.24);
  font-size: clamp(4.8rem, 24vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.8;
}

.error-code span {
  color: var(--good-blue-bright);
}

.not-found-card h1 {
  max-width: none;
  font-size: clamp(2.35rem, 10vw, 4.5rem);
  overflow-wrap: anywhere;
}

.not-found-copy {
  max-width: 34rem;
  margin: 1.3rem auto 0;
  color: var(--good-muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.primary-link {
  margin-top: 1.75rem;
}

.home-link {
  display: block;
  width: max-content;
  margin: 1.35rem auto 0;
}

.not-found-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.link-loop {
  position: absolute;
  width: 8rem;
  height: 3.5rem;
  border: 0.8rem solid rgba(36, 158, 233, 0.13);
  border-radius: 4rem;
  transform: rotate(-35deg);
}

.loop-one {
  top: 13%;
  left: -2rem;
}

.loop-two {
  right: -1.5rem;
  bottom: 15%;
  transform: rotate(-35deg) scale(1.25);
}

.spark {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--good-blue-bright);
  opacity: 0.45;
}

.spark-one {
  top: 22%;
  right: 12%;
}

.spark-two {
  bottom: 22%;
  left: 14%;
}

.spark-three {
  top: 44%;
  left: 6%;
  width: 0.35rem;
  height: 0.35rem;
}

@media (min-width: 40rem) {
  .marketing-container {
    width: min(100% - 4rem, 72rem);
  }

  .site-header {
    padding: 1.65rem 0;
  }

  .claim-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .claim-controls button {
    white-space: nowrap;
  }

  .ownership-inner {
    grid-template-columns: 4rem 1fr;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 58rem) {
  .hero-section {
    padding: 4.8rem 0 6.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
    align-items: center;
    gap: 3rem;
  }

  .preview-stage {
    min-height: 34rem;
  }

  .not-found-main {
    padding-top: 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --good-ink: #edf5ff;
    --good-muted: #adbed2;
    --good-paper: #101a29;
    --good-card: #1a2a3e;
    --good-line: #30445d;
  }

  body.marketing-page {
    background:
      radial-gradient(circle at 88% 12%, rgba(36, 158, 233, 0.16), transparent 28rem),
      linear-gradient(180deg, #132033 0%, var(--good-paper) 72%);
  }

  .wordmark,
  .wordmark:hover,
  .login-link,
  .home-link,
  .hero-copy h1,
  .not-found-card h1,
  .claim-label,
  .handle-control input,
  .benefit-list,
  .ownership-inner h2,
  .preview-url {
    color: #edf5ff;
  }

  .handle-control,
  .preview-url {
    box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.18);
  }

  .ownership-strip {
    background: rgba(255, 255, 255, 0.025);
  }

  .error-code {
    color: rgba(36, 158, 233, 0.22);
  }

  .wordmark span,
  .eyebrow,
  .strip-number {
    color: #67bdf1;
  }
}

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

  .marketing-page *,
  .marketing-page *::before,
  .marketing-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
