:root {
  --bg: #f7f8fb;
  --text: #172033;
  --muted: #667085;
  --line: #dde3ee;
  --panel: #ffffff;
  --primary: #176b5d;
  --primary-dark: #0f4d43;
  --soft: #e8f4f1;
  --accent: #f5b04c;
  --warning: #fff7e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 93, 0.28);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
}

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

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 40px;
  min-height: 460px;
  padding: 54px 0 28px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.97;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

button,
.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.primary {
  display: inline-flex;
  justify-content: center;
  color: white;
  background: var(--primary);
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary,
.ghost {
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}

.wide {
  width: 100%;
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, white, var(--soft));
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.08);
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 88px;
  line-height: 1;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 8px 0 24px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcff;
  text-align: center;
}

.ad-slot span {
  display: block;
  color: #475467;
  font-weight: 800;
}

.ad-slot small {
  margin-top: 6px;
}

.tip-band {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid #d8e8e3;
  border-radius: 8px;
  color: #315c54;
  background: var(--soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.tool-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 93, 0.45);
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

.tool-card span {
  color: var(--primary);
  font-weight: 850;
}

.tool-card h2 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px 0;
}

.panel,
.output,
.history,
.roadmap,
.mini-tool,
.content-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel,
.mini-tool,
.content-band {
  padding: 22px;
}

h2,
h3 {
  margin: 0 0 16px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  color: var(--text);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.inline-check input {
  width: auto;
}

.output {
  min-height: 624px;
  overflow: hidden;
}

.output-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.subtle-action {
  margin-top: 10px;
  color: var(--muted);
}

.proposal {
  min-height: 470px;
  padding: 28px;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 16px;
}

.proposal.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}

.mini-tool {
  min-height: 400px;
}

.result-box {
  margin-top: 16px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #fbfcfe;
  line-height: 1.65;
}

.result-box strong {
  color: var(--text);
}

.copyable {
  white-space: pre-wrap;
}

.history,
.roadmap,
.content-band {
  margin: 24px 0;
}

.history-list {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
}

.history-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.history-card p,
.content-band p {
  color: var(--muted);
  line-height: 1.6;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.plans article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plans p {
  color: var(--muted);
  line-height: 1.55;
}

.featured {
  border-color: var(--primary) !important;
  background: var(--soft);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.footer-links a,
.text-link {
  color: var(--primary);
  font-weight: 750;
}

.page-shell {
  min-height: 62vh;
  padding: 42px 0 24px;
}

.legal-page {
  max-width: 840px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
}

.legal-page h2 {
  margin-top: 28px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.7;
}

.privacy-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.14);
}

.privacy-notice[hidden] {
  display: none;
}

.privacy-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace,
  .tool-row,
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-panel strong {
    font-size: 64px;
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .tool-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .output-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row {
    width: 100%;
    justify-content: flex-start;
  }

  .privacy-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
  }
}
