:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f2;
  color: #16231d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f7f2;
}

.app {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.screen {
  width: 100%;
  margin: auto 0;
}

.landing-app {
  align-items: flex-start;
}

.landing-screen {
  padding: 34px 0 40px;
}

.hidden {
  display: none;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #27634a;
}

.app-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #16231d;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.language-control label {
  font-size: 18px;
  font-weight: 700;
}

.language-control select {
  min-height: 44px;
  min-width: 116px;
  border: 2px solid #63756c;
  border-radius: 8px;
  padding: 8px 34px 8px 12px;
  background: #ffffff;
  color: #16231d;
  font: inherit;
  font-size: 18px;
}

h1 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  font-size: 22px;
  line-height: 1.45;
}

.lead {
  margin: 0 0 28px;
  max-width: 620px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 60px;
  border: 0;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  max-width: 420px;
  padding: 18px 22px;
  background: #1f6f50;
  color: #ffffff;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 16px 22px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  background: #1f6f50;
  color: #ffffff;
}

.secondary-link {
  background: #dfe9e2;
  color: #16231d;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.landing-note {
  margin: 20px 0;
  padding: 18px;
  border-left: 6px solid #27634a;
  background: #ffffff;
}

.landing-note p {
  margin: 8px 0 0;
}

.secondary-button {
  width: 100%;
  max-width: 420px;
  padding: 16px 20px;
  background: #dfe9e2;
  color: #16231d;
}

.primary-button:focus,
.secondary-button:focus,
.text-button:focus,
textarea:focus {
  outline: 4px solid #f5c542;
  outline-offset: 3px;
}

.text-button {
  margin-bottom: 24px;
  padding: 12px 18px;
  background: #dfe9e2;
  color: #16231d;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
}

.privacy-guardrail {
  margin: 0 0 24px;
  padding: 18px;
  border-left: 6px solid #b8332e;
  background: #fff8ee;
}

.privacy-guardrail h2 {
  margin-bottom: 10px;
}

.privacy-guardrail p {
  margin: 0;
  font-size: 20px;
}

.demo-messages {
  margin: 0 0 24px;
}

.demo-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

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

.demo-button {
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid #63756c;
  border-radius: 8px;
  background: #ffffff;
  color: #16231d;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.demo-button:focus {
  outline: 4px solid #f5c542;
  outline-offset: 3px;
}

textarea {
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border: 3px solid #63756c;
  border-radius: 8px;
  font: inherit;
  font-size: 22px;
  line-height: 1.4;
  resize: vertical;
  background: #ffffff;
  color: #16231d;
}

.privacy-note,
.confidence-note {
  font-size: 18px;
  color: #4d5b54;
}

.risk-pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f5c542;
  color: #16231d;
  font-weight: 700;
}

.risk-high {
  background: #b8332e;
  color: #ffffff;
}

.risk-medium {
  background: #f5c542;
  color: #16231d;
}

.risk-low {
  background: #2f7d54;
  color: #ffffff;
}

.risk-unsure {
  background: #63756c;
  color: #ffffff;
}

.result-block {
  margin: 18px 0;
  padding: 18px;
  border-left: 6px solid #2f7d54;
  background: #ffffff;
}

.result-block p {
  margin: 0;
}

.risk-signs {
  margin: 14px 0 0;
  padding-left: 26px;
  font-size: 20px;
  line-height: 1.4;
}

.risk-signs:empty {
  display: none;
}

.risk-signs li + li {
  margin-top: 8px;
}

.result-block.warning {
  border-left-color: #b8332e;
}

.support-note {
  padding: 18px;
  background: #e6efe9;
  border-radius: 8px;
}

.copy-result-panel {
  margin: 24px 0;
}

.copy-status {
  margin: 10px 0 0;
  font-size: 18px;
  color: #27634a;
}

.copy-helper {
  position: fixed;
  left: -9999px;
  top: 0;
}

.qa-app {
  align-items: flex-start;
}

.qa-summary {
  margin: 24px 0;
  font-size: 22px;
  font-weight: 700;
}

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

.qa-item {
  padding: 18px;
  border-left: 6px solid #63756c;
  background: #ffffff;
}

.qa-item p {
  margin: 8px 0 0;
  font-size: 18px;
}

.qa-pass {
  border-left-color: #2f7d54;
}

.qa-fail {
  border-left-color: #b8332e;
}

.founder-review {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 3px solid #dfe9e2;
}

.review-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.review-item {
  padding: 18px;
  border-left: 6px solid #27634a;
  background: #ffffff;
}

.review-item p {
  margin: 8px 0 0;
  font-size: 18px;
}

@media (max-width: 520px) {
  .app {
    padding: 20px 14px;
  }

  .app-header {
    gap: 10px;
    padding-bottom: 24px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 26px;
  }

  .language-control {
    gap: 6px;
  }

  .language-control label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .language-control select {
    min-width: 104px;
    font-size: 17px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  p,
  textarea,
  .field-label,
  .primary-button,
  .secondary-button,
  .text-button {
    font-size: 21px;
  }

  .lead {
    margin-bottom: 22px;
  }

  .primary-button,
  .secondary-button {
    max-width: none;
    min-height: 64px;
  }

  .demo-button-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-actions {
    display: grid;
  }

  .demo-button {
    min-height: 56px;
    font-size: 19px;
    text-align: left;
  }

  textarea {
    min-height: 180px;
  }

  .result-block {
    margin: 14px 0;
    padding: 16px;
    border-left-width: 5px;
  }

  .privacy-guardrail {
    padding: 16px;
    border-left-width: 5px;
  }

  .support-note {
    padding: 16px;
  }

  .copy-result-panel {
    margin: 20px 0;
  }
}
