/* CounterQC beta-ready landing page */

:root {
  --navy: #071728;
  --navy-2: #0c2137;
  --navy-3: #102a44;
  --cream: #f7f1e8;
  --cream-2: #fffaf2;
  --sand: #e9dbc8;
  --text: #102033;
  --muted: #647386;
  --white: #ffffff;
  --cyan: #09bfd3;
  --cyan-2: #1fe3ef;
  --teal-soft: #e8fbfb;
  --orange-soft: #fff1df;
  --green: #30c69f;
  --red: #e15b64;
  --line: rgba(16, 32, 51, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(7, 23, 40, 0.16);
  --shadow-soft: 0 14px 38px rgba(7, 23, 40, 0.10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(9, 191, 211, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(255, 207, 158, 0.28), transparent 31rem),
    linear-gradient(180deg, var(--cream-2), var(--cream) 54%, #f2e6d7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(16, 32, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.74), transparent 72%);
}

.page-glow {
  position: fixed;
  right: -12rem;
  top: 8rem;
  width: 30rem;
  height: 30rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(9, 191, 211, 0.18);
  filter: blur(80px);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.hero,
.page-hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -18px;
  z-index: -1;
  border: 1px solid rgba(16, 32, 51, 0.10);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 16px 42px rgba(7, 23, 40, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: 168px;
  height: auto;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.main-nav a,
.footer-links a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--navy);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.header-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(7, 23, 40, 0.15);
}

.button {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #00111d;
  border-color: rgba(9, 191, 211, 0.32);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 16px 38px rgba(9, 191, 211, 0.22);
}

.button.secondary {
  color: var(--navy);
  background: rgba(255,255,255,0.66);
  box-shadow: 0 12px 30px rgba(7, 23, 40, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 72px 0 94px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 44px;
  align-items: start;
  padding: 80px 0 34px;
}

.thank-you-hero {
  grid-template-columns: 1fr;
  max-width: 900px;
  min-height: 56vh;
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: #087c8b;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3.15rem, 7vw, 5.85rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.beta-summary h2 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 32px;
  color: #465568;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-preview,
.beta-summary {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(31, 227, 239, 0.18), transparent 18rem),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow);
}

.beta-summary ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
  color: rgba(255,255,255,0.72);
}

.beta-summary li + li {
  margin-top: 0.7rem;
}

.preview-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.preview-header img {
  width: 70px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.preview-header strong,
.preview-header span {
  display: block;
}

.preview-header strong {
  color: var(--white);
}

.preview-header span {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255,255,255,0.06);
}

.flow-item span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--navy);
  background: rgba(255,255,255,0.86);
  font-size: 0.78rem;
  font-weight: 950;
}

.flow-item.active span {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

.flow-item.alert {
  background: rgba(9, 191, 211, 0.13);
  border-color: rgba(31, 227, 239, 0.22);
}

.flow-item strong,
.flow-item small {
  display: block;
}

.flow-item small {
  margin-top: 2px;
  color: rgba(255,255,255,0.62);
}

.section {
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 52px;
  align-items: start;
}

.rich-copy {
  color: #465568;
  font-size: 1.06rem;
}

.rich-copy p:last-child {
  margin-bottom: 0;
}

.problem-grid,
.benefit-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.problem-grid article,
.benefit-grid article,
.check-card,
.mock-window,
.chat-card,
.disclaimer-card,
.beta-card,
.beta-form {
  border: 1px solid rgba(16, 32, 51, 0.10);
  background: rgba(255,255,255,0.70);
  box-shadow: var(--shadow-soft);
}

.problem-grid article {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.problem-grid span {
  display: inline-block;
  margin-bottom: 34px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #087c8b;
  background: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.problem-grid p,
.section-heading p,
.check-summary,
.check-card li,
.benefit-grid p,
.alert-copy p,
.disclaimer-card p,
.beta-card p {
  color: #5e6f82;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.workflow-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.workflow-step {
  min-height: 150px;
  border: 1px solid rgba(16, 32, 51, 0.10);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
}

.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 14px;
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-weight: 950;
}

.workflow-step strong,
.workflow-step small {
  display: block;
}

.workflow-step small {
  margin-top: 4px;
  color: var(--muted);
}

.workflow-arrow {
  display: grid;
  place-items: center;
  color: #0a8391;
  font-size: 1.5rem;
  font-weight: 900;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.check-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.check-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.check-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-size: 0.82rem;
  font-weight: 950;
}

.check-summary {
  margin-bottom: 18px;
  font-size: 1rem;
}

.check-card ul {
  display: grid;
  gap: 9px;
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mock-window {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(16,32,51,0.10);
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68));
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sand);
}

