:root {
  --paper: #f7f6f2;
  --paper-strong: #ffffff;
  --ink: #0b0a12;
  --ink-soft: #24212c;
  --muted: #696571;
  --line: #d9d6de;
  --line-dark: #2c2937;
  --violet: #6437ff;
  --violet-dark: #4d23dc;
  --violet-soft: #eee9ff;
  --lime: #b8ff38;
  --lime-soft: #eaffbd;
  --success: #8bc51f;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --container: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 10, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 10, 18, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
}

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

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

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(100, 55, 255, 0.35);
  outline-offset: 3px;
}

.container,
.hero-inner,
.nav-inner,
.journey-inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--violet);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--violet);
  box-shadow: 0 10px 24px rgba(100, 55, 255, 0.2);
}

.btn-primary:hover {
  background: var(--violet-dark);
  box-shadow: 0 14px 28px rgba(100, 55, 255, 0.26);
}

.btn-lime {
  color: var(--ink);
  background: var(--lime);
}

.btn-lime:hover {
  background: #c7ff61;
}

/* Navigation */
.nav {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 32px rgba(11, 10, 18, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-app-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
}

.nav-app-mark img {
  width: 22px;
  height: 22px;
}

.wordmark {
  font-size: 1.16rem;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.wordmark span,
.footer-brand span {
  color: var(--violet);
}

.wordmark i,
.footer-brand i {
  color: var(--lime);
  font-style: normal;
}

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

.nav-links > a {
  color: #4d4954;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links > a:hover {
  color: var(--ink);
}

.nav-links .nav-signin,
.nav-links .nav-signup {
  color: var(--ink);
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  letter-spacing: 0.06em;
}

.nav-links .nav-cta:hover {
  color: var(--lime);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -190px;
  width: 500px;
  height: 500px;
  border: 86px solid rgba(100, 55, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.grid-wander {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: rgba(100, 55, 255, 0.04);
  transition: transform 1.2s ease;
}

.grid-wander.lime {
  background: rgba(184, 255, 56, 0.1);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(540px, 1.08fr);
  gap: 62px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.55rem, 5.2vw, 5.35rem);
  font-weight: 820;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.hero-copy h1 span {
  display: block;
  color: var(--violet);
}

.hero-sub {
  max-width: 660px;
  margin: 30px 0 28px;
  color: #4c4853;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.65;
}

.hero-url-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.78fr) minmax(270px, 1.22fr);
  gap: 8px;
  max-width: 650px;
}

.hero-url-form input,
.estimate-checkout input,
.apply-form input,
.apply-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-strong);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hero-url-form input {
  padding: 0 17px;
}

.hero-url-form .btn {
  padding-inline: 12px;
  font-size: 0.76rem;
}

.hero-url-form input:focus,
.estimate-checkout input:focus,
.apply-form input:focus,
.apply-form select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(100, 55, 255, 0.1);
}

.hero-url-error {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  display: none;
  color: #a13243;
  font-size: 0.76rem;
}

.hero-url-form.invalid .hero-url-error {
  display: block;
}

.hero-url-form.invalid input {
  border-color: #c44555;
}

.hero-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Product UI in hero */
.plan-console {
  position: relative;
  overflow: hidden;
  border: 1px solid #2c2937;
  border-radius: 14px;
  color: #f8f7fb;
  background: var(--ink);
  box-shadow: 22px 22px 0 var(--violet), 34px 34px 0 rgba(184, 255, 56, 0.92);
}

.plan-console::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
}

.plan-topbar,
.plan-heading,
.signal-row,
.plan-list,
.plan-footer {
  position: relative;
}

.plan-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-dark);
}

.plan-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.plan-brand img {
  width: 20px;
  height: 20px;
}

.plan-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.12em;
}

.plan-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 56, 0.1);
}

.plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 26px 20px;
}

