/* Dyve Quotes — shared shell styles (landing + admin + 404).
   The quote pages themselves are self-contained and do NOT use this file. */

:root {
  --navy: #151C2A;
  --navy-2: #1A2030;
  --brass: #C8A96A;
  --brass-bright: #D4AA55;
  --brass-dark: #8A6C28;
  --sail: #FBF9F3;
  --canvas: #EDE7DA;
  --fog: #6A7080;
  --slate: #4A5570;
  --line: #E2DBCB;
  --ink: #1f2733;
  --white: #FFFFFF;

  --ok: #3F7D5A;       /* accepted — muted forest, on-palette */
  --warn: #8A6C28;     /* sent/viewed — brass dark */
  --quiet: #6A7080;    /* draft/closed — fog */
  --stop: #8C4A3F;     /* declined — muted clay, not a loud red */

  --radius: 14px;
  --shadow: 0 8px 30px rgba(21, 28, 42, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brass-dark); }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---- MASTHEAD ---- */
.masthead { background: var(--navy); color: var(--sail); padding: 26px 0; }
.masthead .inner {
  max-width: 980px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--sail); text-decoration: none; }
.logo span { color: var(--brass-bright); }
.logo small { font-weight: 500; font-size: 15px; color: var(--brass-bright); letter-spacing: 0; }
.mast-tag { font-size: 13px; color: #cfd3dc; font-weight: 500; letter-spacing: .02em; }
.mast-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.mast-actions a { color: #cfd3dc; text-decoration: none; }
.mast-actions a:hover { color: var(--sail); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--sail); }
.btn-primary:hover { background: #0f1521; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }

/* ---- LANDING HERO ---- */
.hero { flex: 1; display: flex; align-items: center; padding: 72px 0; }
.hero-card {
  background: var(--sail); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 44px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; text-align: center;
}
.hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: 16px;
}
.hero h1 { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 16px; }
.hero p { font-size: 17px; color: var(--slate); margin: 0 auto 14px; max-width: 460px; }
.hero .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin-top: 22px; font-size: 13px; color: var(--fog); }

/* ---- ADMIN ---- */
.admin-main { flex: 1; padding: 32px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 700; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.page-head .sub { font-size: 14px; color: var(--fog); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat .n { font-size: 26px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); margin-top: 4px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type="search"], .toolbar select {
  font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
}
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.toolbar input[type="search"]:focus, .toolbar select:focus { outline: none; border-color: var(--brass); }

.quote-list { display: grid; gap: 12px; }
.qcard {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: grid;
  grid-template-columns: 1fr auto; gap: 6px 18px; align-items: start;
}
.qcard .qmain { min-width: 0; }
.qcard .qtitle { font-size: 16px; font-weight: 700; color: var(--navy); }
.qcard .qclient { font-size: 13.5px; color: var(--slate); margin-top: 2px; }
.qcard .qsummary { font-size: 13px; color: var(--fog); margin-top: 6px; }
.qcard .qmeta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--fog); }
.qcard .qmeta b { color: var(--slate); font-weight: 600; }
.qcard .qside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qcard .qtotal { font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qcard .qnote { font-weight: 500; color: var(--fog); font-size: 12px; }
.qcard .qactions { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .qcard { grid-template-columns: 1fr; }
  .qcard .qside { align-items: flex-start; }
}

/* status badges */
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap; border: 1px solid transparent;
}
.badge.draft    { color: var(--quiet); background: rgba(106,112,128,.12); }
.badge.sent     { color: var(--warn);  background: rgba(200,169,106,.18); }
.badge.viewed   { color: var(--warn);  background: rgba(212,170,85,.22); }
.badge.accepted { color: var(--ok);    background: rgba(63,125,90,.14); }
.badge.declined { color: var(--stop);  background: rgba(140,74,63,.12); }
.badge.closed   { color: var(--quiet); background: rgba(106,112,128,.10); }

.empty { text-align: center; padding: 60px 20px; color: var(--fog); }
.empty .big { font-size: 18px; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: rgba(106,112,128,.1); padding: 1px 6px; border-radius: 5px; color: var(--slate); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: var(--sail); font-size: 13.5px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- FOOTER ---- */
.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: 12.5px; color: var(--fog); }
.foot .inner { max-width: 980px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.foot b { color: var(--slate); font-weight: 600; }
.foot a { color: var(--brass-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---- 404 ---- */
.center-msg { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.center-msg h1 { font-size: 30px; color: var(--navy); margin: 0 0 10px; }
.center-msg p { color: var(--slate); margin: 0 0 22px; }
