/* Page sections: hero, product mockup, AI demo, pricing, CTA bands. */

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: var(--space-10);
  padding-bottom: var(--space-9);
  overflow: hidden;
  background:
    radial-gradient(60rem 32rem at 50% -8rem, var(--brand-50) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--paper-tint) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink-200) 45%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink-200) 45%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(46rem 26rem at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__inner {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.032em;
  margin-bottom: var(--space-5);
}
.hero__lede {
  font-size: clamp(1.08rem, 0.6vw + 0.98rem, 1.3rem);
  color: var(--ink-500);
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}
.hero__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-subtle);
}
.hero__visual { margin-top: var(--space-9); }

.hero--sub {
  padding-bottom: var(--space-8);
  text-align: left;
}
.hero--sub .hero__inner { margin-inline: 0; text-align: left; }
.hero--sub .hero__lede { margin-inline: 0; }
.hero--sub h1 { font-size: var(--text-4xl); }

.hero--landing .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-9);
  align-items: center;
}
@media (max-width: 940px) {
  .hero--landing .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Product mockup ------------------------------------------------------ */

.mockup {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  user-select: none;
}

.mockup__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink-50);
  border-bottom: 1px solid var(--border);
}
.mockup__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-200); }
.mockup__url {
  margin-left: 12px;
  padding: 3px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--ink-400);
  font-size: 11.5px;
}

.mockup__body {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 272px;
  min-height: 430px;
}

.mockup__sidebar {
  background: var(--paper-tint);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
}
.mockup__side-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-300);
  font-weight: 650;
  margin: 16px 8px 6px;
}
.mockup__side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--ink-700);
}
.mockup__side-item.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-xs); font-weight: 600; }
.mockup__side-item .icon { color: var(--ink-400); }
.mockup__side-item.is-active .icon { color: var(--brand-500); }
.mockup__swatch { width: 8px; height: 8px; border-radius: 3px; flex: none; }

.mockup__main { padding: 18px 20px; min-width: 0; }
.mockup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mockup__title { font-weight: 660; font-size: 16px; letter-spacing: -0.015em; color: var(--ink-900); }
.mockup__crumb { font-size: 11px; color: var(--ink-400); margin-bottom: 2px; }

.avatars { display: flex; }
.avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  color: #fff;
  background: var(--brand-500);
}
.avatar:nth-child(2) { background: var(--spark-500); }
.avatar:nth-child(3) { background: #3aa07a; }
.avatar:nth-child(4) { background: var(--ink-400); }

.mockup__tabs {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.mockup__tab {
  padding: 6px 1px 9px;
  color: var(--ink-400);
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
}
.mockup__tab.is-active { color: var(--ink-900); border-bottom-color: var(--brand-500); font-weight: 600; }

.mockup__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mockup__card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}
.mockup__card--wide { grid-column: 1 / -1; }
.mockup__card-title { font-weight: 620; color: var(--ink-800); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mockup__card-title .icon { color: var(--ink-400); }
.mockup__meta { font-size: 11px; color: var(--ink-400); }

.mockup__line { height: 6px; border-radius: 3px; background: var(--ink-100); margin-bottom: 6px; }
.mockup__line.w-90 { width: 90%; }
.mockup__line.w-70 { width: 70%; }
.mockup__line.w-50 { width: 50%; }
.mockup__line.w-35 { width: 35%; }

.mockup__todo { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: var(--ink-700); }
.mockup__box {
  width: 14px; height: 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: 4px;
  flex: none;
  position: relative;
}
.mockup__todo.is-done .mockup__box { background: var(--brand-500); border-color: var(--brand-500); }
.mockup__todo.is-done .mockup__box::after {
  content: "";
  position: absolute;
  left: 3.4px; top: 1.4px;
  width: 4px; height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}
.mockup__todo.is-done span { color: var(--ink-300); text-decoration: line-through; }
.mockup__who { margin-left: auto; font-size: 10.5px; color: var(--ink-400); }

.mockup__ai {
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, var(--paper-brand), #fff 60%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup__ai-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 640;
  color: var(--brand-700);
  font-size: 12.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-300) 35%, transparent);
}

@media (max-width: 980px) {
  .mockup__body { grid-template-columns: 160px minmax(0, 1fr); }
  .mockup__ai { display: none; }
}
@media (max-width: 680px) {
  .mockup__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mockup__sidebar { display: none; }
  .mockup__cards { grid-template-columns: minmax(0, 1fr); }
}

/* --- Chat / AI demo ------------------------------------------------------ */

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat__msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--brand-600);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat__msg--ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-800);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-xs);
}
.chat__msg p { margin-bottom: 8px; }
.chat__msg p:last-child { margin-bottom: 0; }

