/* semarch.dev — same visual language as the viewer: light, precise, quiet; diff colours as accents. */
:root {
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --paper: #fafbfc;
  --sheet: #fff;
  --paper-2: #f3f5f7;
  --ink: #202936;
  --ink-2: #4f5d6c;
  --muted: #8995a3;
  --rule: #e5e9ee;
  --grid: #e8ecf1;
  --added: #218765;
  --removed: #c86565;
  --modified: #b17a27;
  --impacted: #507da7;
  --shadow: 0 8px 28px rgba(27, 44, 65, 0.09);
  --shadow-lg: 0 24px 70px rgba(27, 44, 65, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

p {
  margin: 0;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  font-size: 15px;
  line-height: 1;
}

.brand-mark.small {
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 5px;
}

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav nav a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
}

.nav nav a:not(.button):hover {
  color: var(--ink);
}

/* ---- buttons ---------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button.small {
  padding: 7px 13px;
  font-size: 13px;
}

.button.ghost {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* ---- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}

/* Drafting grid behind the hero; the mask fades only the grid, never the content. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0 -40px;
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 45%, transparent 85%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--sheet);
  font-size: 13px;
  color: var(--ink-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--added);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--added) 18%, transparent);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 750;
}

.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 34em;
}

.lede strong {
  color: var(--ink);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.fine {
  font-size: 13px;
  color: var(--muted);
}

.window {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 0.7s ease-out both;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dbe2;
}

.window-bar code {
  margin-left: 10px;
  font: 12px var(--mono);
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.window figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}

/* ---- strip ---------------------------------------------------------------- */
.strip {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.strip div {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-left: 2px solid var(--rule);
}

.strip b {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.strip span {
  font-size: 14px;
  color: var(--muted);
}

/* ---- sections ---------------------------------------------------------------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 0;
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 720;
}

.section-lede {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink-2);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li,
.grid article,
.plan {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(27, 44, 65, 0.04);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper-2);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps h3,
.grid h3,
.plan h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.steps p,
.grid p {
  color: var(--ink-2);
  font-size: 15px;
}

.comment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.comment-copy p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 17px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
}

.checks li::before {
  content: '✓';
  display: inline-block;
  width: 22px;
  color: var(--added);
  font-weight: 700;
}

.gh-comment {
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  color: #1f2328;
  box-shadow: var(--shadow);
}

.gh-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f6f8fa;
  border-bottom: 1px solid #d1d9e0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}

.bot {
  border: 1px solid #d1d9e0;
  border-radius: 99px;
  padding: 0 7px;
  font-size: 12px;
  color: #59636e;
}

.gh-body {
  padding: 14px 16px 16px;
}

.gh-body h2 {
  font-size: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d1d9e0;
  margin: 0 0 12px;
}

.gh-body h3 {
  font-size: 16px;
  margin: 14px 0;
}

.gh-body p {
  margin: 0 0 12px;
}

.gh-body table {
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 13px;
}

.gh-body th,
.gh-body td {
  border: 1px solid #d1d9e0;
  padding: 5px 11px;
}

.gh-body th {
  background: #f6f8fa;
}

.gh-body td.r,
.gh-body th.r {
  text-align: right;
}

.gh-body code {
  font: 12px var(--mono);
  background: #eff1f3;
  padding: 1px 5px;
  border-radius: 5px;
}

.gh-body a {
  color: #0969da;
  text-decoration: none;
}

.gh-body details {
  margin: 0 0 12px;
}

.gh-body ul {
  padding-left: 22px;
  margin: 8px 0;
}

.gh-body sub {
  color: #59636e;
  font-size: 12px;
}

.grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plans {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 20px;
}

.plan .price {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.plan .price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .button {
  margin-top: 24px;
}

.plan.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.faq details {
  max-width: 760px;
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.faq details:first-of-type {
  margin-top: 24px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin-top: 10px;
  color: var(--ink-2);
}

.final {
  max-width: var(--max);
  margin: 100px auto 0;
  padding: 56px 24px;
  text-align: center;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.final h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  border-top: 1px solid var(--rule);
}

.footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer nav {
  display: flex;
  gap: 18px;
}

.footer nav a {
  color: var(--ink-2);
  text-decoration: none;
}

/* ---- legal pages ---------------------------------------------------------------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.doc h1 {
  font-size: 38px;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 21px;
  margin: 34px 0 10px;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc p + p {
  margin-top: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .hero,
  .comment-section {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 32px;
  }
  .steps,
  .grid {
    grid-template-columns: 1fr;
  }
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .window iframe {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .nav nav a:not(.button) {
    display: none;
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
