:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #677283;
  --line: #e2e7ee;
  --soft: #f7f9fc;
  --navy: #172033;
  --green: #18a87b;
  --amber: #d97824;
  --amber-soft: #fff5e7;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgb(16 24 39 / 10%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #fbfcfe;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.progress {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 4px;
  background: #edf1f5;
}

.progress span {
  display: block;
  width: 5%;
  height: 100%;
  background: var(--navy);
  transition: width 260ms ease;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 4px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #eef1f5;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.topbar-link,
.text-button {
  border: 0;
  background: transparent;
  color: #808a9c;
  font-size: 14px;
  text-decoration: none;
}

.topbar-link:hover,
.text-button:hover {
  color: var(--ink);
}

.topbar-actions,
.flow-status {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 18px;
}

.flow-status {
  gap: 12px;
  color: #677283;
  font-size: 13px;
  white-space: nowrap;
}

.flow-status[hidden] {
  display: none;
}

.wizard {
  min-height: 100vh;
  padding: 62px 22px 0;
}

.screen {
  display: none;
  width: min(100%, 790px);
  min-height: calc(100vh - 62px);
  margin: 0 auto;
  padding: 56px 0;
  flex-direction: column;
  justify-content: center;
}

.screen.is-active {
  display: flex;
  animation: screen-in 180ms ease-out both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-copy {
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-copy h1 {
  margin: 0;
  color: #0e172a;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.08;
}

.screen-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.46;
}

.website-form {
  width: min(100%, 800px);
  margin: 0 auto;
}

.website-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 13px;
}

.website-field input {
  min-width: 0;
  height: 88px;
  padding: 0 28px;
  border: 2px solid #243149;
  border-radius: 20px;
  outline: none;
  background: #fff;
  font-size: 25px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.website-field input:focus,
.summary-textarea:focus,
.add-item-form input:focus,
.wide-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

input::placeholder,
textarea::placeholder {
  color: #cbd3df;
  opacity: 1;
}

.website-field button {
  display: grid;
  place-items: center;
  width: 76px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #e7ebf1;
  color: #8d98aa;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.website-field button.is-ready,
.website-field button:hover {
  background: var(--navy);
  color: #fff;
}

.website-field button:active,
.primary-action:active {
  transform: translateY(1px);
}

.website-field svg,
.autofill-badge svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.keyboard-hint {
  margin: 13px 0 0;
  color: #9aa5b5;
  font-size: 14px;
}

.keyboard-hint kbd {
  padding: 4px 8px;
  border: 1px solid #e1e5eb;
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
}

.inline-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 14px;
}

.process-card,
.ready-panel {
  width: 100%;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 39 / 3%);
}

.process-card ol {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-card li {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #c1c9d5;
  font-size: 20px;
}

.process-card li.is-active {
  color: var(--ink);
  font-weight: 680;
}

.process-card li.is-complete {
  color: #727d8e;
}

.process-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #dfe5ec;
  border-radius: 50%;
}

.is-active .process-dot {
  border-color: #4b5568;
  background: #4b5568;
}

.is-complete .process-dot {
  width: 28px;
  height: 28px;
  border-color: var(--green);
  background: var(--green);
}

.is-complete .process-dot::after {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

.process-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #eff2f6;
  color: #9aa5b5;
  font-size: 14px;
}

.keyword-results {
  width: 100%;
  margin-top: 22px;
}

.keyword-results[hidden] {
  display: none;
}

.keyword-results h2 {
  margin: 0 0 14px;
  color: #172136;
  font-size: 18px;
  font-weight: 700;
}

.keyword-results ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 24px 24px 24px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  line-height: 1.45;
}

.summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.autofill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid #f2cb63;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
  font-weight: 650;
}

.autofill-badge svg {
  width: 17px;
  height: 17px;
}

.summary-textarea {
  width: 100%;
  min-height: 280px;
  padding: 24px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 18px;
  line-height: 1.6;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  margin-top: 36px;
  padding: 18px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 19px;
  font-weight: 620;
  text-align: center;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.primary-action:hover {
  background: #24304a;
}

.primary-action:disabled {
  cursor: not-allowed;
  background: #cbd3df;
}

.found-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: -4px 0 27px;
  color: var(--muted);
  font-size: 18px;
}

.found-count strong {
  color: var(--green);
  font-size: 44px;
  line-height: 1;
}

.chip-list,
.choice-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip,
.choice-cloud button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #dce2ea;
  border-radius: 999px;
  background: #fff;
  color: #354158;
  font-size: 17px;
  font-weight: 520;
  line-height: 1.25;
}

.competitor-list .chip {
  gap: 11px;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.chip-check {
  width: 9px;
  height: 5px;
  border-bottom: 1.7px solid #fff;
  border-left: 1.7px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.chip-remove {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dfe4ec;
  font-size: 18px;
}

.choice-cloud button:hover,
.choice-cloud button.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.add-item-form,
.wide-input {
  margin-top: 16px;
}

.add-item-form input,
.wide-input {
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 17px;
}

.screen-with-options {
  padding-top: 80px;
  padding-bottom: 24px;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option-list > button {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.option-list > button:hover,
.option-list > button.is-selected {
  border: 2px solid var(--navy);
  padding: 21px 23px;
  background: #f8fafc;
}

.option-list strong {
  color: #172136;
  font-size: 17px;
  font-weight: 680;
}

.option-list span {
  color: #778194;
  font-size: 16px;
}

.writing-choices {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.billing-toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-toggle button {
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #687386;
  font-weight: 650;
}

.billing-toggle button.is-selected {
  background: var(--navy);
  color: #fff;
}

.billing-toggle span {
  display: inline-block;
  margin-left: 6px;
  color: #b8f0d8;
  font-size: 12px;
}

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

.plan-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.plan-card:hover,
.plan-card.is-selected {
  border: 2px solid var(--navy);
  padding: 27px;
  box-shadow: var(--shadow);
}

.plan-radio {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 19px;
  height: 19px;
  border: 2px solid #cfd6e0;
  border-radius: 50%;
}

.plan-card.is-selected .plan-radio {
  border-color: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--green);
}

.plan-label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1d5fd1;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.plan-card strong {
  font-size: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price b {
  font-size: 46px;
  line-height: 1;
}

.plan-price small,
.plan-billing,
.preview-note {
  color: var(--muted);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 6px 0 0;
  color: #39465a;
  list-style: none;
}

.plan-card li::before {
  color: var(--green);
  content: "✓ ";
}

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

.ready-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.ready-panel h2 {
  margin: 0 0 18px;
  font-size: 19px;
}

.ready-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.ready-panel dl div {
  display: grid;
  gap: 4px;
}

.ready-panel dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.ready-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.ready-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: #334155;
  line-height: 1.4;
}

.link-action {
  margin-top: 22px;
}

.restart-button {
  display: block;
  margin: 18px auto 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #273348;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .topbar {
    height: 56px;
    padding: 0 16px;
  }

  .flow-status span {
    display: none;
  }

  .wizard {
    padding-inline: 16px;
  }

  .screen {
    padding: 42px 0;
  }

  .screen-copy {
    margin-bottom: 30px;
  }

  .screen-copy h1 {
    font-size: 36px;
  }

  .screen-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .website-field {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .website-field input,
  .website-field button {
    height: 72px;
  }

  .website-field input {
    padding: 0 18px;
    font-size: 20px;
  }

  .website-field button {
    width: 64px;
  }

  .summary-toolbar,
  .process-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-card,
  .ready-panel {
    padding: 22px;
  }

  .process-card li {
    font-size: 17px;
  }

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

  .plan-card {
    min-height: auto;
  }
}
