:root {
  --teal: oklch(0.47 0.12 178);
  --teal-dark: oklch(0.3 0.06 178);
  --soft-mint: oklch(0.95 0.02 178);
  --page: oklch(0.985 0.005 178);
  --text: oklch(0.2 0.02 260);
  --muted: oklch(0.5 0.02 260);
  --line: oklch(0.91 0.01 260);
  --card-shadow: 0 2px 12px rgba(16, 24, 40, 0.08);
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.narrow {
  width: min(1040px, 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 0;
  background-color: #eadcc3;
  background-image:
    linear-gradient(rgba(234, 220, 195, 0.84), rgba(234, 220, 195, 0.84)),
    url("./color-assets/c6_sand_candle2.jpeg");
  background-position: center;
  background-size: auto, 95px auto;
  background-repeat: repeat;
  backdrop-filter: blur(12px);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 34px;
  position: relative;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg width='64' height='50' viewBox='0 0 64 50' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='25' y='2' width='14' height='14' rx='2' stroke='%23d10c0c' stroke-width='4'/%3E%3Cpath d='M32 16V23' stroke='%23d10c0c' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M32 22L42 32L32 42L22 32L32 22Z' fill='%23d10c0c'/%3E%3Cpath d='M22 32H14C10.7 32 8 34.7 8 38V42' stroke='%23d10c0c' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M42 32H50C53.3 32 56 34.7 56 38V42' stroke='%23d10c0c' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='44' r='6' fill='%23d10c0c'/%3E%3Crect x='50' y='38' width='12' height='12' rx='2' fill='%23d10c0c'/%3E%3C/svg%3E") center / contain no-repeat;
}

.brand-icon::before {
  content: none;
}

.brand-icon::after {
  content: none;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand-atx,
.brand-flow,
.brand-iq {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-atx {
  color: #111111;
}

.brand-flow {
  color: #3b7889;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 -2px 0 rgba(22, 67, 76, 0.34),
    1px 2px 0 rgba(95, 80, 58, 0.22),
    0 4px 6px rgba(20, 58, 66, 0.22);
}

.brand-iq {
  color: #d10c0c;
}

.hero {
  background-color: #0f4e4d;
  background-image: url("./color-assets/c8_dark_teal.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
  padding: 32px 0;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1320px;
}

.hero-copy {
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.hero-copy h1 {
  margin: 0;
  color: #eadcc3;
  font-size: 2.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35),
    0 -2px 0 rgba(92, 70, 40, 0.58),
    1px 2px 0 rgba(58, 42, 18, 0.38),
    0 4px 7px rgba(0, 0, 0, 0.34);
}

.hero-subhead {
  max-width: 32rem;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.primary-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  margin-top: 32px;
  padding: 14px 32px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -4px rgba(16, 24, 40, 0.1);
}

.hero .primary-cta,
.cta-band .primary-cta {
  background-color: #eadcc3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
    url("./color-assets/c6_sand_candle.jpeg");
  background-position: center;
  background-size: auto, 180px auto;
  background-repeat: repeat;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #3b7889;
  font-size: 1.22rem;
  font-weight: 700;
  padding: 18px 46px;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 -1px 0 rgba(31, 77, 86, 0.28),
    0 1px 2px rgba(20, 58, 66, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -4px 0 rgba(76, 66, 50, 0.35),
    inset 0 0 0 1px rgba(60, 120, 137, 0.2),
    0 12px 20px rgba(0, 42, 36, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.16);
}

.hero-panel {
  width: 100%;
}

.hero-panel-inner {
  max-width: 34rem;
  min-height: 0;
  border: 9px solid #a69a86;
  border-radius: 12px;
  background: #ffffff;
  padding: 24px 24px 20px;
  box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.1);
  margin: 0 auto;
}

.hero-panel-label {
  margin: 0 0 30px;
  color: #dd4156;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.hero-carousel {
  position: relative;
  min-height: 400px;
}

.hero-carousel-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}

.hero-carousel-screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel-screen h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 600;
}

.hero-carousel-screen p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.625;
}

.carousel-image {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 300px;
  margin: 12px auto 0;
  border-radius: 8px;
  object-fit: contain;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d0d5dd;
}

.hero-dots span.is-active {
  background: var(--teal);
}

.section {
  padding: 40px 0;
}

.section-muted {
  background: color-mix(in srgb, var(--page) 70%, var(--line));
}

.section-sand-test {
  background-color: var(--page);
  background-image: url("./color-assets/c6_sand_candle.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
}

.section-title {
  margin: 0;
  color: #3b7889;
  text-align: center;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9),
    0 -2px 0 rgba(22, 67, 76, 0.34),
    1px 2px 0 rgba(95, 80, 58, 0.22),
    0 4px 6px rgba(20, 58, 66, 0.22);
}

.section-subtitle {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.steps-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.step-card,
.problem-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.step-card {
  padding: 24px;
  text-align: center;
}

.step-badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 10%, white);
  color: #d10c0c;
  font-size: 1.125rem;
  font-weight: 700;
}

.step-card h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.step-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

.problem-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.problem-card,
.result-card {
  padding: 20px;
}

.problem-card {
  position: relative;
  padding: 0;
}

.problem-card-label {
  min-height: 100%;
  display: block;
  padding: 20px 54px 20px 20px;
  cursor: pointer;
}

.problem-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.problem-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--teal) 45%, white);
  border-radius: 5px;
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.08);
}