.plan-heading small,
.plan-heading > span,
.plan-item small,
.plan-source {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.plan-heading small {
  color: #9f83ff;
}

.plan-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.plan-heading > span {
  padding: 7px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #aaa5b5;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 26px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.signal-row span {
  position: relative;
  padding: 10px 8px 10px 18px;
  border-right: 1px solid var(--line-dark);
  color: #aaa5b5;
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.signal-row span:last-child {
  border-right: 0;
}

.signal-row span::before {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  transform: translateY(-50%);
}

.plan-list {
  display: grid;
  gap: 7px;
  padding: 0 26px 24px;
}

.plan-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.plan-item.featured {
  min-height: 94px;
  border-color: #6745cf;
  background: rgba(100, 55, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--violet);
}

.plan-index {
  color: #716b7c;
  font-family: var(--mono);
  font-size: 0.61rem;
}

.plan-item small {
  color: #9f83ff;
}

.plan-item h3 {
  margin: 4px 0 0;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.plan-item p {
  margin: 5px 0 0;
  color: #9d98a7;
  font-size: 0.69rem;
}

.plan-source {
  padding: 5px 7px;
  border: 1px solid #3d3949;
  border-radius: 999px;
  color: #b7b1c1;
}

.plan-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.plan-footer span {
  padding: 13px 8px;
  border-right: 1px solid var(--line-dark);
  color: #8e8998;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.plan-footer span:last-child {
  border-right: 0;
}

/* Journey */
.journey-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-strong);
}

.journey-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 104px;
}

.journey-inner div {
  display: grid;
  gap: 4px;
}

.journey-inner small {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.journey-inner strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.journey-inner > span {
  color: #aaa6af;
  font-size: 1.1rem;
}

/* Shared sections */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 890px;
  margin: 0 0 60px;
}

.section-head.compact {
  max-width: 760px;
}

.section-head h2,
.intelligence-head h2,
.pricing-copy h2,
.faq-heading h2,
.analyze-copy h2 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 5rem);
  font-weight: 790;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-head h2 span {
  color: var(--violet);
}

.section-head > p:last-child {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  line-height: 1.65;
}

/* Product section */
.product-section {
  background: var(--paper);
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  gap: 36px;
  align-items: stretch;
}

.brief-document {
  overflow: hidden;
  border: 1px solid #d1cdd7;
  border-radius: 12px;
  background: var(--paper-strong);
  box-shadow: 14px 14px 0 var(--violet-soft);
}

.brief-document > header {
  padding: 32px 34px 27px;
  border-bottom: 1px solid var(--line);
}

.brief-document > header > div {
  display: flex;
  justify-content: space-between;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brief-document > header h3 {
  margin: 23px 0 8px;
  font-size: 2.2rem;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brief-document > header p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.brief-target {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.brief-target div {
  display: grid;
  gap: 7px;
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}

.brief-target div:last-child {
  border-right: 0;
}

.brief-target small,
.brief-why small,
.brief-work small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.brief-target strong {
  font-size: 0.82rem;
}

.brief-why,
.brief-work {
  padding: 24px 34px;
  border-bottom: 1px solid var(--line);
}

.brief-why p {
  margin: 11px 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.brief-work blockquote {
  margin: 13px 0 20px;
  padding-left: 18px;
  border-left: 3px solid var(--violet);
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.2;
}

.script-lines {
  display: grid;
  gap: 8px;
}

.script-lines i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #ebe8ee;
}

.script-lines i:nth-child(2) {
  width: 91%;
}

.script-lines i:nth-child(3) {
  width: 78%;
}

.script-lines i:nth-child(4) {
  width: 52%;
}

.brief-document > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  color: var(--muted);
  background: #f3f1f5;
  font-family: var(--mono);
  font-size: 0.51rem;
  letter-spacing: 0.09em;
}

.brief-document > footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #577e0c;
}

.brief-document > footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 56, 0.2);
}

.brief-value {
  display: grid;
  grid-template-rows: repeat(3, 1fr) auto;
  gap: 10px;
}

