/* ConduitMap marketing/auth site styles */
:root {
  --bg: #F8F6F2;
  --bg-alt: #FFFFFF;
  --bg-dark: #1A1A1A;
  --text: #1A1A1A;
  --text-on-dark: #F0EDE8;
  --muted: #888;
  --border: #E4E0D8;
  --accent: #E5501A;
  --accent-hover: #C94010;
  --max: 1100px;
  --radius: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; display: block; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 14px 0;
  border-bottom: 1px solid #000;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header nav a {
  color: var(--text-on-dark);
  margin-left: 28px;
  font-size: 14px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }
.site-header .logo img { height: 90px; display: block; }

/* ─── Wrap + sections ────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.light { background: var(--bg); }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--bg-dark); color: var(--text-on-dark); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p.lead { font-size: 19px; color: #444; margin-bottom: 24px; max-width: 560px; }
section.dark p.lead { color: #ccc; }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
section.dark .btn.ghost { color: var(--text-on-dark); border-color: var(--text-on-dark); }
.btn.ghost:hover { background: var(--text); color: #fff; }
section.dark .btn.ghost:hover { background: var(--text-on-dark); color: var(--bg-dark); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Hero ───────────────────────────────────────────── */
.hero { padding: 96px 0 72px; }
.hero h1 { margin-bottom: 20px; max-width: 780px; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shot {
  margin-top: 56px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-dark);
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  color: #555;
  font-family: monospace;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
video.hero-shot { outline: none; }

/* ─── Feature grid ───────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
  background: var(--bg-alt);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 { color: var(--accent); margin-bottom: 12px; }
.feature p { color: #555; font-size: 15px; }

/* ─── "Stop installing twice" section — notebook page feel ─── */
section.values {
  position: relative;
  background:
    linear-gradient(180deg, #F4EFE3 0%, #ECE4D2 50%, #F4EFE3 100%);
  color: var(--text);
  overflow: hidden;
}
/* Blueprint-style grid laid over the gradient, very faint */
section.values::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent 0 31px, rgba(26,26,26,0.045) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(26,26,26,0.045) 31px 32px);
  pointer-events: none;
}
section.values .wrap { position: relative; z-index: 1; }
section.values h2 { color: var(--text); }
section.values p.lead { color: #555; }
section.values .feature {
  background: #FFFEFB;
  border: 1px solid #D8D0BE;
  box-shadow: 0 2px 4px rgba(60,40,10,0.06), 0 8px 24px rgba(60,40,10,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
section.values .feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(60,40,10,0.1), 0 14px 32px rgba(229,80,26,0.18);
}

/* ─── Steps ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}

/* ─── Pricing ────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier {
  background: var(--bg-alt);
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--accent); border-width: 2px; position: relative; }
.tier.featured::after {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px;
}
.tier h3 { font-size: 22px; }
.tier .price { font-size: 36px; font-weight: 700; margin: 12px 0 4px; }
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; margin: 20px 0; flex: 1; }
.tier li { padding: 6px 0; color: #555; font-size: 14px; }
.tier li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ─── Footer ─────────────────────────────────────────── */
footer.site-footer {
  background: var(--bg-dark);
  color: #999;
  padding: 48px 0 32px;
  font-size: 13px;
  text-align: center;
}
footer.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer.site-footer .footer-logo img { height: 46px; display: block; }
footer.site-footer .disclaimer {
  font-size: 14px;
  color: #aaa;
  max-width: 640px;
  line-height: 1.55;
}
footer.site-footer .disclaimer strong { color: #fff; }
footer.site-footer .copyright {
  font-size: 12px;
  color: #666;
}

/* ─── Forms (auth) ───────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 16px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.auth-card .logo { text-align: center; margin-bottom: 24px; }
.auth-card .logo img { height: 32px; display: inline-block; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; background: #fff;
}
.field input:focus { outline: none; border-color: var(--accent); }
.error {
  color: #c0392b; font-size: 13px; margin: 12px 0;
  padding: 10px; background: #fceae8; border-radius: 4px;
  display: none;
}
.error.show { display: block; }
.notice {
  color: #1a8a52; font-size: 13px; margin: 12px 0;
  padding: 10px; background: #e7f4ec; border-radius: 4px;
  display: none;
}
.notice.show { display: block; }
.divider {
  text-align: center; margin: 20px 0; color: var(--muted);
  font-size: 12px; position: relative;
}
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 18px; font-size: 14px; }

/* ─── Dashboard (the workshop) ───────────────────────── */
/* Different mood from the marketing site — dark, contrasty, focused. */
body.dash-body {
  background: #0B0B0B;
  background-image:
    radial-gradient(circle at 18% -5%, rgba(229,80,26,0.10), transparent 45%),
    radial-gradient(circle at 92% 110%, rgba(229,80,26,0.06), transparent 50%);
  background-attachment: fixed;
  color: var(--text-on-dark);
  min-height: 100vh;
}

.dash-header {
  background: #000; color: var(--text-on-dark);
  padding: 10px 0;
  border-bottom: 1px solid #1a1a1a;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.dash-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.dash-header .right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.dash-header .right .email { color: #777; font-size: 12px; }
.dash-header a.link { color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; transition: color 0.15s; }
.dash-header a.link:hover { color: var(--accent); }

.dash-main { padding: 48px 0 80px; }
.dash-main .toolbar {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 18px;
  border-bottom: 1px solid #1f1f1f;
}
.dash-main h2 {
  font-size: 32px; margin: 0;
  font-weight: 700; letter-spacing: -0.02em;
  color: #fff;
}
.dash-main h2::before {
  content: ''; display: inline-block;
  width: 4px; height: 24px; background: var(--accent);
  margin-right: 14px; vertical-align: -3px; border-radius: 1px;
}

/* Project grid — bigger cards, fewer per row, gallery feel */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.proj-card {
  background: #161616;
  border: 1px solid #232323;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.proj-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,80,26,0.4),
              0 0 24px rgba(229,80,26,0.15);
}

.proj-thumb {
  background: #000;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: #333;
  font-size: 11px;
  position: relative;
  overflow: hidden;
}
.proj-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.04); }

/* Gradient strip under the thumbnail to bleed it into the card body */
.proj-thumb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(22,22,22,0.85));
  pointer-events: none;
}

