/*
 * Temporary landing page for betterseenonline.com, shown until the full website launches.
 * Colors, type and components follow the real site: src/styles/tokens.css, typography.css,
 * components.css, Logo.astro, HeroVisual.astro and Footer.astro. Change those first if the
 * brand changes, then copy the values here.
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/manrope-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-navy: #0f2742;
  --color-blue: #1f6fc2;
  --color-blue-hover: #195b9f;
  --color-light-blue: #eaf3ff;
  --color-text-primary: #152033;
  --color-text-secondary: #5f6b7a;
  --color-text-strong: #314052;
  --color-warm-white: #f7f9fc;
  --color-white: #ffffff;
  --color-border: #d9e2ec;
  --color-success: #16794c;
  --color-blue-tint: #d5e8fd;
  --color-on-dark-muted: #cdd9e5;
  --color-blue-on-dark: #66a7ed;

  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-space: 6rem;
  --container: 1200px;
  --gutter: 2.5rem;
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --shadow-sm: 0 10px 30px rgba(15, 39, 66, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 39, 66, 0.16);
  --header-height: 80px;
}

@media (max-width: 900px) {
  :root {
    --section-space: 4.5rem;
  }
}

@media (max-width: 680px) {
  :root {
    --section-space: 3.5rem;
    --gutter: 2rem;
    --header-height: 64px;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-warm-white);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

svg {
  display: block;
}

a {
  color: var(--color-blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-blue-hover);
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

strong {
  font-weight: 600;
}

/* Typography */
h1,
h2,
h3 {
  color: var(--color-navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 5vw, 4.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--color-text-strong);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nowrap {
  white-space: nowrap;
}

/* Layout */
.container {
  width: min(100% - var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-blue-hover);
  color: var(--color-white);
}

.button--light {
  background: var(--color-white);
  color: var(--color-navy);
}

.button--light:hover {
  background: var(--color-light-blue);
  color: var(--color-navy);
}

/* Logo (Logo.astro) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
}

.logo__mark {
  width: 2rem;
  height: auto;
  flex: 0 0 auto;
}

.logo__wordmark {
  color: var(--color-navy);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo__seen {
  color: var(--color-blue);
}

.logo--reversed .logo__wordmark {
  color: var(--color-white);
}

.logo--reversed .logo__seen {
  color: var(--color-blue-on-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(247, 249, 252, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.status-pill__dot {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-blue);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 6.5rem 7rem;
}

.hero__decor {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero__decor--one {
  top: 10%;
  right: -190px;
  width: 360px;
  height: 360px;
  background: var(--color-light-blue);
}

.hero__decor--two {
  bottom: -48px;
  left: -64px;
  width: 150px;
  height: 150px;
  border: 28px solid var(--color-blue-tint);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 5rem;
}

.hero h1 {
  margin-bottom: 1.75rem;
}

.hero__accent {
  color: var(--color-blue);
}

.hero__lead {
  max-width: 640px;
}

.hero__lead strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.25rem;
}

.hero__support {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__support a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* "Being built" illustration (based on HeroVisual.astro) */
.build-visual {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem 2.5rem;
}

.build-visual__tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
}

.build-visual__tag--top {
  top: 0.4rem;
  right: -1rem;
}

.build-visual__tag--bottom {
  bottom: 0.2rem;
  left: -1.5rem;
}

.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 1.2rem;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 46px;
  padding: 0 0.9rem;
  background: #edf2f7;
}

.browser__bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b4c1cf;
}

.browser__address {
  flex: 1;
  height: 24px;
  margin-left: 0.7rem;
  padding-left: 0.9rem;
  border-radius: 999px;
  background: var(--color-white);
  color: #8895a5;
  font-size: 0.65rem;
  line-height: 24px;
}

.mock {
  padding: 1.2rem;
}

.mock__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.mock__logo {
  display: flex;
  align-items: center;
  height: 20px;
}

.mock__logo i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-navy);
}

.mock__logo i + i {
  margin-left: -5px;
  background: var(--color-blue);
}

.mock__logo b {
  display: block;
  width: 70px;
  height: 7px;
  margin-left: 8px;
  border-radius: 5px;
  background: var(--color-navy);
}

.mock__links {
  display: flex;
  gap: 10px;
}

.mock__links b {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: #cbd5df;
}

.mock__hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 250px;
  padding: 2rem;
  border-radius: 0.9rem;
  background: var(--color-light-blue);
}

.mock__label,
.mock__title,
.mock__line,
.mock__button {
  display: block;
  border-radius: 4px;
}

.mock__label {
  width: 65px;
  height: 5px;
  margin-bottom: 0.9rem;
  background: var(--color-blue);
}

.mock__title {
  width: 90%;
  height: 18px;
  margin-bottom: 0.6rem;
  border-radius: 6px;
  background: var(--color-navy);
}

.mock__title--short {
  width: 62%;
  margin-bottom: 1.1rem;
}

.mock__line {
  width: 95%;
  height: 7px;
  margin-bottom: 8px;
  background: #a9b8c7;
}

.mock__line--short {
  width: 65%;
}

.mock__button {
  width: 115px;
  height: 30px;
  margin-top: 1rem;
  border-radius: 0.45rem;
  background: var(--color-blue);
}

.mock__circles {
  position: relative;
  height: 180px;
}

.mock__circle {
  position: absolute;
  border-radius: 50%;
}

.mock__circle--navy {
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: var(--color-navy);
}

.mock__circle--blue {
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: var(--color-blue);
  opacity: 0.92;
}

.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.mock__cards > div {
  padding: 0.8rem;
  border: 1px dashed #b8c6d4;
  border-radius: 0.65rem;
}