.brief-value article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: center;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.brief-value article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.brief-value h3 {
  margin: 0 0 7px;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

.brief-value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.format-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Weekly loop */
.loop-section {
  padding-block: 96px;
  color: #fff;
  background: var(--ink);
}

.loop-section .section-head {
  margin-bottom: 44px;
}

.loop-section .section-label {
  color: var(--lime);
}

.loop-section .section-head > p:last-child {
  color: #aaa5b5;
}

.loop-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.loop-steps::before {
  position: absolute;
  top: 54px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: #403b4a;
  content: "";
}

.loop-card {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #121019;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.loop-card:hover,
.loop-card.cycle {
  border-color: #6548bc;
  background: #17131f;
  transform: translateY(-4px);
}

.loop-number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #706b79;
  font-family: var(--mono);
  font-size: 0.61rem;
}

.loop-icon {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 6px;
  align-content: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border: 1px solid #494353;
  border-radius: 50%;
  background: var(--ink);
}

.loop-icon i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
}

.loop-icon i:nth-child(2) {
  background: var(--lime);
}

.loop-icon.plan {
  grid-template-columns: 24px;
  gap: 4px;
}

.loop-icon.plan i {
  width: 24px;
  height: 3px;
  border-radius: 9px;
}

.loop-icon.plan i:nth-child(2) {
  width: 17px;
}

.loop-icon.memory {
  grid-template-columns: repeat(3, 10px);
  gap: 0;
}

.loop-icon.memory i {
  width: 10px;
  height: 30px;
  border-radius: 0;
  background: var(--violet);
}

.loop-icon.memory i:nth-child(2) {
  height: 42px;
  background: var(--lime);
}

.loop-icon.memory i:nth-child(3) {
  height: 22px;
}

.loop-card h3 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
}

.loop-card p {
  margin: 0;
  color: #aaa5b5;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Audience */
.audience-section {
  padding-bottom: 48px;
  background: var(--paper-strong);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.audience-card {
  min-height: 430px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brand-card {
  background: var(--violet-soft);
}

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

.audience-tag {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--violet-dark);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.strategist-card .audience-tag {
  color: var(--lime);
}

.audience-card h3 {
  max-width: 530px;
  margin: 42px 0 32px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  letter-spacing: -0.06em;
  line-height: 1.01;
}

.audience-card ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.audience-card li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.audience-card li i {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--violet-dark);
  background: var(--paper-strong);
  font-size: 0.7rem;
  font-style: normal;
}

.strategist-card li i {
  color: var(--ink);
  background: var(--lime);
}

.audience-card > p:last-child {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 10, 18, 0.14);
  font-weight: 700;
}

.strategist-card > p:last-child {
  border-color: var(--line-dark);
  color: #d8d4df;
}

/* Intelligence */
.intelligence-section {
  padding-block: 64px;
  background: #efede7;
}

.intelligence-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 32px;
}

.intelligence-head h2 {
  max-width: 720px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.intelligence-head > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-strong);
}

.intelligence-grid article {
  min-height: 184px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.intelligence-grid article:last-child {
  border-right: 0;
}

.intelligence-grid article > span {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.intelligence-grid h3 {
  margin: 30px 0 7px;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}

.intelligence-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Pricing */
.pricing-section {
  color: #fff;
  background: var(--violet);
}

.pricing-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.7fr);
  gap: 72px;
  align-items: center;
}

.pricing-copy .section-label {
  color: var(--lime);
}

.pricing-copy h2 {
  max-width: 650px;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
}

.pricing-copy > p:not(.section-label) {
  max-width: 580px;
  margin: 24px 0 28px;
  color: #ddd3ff;
  font-size: 1rem;
}

.pricing-copy > ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  max-width: 620px;
  padding: 0;
  margin: 0 0 38px;
  list-style: none;
}

.pricing-copy > ul li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #f2efff;
  font-size: 0.82rem;
}

.pricing-copy > ul span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 0.65rem;
}

.pricing-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  max-width: 620px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(11, 10, 18, 0.12);
}

.pricing-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-row: 1;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-controls label:nth-of-type(2) {
  grid-column: 2;
}

