@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&display=swap");

:root {
  --ink: #171a22;
  --muted: #69707d;
  --soft: #f5f7f2;
  --panel: #ffffff;
  --panel-warm: #fff8ed;
  --line: #dde4d9;
  --green: #2f9f75;
  --green-ink: #0f5f43;
  --blue: #376d9f;
  --coral: #d9805f;
  --gold: #d7a947;
  --shadow: 0 18px 50px rgba(24, 28, 38, 0.1);
  --shadow-tight: 0 8px 22px rgba(24, 28, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(47, 159, 117, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(216, 128, 95, 0.08), transparent 28%),
    var(--soft);
  color: var(--ink);
  font-family: "Manrope", Aptos, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 26, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 34, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0, transparent 72%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 242, 0.88);
  border-bottom: 1px solid rgba(221, 228, 217, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Manrope", Aptos, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 4px;
  border: 1px solid rgba(221, 228, 217, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-tight);
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--ink);
  color: white;
}

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

.hero-tool {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(420px, 1.18fr);
  gap: 22px;
  align-items: start;
  padding: 34px 0 20px;
}

.intro-panel,
.tool-card,
.result-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.intro-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
}

.intro-panel::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 28px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--coral), var(--gold));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 5px 9px;
  border: 1px solid rgba(47, 159, 117, 0.28);
  border-radius: 7px;
  background: rgba(47, 159, 117, 0.09);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Manrope", Aptos, "Segoe UI", sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 860;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 850;
}

p {
  margin: 0 0 14px;
}

.lead {
  color: #424956;
  font-size: 18px;
  line-height: 1.6;
}

.trust-row,
.button-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.trust-row {
  margin-top: 22px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 26, 34, 0.09);
  border-radius: 7px;
  background: var(--soft);
  color: #303744;
  font-size: 13px;
  font-weight: 800;
}

.tool-card {
  padding: 20px;
}

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

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

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

label {
  color: #303744;
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6cb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 12px;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 159, 117, 0.18);
  border-color: var(--green);
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid #cbd4ca;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 26, 34, 0.04);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 26, 34, 0.12);
}

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

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

.results {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: 14px;
}

.result-card,
.content-card {
  padding: 18px;
}

.score-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(47, 159, 117, 0.1), rgba(55, 109, 159, 0.06)),
    #fff;
}

.score-orbit {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--green) var(--score), #e6ebe3 0);
}

.score-orbit strong {
  font-family: "Manrope", Aptos, sans-serif;
  font-size: 36px;
  font-weight: 900;
}

.score-orbit span {
  position: absolute;
  bottom: 25px;
  left: 62px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 34px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
  color: #39414d;
  font-size: 13px;
}

meter {
  width: 100%;
  height: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d3dcd1;
  border-radius: 7px;
  background: #fff;
  color: #303744;
  font-size: 13px;
  font-weight: 800;
}

.chip.good {
  border-color: rgba(47, 159, 117, 0.32);
  background: rgba(47, 159, 117, 0.1);
  color: var(--green-ink);
}

.chip.warn {
  border-color: rgba(216, 128, 95, 0.34);
  background: rgba(216, 128, 95, 0.11);
  color: #8a472d;
}

.copy-block,
.letter-output {
  overflow-wrap: anywhere;
  border: 1px solid #e0e8df;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: #fbfdf9;
  padding: 14px;
  white-space: pre-wrap;
}

.letter-output {
  font-family: Georgia, "Times New Roman", serif;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
}

.clean-list li {
  margin: 8px 0;
}

.section {
  padding: 52px 0;
}

.section > h2 {
  max-width: 760px;
}

.seo-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-columns article {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.seo-columns p {
  color: #434b58;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.content-card:hover {
  border-color: rgba(47, 159, 117, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(24, 28, 38, 0.13);
}

.content-card a {
  color: var(--green-ink);
  font-weight: 850;
}

.tool-page {
  padding-top: 34px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(420px, 1.24fr);
  gap: 22px;
  align-items: start;
}

.article {
  max-width: 900px;
  padding: 46px 0;
}

.article .content-card {
  margin-top: 24px;
}

.article p,
.article li {
  color: #434b58;
}

.quiet {
  color: var(--muted);
}

.footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  margin-right: 12px;
  color: #3d4652;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translateX(-50%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 980px) {
  .hero-tool,
  .two-col,
  .result-grid,
  .seo-columns,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    position: static;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    min-height: 0;
    padding: 12px 10px;
  }

  .hero-tool,
  .tool-page {
    padding-top: 18px;
  }

  .intro-panel,
  .tool-card,
  .result-card,
  .content-card {
    padding: 16px;
  }

  .form-grid,
  .score-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 94px 1fr 30px;
  }
}
