:root {
  --paper: #f5efe2;
  --paper-strong: #fffaf0;
  --ink: #152218;
  --muted: #556357;
  --line: rgba(21, 34, 24, 0.14);
  --accent: #0f7b58;
  --accent-strong: #0a4a36;
  --accent-soft: rgba(15, 123, 88, 0.1);
  --shadow: 0 24px 70px rgba(20, 26, 22, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --display-font: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body-font: "Trebuchet MS", "Gill Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 123, 88, 0.18), transparent 32%),
    radial-gradient(circle at right 12% top 18%, rgba(6, 74, 54, 0.11), transparent 20%),
    linear-gradient(180deg, #efe5d2 0%, var(--paper) 38%, var(--paper-strong) 100%);
  font-family: var(--body-font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f6f4ed;
  font-family: var(--display-font);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero-copy h1,
.section-head h2,
.panel-copy,
.hero-panel h2,
.feature-card h3,
.workflow-card h3,
.example-card h3,
.faq-item h3,
.cta-band h2,
.legal-copy h1,
.tool-hero h1,
.form-card h2,
.result-card h2,
.footer-brand h2 {
  font-family: var(--display-font);
}

.brand-copy strong {
  font-size: 1.15rem;
}

.brand-copy small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.helper-pill,
.eyebrow,
.panel-kicker,
.card-eyebrow,
.footer-kicker,
.workflow-step {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.helper-pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-strong);
  color: #f7f4ed;
  box-shadow: 0 18px 32px rgba(10, 74, 54, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.button-compact {
  padding: 11px 18px;
}

.hero-section,
.tool-hero {
  padding: 72px 0 40px;
}

.hero-layout,
.tool-hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.hero-copy h1,
.tool-hero h1,
.legal-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.hero-description,
.hero-helper,
.panel-copy,
.feature-card p,
.example-card p,
.workflow-card p,
.faq-item p,
.legal-copy p,
.form-card p,
.result-card p,
.footer-brand p,
.tool-side-note li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel,
.tool-side-note,
.feature-card,
.example-card,
.workflow-card,
.faq-item,
.form-card,
.result-card,
.cta-band,
.legal-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 243, 0.72);
  box-shadow: var(--shadow);
}

.hero-panel,
.tool-side-note {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.tool-side-note::before,
.result-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 123, 88, 0.18), transparent 70%);
}

.panel-list {
  display: grid;
  gap: 14px;
}

.panel-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 123, 88, 0.07);
  border: 1px solid rgba(15, 123, 88, 0.12);
}

.panel-item span,
.footer-title {
  font-weight: 700;
}

.section-block {
  padding: 34px 0 72px;
}

.section-tinted .container,
.tool-shell .container {
  position: relative;
}

.section-head {
  margin-bottom: 26px;
  max-width: 720px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.card-grid,
.example-grid,
.workflow-grid,
.faq-list {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.example-card,
.workflow-card,
.faq-item {
  padding: 24px;
}

.final-cta {
  padding-bottom: 96px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px;
}

.tool-mode-list {
  margin: 0;
  padding-left: 18px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.mode-rail {
  position: sticky;
  top: 108px;
}

.mode-tab {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  cursor: pointer;
}

.mode-tab.is-active {
  border-color: rgba(10, 74, 54, 0.28);
  background: rgba(15, 123, 88, 0.1);
  color: var(--ink);
}

.mode-tab span {
  font-weight: 700;
  font-size: 1rem;
}

.mode-tab small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-card,
.result-card,
.legal-copy {
  padding: 28px;
}

.mode-panel + .mode-panel {
  margin-top: 18px;
}

.form-card form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(21, 34, 24, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-badges span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 123, 88, 0.1);
  border: 1px solid rgba(15, 123, 88, 0.16);
  font-size: 0.92rem;
}

.result-visual {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(15, 123, 88, 0.08), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(15, 123, 88, 0.14);
}

.visual-surface {
  height: 220px;
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(10, 74, 54, 0.88), rgba(15, 123, 88, 0.35)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 65%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.visual-caption {
  margin-top: 14px;
  color: var(--muted);
}

.result-card[data-mode="edit"] .visual-surface {
  background:
    linear-gradient(140deg, rgba(69, 49, 18, 0.86), rgba(178, 144, 78, 0.4)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 65%);
}

.result-card[data-mode="enhance"] .visual-surface {
  background:
    linear-gradient(140deg, rgba(32, 38, 68, 0.88), rgba(101, 132, 209, 0.4)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 65%);
}

.legal-shell {
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin-top: 30px;
  font-size: 1.45rem;
}

.site-footer {
  padding: 20px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-bottom {
  padding-top: 10px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-nav,
  .helper-pill {
    display: none;
  }

  .hero-layout,
  .tool-hero-layout,
  .tool-layout,
  .footer-grid,
  .card-grid,
  .example-grid,
  .workflow-grid,
  .faq-list,
  .inline-fields,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .tool-layout {
    gap: 18px;
  }

  .mode-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mode-tab {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .header-row {
    min-height: 74px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1,
  .tool-hero h1,
  .legal-copy h1 {
    font-size: 2.6rem;
  }

  .button,
  .button-compact {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .mode-rail {
    grid-template-columns: 1fr;
  }
}