.mock__cards span {
  color: var(--color-blue);
  font-size: 0.55rem;
  font-weight: 700;
}

.mock__cards b,
.mock__cards i {
  display: block;
  border-radius: 4px;
}

.mock__cards b {
  width: 70%;
  height: 6px;
  margin: 0.55rem 0;
  background: #c3cfdb;
}

.mock__cards i {
  width: 90%;
  height: 4px;
  background: #dde5ed;
}

/* Gentle motion: the page "fills in", and the status dot pulses. Off when the visitor
   prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .mock__title,
  .mock__line,
  .mock__button,
  .mock__cards b,
  .mock__cards i {
    transform-origin: left center;
    animation: build-in 5s ease-in-out infinite;
  }

  .mock__title--short { animation-delay: 0.25s; }
  .mock__line { animation-delay: 0.5s; }
  .mock__line--short { animation-delay: 0.75s; }
  .mock__button { animation-delay: 1s; }
  .mock__cards > div:nth-child(1) b, .mock__cards > div:nth-child(1) i { animation-delay: 1.25s; }
  .mock__cards > div:nth-child(2) b, .mock__cards > div:nth-child(2) i { animation-delay: 1.5s; }
  .mock__cards > div:nth-child(3) b, .mock__cards > div:nth-child(3) i { animation-delay: 1.75s; }

  .status-pill__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s ease-out infinite;
  }
}

@keyframes build-in {
  0% { transform: scaleX(0); }
  18%, 82% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* What is coming */
.coming {
  background: var(--color-white);
}

.coming__intro {
  max-width: 820px;
  margin-bottom: 3rem;
}

.coming__intro .lead {
  margin-top: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--color-light-blue);
  color: var(--color-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card__title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.coming__more {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--color-light-blue);
}

.coming__more h3 {
  margin-bottom: 1.1rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-text-strong);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.75rem;
  border: 3px solid var(--color-blue);
  border-radius: 50%;
}

/* Call to action (CtaSection.astro) */
.cta {
  padding-block: var(--section-space);
  background: var(--color-blue);
  color: var(--color-white);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.cta h2 {
  color: var(--color-white);
}

.cta p {
  margin-top: 1.25rem;
  color: var(--color-light-blue);
}

.cta__actions {
  display: flex;
  justify-content: flex-end;
}

.cta :focus-visible {
  outline-color: var(--color-white);
}

/* Footer (Footer.astro) */
.site-footer {
  padding: 4.5rem 0 2rem;
  background: var(--color-navy);
  color: var(--color-on-dark-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.site-footer h2 {
  margin-bottom: 1.1rem;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-footer a {
  color: #e3ecf4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--color-white);
}

.site-footer__brand p {
  max-width: 380px;
  margin-top: 1.3rem;
}

.site-footer__promise {
  color: var(--color-white);
  font-weight: 600;
}

.site-footer__contact {
  justify-self: end;
  min-width: 280px;
}

.site-footer__person {
  margin-bottom: 0.55rem;
  color: var(--color-white);
  font-weight: 600;
}

.site-footer__label {
  color: var(--color-on-dark-muted);
}

.site-footer address {
  margin-top: 1rem;
  font-style: normal;
}

.site-footer__area {
  margin-top: 1rem;
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

.site-footer__legal-text {
  max-width: 560px;
}

.site-footer__legal-text p + p {
  margin-top: 0.35rem;
}

.site-footer__privacy {
  max-width: 420px;
}

/* 404 page: only the base row */
.site-footer--compact {
  padding-top: 2.5rem;
}

.site-footer--compact .site-footer__base {
  padding-top: 0;
  border-top: 0;
}

/* 404 page */
.not-found {
  padding-block: 7rem 8rem;
}

.not-found__inner {
  max-width: 720px;
}

.not-found .lead {
  margin: 1.5rem 0 2rem;
}

/* Medium screens */
@media (max-width: 1080px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero__grid,
  .cta__inner {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 3rem;
  }

  .build-visual {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .cta__inner {
    gap: 2rem;
  }

  .cta__actions {
    justify-content: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__contact {
    justify-self: start;
  }

  .site-footer__base {
    flex-direction: column;
  }
}

/* Phones */
@media (max-width: 680px) {
  body {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo__mark {
    width: 1.8rem;
  }

  .logo__wordmark {
    font-size: 0.95rem;
  }

  .status-pill {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
  }

  .hero {
    padding-block: 3.5rem 4rem;
  }

  .hero__actions .button,
  .cta__actions,
  .cta__actions .button {
    width: 100%;
  }

  .build-visual {
    padding: 2.3rem 0 0.5rem;
  }

  .build-visual__tag--top {
    right: -0.3rem;
  }

  .build-visual__tag--bottom {
    bottom: -0.6rem;
    left: -0.3rem;
  }

  .mock {
    padding: 0.7rem;
  }

  .mock__hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.2rem;
  }

  .mock__circles {
    justify-self: center;
    width: 160px;
    height: 105px;
    margin-top: 1rem;
  }

  .mock__circle--navy {
    width: 105px;
    height: 105px;
  }

  .mock__circle--blue {
    left: 80px;
    right: auto;
    width: 75px;
    height: 75px;
  }

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

  .mock__cards > div:nth-child(n + 2) {
    display: none;
  }

  .coming__intro {
    margin-bottom: 2rem;
  }

  .card-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .coming__more {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .site-footer {
    padding-top: 3.5rem;
  }

  .site-footer__contact {
    min-width: 0;
  }

  .not-found {
    padding-block: 4.5rem 5rem;
  }
}

/* Very narrow phones: the header pill gives way to the logo */
@media (max-width: 400px) {
  .site-header .status-pill {
    display: none;
  }
}
