:root {
  --bg: #F4F8F2;
  --bg-elevated: #FFFFFF;
  --surface-band: #DEEBEF;
  --surface-soft: #EAF1EB;
  --hairline: #DADFD9;
  --hairline-band: #C3D0D2;
  --ink: #1E2B22;
  --text-secondary: #5E6861;
  --text-tertiary: #8A938D;
  --accent: #4A7C59;
  --accent-deep: #406A4D;
  --accent-tint: #DCE9DF;
  --on-accent: #F4F8F2;
  --accent-on-tint: #406A4D;
  --chip-selected-bg: #1E2B22;
  --chip-selected-text: #F4F8F2;
  --leaf-1: #86AA9B;
  --leaf-3: #2E4735;
  --glass: rgba(244, 248, 242, 0.72);
  --error: #A6413D;
  --shadow: rgba(0, 0, 0, 0.08);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 48px;

  --radius-card: 20px;
  --radius-button: 14px;
  --radius-field: 12px;
  --radius-chip: 999px;

  --container: 960px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --bg-elevated: #1C1C1F;
    --surface-band: #1E262B;
    --surface-soft: #202422;
    --hairline: #2A2B2E;
    --hairline-band: #2E3A40;
    --ink: #F1F3F0;
    --text-secondary: #A9B0AB;
    --text-tertiary: #6E746F;
    --accent: #6FA47F;
    --accent-deep: #4A7C59;
    --accent-tint: #243A2C;
    --on-accent: #FFFFFF;
    --accent-on-tint: #9CCBA9;
    --chip-selected-bg: #F1F3F0;
    --chip-selected-text: #141416;
    --leaf-1: #4F7A66;
    --leaf-3: #2E4735;
    --glass: rgba(20, 20, 22, 0.72);
    --error: #E07A74;
    --shadow: rgba(0, 0, 0, 0.32);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

a {
  color: var(--accent-deep);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 0 50% 0 50%;
  background: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.nav-link {
  padding: 7px var(--s3);
  border-radius: var(--radius-chip);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--surface-soft);
}

.nav-link.is-active {
  background: var(--chip-selected-bg);
  color: var(--chip-selected-text);
  font-weight: 600;
}

/* Main */

.site-main {
  flex: 1 0 auto;
  padding: var(--s8) 0 64px;
}

.eyebrow,
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero {
  max-width: 680px;
  padding: var(--s6) 0 var(--s4);
}

.hero-title {
  margin-top: var(--s3);
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-text {
  margin-top: var(--s5);
  font-size: 19px;
  color: var(--text-secondary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s7);
}

.section {
  margin-top: var(--s8);
}

.section-label {
  margin-bottom: var(--s4);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--s6);
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--hairline);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.btn-block {
  width: 100%;
}

/* Cards */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px var(--shadow);
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

.feature {
  padding: var(--s6);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-on-tint);
}

.feature-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-top: var(--s4);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.feature p {
  margin-top: var(--s2);
  font-size: 15px;
  color: var(--text-secondary);
}

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s6);
  background: var(--surface-band);
  border: 1px solid var(--hairline-band);
  border-radius: var(--radius-card);
}

.band-title {
  font-size: 19px;
  font-weight: 600;
}

.band p {
  margin-top: var(--s1);
  font-size: 15px;
  color: var(--text-secondary);
}

.band .btn {
  flex-shrink: 0;
}

/* Inner pages */

.page-head {
  margin-bottom: var(--s6);
}

.page-title {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-lead {
  margin-top: var(--s3);
  font-size: 18px;
  color: var(--text-secondary);
}

/* Form */

.form-card {
  padding: var(--s7);
}

.field {
  margin-bottom: var(--s5);
}

.field label {
  display: block;
  margin-bottom: var(--s2);
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px var(--s4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-field);
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--error);
}

.field-error::before {
  content: "! ";
  font-weight: 700;
}

.form-success {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-field);
  background: var(--accent-tint);
  color: var(--accent-on-tint);
  font-size: 15px;
  font-weight: 600;
}

/* Policy */

.policy {
  padding: var(--s7);
}

.policy h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.policy h3 {
  margin-top: var(--s7);
  font-size: 18px;
  font-weight: 600;
}

.policy p {
  margin-top: var(--s4);
}

.policy-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.policy p.policy-meta {
  margin-top: var(--s1);
}

.policy-list {
  list-style: none;
  padding: 0;
  margin-top: var(--s3);
}

.policy-list li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--hairline);
}

.policy-list li:last-child {
  border-bottom: 0;
}

.policy strong {
  font-weight: 600;
}

.policy-list + p {
  margin-top: var(--s5);
}

.policy,
.policy li,
.policy p {
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--hairline);
  background: var(--surface-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-size: 15px;
  font-weight: 600;
}

.footer-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
  }

  .band {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 var(--s4);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    padding-top: var(--s3);
    padding-bottom: var(--s3);
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
    padding: 7px var(--s2);
  }

  .site-main {
    padding: var(--s7) 0 var(--s8);
  }

  .hero {
    padding-top: 0;
  }

  .hero-text {
    font-size: 17px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .feature,
  .band {
    padding: var(--s5);
  }

  .form-card,
  .policy {
    padding: var(--s5);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