.proj-body { padding: 16px 18px 18px; }
.proj-body .name {
  font-weight: 700; font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-body .date {
  color: #777; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Actions hidden until hover for a cleaner default look */
.proj-body .actions {
  margin-top: 14px;
  display: flex; gap: 6px;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.proj-card:hover .proj-body .actions { opacity: 1; }
.proj-body .actions button {
  background: transparent;
  border: 1px solid #2e2e2e;
  color: #aaa;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.15s;
}
.proj-body .actions button:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(229,80,26,0.08);
}
.proj-body .actions button.danger:hover {
  border-color: #ff5544; color: #ff7766;
  background: rgba(255,68,68,0.08);
}

/* Empty state — big and visual rather than understated */
.empty {
  padding: 80px 24px; text-align: center;
  background: #111;
  border: 1px dashed #2a2a2a;
  border-radius: 8px;
  color: #888;
}
.empty .btn { margin-top: 20px; }

/* Tier badge — pill with subtle glow on Pro */
.tier-badge {
  display: inline-block; padding: 6px 20px;
  background: #2a2a2a; color: #fff; font-size: 20px;
  border-radius: 6px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.tier-badge.pro {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(229,80,26,0.6);
}
.tier-badge.team { background: #1a8a52; }

/* Ghost button override on dark dashboard — light border + text so it's
   visible against the black background (the default .btn.ghost is dark-on-light). */
body.dash-body .btn.ghost {
  color: #ddd;
  border-color: #444;
}
body.dash-body .btn.ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Dashboard banners adapt to dark mode */
body.dash-body #upgrade-banner,
body.dash-body #trial-banner {
  background: rgba(229,80,26,0.08) !important;
  border-color: var(--accent) !important;
  color: #f0ede8 !important;
}
body.dash-body #upgrade-banner strong,
body.dash-body #trial-banner strong { color: #fff; }
body.dash-body #trial-expired-block {
  background: rgba(192,57,43,0.12) !important;
  border-color: #c0392b !important;
  color: #f0ede8 !important;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 720px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
  .grid-3, .steps, .tiers, .grid-2 { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 16px; font-size: 13px; }
  .dash-main .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
}