.problem-check::after {
  content: "\2713";
  color: #d10c0c;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
}

.problem-checkbox:checked + .problem-check {
  border-color: #d10c0c;
}

.problem-checkbox:checked + .problem-check::after {
  opacity: 1;
  transform: scale(1);
}

.problem-card-label:focus-within .problem-check {
  outline: 2px solid color-mix(in srgb, var(--teal) 55%, white);
  outline-offset: 3px;
}

.problem-title {
  display: block;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.problem-copy {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

.results-card {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.result-item {
  position: relative;
  padding-left: 42px;
}

.result-item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -2px;
  color: #d10c0c;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.result-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.result-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

.mini-strip {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--page) 60%, var(--line));
}

.mini-strip-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 12px 40px;
  color: var(--muted);
  font-size: 0.875rem;
}

.cta-band {
  padding: 64px 0 80px;
  background-color: #0f4e4d;
  background-image: url("./color-assets/c8_dark_teal.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
}

.cta-band-inner {
  max-width: 48rem;
  text-align: center;
  color: #ffffff;
}

.cta-band-inner h2 {
  margin: 0;
  color: #eadcc3;
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35),
    0 -2px 0 rgba(92, 70, 40, 0.58),
    1px 2px 0 rgba(58, 42, 18, 0.38),
    0 4px 7px rgba(0, 0, 0, 0.34);
}

.cta-band-inner p {
  max-width: 36rem;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.5;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  min-height: auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #667085;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.875rem;
}

.footer-copyright {
  color: inherit;
}

.form-page {
  min-height: auto;
}

.form-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 0;
  background-color: #eadcc3;
  background-image:
    linear-gradient(rgba(234, 220, 195, 0.84), rgba(234, 220, 195, 0.84)),
    url("./color-assets/c6_sand_candle2.jpeg");
  background-position: center;
  background-size: auto, 95px auto;
  background-repeat: repeat;
  backdrop-filter: blur(12px);
}

.form-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.back-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-main {
  padding: 48px 0;
}

.form-container {
  max-width: 512px;
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.form-heading-icon {
  color: var(--teal);
  font-size: 1.75rem;
  line-height: 1;
}

.form-heading h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-intro {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.form-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.form-card {
  padding: 24px;
}

.success-card {
  padding: 24px;
  text-align: center;
}

.error-card {
  margin-bottom: 18px;
  border-color: color-mix(in srgb, #d10c0c 38%, var(--line));
  background: color-mix(in srgb, #d10c0c 7%, white);
}

.success-title {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.success-copy {
  margin: 10px 0 0;
  color: var(--muted);
}

.success-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-form {
  display: grid;
  gap: 16px;
}

.field-block {
  display: grid;
  gap: 6px;
}

.field-block label {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 500;
}

.field-block input,
.field-block textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.field-block input {
  min-height: 36px;
  padding: 4px 12px;
  font-size: 0.875rem;
}

.field-block textarea {
  min-height: 64px;
  padding: 8px 12px;
  font-size: 0.875rem;
  resize: vertical;
}

.field-block input::placeholder,
.field-block textarea::placeholder {
  color: var(--muted);
}

.field-block input:focus,
.field-block textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent);
}

.submit-button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background-color: #06483f;
  background-image: url("./color-assets/c8_dark_teal.jpeg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.policy-main {
  padding: 72px 0 28px;
}

.policy-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.policy-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.policy-card h2 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-card ul {
  padding-left: 20px;
}

.legal-page {
  min-height: calc(100vh - 93px);
}

.legal-article {
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  padding: 48px 16px;
  flex: 1;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.legal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.legal-heading-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--teal);
}

.legal-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.legal-updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal-sections {
  display: grid;
  gap: 32px;
}

.legal-sections section h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.legal-sections p,
.legal-sections li {
  margin: 0;
}

.legal-sections p + p,
.legal-sections ul + p,
.legal-sections p + ul {
  margin-top: 12px;
}

.legal-sections ul {
  margin: 0;
  padding-left: 18px;
}

.legal-link {
  color: var(--teal);
}

@media (max-width: 1100px) {
  .steps-grid,
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
    margin: 0 auto;
  }

  .results-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-atx,
  .brand-flow,
  .brand-iq {
    font-size: 1.65rem;
  }

  .hero {
    padding: 32px 0;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-panel-inner {
    min-height: 0;
    padding: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .steps-grid,
  .problem-grid,
  .results-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 24px 0;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    gap: 18px;
  }

  .form-main {
    padding: 36px 0 48px;
  }

  .form-card,
  .success-card {
    padding: 22px 18px;
  }

  .policy-card {
    padding: 28px 22px;
  }

  .legal-article {
    padding: 36px 16px 48px;
  }

  .legal-heading h1 {
    font-size: 1.6rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 40px 0;
  }

  .hero-grid {
    flex-direction: row;
    gap: 0;
  }

  .hero-copy {
    width: 50%;
    padding-right: 40px;
  }

  .hero-panel {
    width: 50%;
    padding-left: 40px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .cta-band-inner h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    padding-right: 64px;
  }

  .hero-panel {
    padding-left: 64px;
  }
}
