:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f3f9fb;
  --soft-green: #f4fbf7;
  --text: #14231f;
  --muted: #65746e;
  --border: #dde8e3;
  --green: #14764c;
  --green-dark: #0b4e32;
  --teal: #168a8a;
  --sky: #dceff7;
  --shadow: 0 22px 58px rgba(19, 55, 47, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0;
}

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

.primary-link {
  color: var(--green-dark);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.64fr);
  align-items: center;
  gap: 34px;
  padding: 10px 0 20px;
}

.hero-copy h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: start;
  padding: 12px 0 44px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(24, 49, 43, 0.07);
}

.input-panel,
.output-panel {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading h2,
.resources h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.panel-heading p,
.resources p,
.resource-list span,
.trust-note {
  color: var(--muted);
  line-height: 1.5;
}

.panel-heading p {
  margin: 8px 0 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.text-label,
.checks label {
  color: #31423c;
  font-size: 13px;
  font-weight: 760;
}

.segments {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.segment-options {
  display: flex;
}

.segments label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-right: 0;
  padding: 12px 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.segments label:first-of-type {
  border-radius: 8px 0 0 8px;
}

.segments label:last-of-type {
  border-right: 1px solid var(--border);
  border-radius: 0 8px 8px 0;
}

.segments label:has(input:checked) {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

.segments input,
.checks input {
  accent-color: var(--green);
}

.segments input {
  inline-size: 0;
  opacity: 0;
  position: absolute;
}

.checks {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.checks label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  cursor: pointer;
}

.text-label {
  display: grid;
  gap: 7px;
}

textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 13px;
  outline: none;
}

textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 118, 76, 0.14);
}

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

button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  padding: 12px 16px;
}

.secondary-button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--green-dark);
}

.trust-note {
  margin: 18px 0 0;
  font-size: 13px;
}

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

.plan-section {
  min-width: 0;
  border: 1px solid #d5e6e0;
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.plan-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.25;
}

.plan-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #31423c;
  font-size: 14px;
  line-height: 1.42;
}

.copy-box {
  min-height: 150px;
  margin-top: 16px;
  background: #fbfdfd;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.resources {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
}

.resources p {
  margin: 14px 0 0;
}

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

.resource-list a {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  font-weight: 780;
}

.resource-list span {
  font-size: 13px;
  font-weight: 500;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 880px) {
  .hero,
  .workspace,
  .resources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  main,
  .site-header,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy h1 {
    font-size: 35px;
  }

  .input-panel,
  .output-panel {
    padding: 18px;
  }

  .segment-options,
  .plan-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .segment-options {
    display: grid;
  }

  .segments label,
  .segments label:first-of-type,
  .segments label:last-of-type {
    border: 1px solid var(--border);
    border-radius: 8px;
  }
}
