/* Precision Permitting — suite-aligned shell (Manrope / DM Sans, paper canvas, copper).
   Sister stack with Precision Routing / Relay. Brand mark uses suite puck blue. */

:root {
  --canvas: #eef1f4;
  --ink: #12161c;
  --muted: #5b6570;
  --line: #d5dbe3;
  --paper: #f7f9fb;
  --copper: #c45c26;
  --copper-ink: #8a3d14;
  --puck: #2563eb;
  --puck-ink: #1d4ed8;
  --panel: #ffffff;
  --ok: #166534;
  --warn: #9a3412;
  --topbar: #0f1720;
  --topbar-fg: #f4f7fa;
  --shadow: 0 1px 0 rgba(15, 23, 32, 0.04);
  --radius: 10px;
  --max: 68rem;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 45% at 12% -10%, rgba(196, 92, 38, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(37, 99, 235, 0.07), transparent 50%),
    var(--canvas);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper-ink);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.site-header {
  background: var(--topbar);
  color: var(--topbar-fg);
  box-shadow: var(--shadow);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.4rem;
  background: var(--puck);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__mark svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: rgba(244, 247, 250, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.nav .btn {
  margin-left: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--copper);
  color: #fff;
}

.btn--primary:hover {
  background: #b04f1f;
  color: #fff;
}

.btn--dark {
  background: #15202b;
  color: #fff;
}

.btn--dark:hover {
  background: #0f1720;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(18, 22, 28, 0.28);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(244, 247, 250, 0.35);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
  color: #fff;
}

.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.hero {
  padding: clamp(3.25rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.hero--compact {
  padding: clamp(2rem, 5vw, 3rem) 0 1.25rem;
}

.hero__panel {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  animation: rise 700ms ease both;
}

.eyebrow {
  margin: 0;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h1,
.section h2 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.section {
  padding: 2.5rem 0 3.5rem;
}

.section--split {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  animation: rise 700ms ease both;
  animation-delay: 80ms;
}

.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 750;
  margin: 0.35rem 0 0.55rem;
}

.section p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.section p:last-child {
  margin-bottom: 0;
}

.suite-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--puck);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  max-width: 40rem;
}

.suite-note strong {
  color: var(--ink);
  font-weight: 650;
}

.support-panel {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 700ms ease both;
  animation-delay: 120ms;
}

.support-panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.support-panel p {
  margin: 0;
  color: var(--muted);
}

.support-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.support-meta code {
  font-size: 0.85em;
  background: rgba(18, 22, 28, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 0.98rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.domain-chip {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

/* Account / fleet forms */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.account-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  .account-shell--split {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.account-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: fit-content;
}

.account-side a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 560;
}

.account-side a[aria-current="page"],
.account-side a:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label,
.form-label-block {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea,
.form-label-block select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #c5ccd5;
  background: #fff;
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.form-label-block select:focus {
  outline: 2px solid color-mix(in srgb, var(--puck) 45%, transparent);
  border-color: var(--puck);
}

.form .hint,
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.25rem;
}

.flash {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.flash--ok {
  background: #ecfdf3;
  color: var(--ok);
  border: 1px solid #bbf7d0;
}

.flash--err {
  background: #fff7ed;
  color: var(--warn);
  border: 1px solid #fed7aa;
}

.flash--info {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.meta-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-list strong {
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table.fleet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.fleet th,
table.fleet td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.fleet th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hidden {
  display: none !important;
}

.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.panel code {
  font-size: 0.85em;
  background: rgba(18, 22, 28, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
