/* ===========================================================
   PromptNest — Design Tokens
   Palette: warm paper bg, moss ink text, twine-gold + berry accents
   Type: Fraunces (display) + Work Sans (body/UI)
=========================================================== */
:root {
  --bg: #FBF8F2;
  --bg-alt: #F1ECE0;
  --ink: #24301F;
  --ink-soft: #5B6653;
  --card: #FFFFFF;
  --gold: #C08A28;
  --teal: #2F6B5E;
  --berry: #9C3F52;
  --border: #E4DCC8;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;

  --radius: 14px;
  --max-width: 1080px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helper */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible keyboard focus (accessibility) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

/* ===========================================================
   Header / Nav
=========================================================== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--teal);
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
}
/* ===========================================================
   Hero
=========================================================== */
.hero {
  padding: 64px 0 56px;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.4em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 32px;
  }
}
/* ===========================================================
   Tool Card (the generator itself)
=========================================================== */
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--border), 0 12px 32px -20px rgba(36, 48, 31, 0.35);
  text-align: left;
  overflow: hidden;
}

/* Mode tabs (Image / Chat toggle) */
.mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.mode-tab {
  flex: 1;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-tab:hover {
  color: var(--ink);
}

.mode-tab.is-active {
  background: var(--card);
  color: var(--teal);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.tool-body {
  padding: 28px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.text-input,
.select-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.field-row {
  display: flex;
  gap: 16px;
}

.field-col {
  flex: 1;
}

/* Generate button */
.btn-generate {
  width: 100%;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--berry);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-generate:hover {
  background: #832F40;
}

.btn-generate:active {
  transform: scale(0.99);
}

/* Output card — the "nest" twine-stitched signature element */
.output-wrap {
  margin-top: 24px;
}

.output-card {
  background: var(--bg-alt);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}

.output-card p {
  color: var(--ink);
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
}

.btn-copy {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--teal);
  color: #fff;
}

.copy-confirm {
  margin-left: 10px;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}
/* ===========================================================
   Generic Section wrapper (reused by How it works, Examples, FAQ)
=========================================================== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 40px;
}
/* Long-form content (blog posts, privacy, terms, about) reads better left-aligned */
.legal-content h1,
.legal-content h2 {
  text-align: left;
}
/* How it works — 3 steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
/* ===========================================================
   Examples section (Weak vs PromptNest comparison)
=========================================================== */
.section-intro {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.example-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.example-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.example-text {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.example-text.weak {
  background: #F5EDEA;
  color: #A15C4E;
  margin-bottom: 16px;
}

.example-text.strong {
  background: #EAF2EF;
  color: var(--teal);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}
/* ===========================================================
   FAQ section
=========================================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 0.95rem;
}
/* ===========================================================
   Footer
=========================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--teal);
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* ===========================================================
   Blog / long-form content: colorful accents
=========================================================== */

/* Colored H2 headings with a small accent bar - alternates teal/berry for rhythm */
.legal-content h2 {
  position: relative;
  padding-left: 18px;
  color: var(--teal);
}

.legal-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: var(--gold);
}

/* Highlighted example/callout box - reuses the dashed-nest motif from the tool card */
.callout-box {
  background: var(--bg-alt);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}

.callout-box p {
  margin: 0;
  color: var(--ink);
}

.callout-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--berry);
  margin-bottom: 6px;
}

/* Pull-quote for a standout sentence mid-article */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--teal);
  border-left: 4px solid var(--berry);
  padding: 8px 0 8px 20px;
  margin: 28px 0;
  line-height: 1.4;
}
/* ===========================================================
   Author byline (blog posts)
=========================================================== */
.author-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 600;
  color: var(--ink) !important;
}

.author-title {
  color: var(--ink-soft);
}
/* ===========================================================
   Related Posts (end of blog articles)
=========================================================== */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-posts h2 {
  font-size: 1.3rem;
  padding-left: 0;
}

.related-posts h2::before {
  display: none;
}
/* ===========================================================
   Comments section
=========================================================== */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.comments-section h2 {
  padding-left: 0;
}

.comments-section h2::before {
  display: none;
}