.pricing-controls output {
  display: grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.pricing-controls input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime) var(--range-progress, 0%), rgba(255, 255, 255, 0.25) var(--range-progress, 0%));
}

.pricing-controls input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 3px solid var(--violet);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.pricing-controls input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--violet);
  border-radius: 50%;
  background: var(--lime);
  cursor: pointer;
}

.price-card {
  padding: 35px;
  border: 1px solid #302c3b;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  box-shadow: 16px 16px 0 var(--lime);
}

.price-kicker {
  color: #a9a3b4;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.price {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 14px 0 5px;
}

.price strong {
  font-size: 4.5rem;
  letter-spacing: -0.075em;
  line-height: 1;
}

.price span {
  padding-bottom: 7px;
  color: #aaa5b5;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.price-card > p {
  min-height: 42px;
  margin: 8px 0 20px;
  color: #b5afbd;
  font-size: 0.86rem;
}

.price-card dl {
  margin: 0 0 22px;
  border-top: 1px solid var(--line-dark);
}

.price-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.78rem;
}

.price-card dt {
  color: #8f8999;
}

.price-card dd {
  margin: 0;
  font-weight: 700;
}

.estimate-checkout {
  display: grid;
  gap: 7px;
}

.estimate-checkout input {
  min-height: 46px;
  padding: 0 14px;
  border-color: #3a3645;
  color: #fff;
  background: #17141e;
}

.estimate-checkout .btn {
  width: 100%;
  margin-top: 3px;
}

.checkout-error {
  display: none;
  color: #ff9cac;
  font-size: 0.7rem;
}

.checkout-error.visible {
  display: block;
}

.price-card > small {
  display: block;
  margin-top: 12px;
  color: #77717f;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

/* FAQ */
.faq-section {
  background: var(--paper-strong);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  gap: 84px;
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.faq-heading h2 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.faq-heading > p:last-child {
  margin-top: 23px;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-heading a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 720;
  text-align: left;
}

.faq-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease;
}

.faq-item.open .faq-icon {
  color: #fff;
  background: var(--violet);
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  transition: grid-template-rows 200ms ease;
}

.faq-a > p {
  overflow: hidden;
  margin: 0;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-a > p {
  padding: 0 60px 28px 0;
}

/* Free analysis */
.analyze-section {
  padding: 112px 0;
  color: #fff;
  background: var(--ink);
}

.analyze-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.75fr);
  gap: 100px;
  align-items: center;
}

.analyze-copy .section-label {
  color: var(--lime);
}

.analyze-copy h2 {
  max-width: 690px;
  font-size: clamp(3rem, 5.4vw, 5.35rem);
}

.analyze-copy > p:not(.section-label) {
  max-width: 590px;
  margin: 26px 0 34px;
  color: #aaa5b5;
  font-size: 1rem;
  line-height: 1.65;
}

.free-output {
  display: flex;
  gap: 0;
  border-block: 1px solid var(--line-dark);
}

.free-output span {
  flex: 1;
  display: grid;
  gap: 5px;
  padding: 18px 13px 18px 0;
  color: #aaa5b5;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.free-output strong {
  color: var(--lime);
  font-size: 1.85rem;
  line-height: 1;
}

.apply-form {
  padding: 32px;
  border: 1px solid #34303d;
  border-radius: 12px;
  background: #14121a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  position: relative;
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin: 0 0 7px;
  color: #b5b0bd;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apply-form input,
.apply-form select {
  min-height: 50px;
  padding: 0 14px;
  border-color: #3a3545;
  color: #fff;
  background: #1a1721;
}

.apply-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #88828f 50%), linear-gradient(135deg, #88828f 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.apply-form .btn {
  width: 100%;
  margin-top: 4px;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: #ff9cac;
  font-size: 0.67rem;
}

.field.invalid .field-error {
  display: block;
}

.field.invalid input,
.field.invalid select {
  border-color: #d9586e;
}

