:root {
  color-scheme: light;
  --ink: #05302b;
  --ink-2: #0f172a;
  --paper: #f6f7f4;
  --surface: #ffffff;
  --line: #d8dfd8;
  --muted: #58645e;
  --accent: #0f766e;
  --blue: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-nav {
  align-items: center;
  background: rgba(246, 247, 244, 0.9);
  border-bottom: 1px solid rgba(216, 223, 216, 0.9);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  height: 34px;
  width: 34px;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}

nav a,
.footer a,
.nav-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font: inherit;
  text-decoration: none;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 48, 43, 0.9), rgba(5, 48, 43, 0.54)),
    url("./assets/splash.png") right center / auto 115% no-repeat;
  color: #ffffff;
  display: flex;
  min-height: 82vh;
  padding: clamp(56px, 8vw, 108px) clamp(22px, 6vw, 88px);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bdf2d8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.92;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  margin-bottom: 18px;
}

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

.lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  max-width: 620px;
}

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

.primary-action,
.secondary-action {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  text-decoration: none;
}

.primary-action {
  background: #ffffff;
  color: var(--ink);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(22px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feature-card p,
.split-band p,
.legal p,
.support-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.split-band {
  align-items: start;
  background: #e8f0ea;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr 0.9fr;
}

.legal {
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(54px, 8vw, 92px) 22px;
}

.legal h1,
.support-panel h1 {
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
}

.legal h2 {
  border-top: 1px solid var(--line);
  font-size: 24px;
  margin-top: 32px;
  padding-top: 24px;
}

.legal a {
  color: var(--blue);
  font-weight: 800;
}

.support-page {
  min-height: 72vh;
}

.support-panel {
  background:
    linear-gradient(90deg, rgba(5, 48, 43, 0.88), rgba(5, 48, 43, 0.7)),
    url("./assets/icon.png") right 8% center / 420px 420px no-repeat;
  color: #ffffff;
  padding: clamp(72px, 12vw, 140px) clamp(22px, 6vw, 88px);
}

.support-panel p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 650px;
}

.support-panel .primary-action {
  margin-top: 24px;
}

.compact {
  padding-top: 44px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px 20px;
}

.auth-shell,
.app-shell {
  padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 460px;
  padding: 28px;
}

.auth-panel h1,
.app-header h1 {
  color: var(--ink);
  font-size: clamp(40px, 7vw, 72px);
  margin-bottom: 14px;
}

.auth-form,
.record-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  color: var(--ink-2);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

input,
textarea,
select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  font: inherit;
  min-height: 46px;
  padding: 12px 13px;
  width: 100%;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

button {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 12px 16px;
}

button[type="button"] {
  background: #e8f0ea;
  color: var(--ink);
}

.small-copy {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}

.status-line {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 16px 0 0;
  min-height: 22px;
}

.status-line[data-kind="warning"] {
  color: #b45309;
}

.status-line[data-kind="error"] {
  color: #dc2626;
}

.status-line[data-kind="success"] {
  color: #047857;
}

.app-header {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 42px);
}

.app-header h1 {
  color: #ffffff;
}

.app-header p {
  color: rgba(255, 255, 255, 0.76);
}

.app-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin-top: 20px;
}

.record-form,
.ai-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.record-form h2,
.ai-panel h2 {
  font-size: 26px;
  margin-bottom: 4px;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-panel pre {
  background: #f1f5f2;
  border-radius: 8px;
  color: var(--ink-2);
  font-family: inherit;
  line-height: 1.6;
  min-height: 220px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.app-records {
  padding-left: 0;
  padding-right: 0;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.record-card h3 {
  margin-bottom: 6px;
}

.record-card p {
  color: var(--muted);
  line-height: 1.6;
}

.record-type {
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

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

.record-meta span {
  background: #e8f0ea;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
}

@media (max-width: 780px) {
  .site-nav {
    padding-inline: 18px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(5, 48, 43, 0.96), rgba(5, 48, 43, 0.7)),
      url("./assets/splash.png") center bottom / auto 82% no-repeat;
    min-height: 78vh;
  }

  .feature-grid,
  .split-band,
  .app-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .support-panel {
    background:
      linear-gradient(180deg, rgba(5, 48, 43, 0.94), rgba(5, 48, 43, 0.76)),
      url("./assets/icon.png") right -92px bottom -70px / 260px 260px no-repeat;
  }
}
