:root {
  --ink: #101416;
  --ink-soft: #263035;
  --paper: #f7f7f3;
  --white: #ffffff;
  --cyan: #1fb7ba;
  --cyan-dark: #087f84;
  --amber: #e6a247;
  --green: #3f8f68;
  --line: #d8ddda;
  --muted: #647077;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--cyan-dark); text-underline-offset: 3px; }
a:hover { color: #065f63; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  background: rgba(16, 20, 22, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 760;
  font-size: 19px;
  white-space: nowrap;
}
.brand-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 9px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 183, 186, 0.16);
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  color: #dce5e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.site-nav a:hover { color: var(--white); }

.hero {
  min-height: 70svh;
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(7, 10, 11, 0.94) 0%, rgba(7, 10, 11, 0.78) 42%, rgba(7, 10, 11, 0.18) 76%),
    url('/assets/record-desk-hero.webp');
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan) 0 42%, var(--amber) 42% 70%, var(--green) 70% 100%);
}
.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 86px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 14px;
  color: #83e0df;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: #e0e8e8;
  font-size: 19px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 730;
  cursor: pointer;
}
.button-primary { background: var(--cyan); color: #061314; }
.button-primary:hover { background: #5ad0d1; color: #061314; }
.button-secondary { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(7,10,11,.42); }
.button-secondary:hover { border-color: var(--white); color: var(--white); }

.band { padding: 76px 0; }
.band-white { background: var(--white); }
.band-dark { background: var(--ink); color: var(--white); }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: 36px; line-height: 1.18; letter-spacing: 0; }
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.band-dark .section-heading p { color: #b8c4c5; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 6px;
  padding: 24px;
  min-height: 265px;
  display: flex;
  flex-direction: column;
}
.guide-card:nth-child(2) { border-top-color: var(--amber); }
.guide-card:nth-child(3) { border-top-color: var(--green); }
.card-kicker { color: var(--muted); font-size: 13px; font-weight: 760; text-transform: uppercase; }
.guide-card h3 { margin: 9px 0 8px; font-size: 23px; line-height: 1.25; }
.guide-card p { margin: 0 0 18px; color: var(--muted); }
.guide-card a { margin-top: auto; font-weight: 740; }

.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #3a4448; }
.workflow-step { padding: 24px; border-right: 1px solid #3a4448; }
.workflow-step:last-child { border-right: 0; }
.step-number { color: var(--amber); font-weight: 800; font-size: 14px; }
.workflow-step h3 { margin: 8px 0 6px; font-size: 19px; }
.workflow-step p { margin: 0; color: #b8c4c5; font-size: 14px; }

.tool-callout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 46px;
  padding: 38px;
  background: #edf7f5;
  border-left: 5px solid var(--green);
}
.tool-callout h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; }
.tool-callout p { margin: 0; color: var(--ink-soft); }
.tool-callout .button { justify-self: end; background: var(--ink); color: var(--white); }

.article-shell { width: min(calc(100% - 40px), 860px); margin: 0 auto; }
.article-hero { background: var(--ink); color: var(--white); padding: 74px 0 58px; }
.article-hero .article-shell { position: relative; }
.article-hero h1 { margin: 0; max-width: 780px; font-size: 47px; line-height: 1.08; letter-spacing: 0; }
.article-hero p { max-width: 720px; margin: 18px 0 0; color: #c9d3d4; font-size: 18px; }
.article-meta { margin-top: 18px; color: #84d9d8; font-size: 13px; font-weight: 700; }
.article-body { padding: 60px 0 90px; background: var(--white); }
.article-body h2 { margin: 42px 0 12px; font-size: 30px; line-height: 1.2; }
.article-body h3 { margin: 30px 0 10px; font-size: 22px; }
.article-body p, .article-body li { font-size: 17px; }
.article-body li + li { margin-top: 8px; }
.article-body blockquote, .note {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--amber);
  background: #fbf4e9;
}
.source-box {
  margin-top: 48px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.source-box h2 { margin: 0 0 10px; font-size: 20px; }

.tool-shell { width: min(calc(100% - 40px), 1000px); margin: 0 auto; padding: 54px 0 90px; }
.tool-shell h1 { margin: 0; font-size: 43px; line-height: 1.1; }
.tool-intro { max-width: 760px; color: var(--muted); font-size: 17px; }
.planner {
  margin-top: 30px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}
.planner-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; align-items: end; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 730; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aeb8b8;
  border-radius: 4px;
}
.planner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.planner-actions .button { border-color: var(--ink); background: var(--ink); color: var(--white); }
.planner-actions .button-quiet { background: var(--white); color: var(--ink); }
.table-wrap { overflow-x: auto; margin-top: 26px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eef1ef; font-size: 13px; }
.empty-row td { color: var(--muted); text-align: center; padding: 30px; }
.delete-button { border: 0; background: transparent; color: #a12d2d; text-decoration: underline; cursor: pointer; }

.simple-page { width: min(calc(100% - 40px), 800px); margin: 0 auto; padding: 64px 0 90px; }
.simple-page h1 { margin: 0 0 18px; font-size: 44px; line-height: 1.1; }
.simple-page h2 { margin-top: 38px; font-size: 27px; }
.simple-page p, .simple-page li { font-size: 17px; }

.site-footer { background: #0d1113; color: #bac4c5; padding: 36px 0; }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #d9e2e2; }

@media (max-width: 820px) {
  .site-header { height: auto; min-height: 62px; }
  .header-inner { padding: 12px 0; align-items: flex-start; }
  .site-nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: 13px; }
  .hero { min-height: 76svh; background-position: 66% center; }
  .hero-inner { padding: 62px 0 74px; }
  .hero h1 { font-size: 42px; max-width: 520px; }
  .hero-copy { font-size: 17px; max-width: 500px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(-n+2) { border-bottom: 1px solid #3a4448; }
  .tool-callout { grid-template-columns: 1fr; gap: 22px; }
  .tool-callout .button { justify-self: start; }
  .planner-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .header-inner { width: min(calc(100% - 28px), var(--max)); display: block; }
  .site-nav { margin-top: 8px; justify-content: flex-start; }
  .hero-inner, .container, .article-shell, .tool-shell, .simple-page, .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 72svh; background-position: 64% center; }
  .hero h1 { font-size: 37px; }
  .hero-copy { font-size: 16px; }
  .band { padding: 58px 0; }
  .section-heading h2 { font-size: 30px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { border-right: 0; border-bottom: 1px solid #3a4448; }
  .workflow-step:last-child { border-bottom: 0; }
  .tool-callout { padding: 26px 22px; }
  .article-hero h1 { font-size: 36px; }
  .article-hero { padding: 56px 0 44px; }
  .article-body { padding: 42px 0 70px; }
  .planner { padding: 20px; }
  .planner-form { grid-template-columns: 1fr; }
  .tool-shell h1, .simple-page h1 { font-size: 36px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