.chat__tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand-300) 45%, transparent);
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 580;
}
.chat__tool .icon { color: var(--brand-500); }

.chat__cite {
  font-size: 11px;
  color: var(--ink-400);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat__cite span {
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.chat__input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink-300);
  font-size: 12.5px;
}
.chat__caret {
  width: 1.5px;
  height: 15px;
  background: var(--brand-500);
  animation: caret-blink 1.1s steps(2, start) infinite;
}
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.chat__typing { display: inline-flex; gap: 3px; align-items: center; }
.chat__typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-300);
  animation: typing 1.2s var(--ease) infinite;
}
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Standalone demo panel used on the AI page */
.ai-panel {
  background: linear-gradient(180deg, var(--paper-brand), #fff 55%);
  border: 1px solid color-mix(in srgb, var(--brand-300) 45%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 24rem;
}
.ai-panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 640;
  color: var(--brand-700);
  font-size: var(--text-sm);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-300) 40%, transparent);
}
.ai-panel__head .badge { margin-left: auto; }

.prompt-list { display: grid; gap: var(--space-3); }
.prompt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  color: var(--ink-800);
  box-shadow: var(--shadow-xs);
}
.prompt .icon { color: var(--brand-500); margin-top: 2px; }
.section--dark .prompt {
  background: var(--ink-800);
  border-color: rgba(255,255,255,0.1);
  color: var(--ink-200);
}
.section--dark .prompt .icon { color: var(--brand-300); }

/* --- Feature rows -------------------------------------------------------- */

.feature-row + .feature-row { margin-top: var(--space-10); }
.feature-row__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-600);
  font-weight: 620;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.panel {
  background: linear-gradient(160deg, var(--paper-brand), var(--paper-tint));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

/* --- Problem list -------------------------------------------------------- */

.problem {
  padding-left: var(--space-5);
  border-left: 3px solid var(--spark-300);
}
.problem h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.problem p { color: var(--text-muted); margin-bottom: 0; }

/* --- Pricing ------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
}
.plan--featured {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-lg);
}
.plan__flag {
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--brand-600);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 640;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}
.plan__name { font-size: var(--text-lg); font-weight: 660; margin-bottom: var(--space-1); }
.plan__tagline { color: var(--text-muted); font-size: var(--text-sm); margin: 0; min-height: 3.2em; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: clamp(2.1rem, 2.4vw + 1.4rem, 2.8rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  line-height: 1;
}
.plan__unit { font-size: var(--text-sm); font-weight: 520; color: var(--text-muted); letter-spacing: 0; }
.plan__note { font-size: var(--text-sm); color: var(--text-subtle); min-height: 3.2em; margin: 0; }

.plan__features { border-top: 1px solid var(--border); padding-top: var(--space-4); }

.price-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--ink-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  gap: 2px;
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 580;
  color: var(--ink-500);
  cursor: pointer;
}
.price-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}
.price-toggle__save { color: var(--positive-500); font-weight: 640; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.compare th, .compare td {
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 620;
  border-bottom-color: var(--border-strong);
}
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 20%; }
.compare tbody th { font-weight: 560; color: var(--ink-800); }
.compare__group td {
  background: var(--paper-tint);
  font-weight: 640;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.compare__yes { color: var(--positive-500); font-weight: 700; }
.compare__no { color: var(--ink-300); }
.compare-wrap { overflow-x: auto; }

@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan__tagline, .plan__note { min-height: 0; }
}

/* --- Stats --------------------------------------------------------------- */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  align-items: center;
}
.stat__value { font-size: var(--text-2xl); font-weight: 680; letter-spacing: -0.03em; }
.stat__label { font-size: var(--text-sm); color: var(--text-muted); }

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  background:
    radial-gradient(40rem 20rem at 15% 0%, color-mix(in srgb, var(--brand-700) 75%, transparent) 0%, transparent 60%),
    radial-gradient(36rem 20rem at 90% 100%, color-mix(in srgb, var(--spark-700) 30%, transparent) 0%, transparent 60%),
    var(--ink-900);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-9) var(--space-8);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: var(--text-3xl); }
.cta-band p { color: var(--ink-300); max-width: 34rem; margin-inline: auto; }
.cta-band .capture { margin-inline: auto; margin-top: var(--space-6); }
.cta-band .input { border-color: transparent; }
.cta-band__note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--ink-400); }

@media (max-width: 620px) {
  .cta-band { padding: var(--space-7) var(--space-5); border-radius: var(--radius-lg); }
}

/* --- Audience cards ------------------------------------------------------ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.audience {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 580;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.audience:hover { border-color: var(--brand-300); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--brand-700); }
.audience .icon { color: var(--ink-300); }
.audience:hover .icon { color: var(--brand-500); }

@media (max-width: 860px) { .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: minmax(0, 1fr); } }
