:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5d6864;
  --line: #d9dfdc;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --surface-cool: #eef5f8;
  --accent: #1f6f5b;
  --accent-strong: #124d3f;
  --blue: #285f8f;
  --gold: #9a6b17;
  --danger: #8c3b30;
  --shadow: 0 14px 38px rgba(27, 42, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8faf9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 14px;
  min-width: 0;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header h1,
.panel-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid #cbd9d2;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.form-body {
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.label {
  color: #26322f;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd4d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 10px 11px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.13);
}

.template-tabs,
.output-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.segmented {
  min-height: 38px;
  border: 1px solid #cbd4d0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.segmented.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: #cbd4d0;
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.button.wide {
  width: 100%;
}

.interest-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #d6ddd9;
  border-radius: 8px;
  background: var(--surface-cool);
  padding: 12px;
}

.interest-box strong {
  font-size: 14px;
  line-height: 1.25;
}

.interest-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pricing-signal {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
  margin: 18px 0;
  border: 1px solid #cbd9d2;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.pricing-signal strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--accent-strong);
  font-size: 38px;
  line-height: 1;
}

.pricing-signal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pricing-signal ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #34413d;
  font-size: 14px;
}

.price-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  border: 1px dashed #b9c8c2;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.ad-slot.compact {
  margin-top: 14px;
}

.ad-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.ad-slot p {
  margin: 0;
  color: #34413d;
  font-size: 13px;
}

.ad-slot a {
  justify-self: start;
  font-size: 13px;
  font-weight: 760;
}

.ad-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.ad-slot .sponsor-link {
  color: var(--muted);
  font-weight: 720;
}

.preview-panel {
  overflow: hidden;
}

.brief-preview {
  display: grid;
  gap: 14px;
  min-height: 620px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(31, 111, 91, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(40, 95, 143, 0.06) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.document-sheet {
  width: min(100%, 760px);
  min-height: 560px;
  margin: 0 auto;
  border: 1px solid #d6ddd9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(30, 46, 43, 0.12);
}

.document-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 5px solid var(--accent);
}

.document-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.document-meta {
  color: var(--muted);
  font-size: 13px;
}

.brief-sections {
  display: grid;
  gap: 12px;
  padding: 18px 20px 22px;
}

.brief-section {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf1ef;
}

.brief-section:last-child {
  border-bottom: 0;
}

.brief-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.brief-content {
  min-height: 22px;
  color: #1d2926;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.export-box {
  width: 100%;
  min-height: 260px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #111917;
  color: #eaf3ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 16px;
  white-space: pre-wrap;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.content-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.content-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(27, 42, 38, 0.08);
  min-width: 0;
  overflow-wrap: anywhere;
}

.content-block iframe {
  display: block;
  max-width: 100%;
}

.content-block h1,
.content-block h2,
.content-block h3 {
  margin: 0 0 10px;
  letter-spacing: 0;
  line-height: 1.18;
}

.content-block h1 {
  font-size: 30px;
}

.content-block h2 {
  font-size: 22px;
}

.content-block p,
.content-block li {
  color: #34413d;
}

.check-list,
.step-list {
  margin: 0;
  padding-left: 21px;
}

.check-list li,
.step-list li {
  margin: 8px 0;
}

.content-page {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.article-header {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(27, 42, 38, 0.08);
}

.article-header h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.article-header p {
  margin: 0;
  color: #34413d;
  font-size: 17px;
}

.eyebrow {
  color: var(--accent-strong) !important;
  font-size: 13px !important;
  font-weight: 820;
  text-transform: uppercase;
}

.download-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-cool);
  padding: 14px;
}

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

.resource-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  font-weight: 760;
}

.seo-section {
  margin-top: 18px;
}

.sample-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(27, 42, 38, 0.08);
}

.sample-title {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  text-align: center;
}

.sample-title strong {
  font-size: 22px;
}

.sample-title span {
  color: var(--muted);
  font-size: 13px;
}

.sample-sheet dl {
  display: grid;
  margin: 0;
  border: 1px solid #d6ddd9;
  border-bottom: 0;
}

.sample-sheet dl div {
  display: grid;
  grid-template-columns: minmax(132px, 0.28fr) minmax(0, 1fr);
  min-height: 44px;
  border-bottom: 1px solid #d6ddd9;
}

.sample-sheet dl div.tall {
  min-height: 92px;
}

.sample-sheet dt,
.sample-sheet dd {
  margin: 0;
  padding: 10px 12px;
}

.sample-sheet dt {
  background: var(--surface-cool);
  font-size: 13px;
  font-weight: 800;
}

.sample-sheet dd {
  color: var(--muted);
  font-size: 13px;
}

.article-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.article-section h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.18;
}

.article-section p {
  margin: 0 0 10px;
  color: #34413d;
}

.file-preview-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.file-card,
.comparison-grid > div {
  display: grid;
  gap: 6px;
  border: 1px solid #d6ddd9;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.file-card strong,
.comparison-grid strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.file-card span,
.comparison-grid li,
.signal-list li {
  color: #34413d;
  font-size: 14px;
  line-height: 1.45;
}

.comparison-grid ul,
.signal-list {
  margin: 4px 0 0;
  padding-left: 20px;
}

.comparison-grid li,
.signal-list li {
  margin: 6px 0;
}

.template-code {
  margin: 12px 0 0;
  border: 1px solid #d5ded9;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
  white-space: pre-wrap;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.side-rail {
  display: grid;
  gap: 12px;
}

.rail-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-cool);
  padding: 16px;
}

.rail-box h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.rail-box ul {
  margin: 0;
  padding-left: 18px;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #4f3b11;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

.product-copy {
  display: grid;
  gap: 14px;
}

.product-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.product-lede {
  margin: 0;
  color: #34413d;
  font-size: 18px;
}

.price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.price-row strong {
  font-size: 40px;
  line-height: 1;
}

.price-row span,
.product-note {
  color: var(--muted);
  font-size: 14px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  color: #25332f;
  font-size: 13px;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-preview,
.product-preview-small {
  overflow: hidden;
}

.product-preview img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-preview-small img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.check-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.file-table {
  display: grid;
  gap: 10px;
}

.file-table div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border-bottom: 1px solid #e6ece9;
  padding-bottom: 10px;
}

.file-table div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.file-table span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .tool-grid,
  .content-layout,
  .resource-grid,
  .file-preview-grid,
  .comparison-grid,
  .product-hero,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .brief-preview {
    min-height: 0;
  }

  .document-sheet {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .field-grid,
  .template-tabs,
  .output-tabs {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
  }

  .brief-section {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .document-topline {
    grid-template-columns: 1fr;
  }

  .sample-sheet dl div {
    grid-template-columns: 1fr;
  }
}


.text-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}
