:root {
  --ink:        #1A1A18;
  --ink-mid:    #3D3D38;
  --ink-light:  #5C5C55;
  --ink-faint:  #78776E;
  --paper:      #FAFAF7;
  --paper-warm: #F4F3EE;
  --paper-mid:  #E6E4DC;
  --border:     #D4D2C9;
  --amber:      #B87426;
  --amber-light:#CC8628;
  --amber-bg:   #FCF5EB;
  --green:      #245A42;
  --red:        #B8352A;
  --tool-placeholder: #6F6F68;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Instrument Sans', sans-serif; font-size: 1rem; background: var(--paper); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }
.serif { font-family: 'Libre Baskerville', Georgia, serif; }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, 0.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink); }
.wordmark em { font-style: italic; color: var(--amber); }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--ink-light); text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
.nav-cta { font-size: 0.9rem; font-weight: 600; background: var(--ink); color: var(--paper); padding: 8px 18px; border-radius: 6px; text-decoration: none; transition: background 0.15s; }
.nav-cta:hover { background: var(--ink-mid); }

/* HERO */
.hero { max-width: 1080px; margin: 0 auto; padding: 56px 28px 36px; text-align: center; }
.hero-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 18px; }
.hero h1 { font-family: 'Libre Baskerville', serif; font-size: clamp(2rem, 4.2vw, 2.95rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.022em; color: var(--ink); max-width: 640px; margin: 0 auto 18px; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero p { font-size: 1.0625rem; line-height: 1.68; color: var(--ink-mid); max-width: 34rem; margin: 0 auto; }

/* TOOL */
.tool-wrap { max-width: 1080px; margin: 36px auto 0; padding: 0 28px; }
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.07); overflow: hidden; }
.tool-top-bar { background: var(--paper-warm); border-bottom: 1px solid var(--border); padding: 11px 20px; display: flex; align-items: center; justify-content: space-between; }
.tool-title { font-size: 0.8125rem; font-weight: 600; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.07em; }
.rate-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-light); }
.rate-pips { display: flex; gap: 3px; }
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-mid); transition: background 0.3s; }
.pip.used { background: var(--amber); }
.tool-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 10px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}
.tool-examples-label { color: var(--ink-faint); font-weight: 500; }
.tool-examples-sep { color: var(--ink-faint); user-select: none; }
.tool-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.tool-col { padding: 22px 26px; }
.tool-col-left { border-right: 1px solid var(--border); }
.field-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-light); margin-bottom: 7px; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.field-req { font-size: 0.7rem; font-weight: 500; color: var(--amber); text-transform: uppercase; letter-spacing: 0.07em; flex-shrink: 0; }
.field-hint { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-faint); margin: -2px 0 8px; max-width: 42em; }
textarea, input[type="text"] { width: 100%; background: var(--paper-warm); border: 1px solid var(--border); border-radius: 7px; color: var(--ink); font-family: 'Instrument Sans', sans-serif; font-size: 1rem; line-height: 1.6; padding: 12px 14px; transition: border-color 0.15s, background 0.15s; outline: none; resize: none; }
/* Profile ~4 lines, role ~3 lines (line-height 1.6); scrollbar when pasted content exceeds */
#profile-input {
  min-height: calc(6.4rem + 24px);
  height: calc(6.4rem + 24px);
  overflow-y: auto;
  box-sizing: border-box;
}
#role-input {
  min-height: calc(4.8rem + 24px);
  height: calc(4.8rem + 24px);
  overflow-y: auto;
  box-sizing: border-box;
}
textarea::placeholder,
input::placeholder {
  color: var(--tool-placeholder);
  opacity: 1;
}
textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder {
  color: var(--tool-placeholder);
}
textarea:focus, input:focus { border-color: var(--amber); background: var(--amber-bg); }
.gen-btn { width: 100%; margin-top: 18px; background: var(--amber); color: #fff; font-family: 'Instrument Sans', sans-serif; font-size: 1.0625rem; font-weight: 600; border: none; border-radius: 8px; padding: 14px 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.16s; }
.load-example-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s;
}
.load-example-link:hover { color: var(--ink-light); }
.gen-btn:hover:not(:disabled) { background: var(--amber-light); box-shadow: 0 4px 16px rgba(184, 116, 38, 0.3); transform: translateY(-1px); }
.gen-btn:active:not(:disabled) { transform: none; box-shadow: none; }
.gen-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.tool-error { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--red); }
.tool-error[hidden] { display: none; }
.output-empty { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 8px 4px; text-align: center; }
.output-empty[hidden] { display: none; }
.output-empty-text { margin: 0; max-width: 17rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-faint); }
.output-results[hidden] { display: none; }
.output-stack { display: flex; flex-direction: column; gap: 14px; }
.output-block { display: flex; flex-direction: column; gap: 7px; }
.output-inner { position: relative; background: var(--paper-warm); border: 1px solid var(--border); border-radius: 7px; padding: 14px 16px; min-height: 200px; font-size: 1rem; line-height: 1.7; color: var(--ink); white-space: pre-wrap; }
.output-inner.output-subject { min-height: 52px; white-space: normal; font-weight: 500; }
.hook-feedback { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.hook-feedback[hidden] { display: none; }
.hook-label,
.hook-strength-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.hook-label { margin: 0 0 6px; }
.hook-eli5 { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-mid); margin: 0 0 10px; }
.hook-strength-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.hook-strength-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hook-strength-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-faint);
  background: var(--paper-warm);
}
.hook-strength-pill.is-active.hook-strength-pill--strong { color: var(--green); background: rgba(36, 90, 66, 0.1); border-color: rgba(36, 90, 66, 0.22); }
.hook-strength-pill.is-active.hook-strength-pill--weak { color: var(--amber); background: var(--amber-bg); border-color: rgba(184, 116, 38, 0.22); }
.hook-strength-pill.is-active.hook-strength-pill--none { color: var(--red); background: rgba(184, 53, 42, 0.08); border-color: rgba(184, 53, 42, 0.22); }
.hook-advice { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-faint); margin: 8px 0 0; }
.hook-advice[hidden] { display: none; }
.tool-placeholder {
  color: var(--tool-placeholder);
  font-style: normal;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
}
.copy-btn { position: absolute; top: 10px; right: 10px; font-family: 'Instrument Sans', sans-serif; font-size: 0.78rem; font-weight: 500; background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 5px 11px; color: var(--ink-light); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.13s; }
.copy-btn:hover { border-color: var(--ink-light); color: var(--ink); }
.output-footer { margin-top: 11px; display: flex; align-items: center; justify-content: flex-end; }
.upgrade-cta { font-size: 0.875rem; color: var(--ink-light); }
.upgrade-cta a { color: var(--amber); font-weight: 600; text-decoration: none; }
.upgrade-cta a:hover { text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.65s linear infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--amber); vertical-align: middle; margin-left: 2px; animation: blink 0.75s step-end infinite; }

