/* cadnita.com -- one stylesheet, system fonts only, no external files.
   Palette and type follow the CADnita Flow app (dark CAD workspace,
   monospace UI, orange accent, drafting grid). */
:root {
  --bg: #1b1e22;
  --bg-deep: #14161a;
  --panel: #1f2226;
  --panel-2: #23262c;
  --line: #3a3e46;
  --line-soft: #2a2d33;
  --fg: #c7cbd1;
  --fg-bright: #e6e8eb;
  --muted: #9aa0a8;
  --dim: #6b717b;
  --accent: #ff8a3d;
  --blue: #5c8ac9;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--sans);
}

/* The app's drawing canvas: a fine grid with a major line every 5 cells. */
.grid {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(rgba(58, 62, 70, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 62, 70, .35) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Top bar, like the app's ribbon. */
header.top { background: var(--panel); border-bottom: 1px solid var(--line); }
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 56px;
}
.brand {
  color: var(--fg-bright); text-decoration: none;
  font: 700 19px/1 var(--mono); letter-spacing: -.3px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand b { font-weight: 700; }
.brand b span { color: var(--accent); }
.brand .module {
  font-style: normal; font-weight: 500; color: var(--fg);
  border-left: 1px solid var(--line); padding-left: 6px; margin-left: -4px;
}
.accent { color: var(--accent); }
.brand svg { flex: none; }
nav { display: flex; gap: 4px; }
nav a {
  color: var(--muted); text-decoration: none; font: 13px/1 var(--mono);
  padding: 8px 10px; border-radius: 4px;
}
nav a:hover { color: var(--fg-bright); background: var(--panel-2); }
nav a { white-space: nowrap; }
nav a.nav-cta {
  color: var(--accent); border: 1px solid var(--accent); font-weight: 700;
  margin-left: 8px; padding: 8px 14px;
}
nav a.nav-cta:hover { background: var(--accent); color: #1b1e22; }

main { padding: 56px 0 72px; }

h1, h2, h3 { color: var(--fg-bright); font-family: var(--mono); font-weight: 600; letter-spacing: -.4px; }
h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 44px 0 10px; }
h3 { font-size: 16px; margin: 24px 0 4px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 640px; }
a { color: var(--blue); }
a:hover { color: #7fa6dc; }
strong { color: var(--fg-bright); }
code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--line-soft); padding: 1px 5px; border-radius: 3px; }
.updated { color: var(--dim); font: 13px var(--mono); }

/* Status-bar style chips (GRID / SNAP / ORTHO in the app). */
.chip {
  display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .6px;
  text-transform: uppercase; padding: 6px 9px; border-radius: 3px;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel);
}
.chip.on { color: var(--blue); border-color: #2c3a4f; background: #1d2530; }
.chip.accent { color: var(--accent); border-color: #5a3a22; background: #2a2019; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }

/* Landing hero. */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: 46px; }
.hero h1 span { color: var(--accent); }
.drawing {
  background: rgba(20, 22, 26, .75); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.drawing svg { display: block; width: 100%; height: auto; }
.drawing .caption {
  display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--dim);
  border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 6px;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #1b1e22; border: 0; cursor: pointer;
  font: 700 14px/1 var(--mono); text-decoration: none;
  padding: 13px 20px; border-radius: 4px;
}
.button:hover { background: #ff9d5c; color: #1b1e22; }
.button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--muted); color: var(--fg-bright); }
.button[disabled], .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.hint { color: var(--dim); font-size: 14px; margin-top: 10px; }
.hint.error { color: #e5534b; }
.hint.ok { color: var(--blue); }

/* Panels, like the app's side palette. */
.promise {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 4px;
  padding: 22px 26px; margin: 36px 0;
}
.promise h2 { margin-top: 0; }
.promise ul { margin: 10px 0 0; padding-left: 20px; }
.promise li { margin: 4px 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; }
.feature h3 { margin: 0 0 6px; font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .6px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
th { color: var(--muted); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; background: var(--panel); }
.table-scroll { overflow-x: auto; }

/* Footer, like the app's status bar. */
footer { background: var(--panel); border-top: 1px solid var(--line); color: var(--dim); font: 12px var(--mono); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
footer a { color: var(--muted); margin-right: 16px; text-decoration: none; }
footer a:hover { color: var(--fg-bright); }
footer p { margin: 0; }

/* ---------- Sign-in page (auth.cadnita.com/signin) ---------- */
.signin { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.signin .art {
  position: relative; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 40px;
}
.signin .art .drawing { max-width: 560px; width: 100%; margin: 24px auto; }
.signin .art .pitch { max-width: 520px; }
.signin .art .pitch h2 { font-size: 26px; margin: 0 0 8px; }
.signin .art .pitch p { color: var(--muted); margin: 0; }
.signin .panel {
  background: var(--panel); display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.card { width: 100%; max-width: 380px; }
.card h1 { font-size: 28px; margin: 0 0 6px; }
.card .sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font: 600 12px var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--bg-deep); color: var(--fg-bright);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 13px;
  font: 15px var(--mono); outline: none;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(92, 138, 201, .2); }
.card .button { width: 100%; padding: 14px; font-size: 15px; }
.card .row { display: flex; justify-content: space-between; font-size: 13px; margin: -4px 0 20px; color: var(--dim); }
.notice {
  display: flex; gap: 12px; margin-top: 26px; padding: 14px 16px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 4px;
  font-size: 13.5px; color: var(--muted);
}
.notice svg { flex: none; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 2px; }
.card .legal { margin-top: 26px; font-size: 12.5px; color: var(--dim); }
.card .legal a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 34px; }
  .features { grid-template-columns: 1fr; }
  .signin { grid-template-columns: 1fr; }
  .signin .art { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 16px; }
  .signin .art .pitch, .signin .art .drawing.hide-small { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .wrap { padding: 0 16px; }
  nav a { padding: 8px 6px; }
  nav a.opt { display: none; }
}
