/* outreach.txt page: the generator and the checker. Built on ../styles.css tokens. */

/* --------------------------------------------------------------- buttons */
.ot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}
.ot-btn:active { transform: scale(.97); }
.ot-btn--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ot-btn--sm { height: 30px; padding: 0 12px; font-size: 13.5px; border-radius: 7px; }
.ot-btn.is-done { background: var(--good); border-color: var(--good); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .ot-btn:hover { border-color: var(--line-strong); }
  .ot-btn--ink:hover { background: color-mix(in srgb, var(--ink) 90%, #000); border-color: transparent; }
}

/* ------------------------------------------------------------------ hero */
.ot-hero { padding: 80px 0 96px; }
.ot-hero__grid { display: flex; flex-direction: column; }
.ot-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -.026em; text-wrap: balance; max-width: 15ch; }
.ot-hero__sub { margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.ot-hero .ot-file { margin-top: 56px; max-width: 880px; }
.ot-hero__sub b { color: var(--text); font-weight: 600; }
.ot-hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.ot-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 600;
  color: var(--muted); padding: 5px 12px 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.ot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }

/* the annotated example file */
.ot-file { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent), 0 24px 48px -28px color-mix(in srgb, var(--text) 22%, transparent); }
.ot-file__head, .ot-preview__head { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 10px 8px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ot-file__path { font-family: var(--mono); font-size: 13px; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-file__path b { color: var(--text); font-weight: 500; }
.ot-file__lines { list-style: none; margin: 0; padding: 10px 0; counter-reset: ln; }
.ot-file__lines li { counter-increment: ln; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: baseline;
  gap: 0 14px; padding: 5px 16px 5px 0; }
.ot-file__lines li::before { content: counter(ln); text-align: right; font-family: var(--mono); font-size: 12px; color: var(--line-strong); }
.ot-file__lines code { background: none; padding: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-file__lines .k { color: var(--accent); }
.ot-note { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* -------------------------------------------------------------- sections */
.ot-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 56px; align-items: start; margin-bottom: 40px; }
.ot-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.018em; }

/* ------------------------------------------------------------- generator */
.ot-maker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.ot-form { display: flex; flex-direction: column; gap: 22px; }
.ot-field { display: flex; flex-direction: column; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ot-label { font-size: 14.5px; font-weight: 600; padding: 0; }
.ot-hint { font-size: 13.5px; color: var(--faint); }
.ot-form input[type="text"], .ot-form input[type="date"], .ot-form input[type="number"], .ot-form select, .ot-check textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: inherit; font-size: 15.5px; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ot-form input::placeholder, .ot-check textarea::placeholder { color: var(--faint); opacity: .8; }
.ot-form input:focus, .ot-form select:focus, .ot-check textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ot-inline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.ot-inline input[type="number"] { width: 76px; flex: none; }
.ot-inline select { flex: 1; }
.ot-form [data-when-open][hidden] { display: none; }

/* the cold-email choice: three cards, one picked */
.ot-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ot-seg label { position: relative; cursor: pointer; }
.ot-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ot-seg span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 11px 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.ot-seg label:active span { transform: scale(.98); }
.ot-seg b { font-size: 15px; font-weight: 600; }
.ot-seg small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ot-seg input:checked + span { border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.ot-seg input:focus-visible + span { box-shadow: var(--ring); }
.ot-seg input[value="ask-first"]:checked + span { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--warn); }
.ot-seg input[value="no-cold-email"]:checked + span { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--bad); }
.ot-seg input[value="open"]:checked + span { border-color: var(--good); background: color-mix(in srgb, var(--good) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--good); }

/* the live file and what it means */
.ot-out { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.ot-preview { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.ot-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.ot-preview__body { margin: 0; padding: 16px 18px 18px; min-height: 196px; font-family: var(--mono); font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; color: var(--text); background: none; }
.ot-preview__body .c { color: var(--faint); }
.ot-preview__body .k { color: var(--accent); }
.ot-reads { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface-2); }
.ot-reads h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ot-reads ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ot-reads li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ot-reads li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transform: translateY(-2px); justify-self: center; }
.ot-error { margin-top: 10px; font-size: 14.5px; color: var(--bad); }
.ot-publish { font-size: 14.5px; color: var(--muted); }
.ot-publish code { word-break: break-all; }

/* ---------------------------------------------------------------- checker */
.ot-check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.ot-check textarea { height: auto; min-height: 260px; padding: 14px 16px; font-family: var(--mono); font-size: 14px; line-height: 1.65; resize: vertical; }
.ot-result { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 18px 20px; font-size: 15px;
  display: flex; flex-direction: column; gap: 12px; }
.ot-quiet { color: var(--faint); }
.ot-verdict { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; }
.ot-verdict i { width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; }
.ot-verdict.is-warn i { background: var(--warn); }
.ot-verdict.is-bad i { background: var(--bad); }
.ot-msgs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ot-msgs li { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; }
.ot-msgs .is-bad { background: color-mix(in srgb, var(--bad) 9%, transparent); color: color-mix(in srgb, var(--bad) 75%, var(--text)); }
.ot-msgs .is-warn { background: color-mix(in srgb, var(--warn) 11%, transparent); color: color-mix(in srgb, var(--warn) 60%, var(--text)); }
.ot-result .ot-reads { background: var(--surface); }

/* ------------------------------------------------------------------ rules */
.ot-rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.ot-rules li { counter-increment: r; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 18px;
  font-size: 16px; border-top: 1px solid var(--line); }
.ot-rules li:first-child { border-top: 0; }
.ot-rules li::before { content: counter(r); font-family: var(--mono); font-size: 13px; color: var(--faint);
  width: 24px; height: 24px; border-radius: 6px; background: var(--wash); display: grid; place-items: center; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .ot-maker, .ot-head, .ot-check { grid-template-columns: minmax(0, 1fr); }
  .ot-out { position: static; }
  .ot-note { display: none; }
  .ot-file__lines li { grid-template-columns: 2.4em minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ot-hero { padding: 40px 0 56px; }
  .ot-file__lines code { white-space: normal; overflow-wrap: anywhere; }
  .ot-hero__sub { font-size: 17px; }
  .ot-seg { grid-template-columns: minmax(0, 1fr); }
  .ot-row { grid-template-columns: minmax(0, 1fr); }
  .ot-preview__head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ot-btn, .ot-seg span { transition: none; }
}