/* BENEFITS */
.benefits-section { max-width: 1080px; margin: 0 auto; padding: 80px 28px; }
.section-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 14px; }
.section-h2 { font-family: 'Libre Baskerville', serif; font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.section-sub { font-size: 1rem; color: var(--ink-mid); line-height: 1.68; max-width: 34rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 40px; }
.benefit-cell { background: #fff; padding: 26px 24px; }
.benefit-num { font-family: 'Libre Baskerville', serif; font-size: 1.55rem; font-weight: 700; color: var(--amber); margin-bottom: 5px; letter-spacing: -0.02em; }
.benefit-label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.benefit-desc { font-size: 0.9375rem; line-height: 1.62; color: var(--ink-light); }

/* WHY */
.why-section { background: var(--paper-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-inner { max-width: 1080px; margin: 0 auto; padding: 80px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-features { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.why-feature { display: flex; align-items: flex-start; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.why-feature:first-child { padding-top: 0; }
.why-feature:last-child { border-bottom: none; padding-bottom: 0; }
.why-icon { width: 34px; height: 34px; flex-shrink: 0; background: var(--amber-bg); border: 1px solid rgba(184, 116, 38, 0.22); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.why-feature-h { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.why-feature-p { font-size: 0.9375rem; line-height: 1.62; color: var(--ink-light); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: 36px; }
.compare-table thead th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-light); padding: 8px 12px; border-bottom: 2px solid var(--border); text-align: left; }
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table tbody tr { border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table td { padding: 11px 12px; color: var(--ink-mid); vertical-align: middle; }
.compare-table td:not(:first-child) { text-align: center; }
.check { color: var(--green); }
.na { color: var(--border); }
.compare-table .hl { background: var(--amber-bg); }

/* PRICING */
.pricing-section { max-width: 1080px; margin: 0 auto; padding: 80px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.price-amount { font-family: 'Libre Baskerville', serif; font-size: 2.7rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin: 14px 0 4px; }
.price-period { font-size: 0.875rem; color: var(--ink-light); }
.price-features { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 26px; }
.price-feat { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9375rem; color: var(--ink-mid); line-height: 1.5; }
.price-feat-check { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.cta-primary { display: block; width: 100%; background: var(--ink); color: #fff; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; font-weight: 600; border: none; border-radius: 8px; padding: 14px 20px; cursor: pointer; text-align: center; text-decoration: none; transition: background 0.15s; }
.cta-primary:hover { background: var(--ink-mid); }
.cta-secondary { display: block; width: 100%; border: 1px solid var(--border); color: var(--ink); background: #fff; font-family: 'Instrument Sans', sans-serif; font-size: 0.9375rem; font-weight: 500; border-radius: 8px; padding: 13px 20px; cursor: pointer; text-align: center; text-decoration: none; transition: all 0.15s; margin-top: 9px; }
.cta-secondary:hover { border-color: var(--ink-light); }
.guarantee { margin-top: 14px; font-size: 0.875rem; color: var(--ink-light); text-align: center; line-height: 1.58; }

/* Toast */
.toast { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 8px; padding: 12px 18px; font-size: 0.875rem; font-weight: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.2); z-index: 100; white-space: nowrap; align-items: center; gap: 12px; }
.toast.show { display: flex; }
.toast a { color: #F5B84A; font-weight: 600; text-decoration: none; }
.toast a:hover { text-decoration: underline; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.45); cursor: pointer; font-size: 1rem; line-height: 1; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--paper-warm); }
footer .wordmark { color: var(--ink-light); }
footer .wordmark em { color: var(--ink-mid); }
a.wordmark { text-decoration: none; }
.nav-inner a.wordmark { color: var(--ink); }
footer a.wordmark { color: var(--ink-light); }
footer a.wordmark em { color: var(--ink-mid); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 0.875rem; color: var(--ink-light); text-decoration: none; transition: color 0.13s; }
.footer-link:hover { color: var(--ink-mid); }

/* Legal / simple pages */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 48px 28px 80px; }
.legal-wrap h1 { font-family: 'Libre Baskerville', serif; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.legal-wrap .legal-updated { font-size: 0.875rem; color: var(--ink-light); margin-bottom: 2rem; }
.legal-wrap h2 { font-size: 1rem; font-weight: 600; margin-top: 1.75rem; margin-bottom: 0.55rem; color: var(--ink); letter-spacing: -0.01em; }
.legal-wrap p { font-size: 0.9375rem; line-height: 1.68; color: var(--ink-mid); margin-bottom: 0.9rem; }
.legal-wrap a { color: var(--amber); font-weight: 500; text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }

.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.nav-actions { display: flex; align-items: center; gap: 22px; }

@media (max-width: 768px) {
  .tool-body { grid-template-columns: 1fr; }
  .tool-col-left { border-right: none; border-bottom: 1px solid var(--border); }
  .tool-col-output:not(.has-results) { display: none; }
  .why-inner, .pricing-section { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
}
