/* DeskLark Studio -- Free Etsy AI-Disclosure Statement Generator
   Brand palette matches the wedding, cash-stuffing, and freelancer set-aside
   calculators and the Pinterest pin-card system:
   teal #132F32 / teal-light #2C544E / cream #F8F5EF / gold #C9A24B
   / ink #221F1C / gray #55504A. A dedicated warning red styles the
   "Not Legal Advice" disclaimer box and the mismatch-box (a real gate, not
   decoration -- it means no sentence is being shown), same visual urgency
   convention the sibling calculators use for their own regulatory copy.

   No number inputs on this page (no digits anywhere, including
   placeholders -- see the PLACEHOLDER-digit lesson in app.js's header
   comment and the regulatory grep in tests/verify.mjs), so none of the
   number-input-width fixes from the calculators apply here. */

:root {
  --teal: #132F32;
  --teal-light: #2C544E;
  --cream: #F8F5EF;
  --cream-dim: #EFEAE0;
  --gold: #C9A24B;
  --ink: #221F1C;
  --gray: #55504A;
  --accent: #8C6A1F;
  --warn: #B3261E;
  --warn-bg: #FBEAE8;
  --rule: #DAD3C4;
  --radius: 10px;
  --max-w: 820px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--teal);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); margin-top: 0; }
h3 { font-size: clamp(1.05rem, 3vw, 1.2rem); margin-top: 1.4em; }

p { margin: 0 0 1em; }

a { color: var(--teal-light); }
a:hover, a:focus { color: var(--teal); }

code {
  background: var(--cream-dim);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- header / footer ---------- */

.site-header {
  background: var(--teal);
  color: var(--cream);
  padding: 22px 0;
}
.site-header .wordmark {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  color: var(--cream);
}
.site-header .tagline {
  margin: 0;
  font-size: 0.92rem;
  color: #C9C4B8;
}

.site-footer {
  background: var(--teal);
  color: #C9C4B8;
  margin-top: 48px;
  padding: 24px 0 32px;
  font-size: 0.85rem;
}
.site-footer p { margin: 0 0 6px; }
.footer-fine { color: #9c9686; }

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.site-links a {
  color: #E4DCC4;
  text-decoration: none;
}
.site-links a:hover, .site-links a:focus {
  color: var(--gold);
  text-decoration: underline;
}

/* ---------- layout sections ---------- */

main.wrap { padding-top: 28px; padding-bottom: 12px; }

section { margin-bottom: 40px; }

.intro .lede {
  color: var(--gray);
  font-size: 1.02rem;
  max-width: 66ch;
}

/* ---------- disclaimer box ---------- */

.disclaimer-box {
  margin-top: 16px;
  border: 1.5px solid var(--warn);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.disclaimer-box .db-label {
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--warn);
}
.disclaimer-box .db-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ---------- core quote ---------- */

.core-quote {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 20px 6px;
}

.quote-box {
  margin: 0 0 10px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  background: var(--cream-dim);
  border-radius: 0 8px 8px 0;
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--teal);
  font-size: 1.05rem;
}

/* ---------- generator form ---------- */

.generator {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 20px 8px;
}

.field-group {
  margin-bottom: 26px;
  border: 0;
  padding: 0;
}

.field-group > label,
.field-group legend {
  display: block;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  font-size: 1rem;
}

.optional-note {
  font-weight: 400;
  color: var(--gray);
  font-size: 0.85rem;
}

.hint {
  color: var(--gray);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

select,
input[type="text"] {
  font-size: 1rem;
  padding: 9px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 480px;
}

input:focus, select:focus {
  border-color: var(--teal-light);
}

.checkbox-row, .radio-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.checkbox-label, .radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--cream-dim);
  cursor: pointer;
  font-size: 0.95rem;
}
.checkbox-label input, .radio-label input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.checkbox-none {
  border-style: dashed;
}

fieldset.not-applicable {
  opacity: 0.5;
}
fieldset.not-applicable::after {
  content: "Not applicable -- no AI was used for this listing.";
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
}
fieldset.not-applicable .checkbox-label,
fieldset.not-applicable .radio-label {
  cursor: not-allowed;
}

/* ---------- results ---------- */

.prompt-state {
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--cream-dim);
  color: var(--ink);
  font-weight: 600;
}

.mismatch-box {
  margin-top: 8px;
  border: 1.5px solid var(--warn);
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mismatch-box .mb-label {
  margin: 0 0 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--warn);
}
.mismatch-box .mb-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.sentence-box {
  margin-top: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--cream-dim);
}

#matched-template-label {
  font-weight: 700;
  color: var(--teal);
  margin-top: 0;
}

#sentence-output {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 12px;
  color: var(--ink);
}

.consistency-hint {
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  margin-top: 12px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--teal-light);
}

.copy-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--teal-light);
  min-height: 1.2em;
}

.paste-pointer {
  margin-top: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 4px 18px 6px;
  background: #fff;
}
.paste-pointer p { color: var(--gray); font-size: 0.92rem; }

.how-it-works {
  margin-top: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
}
.how-it-works summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
}
.how-it-works p {
  margin-top: 10px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin-top: 0; margin-bottom: 6px; }
.faq-item p { color: var(--gray); margin-bottom: 0; }

/* ---------- promo cards ---------- */

.promo-intro { color: var(--gray); }

.promo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.promo-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.promo-card:hover, .promo-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.promo-card h3 { color: var(--teal); margin-top: 0; }
.promo-card p { color: var(--gray); font-size: 0.92rem; }

.promo-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.promo-cta {
  display: inline-block;
  font-weight: 700;
  color: var(--teal-light);
}

.promo-card--soon {
  background: var(--cream-dim);
  cursor: default;
}
.promo-card--soon:hover, .promo-card--soon:focus-visible {
  transform: none;
  border-color: var(--rule);
}
.promo-cta--disabled {
  color: var(--gray);
}

@media (min-width: 620px) {
  .promo-cards {
    grid-template-columns: 1fr 1fr;
  }
  .checkbox-row, .radio-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .checkbox-label, .radio-label {
    flex: 0 0 auto;
  }
}

@media (min-width: 640px) {
  :root { font-size: 17px; }
  .generator { padding: 28px 28px 10px; }
}
