@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../kcs-building-analysis/assets/fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../kcs-building-analysis/assets/fonts/BeVietnamPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #112d25;
  --muted: #496158;
  --green: #126448;
  --deep: #062820;
  --line: #d8e5df;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fafcfb;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
p, li { line-height: 1.7; }
a:focus-visible { outline: 3px solid #169968; outline-offset: 4px; }
[id] { scroll-margin-top: 6rem; }

.shell {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 4;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  background: white;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fafcfb;
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: .8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 400;
}

.header-inner nav {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: .9rem;
}
.header-inner nav a, .footer-inner a { text-decoration: none; }
.header-inner nav a:hover, .footer-inner a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.header-contact, .phone { color: var(--green); border-color: var(--line); }
.header-contact:hover, .phone:hover { background: #e9f4ee; }
.primary { background: #9df0bd; color: #08291e; }
.primary:hover { background: #bdf8d2; }
.outline { color: #edf9f1; border-color: #749385; }
.outline:hover { background: #163f33; }

.hero {
  color: #f4fff8;
  background: radial-gradient(ellipse at 76% 5%, #114c3d, transparent 58%), var(--deep);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.eyebrow {
  margin-bottom: 1rem;
  color: #a1e9bc;
  font-size: .84rem;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
h1 em { color: #a1e9bc; font-style: normal; }
.hero-description {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: #cee3d8;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.hero .actions { margin-top: 1.5rem; }
.cover {
  width: 100%;
  border: 1px solid #4f796c;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem #00191280;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
h3 {
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.features { padding-block: clamp(3rem, 7vw, 6rem); }
.format-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block: 1.4rem .5rem;
}
.excel { --format-ink: #146047; --format-bg: #e3f3e9; }
.word { --format-ink: #214d9f; --format-bg: #eaf0ff; }
.pdf { --format-ink: #9c343a; --format-bg: #fbecee; }
.mind-map { --format-ink: #67409d; --format-bg: #f2ebfb; }
.format-nav a, .format {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .35rem .8rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: var(--format-bg);
  color: var(--format-ink);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.format-nav a { min-height: 2.5rem; }
.format-nav a:hover { border-color: currentColor; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.feature:nth-of-type(even) .screenshot { grid-area: 1 / 1; }
.feature h3 { margin-top: .7rem; }
.feature ul {
  display: grid;
  gap: .55rem;
  padding-inline-start: 1.25rem;
  margin: 1rem 0 0;
  color: var(--muted);
}
.feature li::marker { color: var(--format-ink); }
.screenshot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: 0 .7rem 2rem #122d2510;
}

.pdf-tools {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #e9f3ee;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.tool-grid article {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff;
}
.tool-grid h3 { font-size: 1.25rem; }
.tool-grid p, .contact p { margin-top: .65rem; color: var(--muted); }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.contact .primary { background: var(--green); color: white; }
.contact .primary:hover { background: #0a4732; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 4rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 54rem) {
  .hero-inner, .feature, .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .screenshot { grid-area: auto; }
  .hero-inner { gap: 1.75rem; }
}

@media (max-width: 35rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .6rem; }
  .header-inner nav { order: 1; width: 100%; gap: .75rem; font-size: .8rem; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  [id] { scroll-margin-top: 7.5rem; }
}
