/* Deskrune — shared styling for the AI-tool pages
 * Used by /tools/unstick/, /tools/decode/, /tools/refocus/.
 * Same look on each so the "free AI tools trio" feels like a coherent product.
 */

.tool-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.tool-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dr-clay, #c9613f);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tool-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--dr-clay, #c9613f);
  opacity: 0.5;
}

.tool-shell h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink, #1f1c18);
  font-variation-settings: 'opsz' 72;
}

.tool-shell .lede {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft, #2a2520);
  margin: 0 0 36px;
  max-width: 56ch;
}

.tool-form {
  background: var(--bg-deep, #f5efe4);
  border: 1px solid var(--rule, #e8e6dc);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 60px -32px rgba(20, 20, 19, 0.10);
}
.tool-form label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1f1c18);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.tool-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding: 14px 16px;
  border: 1px solid var(--rule, #d8d4c8);
  border-radius: 6px;
  background: var(--bg, #faf9f5);
  color: var(--ink, #1f1c18);
  resize: vertical;
  min-height: 120px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.tool-form textarea:focus {
  outline: 0;
  border-color: var(--dr-clay, #c9613f);
  box-shadow: 0 0 0 3px rgba(201, 97, 63, 0.15);
}
.tool-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.tool-form .submit {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  background: var(--dr-clay, #c9613f);
  color: #faf9f5;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.45, 0, 0.55, 1),
              background-color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tool-form .submit:hover:not(:disabled) {
  background: var(--dr-clay-deep, #a04a2c);
  transform: translateY(-1px);
}
.tool-form .submit:disabled { opacity: 0.6; cursor: not-allowed; }
.tool-form .meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted, #6f6a60);
}

.tool-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(250, 249, 245, 0.3);
  border-top-color: #faf9f5;
  border-radius: 50%;
  animation: tspin 0.8s linear infinite;
}
@keyframes tspin { to { transform: rotate(360deg); } }

.tool-result {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--bg, #faf9f5);
  border-left: 3px solid var(--dr-clay, #c9613f);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 12px 32px -16px rgba(20, 20, 19, 0.08);
  animation: t-rise 480ms cubic-bezier(0.25, 0, 0.2, 1) both;
}
@keyframes t-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tool-result .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dr-clay, #c9613f);
  margin: 0 0 12px;
}
.tool-result .move {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  color: var(--ink, #1f1c18);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.tool-result .framing {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #6f6a60);
  margin: 0;
}

.tool-error {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(201, 97, 63, 0.08);
  border-left: 2px solid var(--dr-clay, #c9613f);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink, #1f1c18);
  border-radius: 0 4px 4px 0;
}

.tool-cta {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(201, 97, 63, 0.04), rgba(201, 97, 63, 0.10));
  border: 1px solid rgba(201, 97, 63, 0.24);
  border-radius: 8px;
  text-align: center;
}
.tool-cta h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink, #1f1c18);
}
.tool-cta p {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft, #2a2520);
  margin: 0 0 18px;
  max-width: 50ch;
  margin-inline: auto;
}
.tool-cta a.cta-buy {
  display: inline-block;
  padding: 14px 28px;
  background: var(--dr-clay, #c9613f);
  color: #faf9f5;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 160ms ease, background-color 200ms ease;
}
.tool-cta a.cta-buy:hover {
  background: var(--dr-clay-deep, #a04a2c);
  transform: translateY(-1px);
}
.tool-cta .price {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted, #6f6a60);
  margin-top: 12px;
}

.tool-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule, #e8e6dc);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted, #6f6a60);
}
.tool-meta-row a {
  color: var(--dr-clay, #c9613f);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 97, 63, 0.3);
}

.tool-related {
  margin: 56px auto 0;
  padding: 32px 24px 48px;
  max-width: 880px;
}
.tool-related h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 24px;
  color: var(--ink, #1f1c18);
  letter-spacing: -0.015em;
}
.tool-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.tool-related-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--rule, #e8e6dc);
  border-radius: 8px;
  background: var(--bg, #faf9f5);
  text-decoration: none;
  color: var(--ink, #1f1c18);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.tool-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 97, 63, 0.4);
  box-shadow: 0 16px 36px -16px rgba(20, 20, 19, 0.1);
}
.tool-related-card .name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 6px;
}
.tool-related-card .desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #6f6a60);
  margin: 0;
}

/* ─── Email capture (slim, shows inline after a tool result) ─────────── */
.dr-capture {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--bg-deep, #f5efe4);
  border: 1px solid var(--rule, #e8e6dc);
  border-radius: 8px;
  animation: t-rise 480ms cubic-bezier(0.25, 0, 0.2, 1) both;
}
.dr-capture-inner {
  display: grid;
  gap: 14px;
}
.dr-capture-label {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink, #1f1c18);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.dr-capture-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #6f6a60);
  margin: 0;
}
.dr-capture-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dr-capture-form input[type=email] {
  flex: 1 1 220px;
  min-width: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--rule, #d8d4c8);
  border-radius: 6px;
  background: var(--bg, #faf9f5);
  color: var(--ink, #1f1c18);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.dr-capture-form input[type=email]:focus {
  outline: 0;
  border-color: var(--dr-clay, #c9613f);
  box-shadow: 0 0 0 3px rgba(201, 97, 63, 0.15);
}
.dr-capture-form button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--dr-clay, #c9613f);
  color: #faf9f5;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 200ms ease;
  white-space: nowrap;
}
.dr-capture-form button:hover:not(:disabled) {
  background: var(--dr-clay-deep, #a04a2c);
  transform: translateY(-1px);
}
.dr-capture-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.dr-capture-status {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  min-height: 1.5em;
}
.dr-capture-status.ok  { color: #2a6b3e; }
.dr-capture-status.err { color: #a04a2c; }
.dr-capture-sent {
  background: rgba(42, 107, 62, 0.05);
  border-color: rgba(42, 107, 62, 0.2);
}

/* ─── Share-link button (added in v20260509b capture) ─────────────────── */
.dr-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule, #e8e6dc);
  flex-wrap: wrap;
}
.dr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  background: transparent;
  color: var(--ink, #1f1c18);
  border: 1px solid var(--rule, #d8d4c8);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.dr-share-btn:hover:not(:disabled) {
  background: var(--bg, #faf9f5);
  border-color: var(--dr-clay, #c9613f);
  color: var(--dr-clay, #c9613f);
}
.dr-share-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.dr-share-status {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #6f6a60);
  flex: 1 1 200px;
  word-break: break-all;
}
.dr-share-status.ok  { color: var(--ink, #1f1c18); }
.dr-share-status.err { color: var(--dr-clay, #c9613f); }
.dr-share-status a {
  color: var(--dr-clay, #c9613f);
  text-decoration: underline;
  text-underline-offset: 2px;
}
