
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Permanent+Marker&display=swap');

:root {
  --purple: #7548db;
  --purple-dark: #5730b7;
  --purple-light: #f2edff;
  --navy: #192342;
  --text: #4d5870;
  --white: #fff;
  --border: #e9e5f2;
  --shadow: 0 14px 40px rgba(41, 25, 88, .09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

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

h1, h2, h3 {
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

p {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid #b39aff;
  outline-offset: 4px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.3;
  text-align: center;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 5px 16px rgba(117, 72, 219, .18);
}

.btn-primary:hover {
  background: var(--purple-dark);
}

.btn-outline {
  background: white;
  border-color: var(--purple);
  color: var(--purple-dark);
}

.btn-outline:hover {
  background: var(--purple-light);
}

.btn-light {
  background: white;
  color: var(--purple-dark);
}

.btn-light-outline {
  border-color: rgba(255,255,255,.8);
  background: transparent;
  color: white;
}

.btn-light-outline:hover {
  background: rgba(255,255,255,.13);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1;
  white-space: nowrap;
}

.brand span {
  color: var(--purple);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav > a {
  font-size: .88rem;
  font-weight: 700;
  transition: color .2s;
}

.site-nav > a:hover {
  color: var(--purple);
}

.site-nav .btn {
  padding: 11px 17px;
  font-size: .84rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.7rem;
}

/* HERO */

.hero {
  overflow: hidden;
  background: linear-gradient(120deg, #fff 20%, #f6f1ff 100%);
  padding: 95px 0 75px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 45px;
}

.eyebrow {
  display: inline-block;
  color: var(--purple-dark);
  background: #eee5ff;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 25px;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin-bottom: 25px;
}

.handwritten {
  display: inline-block;
  color: var(--purple);
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  letter-spacing: -.035em;
  transform: rotate(-3deg);
}

.hero-subtitle {
  max-width: 520px;
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.hero-actions, .signup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.small-note {
  font-size: .78rem;
  opacity: .78;
  margin-top: 18px;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.hero-illustration img {
  width: min(100%, 550px);
  height: auto;
  filter: drop-shadow(0 25px 28px rgba(71, 46, 125, .12));
}

/* AUDIENCE CARDS */

.audience-section {
  padding-top: 70px;
  padding-bottom: 35px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.audience-card {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: var(--purple-light);
  font-size: 1.7rem;
}

.audience-card h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
}

.audience-card p {
  font-size: .96rem;
}

.text-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--purple-dark);
  font-weight: 800;
  text-align: left;
}

.text-link:hover {
  text-decoration: underline;
}

/* GRADIENT PANELS */

.gradient-panel {
  border-radius: 27px;
  background: linear-gradient(115deg, #5430b6, #8b58eb);
  color: white;
  box-shadow: 0 18px 45px rgba(89, 49, 183, .16);
}

.gradient-panel p {
  color: rgba(255,255,255,.9);
}

.feature-label {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 30px;
  padding: 5px 12px;
  color: white;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.insights-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 50px;
  padding: 48px 55px;
  min-height: 350px;
}

.insights-copy h2 {
  margin: 17px 0 10px;
}

.insights-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
}

.insights-copy p {
  max-width: 510px;
  margin-bottom: 12px;
}

.insights-preview {
  border-radius: 19px;
  padding: 25px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 15px 35px rgba(30, 15, 70, .15);
  transform: rotate(2deg);
}

.preview-title {
  color: var(--navy) !important;
  font-weight: 800;
  margin-bottom: 15px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .82rem;
}

.preview-row span {
  color: var(--text);
}

.preview-row strong {
  text-align: right;
}

.preview-placeholder {
  margin: 18px 0 5px;
  border-radius: 9px;
  padding: 14px;
  background: var(--purple-light);
  color: var(--purple-dark) !important;
  font-weight: 800;
  font-size: .85rem;
  text-align: center;
}

.preview-disclaimer {
  color: var(--text) !important;
  text-align: center;
  font-size: .7rem;
  margin-bottom: 0;
}

/* HOW IT WORKS */

.how-section {
  background: #fbfaff;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.tab {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 26px;
  background: white;
  color: var(--text);
  font-weight: 800;
}

.tab.active,
.tab[aria-selected="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 32px;
  background: white;
  box-shadow: 0 8px 25px rgba(41, 25, 88, .04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 800;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: .93rem;
  margin-bottom: 0;
}

/* SIGNUP */

.signup-section {
  padding: 80px 0;
}

.signup-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 55px 30px;
  text-align: center;
}

.signup-panel h2 {
  margin: 20px 0 15px;
}

.signup-panel > p {
  max-width: 560px;
  margin-bottom: 25px;
}

.signup-actions {
  justify-content: center;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner .brand {
  font-size: 1.5rem;
}

.footer-inner p {
  font-size: .8rem;
  margin: 0;
}

.footer-inner > a:last-child {
  color: var(--purple-dark);
  font-weight: 700;
  font-size: .85rem;
}

/* SIGNUP MODAL */

.signup-modal {
  width: min(460px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(22, 15, 50, .3);
}

.signup-modal::backdrop {
  background: rgba(20, 15, 40, .65);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  padding: 35px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 17px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
}

.modal-content h2 {
  font-size: 1.7rem;
  padding-right: 20px;
}

.modal-content > p,
#signup-intro > p {
    font-size: .92rem;
}

.role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  padding: 0;
  border: 0;
}

.role-options legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.role-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

#signup-form > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

#signup-email {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  border: 1px solid #cfc7e4;
  border-radius: 11px;
  padding: 13px 15px;
  background: white;
  color: var(--navy);
}

#signup-email:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.btn-full {
  width: 100%;
}

.privacy-note {
  margin: 14px 0 0;
  font-size: .76rem;
  text-align: center;
}

.form-status {
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  margin: 12px 0 0;
}

.form-status:empty {
  display: none;
}

/* TABLET */

@media (max-width: 950px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav > a {
    font-size: .8rem;
  }

  .hero-grid {
    gap: 20px;
  }

  .insights-panel {
    padding: 38px;
    gap: 30px;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .section {
    padding: 55px 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    font-size: 1.8rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 20px 22px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 13px 5px;
    font-size: .95rem;
  }

  .site-nav .btn {
    margin-top: 12px;
  }

  .hero {
    padding: 55px 0 40px;
  }

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

  .hero h1 {
    font-size: clamp(2.5rem, 9vw, 3.6rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-illustration {
    min-height: 0;
  }

  .hero-illustration img {
    max-width: 380px;
  }

  .audience-grid,
  .insights-panel,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    padding: 28px;
  }

  .insights-panel {
    padding: 32px 25px;
  }

  .insights-preview {
    transform: none;
  }

  .signup-panel {
    min-height: 360px;
    padding: 45px 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .signup-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1;
    padding: 12px;
  }

  .modal-content {
    padding: 28px 22px;
  }
}

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

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}


/* ========================================
   HERO REDESIGN — ORIGINAL ANYWYA CONCEPT
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(
      ellipse at 95% 80%,
      rgba(170, 130, 255, .26),
      transparent 55%
    ),
    linear-gradient(
      115deg,
      #f1e9ff 0%,
      #faf8ff 52%,
      #eee3ff 100%
    );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 0;
  min-height: 440px;
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 40px 0 45px;
}

.hero-wordmark {
  color: #090e27;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.075em;
  margin-bottom: 25px;
}

.hero-wordmark span {
  color: #7200f5;
}

.hero h1 {
  max-width: none;
  width: max-content;
  max-width: 100%;
  font-size: clamp(1.4rem, 2.45vw, 2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.35;
  margin-bottom: 15px;
}

.hero .handwritten {
  display: inline-block;
  font-size: 1.22em;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 740px;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.hero-note {
  color: var(--navy);
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 25px;
}

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

.hero-actions .btn {
  padding: 14px 24px;
  font-size: .95rem;
}

.hero-illustration {
  position: relative;
  z-index: 1;
  align-self: end;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: end;
}

.hero-illustration img {
  display: block;
  width: 430px;
  max-width: none;
  height: auto;
  margin-right: -35px;
  filter: none;
}

/* Tablet */
@media (max-width: 950px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    min-height: 400px;
  }

  .hero-wordmark {
    font-size: clamp(4rem, 9vw, 6rem);
  }

  .hero h1 {
    width: auto;
    font-size: 1.55rem;
  }

  .hero-illustration img {
    width: 350px;
    margin-right: -30px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-content {
    padding: 45px 0 10px;
  }

  .hero-wordmark {
    font-size: clamp(4rem, 16vw, 6rem);
    margin-bottom: 22px;
  }

  .hero h1 {
    width: auto;
    max-width: 100%;
    font-size: clamp(1.55rem, 5.5vw, 2rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-illustration {
    justify-content: center;
    height: auto;
  }

  .hero-illustration img {
    width: min(85vw, 420px);
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .hero-wordmark {
    font-size: 15vw;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}


/* ========================================
   HERO FINISHING DETAILS
   ======================================== */

/* Layered purple background waves */

.hero-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.wave {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.wave-one {
  width: 850px;
  height: 550px;
  right: -440px;
  top: -125px;
  background: rgba(159, 112, 242, .12);
  transform: rotate(-25deg);
}

.wave-two {
  width: 790px;
  height: 420px;
  right: -380px;
  bottom: -270px;
  background: rgba(144, 93, 232, .16);
  transform: rotate(-20deg);
}

.wave-three {
  width: 650px;
  height: 300px;
  right: 70px;
  bottom: -245px;
  background: rgba(168, 117, 250, .18);
  transform: rotate(-20deg);
}

.hero-grid {
  z-index: 1;
}

/* Hand-drawn curved underline */

.hero-swoosh {
  position: relative;
  isolation: isolate;
}

.hero-swoosh::after {
  content: "";
  position: absolute;
  left: 9%;
  bottom: -12px;
  width: 83%;
  height: 13px;
  border-bottom: 5px solid #7300f5;
  border-radius: 0 0 50% 50%;
  transform: rotate(-4deg);
  pointer-events: none;
}

/* Three black emphasis marks near the thumb */

.thumb-rays {
  position: absolute;
  z-index: 3;
  left: -5px;
  top: 38%;
  width: 55px;
  height: 70px;
  pointer-events: none;
}

.thumb-rays i {
  position: absolute;
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 10px;
  background: #101329;
  transform-origin: right center;
}

.thumb-rays i:nth-child(1) {
  top: 10px;
  left: 9px;
  transform: rotate(45deg);
}

.thumb-rays i:nth-child(2) {
  top: 30px;
  left: 1px;
  transform: rotate(12deg);
}

.thumb-rays i:nth-child(3) {
  top: 50px;
  left: 10px;
  transform: rotate(-25deg);
}

/* Slightly larger technician */

@media (min-width: 951px) {
  .hero-illustration img {
    width: 465px;
    margin-right: -40px;
  }
}

/* Tablet and mobile adjustments */

@media (max-width: 950px) {
  .thumb-rays {
    left: -12px;
    top: 39%;
    transform: scale(.8);
  }

  .wave-one {
    right: -580px;
  }

  .wave-two {
    right: -500px;
  }
}

@media (max-width: 760px) {
  .hero-swoosh::after {
    bottom: -9px;
    height: 9px;
    border-bottom-width: 4px;
  }

  .thumb-rays {
    left: calc(50% - 180px);
    top: 38%;
    transform: scale(.75);
  }

  .wave-one {
    width: 550px;
    height: 450px;
    right: -350px;
    top: 80px;
  }

  .wave-two {
    width: 550px;
    right: -320px;
    bottom: -230px;
  }

  .wave-three {
    width: 450px;
    right: 10px;
    bottom: -200px;
  }
}

/* Fix thumb emphasis lines */
.hero-illustration {
  isolation: isolate;
}

.thumb-rays {
  z-index: 5;
  left: -30px;
  top: 39%;
}


/* ========================================
   AUDIENCE CARDS — ORIGINAL DESIGN
   ======================================== */

.audience-section {
  padding-top: 38px;
  padding-bottom: 25px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.audience-card {
  border: none;
  border-radius: 23px;
  padding: 30px;
  box-shadow: none;
  transition: transform .2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
}

.msp-card {
  background: linear-gradient(120deg, #edf4ff, #e7eeff);
}

.technician-card {
  background: linear-gradient(120deg, #f4edff, #eee4ff);
}

.audience-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.audience-icon {
  flex: 0 0 65px;
  color: #7135e9;
}

.audience-icon svg {
  display: block;
  width: 65px;
  height: 65px;
}

.msp-card .audience-icon {
  color: #4c62ff;
}

.audience-copy {
  min-width: 0;
}

.audience-copy h2 {
  color: #10152e;
  font-size: 1.55rem;
  margin-bottom: 5px;
}

.audience-copy h3 {
  color: #6900e7;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.audience-copy p {
  color: #27304c;
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.audience-copy .text-link {
  color: #6226d8;
  font-size: .86rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .audience-card {
    padding: 25px;
  }

  .audience-icon {
    flex-basis: 48px;
  }

  .audience-icon svg {
    width: 48px;
    height: 48px;
  }

  .audience-copy h2 {
    font-size: 1.4rem;
  }

  .audience-copy h3 {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .audience-card-inner {
    gap: 13px;
  }

  .audience-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-card {
    transition: none;
  }

  .audience-card:hover {
    transform: none;
  }
}



/* ========================================
   MARKET INSIGHTS — MOCKUP REDESIGN
   ======================================== */

.market-section {
  padding: 20px 0 65px;
}

.market-section .insights-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 350px;
  align-items: center;
  gap: 30px;
  min-height: 345px;
  padding: 42px 38px;
  border-radius: 25px;
  background:
    radial-gradient(
      ellipse at 70% 45%,
      rgba(124, 60, 224, .32),
      transparent 58%
    ),
    linear-gradient(
      110deg,
      #21133f 0%,
      #3a1b66 53%,
      #21143e 100%
    );
  box-shadow: 0 18px 42px rgba(35, 19, 75, .16);
}

/* Glowing analytics illustration */

.market-section .insights-art {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6efff;
  filter:
    drop-shadow(0 0 12px rgba(200, 160, 255, .75))
    drop-shadow(0 0 26px rgba(150, 80, 255, .45));
}

.market-section .insights-art svg {
  display: block;
  width: 150px;
  height: 150px;
  max-width: 100%;
}

/* Heading and description */

.market-section .insights-copy {
  min-width: 0;
  padding-left: 26px;
  border-left: 2px solid rgba(255,255,255,.48);
}

.market-section .feature-label {
  padding: 6px 13px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 30px;
  font-size: .7rem;
  letter-spacing: .07em;
}

.market-section .insights-copy h2 {
  color: #fff;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.13;
  letter-spacing: -.04em;
  margin: 16px 0 12px;
}

.market-section .insights-copy h3 {
  color: #f1b9ff;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 17px;
}

.market-section .insights-copy > p {
  color: rgba(255,255,255,.93);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.market-section .insights-copy .insights-disclaimer {
  color: rgba(255,255,255,.64);
  font-size: .73rem;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Larger rate insights preview */

.market-section .insights-preview {
  width: 100%;
  padding: 25px;
  border-radius: 19px;
  background: #faf8ff;
  transform: rotate(1deg);
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
}

.market-section .preview-title {
  color: #16152d !important;
  font-size: 1.08rem;
  text-align: center;
  margin-bottom: 18px;
}

.market-section .preview-row {
  padding: 11px 0;
  font-size: .85rem;
}

.market-section .preview-placeholder {
  margin: 20px 0 8px;
  padding: 20px 12px;
  border-radius: 11px;
  background: linear-gradient(90deg, #efe5ff, #e4d3ff);
  color: #6127d5 !important;
  font-size: .9rem;
  font-weight: 800;
}

.market-section .preview-disclaimer {
  margin-top: 12px;
  font-size: .72rem;
}

/* Intermediate desktop / tablet */

@media (max-width: 1100px) {
  .market-section .insights-panel {
    grid-template-columns: 100px minmax(0, 1fr) 280px;
    gap: 20px;
    padding: 32px 26px;
  }

  .market-section .insights-art svg {
    width: 100px;
    height: 100px;
  }

  .market-section .insights-copy {
    padding-left: 18px;
  }

  .market-section .insights-copy h2 {
    font-size: 1.7rem;
  }

  .market-section .insights-copy h3 {
    font-size: 1.12rem;
  }

  .market-section .insights-preview {
    padding: 19px;
  }
}

/* Small tablets: give the text room */

@media (min-width: 761px) and (max-width: 900px) {
  .market-section .insights-panel {
    grid-template-columns: 85px minmax(0, 1fr);
  }

  .market-section .insights-art svg {
    width: 85px;
    height: 85px;
  }

  .market-section .insights-preview {
    grid-column: 1 / -1;
    max-width: 440px;
    justify-self: center;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .market-section {
    padding: 15px 0 45px;
  }

  .market-section .insights-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 25px;
  }

  .market-section .insights-art {
    justify-content: flex-start;
  }

  .market-section .insights-art svg {
    width: 110px;
    height: 110px;
  }

  .market-section .insights-copy {
    padding-left: 0;
    border-left: 0;
  }

  .market-section .insights-copy h2 {
    font-size: 1.9rem;
  }

  .market-section .insights-copy h3 {
    font-size: 1.3rem;
  }

  .market-section .insights-preview {
    max-width: 460px;
    transform: none;
  }
}


/* ========================================
   MARKET INSIGHTS — RATE WIDGET
   ======================================== */

.market-section .insights-preview {
  padding: 15px 15px 17px;
  background: linear-gradient(145deg, #fff, #f2ebff);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  transform: rotate(1deg);
  box-shadow: 0 15px 32px rgba(0,0,0,.22);
}

/* Filter controls */

.rate-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rate-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3d8ff;
  border-radius: 10px;
  background: #faf7ff;
  box-shadow: 0 3px 7px rgba(88,49,166,.12);
  color: #10152e;
  font-size: .7rem;
  line-height: 1.2;
  white-space: nowrap;
}

.rate-filter > span:first-child {
  font-weight: 800;
}

.rate-filter strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .7rem;
}

.filter-chevron {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #35225e;
  border-bottom: 2px solid #35225e;
  transform: rotate(45deg) translateY(-2px);
}

/* Main rate display */

.rate-display {
  text-align: center;
  padding: 16px 0 18px;
}

.rate-heading {
  color: #18132e !important;
  font-size: .98rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.rate-amount {
  color: #101026;
  font-size: clamp(2.7rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.1;
}

.rate-amount span {
  font-size: .58em;
  letter-spacing: -.04em;
}

/* Purple comparison gauge */

.rate-gauge {
  padding: 0 10px;
}

.rate-gauge-track {
  position: relative;
  height: 13px;
  border-radius: 30px;
  background: #ded2f7;
}

.rate-gauge-range {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7930ff, #6a00f5);
}

.rate-gauge-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
  transform: translate(-50%, -50%);
}

.rate-gauge-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: #18132e;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
}

.rate-gauge-labels span:nth-child(2) {
  text-align: center;
}

.rate-gauge-labels span:last-child {
  text-align: right;
}

/* Preview disclaimer */

.rate-preview-note {
  color: #71658a !important;
  font-size: .68rem;
  text-align: center;
  margin: 18px 0 0;
}

/* Responsive adjustments */

@media (max-width: 1100px) {
  .rate-filter {
    padding: 8px 7px;
    font-size: .62rem;
  }

  .rate-filter strong {
    font-size: .62rem;
  }

  .rate-amount {
    font-size: 2.7rem;
  }
}

@media (max-width: 760px) {
  .market-section .insights-preview {
    transform: none;
  }

  .rate-filter {
    font-size: .7rem;
    padding: 10px;
  }

  .rate-filter strong {
    font-size: .7rem;
  }
}

@media (max-width: 420px) {
  .rate-filters {
    grid-template-columns: 1fr;
  }

  .rate-filter {
    justify-content: flex-start;
  }

  .rate-filter strong {
    margin-left: auto;
  }

  .rate-amount {
    font-size: 3rem;
  }
}


/* ========================================
   HOW IT WORKS — ILLUSTRATED STEPS
   ======================================== */

.how-section {
  background: #faf8ff;
  padding: 70px 0 85px;
}

.how-section .section-heading {
  margin-bottom: 28px;
}

.how-section .section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  letter-spacing: -.035em;
}

.how-section .tabs {
  margin-bottom: 42px;
}

/* Three steps, without card backgrounds */

.how-section .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px;
}

.how-section .step-card {
  position: relative;
  padding: 12px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

/* Large circular step icons */

.how-section .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95px;
  height: 95px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: #eee5ff;
  color: #7439e5;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
}

/* Connecting arrows */

.how-section .step-card:not(:last-child)::after {
  content: "➜";
  position: absolute;
  top: 42px;
  right: -42px;
  color: #9b72ed;
  font-size: 2.3rem;
  line-height: 1;
}

.how-section .step-card h3 {
  color: #151b36;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.how-section .step-card p {
  max-width: 260px;
  margin: 0 auto;
  color: #566078;
  font-size: .94rem;
  line-height: 1.6;
}

/* Responsive */

@media (max-width: 760px) {
  .how-section {
    padding: 55px 0 65px;
  }

  .how-section .steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .how-section .step-card {
    padding: 15px 20px;
  }

  .how-section .step-card:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -28px;
    transform: translateX(50%);
    font-size: 1.8rem;
  }

  .how-section .step-number {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    font-size: 1.9rem;
  }
}
/* SVG icons inside How It Works steps */

.how-section .step-number svg {
  width: 58px;
  height: 58px;
  display: block;
}

@media (max-width: 760px) {
  .how-section .step-number svg {
    width: 48px;
    height: 48px;
  }
}


/* ========================================
   BOTTOM SIGNUP — ORIGINAL CONCEPT
   ======================================== */

.signup-section {
  padding: 65px 0 75px;
}

.signup-section .signup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  column-gap: 45px;
  min-height: 235px;
  padding: 42px 55px;
  border-radius: 25px;
  text-align: left;

  background:
    radial-gradient(
      ellipse at 85% 25%,
      rgba(134, 75, 232, .3),
      transparent 55%
    ),
    linear-gradient(
      110deg,
      #21133f 0%,
      #3a1b66 55%,
      #21143e 100%
    );

  box-shadow: 0 18px 42px rgba(35, 19, 75, .15);
}

/* Coming Soon label */

.signup-section .signup-panel .feature-label {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 12px;
}

/* Heading */

.signup-section .signup-panel h2 {
  grid-column: 1;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -.035em;
  margin: 0 0 10px;
}

/* Description */

.signup-section .signup-panel > p {
  grid-column: 1;
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: .96rem;
  line-height: 1.6;
}

/* Signup buttons */

.signup-section .signup-actions {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  min-width: 205px;
}

.signup-section .signup-actions .btn {
  width: 100%;
  padding: 13px 18px;
  white-space: nowrap;
}

/* Tablet */

@media (max-width: 900px) {
  .signup-section .signup-panel {
    column-gap: 25px;
    padding: 38px 35px;
  }

  .signup-section .signup-actions {
    min-width: 175px;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .signup-section {
    padding: 45px 0 55px;
  }

  .signup-section .signup-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 38px 28px;
    text-align: center;
  }

  .signup-section .signup-panel .feature-label {
    grid-column: 1;
    justify-self: center;
  }

  .signup-section .signup-panel h2,
  .signup-section .signup-panel > p {
    grid-column: 1;
  }

  .signup-section .signup-panel > p {
    margin: 0 auto 25px;
  }

  .signup-section .signup-actions {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }

  .signup-section .signup-actions .btn {
    width: auto;
  }
}

@media (max-width: 420px) {
  .signup-section .signup-actions {
    flex-direction: column;
  }

  .signup-section .signup-actions .btn {
    width: 100%;
  }
}


/* Early access modal — consistent form fields */
#signup-form input[type="text"],
#signup-form input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #d5c9f5;
  border-radius: 14px;
  font: inherit;
  background: #fff;
}

#signup-form input[type="text"]:focus,
#signup-form input[type="email"]:focus {
  outline: 2px solid #7545e4;
  outline-offset: 2px;
}

/* Respect hidden elements in the signup modal */
#signup-modal [hidden] {
  display: none !important;
}

/* Early access success confirmation */
.signup-success {
  text-align: center;
  padding: 25px 0 15px;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #f2edff;
  color: #7548db;
  font-size: 2.3rem;
  font-weight: 800;
}

.signup-success h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.signup-success p {
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 0;
}
