:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #68717d;
  --line: #e4e7eb;
  --accent: #25584b;
  --accent-dark: #173e35;
  --soft: #e7f0ed;
  --danger: #a33131;
  --shadow: 0 18px 55px rgba(25, 38, 49, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.topbar {
  width: min(1120px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.4px;
}

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

nav a:hover { color: var(--text); }

.nav-login {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

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

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 80px;
  padding: 70px 0 90px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -.035em;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 72px);
}

h2 { font-size: clamp(30px, 4vw, 46px); }

h3 { margin-bottom: 10px; font-size: 20px; }

.hero-copy > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

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

.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.light {
  color: var(--accent-dark);
  background: white;
}

.full { width: 100%; }

.small-note {
  margin-top: 18px;
  font-size: 13px !important;
}

.preview {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  font-weight: 750;
}

.date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.task {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}

.task i {
  width: 19px;
  height: 19px;
  border: 1.5px solid #aab2bb;
  border-radius: 6px;
}

.task.done {
  color: #8a929a;
  text-decoration: line-through;
}

.task.done i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px white;
}

.progress {
  height: 7px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 10px;
  background: #edf0f2;
}

.progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
}

.preview-footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.section { padding: 100px 0; }

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.card p, .text-block p, .document p {
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.text-block {
  padding-top: 30px;
  font-size: 17px;
}

.cta {
  margin: 50px 0 110px;
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  color: white;
  background: var(--accent);
}

.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; opacity: .8; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 48px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p { margin: 7px 0 0; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.auth-main {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 70px 0;
}

.auth-card {
  width: min(440px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 8px 0 10px;
  font-size: 38px;
}

.auth-intro {
  margin-bottom: 30px;
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 19px;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid #cfd5da;
  border-radius: 10px;
  outline: none;
  background: white;
  font: inherit;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 88, 75, .11);
}

.form-error {
  margin: 0 0 17px;
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--danger);
  background: #faeaea;
  font-size: 13px;
}

.auth-help {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-help a { color: var(--accent); }

.compact-footer { padding-top: 25px; }

.document {
  max-width: 760px;
  min-height: calc(100vh - 170px);
  padding: 80px 0 120px;
}

.document h1 {
  margin: 10px 0 45px;
  font-size: clamp(42px, 6vw, 64px);
}

.document article {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.document article h2 {
  margin-bottom: 10px;
  font-size: 23px;
}

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

@media (max-width: 760px) {
  .topbar { height: 68px; }
  nav a:not(.nav-login) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 55px; }
  .cards, .split { grid-template-columns: 1fr; }
  .split { gap: 20px; }
  .cta { align-items: flex-start; flex-direction: column; gap: 24px; }
  footer, .footer-links { align-items: flex-start; flex-direction: column; }
  .auth-card { padding: 28px 22px; }
}
