/* Shared styles for the free tools (hooks.html, ideas.html). */
:root { --bg: #0a0a0b; --bg2: #121214; --bg3: #1a1a1d; --line: rgba(243, 239, 231, 0.12); --line2: rgba(243, 239, 231, 0.22); --ink: #f3efe7; --mute: #a09b92; --dim: #6d6962; --accent: #ff5a2b; --on: #120703; --ease: cubic-bezier(0.16, 1, 0.3, 1); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 900px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 40px) 120px; }
.back { font: 400 12px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--ink); }
h1 { margin: 34px 0 18px; font: 700 clamp(44px, 9vw, 96px)/0.93 "Inter Tight", sans-serif; letter-spacing: -0.05em; text-wrap: balance; }
em { font: italic 400 1.06em "Instrument Serif", serif; color: var(--accent); letter-spacing: -0.02em; }
.lede { max-width: 60ch; color: var(--mute); font-size: clamp(16px, 2vw, 19px); }
h2 { display: flex; align-items: baseline; gap: 14px; margin: 52px 0 14px; font: 700 clamp(22px, 3.2vw, 32px)/1.1 "Inter Tight", sans-serif; letter-spacing: -0.03em; }
h2 span { font: 400 12px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; color: var(--accent); }
h2 small { font: 400 14px/1.3 "Inter", sans-serif; letter-spacing: 0; color: var(--dim); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field span { font: 400 11px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0; background: var(--bg2); color: var(--ink); font: 400 16px/1.4 "Inter", sans-serif;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s, background 0.25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.field input:focus, .field textarea:focus { outline: none; background: var(--bg3); box-shadow: inset 0 0 0 1.5px var(--accent); }

.hook { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.hook p { margin: 0; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.35; }
.hook mark { padding: 0 0.2em; border-radius: 5px; background: rgba(255, 90, 43, 0.16); color: #ffb295; transition: background 0.3s; }
.hook mark.is-set { background: none; color: var(--ink); padding: 0; }
.copy { position: relative; display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13px/1 "Inter", sans-serif; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.3s var(--ease); }
.copy:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-1px); }
.copy.is-done { background: var(--accent); color: var(--on); box-shadow: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 "Inter", sans-serif; text-decoration: none; white-space: nowrap; transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.25s, color 0.25s; }
.btn--accent { background: var(--accent); color: var(--on); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(255, 90, 43, 0.8); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 16px; color: var(--dim); font-size: 14px; max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.steps li { padding: 18px; border-radius: 16px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: 15px; }
.steps b { display: block; margin-bottom: 6px; font: 400 12px/1 "JetBrains Mono", monospace; color: var(--accent); }
.end { margin-top: 64px; padding: 28px; border-radius: 22px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.end h3 { margin: 0 0 8px; font: 700 clamp(22px, 3vw, 30px)/1.1 "Inter Tight", sans-serif; letter-spacing: -0.03em; }
.end p { margin: 0; color: var(--mute); max-width: 56ch; }

@media (max-width: 640px) {
  .fields, .steps { grid-template-columns: 1fr; }
  .row .btn { flex: 1 1 100%; }
  .hook { grid-template-columns: 1fr; gap: 10px; }
  .copy { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }
