/* Guest AI text summarizer — uses landing.css tokens. */
.ats-main {
  padding: calc(var(--nav-h) + 12px) 0 120px;
}

.ats-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.ats-main .breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.ats-main .breadcrumb a {
  color: var(--brand-1);
}

.ats-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.ats-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-1);
}

.ats-main h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ats-lead {
  margin: 0 0 22px;
  max-width: 42rem;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.ats-cws {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 154, 41, 0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 154, 41, 0.18), transparent 55%),
    var(--bg-elevated);
}

.ats-cws p {
  margin: 0;
}

.ats-cws-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ats-cws-copy {
  margin-top: 4px !important;
  color: var(--muted);
  font-size: 14px;
  max-width: 46rem;
}

.ats-cws-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ats-text-link {
  color: var(--brand-1);
  font-weight: 600;
  font-size: 14px;
}

.ats-stage {
  display: grid;
  gap: 16px;
}

.ats-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.ats-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ats-tab {
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ats-tab[aria-selected='true'] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
}

.ats-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.ats-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ats-field-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.ats-select {
  min-height: 40px;
  max-width: 240px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0e0e12;
  color: var(--text);
  font: inherit;
  padding: 0 10px;
}

.ats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ats-pills label {
  position: relative;
}

.ats-pills input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.ats-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.ats-pills input:focus-visible + span {
  box-shadow: var(--focus-ring);
}

.ats-pills input:checked + span {
  border-color: transparent;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--brand-1);
}

.ats-editor {
  position: relative;
}

.ats-editor textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #0e0e12;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 14px 48px;
}

.ats-editor textarea::placeholder {
  color: var(--muted-2);
}

.ats-editor-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.ats-icon-btn {
  min-width: 44px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ats-drop {
  min-height: 240px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong);
  background: #0e0e12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
}

.ats-drop.is-drag {
  border-color: var(--brand-1);
  background: rgba(255, 154, 41, 0.06);
}

.ats-drop strong {
  color: var(--text);
  font-size: 18px;
}

.ats-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ats-file-chip p {
  margin: 0;
  font-size: 14px;
}

.ats-file-name {
  font-weight: 650;
  word-break: break-all;
}

.ats-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.ats-privacy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ats-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.ats-submit {
  min-width: 180px;
}

.ats-submit[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.ats-status {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-size: 14px;
  color: var(--brand-1);
}

.ats-status.is-error {
  color: #ff8b7a;
}

.ats-result[hidden],
.ats-file-only[hidden],
.ats-paste-only[hidden],
.ats-dock[hidden] {
  display: none;
}

.ats-result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.ats-result-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ats-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ats-ghost {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.ats-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ats-stats li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.ats-prose p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.ats-prose ul {
  margin: 0 0 14px;
  padding-left: 1.1rem;
}

.ats-prose li + li {
  margin-top: 6px;
}

.ats-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 154, 41, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.ats-upsell {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ats-upsell p {
  margin: 0 0 10px;
  color: var(--muted);
}

.ats-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 8px;
}

.ats-fact {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ats-fact strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.ats-fact span {
  color: var(--muted);
  font-size: 14px;
}

.ats-seo {
  margin-top: 48px;
}

.ats-cards {
  display: grid;
  gap: 12px;
}

.ats-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.ats-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.ats-card p {
  margin: 0;
  color: var(--muted);
}

.ats-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ats-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.ats-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 700;
}

.ats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ats-table th,
.ats-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ats-table th {
  background: var(--bg-elevated);
}

.ats-table tr:last-child td {
  border-bottom: 0;
}

.ats-byline {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.ats-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 41, 0.4);
  background: rgba(19, 19, 24, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ats-dock p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.ats-dock .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

@media (min-width: 900px) {
  .site-header .nav-links {
    flex-wrap: nowrap;
    gap: 18px;
  }


  .ats-stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .ats-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .ats-cards {
    grid-template-columns: 1fr 1fr;
  }

  .ats-editor textarea,
  .ats-drop {
    min-height: 320px;
  }

  .ats-result {
    position: sticky;
    top: calc(var(--nav-h) + 12px);
  }
}

@media (max-width: 720px) {
  .ats-dock-copy {
    display: none;
  }
}
