:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --sec: #CFE8EA;
  --sec-soft: #E2EFEE;
  --sec-deep: #80919F;
  --hair: #DDDBDC;
  --hair-strong: #C1BFC4;
  --packed: #D3D1D4;
  --text1: #23203A;
  --text2: #605E71;
  --text3: #6E6C7E;
  --accent: #E85835;
  --accent-deep: #C24B37;
  --tab-tint: #C24B37;
  --accent-tint: #F4C0AD;
  --accent-soft: #F9DFD4;
  --accent-text: #8C3D3A;
  --on-accent: #FEFDFC;
  --success: #2E7D5B;
  --warning: #A8650A;
  --error: #B3261E;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --surface: #1F1F22;
    --sec: #1F3A3D;
    --sec-soft: #1A2B2D;
    --sec-deep: #8FB3B8;
    --hair: #2C2C30;
    --hair-strong: #3D3D42;
    --packed: #3A3A40;
    --text1: #F2F1F4;
    --text2: #A9A8B3;
    --text3: #8A8994;
    --accent: #F06A48;
    --accent-deep: #C24B37;
    --tab-tint: #F06A48;
    --accent-tint: #5A2E24;
    --accent-soft: #3A211B;
    --accent-text: #F5A28C;
    --success: #6CC79C;
    --warning: #E5A84B;
    --error: #F2867E;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

*,
*::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(--text1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text1);
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text1);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--sec-soft);
  color: var(--text1);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* Main */

.main {
  flex: 1;
  padding-top: 16px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.lead {
  font-size: 18px;
  color: var(--text2);
  max-width: 62ch;
}

/* Hero */

.hero {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
}

.stickers {
  display: inline-flex;
  gap: 4px;
}

.stickers span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.stickers span:nth-child(2) { background: var(--sec-deep); }
.stickers span:nth-child(3) { background: var(--warning); }
.stickers span:nth-child(4) { background: var(--success); }

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stages {
  list-style: none;
  margin: 8px 0 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--sec);
  border-radius: var(--radius-xl);
}

.stages li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2-on-sec, var(--text1));
}

.stage-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--packed);
}

.stages li:nth-child(2) .stage-bar { background: var(--sec-deep); }
.stages li:nth-child(3) .stage-bar { background: var(--accent-tint); }
.stages li:nth-child(4) .stage-bar { background: var(--accent); }

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

/* Buttons & links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

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

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

.btn-primary:hover {
  background: #AE4130;
  box-shadow: 0 4px 12px rgba(194, 75, 55, 0.25);
}

.btn-secondary {
  background: var(--sec);
  color: var(--text1);
}

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

.text-link {
  color: var(--tab-tint);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
}

/* Features */

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  box-shadow: var(--shadow);
  border-color: var(--hair-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--tab-tint);
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  font-size: 15px;
  color: var(--text2);
}

/* Privacy note */

.note {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: var(--sec-soft);
  border-color: transparent;
  box-shadow: none;
}

.note h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.note p {
  font-size: 15px;
  color: var(--text2);
}

/* Inner pages */

.page-card {
  padding: 40px;
}

.page-card h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

/* Form */

.form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text1);
  background: var(--bg);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--sec-deep);
}

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

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

.field-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

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

.form .btn {
  align-self: flex-start;
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--sec-soft);
  color: var(--text1);
  font-size: 15px;
  font-weight: 600;
  border-left: 4px solid var(--success);
}

.notice::before {
  content: "✓ ";
  color: var(--success);
}

[hidden] {
  display: none !important;
}

/* Policy */

.policy p,
.policy li {
  color: var(--text2);
}

.policy p + p,
.policy ul + p {
  margin-top: 16px;
}

.policy > p:first-of-type {
  margin-top: 8px;
}

.policy h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.policy ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy li::marker {
  color: var(--accent);
}

.policy strong {
  color: var(--text1);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 24px 0;
  font-size: 14px;
  color: var(--text3);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-brand {
  font-weight: 700;
  color: var(--text1);
  text-decoration: none;
  border-radius: 4px;
}

.footer-tagline {
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-nav a {
  color: var(--text3);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */

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

  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: 16px 0 8px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 4px;
  }

  .nav a {
    padding: 8px 10px;
    text-align: center;
  }

  .main {
    gap: 24px;
    padding-bottom: 40px;
  }

  .hero,
  .page-card {
    padding: 24px;
  }

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

  .page-card h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .stages {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .actions .btn,
  .form .btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 20px;
  }

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

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

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