.form-fine {
  margin: 12px 0 0;
  color: #77717f;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.form-success {
  display: none;
  margin: 12px 0 0;
  color: var(--lime);
  font-size: 0.78rem;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* Footer */
.footer {
  padding: 64px 0 22px;
  color: #d7d3dc;
  background: #07070b;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 55px;
}

.footer-brand > a {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.065em;
}

.footer-brand p {
  max-width: 320px;
  margin: 13px 0 0;
  color: #77717f;
  font-size: 0.8rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: #817b88;
  font-size: 0.74rem;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #20202a;
  color: #68626f;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

/* Motion */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in,
.reveal-stagger.in > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.in > *:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-stagger.in > *:nth-child(3) {
  transition-delay: 160ms;
}

.reveal-stagger.in > *:nth-child(4) {
  transition-delay: 240ms;
}

.reveal-stagger.in > *:nth-child(5) {
  transition-delay: 320ms;
}

.mobile-sticky-cta {
  position: fixed;
  z-index: 90;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 10px 30px rgba(11, 10, 18, 0.25);
  font-size: 0.82rem;
  font-weight: 800;
  transform: translateY(130%);
  transition: transform 180ms ease;
}

.mobile-sticky-cta.is-visible {
  transform: none;
}

@media (max-width: 1080px) {
  :root {
    --container: 960px;
  }

  .nav-links {
    gap: 17px;
  }

  .nav-links > a {
    font-size: 0.61rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 5.45vw, 4.5rem);
  }

  .hero-url-form {
    grid-template-columns: 1fr;
  }

  .brief-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  }

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

  .intelligence-grid article:nth-child(2) {
    border-right: 0;
  }

  .intelligence-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .intelligence-grid article {
    min-height: 180px;
  }

  .intelligence-grid h3 {
    margin-top: 26px;
  }

  .pricing-configurator {
    gap: 45px;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }

  .container,
  .hero-inner,
  .nav-inner,
  .journey-inner {
    width: min(100% - 34px, 720px);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile {
    position: fixed;
    z-index: 99;
    top: var(--nav-h);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 17px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-mobile.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-mobile a {
    padding: 15px 5px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-mobile .nav-mobile-cta {
    margin-top: 10px;
    padding: 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--ink);
    text-align: center;
  }

  .hero {
    padding: 64px 0 72px;
  }

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

  .hero-copy h1 {
    max-width: 670px;
    font-size: clamp(3.6rem, 11.5vw, 5.8rem);
  }

  .hero-sub {
    max-width: 620px;
  }

  .hero-url-form {
    max-width: 620px;
    grid-template-columns: minmax(180px, 0.8fr) minmax(270px, 1.2fr);
  }

  .plan-console {
    max-width: 670px;
    margin: 0 auto;
    box-shadow: 12px 12px 0 var(--violet), 22px 22px 0 var(--lime);
  }

  .journey-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px 0;
  }

  .journey-inner div {
    padding: 15px;
    border-bottom: 1px solid var(--line);
  }

  .journey-inner div:nth-of-type(odd) {
    border-right: 1px solid var(--line);
  }

  .journey-inner div:nth-last-of-type(-n + 2) {
    border-bottom: 0;
  }

  .journey-inner > span {
    display: none;
  }

  .section {
    padding: 92px 0;
  }

  .brief-layout,
  .pricing-configurator,
  .analyze-grid {
    grid-template-columns: 1fr;
  }

  .brief-layout {
    gap: 42px;
  }

  .brief-value {
    grid-template-rows: auto;
  }

  .loop-steps {
    grid-template-columns: 1fr;
  }

  .loop-steps::before {
    top: 50px;
    bottom: 50px;
    left: 54px;
    width: 1px;
    height: auto;
  }

  .loop-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 24px;
    min-height: 150px;
    padding: 24px;
  }

  .loop-icon {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .loop-card h3,
  .loop-card p {
    grid-column: 2;
  }

  .loop-number {
    top: 26px;
    right: 26px;
  }

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

  .audience-card {
    min-height: 0;
  }

  .intelligence-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-configurator {
    gap: 56px;
  }

  .price-card {
    width: min(100%, 500px);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-heading {
    position: static;
  }

  .analyze-grid {
    gap: 54px;
  }

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

@media (max-width: 600px) {
  .container,
  .hero-inner,
  .nav-inner,
  .journey-inner {
    width: min(100% - 28px, 560px);
  }

  body::before {
    background-size: 48px 48px;
  }

  .nav-app-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 17vw, 4.8rem);
    letter-spacing: -0.075em;
  }

  .hero-sub {
    margin-top: 24px;
    font-size: 0.96rem;
  }

  .hero-url-form {
    grid-template-columns: 1fr;
  }

  .hero-url-form .btn {
    padding-inline: 12px;
    font-size: 0.81rem;
  }

  .plan-console {
    margin-inline: 0 17px;
    overflow: visible;
  }

  .plan-console::before {
    border-radius: 14px;
  }

  .plan-topbar,
  .plan-heading,
  .plan-list {
    padding-right: 17px;
    padding-left: 17px;
  }

  .signal-row {
    grid-template-columns: 1fr 1fr;
    margin-inline: 17px;
  }

  .signal-row span:nth-child(2) {
    border-right: 0;
  }

  .signal-row span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .plan-heading h2 {
    max-width: 230px;
  }

  .plan-item {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .plan-source {
    display: none;
  }

  .plan-item.featured {
    min-height: 108px;
  }

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

  .plan-footer span:nth-child(2) {
    border-right: 0;
  }

  .plan-footer span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .section {
    padding: 78px 0;
  }

  .section-head {
    margin-bottom: 42px;
  }

  .section-head h2,
  .intelligence-head h2,
  .pricing-copy h2,
  .analyze-copy h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section-head > p:last-child {
    font-size: 0.94rem;
  }

  .brief-document {
    box-shadow: 8px 8px 0 var(--violet-soft);
  }

  .brief-document > header,
  .brief-why,
  .brief-work {
    padding: 23px 21px;
  }

  .brief-document > header h3 {
    font-size: 1.8rem;
  }

  .brief-target {
    grid-template-columns: 1fr;
  }

  .brief-target div {
    grid-template-columns: 90px 1fr;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brief-target div:last-child {
    border-bottom: 0;
  }

  .brief-document > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .brief-value article {
    padding: 20px;
  }

  .loop-card {
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
    min-height: 0;
    padding: 20px;
  }

  .loop-steps::before {
    left: 44px;
  }

  .loop-icon {
    width: 46px;
    height: 46px;
  }

  .audience-card {
    padding: 30px 24px;
  }

  .audience-card h3 {
    margin: 34px 0 28px;
  }

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

  .intelligence-grid article,
  .intelligence-grid article:nth-child(2) {
    min-height: 0;
    padding: 22px 24px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intelligence-grid article:last-child {
    border-bottom: 0;
  }

  .intelligence-grid h3 {
    margin: 16px 0 7px;
    font-size: 1.4rem;
  }

  .intelligence-grid article > span {
    font-size: 0.84rem;
  }

  .intelligence-grid p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .pricing-copy > ul,
  .pricing-controls {
    grid-template-columns: 1fr;
  }

  .pricing-controls label,
  .pricing-controls label:nth-of-type(2) {
    grid-row: auto;
    grid-column: auto;
  }

  .pricing-controls input[type="range"] {
    margin-bottom: 13px;
  }

  .price-card {
    padding: 27px 23px;
    box-shadow: 9px 9px 0 var(--lime);
  }

  .price strong {
    font-size: 3.8rem;
  }

  .faq-q {
    min-height: 74px;
    gap: 20px;
    font-size: 0.9rem;
  }

  .analyze-section {
    padding: 78px 0;
  }

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

  .free-output span {
    padding-right: 8px;
    font-size: 0.68rem;
  }

  .apply-form {
    padding: 23px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-inner {
    gap: 45px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    row-gap: 35px;
  }

  .footer-bottom {
    gap: 8px;
    flex-direction: column;
  }

  .mobile-sticky-cta {
    display: flex;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
