/* Dronify — marketing page, fleet console, and login.
   Theme is driven by html[data-theme] (set by an inline <head> script and
   df-settings.js), matching the rest of davefrassoni.com. */

:root {
  --ink: #16181c;
  --muted: #5c626b;
  --paper: #f4f2ec;
  --panel: #fbfaf6;
  --line: rgba(20, 22, 26, 0.14);
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --sky: #dce9fb;
  --ok: #1f9d55;
  --warn: #c9820a;
  --content: 1080px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
}

html[data-theme="dark"] {
  --ink: #eef0f4;
  --muted: #9aa2ad;
  --paper: #0e1013;
  --panel: #171a1f;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #4c9dff;
  --accent-ink: #08121f;
  --sky: #16233a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.wrap {
  width: min(100%, calc(var(--content) + var(--gutter) * 2));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- top bar ---------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

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

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

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .topnav .nav-link {
    display: none;
  }
}

/* ---- buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

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

/* ---- hero --------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hero-copy {
  display: grid;
  gap: 1.6rem;
  max-width: 46ch;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  overflow: hidden;
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 460px;
  }
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* ---- sections ---------------------------------------------------- */

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 52ch;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

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

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p,
.card ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  padding-left: 1.1rem;
}

.card .tag {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---- pricing --------------------------------------------------- */

.plans {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan .plan-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.plan .price {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan .price small {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}

.note-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
  padding: 1.2rem 1.4rem;
  margin-top: 1.4rem;
  font-size: 0.95rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---- footer --------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}

.site-foot a {
  color: var(--ink);
  text-decoration: none;
}

/* ---- auth / login card -------------------------------------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: min(100%, 420px);
  text-align: center;
  display: grid;
  gap: 1rem;
}

.auth-card .brand {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.auth-card .muted {
  margin: 0;
  color: var(--muted);
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.google-button svg {
  width: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-link {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- fleet console ----------------------------------------- */

.fleet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.8rem 0 1.2rem;
}

.fleet-head h1 {
  margin: 0;
  font-size: 1.6rem;
}

.fleet-section {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.fleet-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

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

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

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

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--sky);
  color: var(--ink);
}

.pill.active {
  background: color-mix(in srgb, var(--ok) 22%, transparent);
  color: var(--ok);
}

.pill.grounded,
.pill.retired {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
}

.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.model-card h3 {
  margin: 0 0 0.3rem;
}

.model-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.dl-row .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.guide {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.empty {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}