.window-bar strong {
  margin-left: 6px;
  color: var(--navy);
  font-size: 0.88rem;
}

.paper-lines,
.form-grid,
.drawing {
  padding: 20px;
}

.paper-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(16,32,51,0.10);
  padding: 12px 0;
}

.paper-row:first-child {
  padding-top: 0;
}

.paper-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.paper-row span,
.form-grid label,
.form-field label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.paper-row strong {
  color: var(--navy);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid div,
.form-field {
  display: grid;
  gap: 6px;
}

.form-grid input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(16,32,51,0.12);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--navy);
  background: rgba(255,255,255,0.82);
  font: inherit;
  font-weight: 650;
}

.form-field textarea {
  resize: vertical;
}

.drawing {
  position: relative;
  min-height: 265px;
}

.counter-shape {
  position: absolute;
  left: 42px;
  right: 32px;
  top: 70px;
  height: 112px;
  border: 3px solid #667789;
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 24%, rgba(9,191,211,0.10) 24% 26%, transparent 26%),
    rgba(255,255,255,0.60);
}

.sink-cutout {
  position: absolute;
  left: 102px;
  top: 104px;
  width: 78px;
  height: 46px;
  border: 3px solid #667789;
  border-radius: 18px;
  background: var(--cream);
}

.hole {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid #667789;
  border-radius: 999px;
  background: var(--cream);
}

.hole-one {
  left: 210px;
  top: 120px;
}

.hole-two {
  left: 238px;
  top: 120px;
}

.drawing p {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.alert-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: center;
}

.chat-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  background: #ffffff;
}

.chat-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  font-weight: 950;
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.chat-status {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 900;
}

.chat-status.fail {
  color: #5a1319;
  background: #ffe5e7;
}

.chat-issue {
  border: 1px solid rgba(16,32,51,0.10);
  border-radius: 16px;
  padding: 14px;
  background: #fbfaf7;
}

.chat-issue + .chat-issue {
  margin-top: 10px;
}

.chat-issue strong {
  display: block;
  color: var(--navy);
}

.chat-issue p {
  margin: 6px 0;
  color: #4d5d70;
}

.chat-issue small {
  color: var(--muted);
  font-weight: 700;
}

.benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.benefit-grid article {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.disclaimer-card,
.beta-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 34px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 34px;
}

.disclaimer-card {
  background:
    linear-gradient(135deg, rgba(255, 241, 223, 0.9), rgba(255,255,255,0.72));
}

.beta-card {
  grid-template-columns: 1fr auto;
  background:
    radial-gradient(circle at top right, rgba(9,191,211,0.18), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(232,251,251,0.88));
}

.beta-actions {
  display: grid;
  gap: 13px;
  min-width: 240px;
}

.email-link {
  text-align: center;
  color: #087c8b;
  font-weight: 900;
}

.form-section {
  padding-top: 24px;
}

.beta-form {
  display: grid;
  gap: 18px;
  border-radius: var(--radius-xl);
  padding: 30px;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hidden-field {
  display: none;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: end;
  border-top: 1px solid rgba(16,32,51,0.10);
  padding: 38px 0 54px;
}

.site-footer img {
  display: block;
  width: 155px;
  border-radius: 10px;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .workflow-line {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    min-height: 24px;
  }

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

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

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .page-hero,
  .split,
  .checks-grid,
  .alert-section,
  .disclaimer-card,
  .beta-card,
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .beta-actions {
    min-width: 0;
    max-width: 320px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .page-hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header::before {
    inset: 8px -10px;
  }

  .brand img {
    width: 132px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero,
  .page-hero {
    padding: 56px 0 36px;
    gap: 36px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.15rem);
  }

  .hero-actions,
  .beta-actions,
  .form-submit-row {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-preview,
  .beta-summary,
  .check-card,
  .disclaimer-card,
  .beta-card,
  .chat-card,
  .beta-form {
    border-radius: 22px;
    padding: 20px;
  }

  .section {
    padding: 66px 0;
  }

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