/* ==========================================================================
   Between Sundays
   Palette and type locked to the brand sheet: Poppins, #2563FF, #1E3A8A,
   #0B1026, #E6EEFF. Signature device is the week rail: seven marks where
   the two Sundays are lit and the six days between carry the work.
   ========================================================================== */

:root {
  --ink: #0b1026;
  --ink-80: rgba(11, 16, 38, 0.8);
  --ink-60: rgba(11, 16, 38, 0.6);
  --ink-12: rgba(11, 16, 38, 0.12);
  --blue: #2563ff;
  --deep: #1e3a8a;
  --mist: #e6eeff;
  --white: #ffffff;
  --paper: #f7f9ff;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1120px;
  --gutter: 24px;
  --radius: 18px;
  --radius-sm: 12px;

  --step-1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1u: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1u);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------- eyebrow */
.eyebrow {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

.eyebrow--light {
  color: #8fb0ff;
}

.lede {
  font-weight: 300;
  font-size: var(--step-1u);
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 60ch;
}

/* ----------------------------------------------------------------- header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

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

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav a.btn {
  color: #fff;
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav a.btn--primary,
.nav a.btn--accent {
  padding: 12px 20px;
}

.nav a.btn--accent {
  color: var(--deep);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: #1a52e0;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-12);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Secondary CTA in the lighter brand tone. The border keeps it visible on
   section--mist, where the fill matches the background. */
.btn--accent {
  background: var(--mist);
  color: var(--deep);
  border-color: #bfd3ff;
}
.btn--accent:hover {
  background: #d4e2ff;
  border-color: #9dbcff;
  color: var(--deep);
}

/* Pairs a primary CTA with the demo button outside hero sections. */
.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.center .cta-pair {
  justify-content: center;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--wide {
  width: 100%;
}

/* --------------------------------------------------- signature: week rail */
.rail {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__day {
  flex: 1 1 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.rail__day span {
  display: block;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.rail__day--between span {
  background: var(--blue);
  animation: railfill 0.7s ease both;
}
.rail__day--between {
  color: rgba(255, 255, 255, 0.85);
}

.rail__day--sunday span {
  background: rgba(255, 255, 255, 0.85);
}
.rail__day--sunday {
  color: #fff;
}

.rail__day:nth-child(2) span {
  animation-delay: 0.05s;
}
.rail__day:nth-child(3) span {
  animation-delay: 0.1s;
}
.rail__day:nth-child(4) span {
  animation-delay: 0.15s;
}
.rail__day:nth-child(5) span {
  animation-delay: 0.2s;
}
.rail__day:nth-child(6) span {
  animation-delay: 0.25s;
}
.rail__day:nth-child(7) span {
  animation-delay: 0.3s;
}
.rail__day:nth-child(8) span {
  animation-delay: 0.35s;
}

@keyframes railfill {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: clamp(72px, 9vw, 130px) 0 clamp(56px, 7vw, 96px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 780px;
  height: 780px;
  right: -240px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 35%, #3b78ff 0%, #1e3a8a 42%, rgba(11, 16, 38, 0) 72%);
  opacity: 0.85;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  color: #8fb0ff;
}

.hero__lede {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 300;
  font-size: var(--step-1u);
  max-width: 54ch;
  line-height: 1.5;
}

.hero--short {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.hero--short::after {
  width: 620px;
  height: 620px;
  right: -200px;
  top: -200px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__rail {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__rail-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 16px 0 0;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- sections */
.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--mist {
  background: var(--mist);
}

.section--ink {
  background: var(--ink);
  color: #fff;
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--ink p {
  color: rgba(255, 255, 255, 0.72);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ------------------------------------------------------------------ grids */
.grid {
  display: grid;
  gap: 20px;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-60);
  margin: 0;
  font-size: 0.97rem;
}

.card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--mist);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.card--flat {
  background: transparent;
  border: none;
  padding: 0;
}

/* --------------------------------------------------------------- question */
.questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.questions li {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--blue);
  padding: 16px 22px;
  font-weight: 300;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------------------------------------------------------------- pricing */
.step {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.step__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--mist);
  background: var(--mist);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.plan--feature {
  border-color: var(--blue);
  box-shadow: 0 22px 48px rgba(37, 99, 255, 0.14);
}

.plan__name {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.plan__price {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 4px;
}

.plan__price small {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-60);
}

.plan__for {
  color: var(--ink-60);
  font-size: 0.93rem;
  min-height: 44px;
}

.plan__list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--ink-12);
  display: grid;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-80);
  flex: 1;
}

.plan__list li {
  padding-left: 26px;
  position: relative;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

.plan__list li.is-inherited::before {
  background: var(--ink-12);
}

/* -------------------------------------------------------------- equations */
.equation {
  text-align: center;
  font-weight: 300;
  font-size: var(--step-1u);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 auto;
}

.equation strong {
  font-weight: 600;
  color: #fff;
}

/* ------------------------------------------------------------------- form */
.form {
  display: grid;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-sm);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.16);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field__error {
  color: #c02626;
  font-size: 0.86rem;
  margin: 6px 0 0;
}

.field--check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-60);
  margin: 0;
  cursor: pointer;
}

.field--check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  background: #fdecec;
  border: 1px solid #f2c2c2;
  color: #8c1c1c;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.94rem;
}

.form__note {
  font-size: 0.86rem;
  color: var(--ink-60);
  margin: 0;
}

/* ----------------------------------------------------------------- footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding: 64px 0 34px;
  font-size: 0.94rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.66);
}
.footer a:hover {
  color: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer__logo {
  height: 56px;
  width: auto;
  margin-bottom: 14px;
}

.footer__brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------------- misc */
.center {
  text-align: center;
}

.stack-sm > * + * {
  margin-top: 10px;
}

.mt-32 {
  margin-top: 32px;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}


/* ------------------------------------------------- signature: hero rotator */
.rotator-head {
  display: block;
  margin-bottom: 18px;
}

.rotator-head__static {
  display: block;
  color: #fff;
}

.rotator {
  display: block;
  position: relative;
  min-height: 1.12em;
  color: #8fb0ff;
}

.rotator__item {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.28em);
  transition: opacity 0.42s ease, transform 0.42s ease;
  will-change: opacity, transform;
}

.rotator__item.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.rotator__item.is-leaving {
  opacity: 0;
  transform: translateY(-0.28em);
}

.rotator-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.rotator-tag__label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

.rotator-tag__value {
  background: rgba(37, 99, 255, 0.22);
  border: 1px solid rgba(143, 176, 255, 0.4);
  color: #cfdcff;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.28s ease;
}

.rotator-tag__value.is-swapping {
  opacity: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- form layout */
.split--form {
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 22px 48px rgba(11, 16, 38, 0.07);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ------------------------------------------------------------ case studies */
.study {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.study--reverse .study__body {
  order: 2;
}

.study__stats {
  display: grid;
  gap: 14px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.stat__num {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--blue);
}

.stat__label {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-60);
  margin-top: 4px;
}

.quote {
  margin: 6px 0 0;
  padding: 24px 22px;
  background: var(--ink);
  border-radius: var(--radius-sm);
}

.quote p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.quote cite span {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px var(--gutter) 22px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 11px 0;
    font-size: 1.02rem;
  }
  .nav__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-top: 14px;
  }
  .nav .btn {
    width: 100%;
  }
  .nav__toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }
  .study,
  .study--reverse .study__body {
    grid-template-columns: 1fr;
    order: 0;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 20px;
  }
  .brand img {
    height: 34px;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .rail {
    gap: 5px;
  }
  .rail__day {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rotator__item {
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
