:root {
  --ink: #0f2744;
  --muted: #5b6f88;
  --paper: #f7fafc;
  --card: #ffffff;
  --accent: #1f6feb;
  --accent-dark: #1248a0;
  --teal: #0f766e;
  --line: #d7e0ea;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(15, 39, 68, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #dbeafe 0 14%, transparent 32%),
    radial-gradient(circle at 92% 12%, #ccfbf1 0 12%, transparent 28%),
    linear-gradient(180deg, #f8fbff, #eef4f9 55%, #f7fafc);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
button, .button { touch-action: manipulation; }
.skip-link { position: fixed; left: 10px; top: -80px; z-index: 100; padding: 12px 16px; background: #fff; border-radius: 12px; }
.skip-link:focus { top: 10px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(247, 250, 252, .94);
  border-bottom: 1px solid rgba(15, 39, 68, .1);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f6feb, #0f766e);
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
}
.brand strong { display: block; font-size: 20px; line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.privacy-pill, .offline-pill {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.privacy-pill { background: #e7f8f3; color: #0f766e; }
.offline-pill { background: #e8eefc; color: #1f6feb; }
main { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 56px clamp(8px, 2vw, 24px) 28px;
}
.eyebrow { display: inline-block; color: #4b6482; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(40px, 7vw, 72px); line-height: .94; letter-spacing: -.05em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero > div > p { max-width: 640px; color: #4d617a; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-badges span {
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 39, 68, .08);
  font-weight: 850;
}
.demo-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(160deg, #0f2744, #1f4f8a 55%, #0f766e);
  color: #fff;
  box-shadow: var(--shadow);
}
.demo-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
}
.demo-row b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.workspace { padding: 10px 0 48px; display: grid; gap: 22px; }
.panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(15, 39, 68, .06);
}
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title h2 { margin: 6px 0 0; font-size: clamp(24px, 3.5vw, 36px); letter-spacing: -.03em; }
.section-title p, .muted { color: var(--muted); }
.field-label { display: block; margin-bottom: 8px; font-weight: 750; color: #35506d; }
textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  border: 1px solid #c9d5e3;
  border-radius: 16px;
  background: #fbfdff;
  color: var(--ink);
  resize: vertical;
  line-height: 1.45;
}
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.button-soft { background: #eef3f9; color: var(--ink); }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-error { min-height: 1.2em; color: var(--danger); font-weight: 700; }
.draft-list { display: grid; gap: 14px; }
.draft-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}
.draft-card h3 { margin: 0 0 8px; font-size: 18px; }
.draft-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.draft-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1f4f8a;
  font-size: 12px;
  font-weight: 750;
}
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.draft-field {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4ebf3;
}
.draft-field strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5b6f88; }
.draft-field p, .draft-field li { margin: 0; color: #24384f; line-height: 1.45; font-size: 14px; }
.draft-field ul { margin: 0; padding-left: 18px; }
.family-note, .proposal {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 10px 0 28px;
  padding: 22px;
  border-radius: 24px;
}
.family-note { background: #fff; border: 1px solid var(--line); }
.note-icon { font-size: 34px; }
.proposal {
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #0f2744, #1f4f8a);
  color: #fff;
}
.proposal-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}
.coming-soon {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3cf68;
  color: #3d2b05;
  font-weight: 900;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  padding: 12px 16px;
  border-radius: 14px;
  background: #0f2744;
  color: #fff;
  font-weight: 750;
  opacity: 0;
  transition: .25s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--accent-dark); font-weight: 750; text-decoration: none; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
