/* ==========================================================================
   DropSite — app surfaces (marketing, auth, dashboard, leads, billing, admin)

   Direction: "spec sheet".
   The audience is contractors, landscapers and shop owners in west Kentucky.
   Their world is measured drawings, job tickets and safety colour — so the
   page is built like a drawing set: warm paper, a faint grid, steel-blue rules,
   hairline measurement marks, and amber used only where something needs doing.
   The signature is the grid: the same surface you drag things onto in the
   editor, showing up behind the marketing page.
   ========================================================================== */

:root {
  /* paper and ink */
  --paper:      #f6f5f1;
  --paper-2:    #fffefb;
  --ink:        #10161c;
  --ink-2:      #384552;
  --muted:      #6d7a86;

  /* steel blue: rules, links, structure */
  --blue:       #1f4e79;
  --blue-2:     #2f6ea8;
  --rule:       #d3dbe3;
  --grid:       rgba(31, 78, 121, .07);

  /* amber: actions only, never decoration */
  --amber:      #f2a900;
  --amber-ink:  #3d2a00;

  --good:       #1f7a5c;
  --bad:        #a4302a;

  --radius:     10px;
  --shadow:     0 1px 0 var(--rule), 0 12px 28px -18px rgba(16, 22, 28, .5);
  --font:       "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:       ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  /* the signature: a 24px drafting grid, barely there */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-2); text-underline-offset: 2px; }
h1, h2, h3 { letter-spacing: -0.025em; margin: 0 0 .4em; line-height: 1.08; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { line-height: 1.65; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* eyebrow: a drawing label, with a measurement tick */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--blue); opacity: .5; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 16px; padding: 13px 22px;
  background: rgba(255, 254, 251, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em;
         text-decoration: none; color: var(--ink); }
.brand i {
  width: 27px; height: 27px; border-radius: 7px; background: var(--ink); color: var(--amber);
  display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px;
}
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2);
             font-size: 14px; font-weight: 600; }
.top nav a:hover { background: #eceff2; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--ink); color: var(--paper-2); font: 650 14px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn.amber { background: var(--amber); color: var(--amber-ink); }
.btn.ghost { background: var(--paper-2); border-color: var(--rule); color: var(--ink); }
.btn.ghost:hover { border-color: var(--blue-2); filter: none; }
.btn.danger { background: var(--paper-2); border-color: #e3c4c1; color: var(--bad); }
.btn.block  { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- surfaces ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 15px; }
.field span, .field > span {
  display: block; font: 700 10px/1 var(--mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.input {
  width: 100%; padding: 12px 13px; border: 1px solid var(--rule); border-radius: 9px;
  font: 400 15px/1.3 var(--font); background: var(--paper-2); color: var(--ink);
}
.input:focus { border-color: var(--blue-2); outline: none; box-shadow: 0 0 0 3px rgba(47, 110, 168, .15); }
.errors, .notice {
  border-radius: 9px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px;
  border: 1px solid; line-height: 1.55;
}
.errors { background: #fdf3f2; border-color: #e8cbc8; color: #7f2721; }
.notice { background: #f1f7f4; border-color: #c5ddd2; color: #164c39; }

/* ---------- auth ---------- */
.auth { max-width: 430px; margin: 9vh auto; padding: 0 22px; }
.auth h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- marketing ---------- */
.hero { padding: 90px 0 40px; position: relative; }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 560px; }
.hero .cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* the drag demo: a miniature of the product, drawn in CSS */
.demo {
  margin: 44px 0 10px; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow);
}
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px;
            border-bottom: 1px solid var(--rule); background: #fbfaf7; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.demo-bar b { margin-left: 8px; font: 600 12px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.demo-body { position: relative; height: 260px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; }
.demo-el { position: absolute; border-radius: 8px; }
.demo-el.sel { outline: 1.5px solid var(--blue-2); }
.demo-el.sel::after {
  content: ""; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px;
  background: var(--amber); border: 1px solid var(--ink); border-radius: 1px;
}
.demo-guide { position: absolute; background: var(--amber); }

.strip { background: var(--ink); color: var(--paper); padding: 62px 0; margin-top: 60px; }
.strip h2 { color: var(--paper-2); font-size: 1.9rem; }
.strip p { color: #a9b6c2; max-width: 580px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.tile { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.tile .n { font: 700 11px/1 var(--mono); color: var(--blue); letter-spacing: .14em; }
.tile h3 { margin: 12px 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-top: 24px; }
.plan { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
        padding: 22px; display: flex; flex-direction: column; position: relative; }
.plan.is-current, .plan.featured { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 78, 121, .10); }
.plan .price { font-size: 2.1rem; font-weight: 820; letter-spacing: -.035em; }
.plan .price small { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 14px 0 20px; padding: 0; font-size: 14px; color: var(--ink-2); }
.plan li { padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.plan li:last-child { border-bottom: 0; }
.plan form, .plan .btn { margin-top: auto; }
.plan .tag { position: absolute; top: -10px; right: 16px; background: var(--amber); color: var(--amber-ink);
             font: 700 10px/1 var(--mono); letter-spacing: .12em; padding: 5px 9px; border-radius: 5px; }

/* ---------- app pages ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin: 38px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.page-head form { margin-left: auto; display: flex; gap: 8px; }

.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.site-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
             padding: 18px; display: flex; flex-direction: column; }
.site-card h3 { margin: 0 0 3px; }
.site-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 15px; word-break: break-all; }
.site-card .meta a { color: var(--blue-2); }
.site-card .row { display: flex; gap: 8px; margin-top: auto; }
.empty { background: var(--paper-2); border: 1px dashed var(--rule); border-radius: var(--radius);
         padding: 46px; text-align: center; color: var(--muted); }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; background: var(--paper-2);
             border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--rule);
                               font-size: 14px; vertical-align: top; }
table.data th { font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
                color: var(--muted); background: #fbfaf7; }
table.data tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 12px/1.5 var(--font);
          background: #eaf0f6; color: var(--blue); }
.status.won  { background: #e9f5ef; color: var(--good); }
.status.lost { background: #fbeeed; color: var(--bad); }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.stat { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
        padding: 17px 19px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.stat .k { font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 1.95rem; font-weight: 820; letter-spacing: -.035em; line-height: 1.05; }
.stat .n { font-size: 12px; color: var(--muted); }
.stat.big { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 78, 121, .09); }
.stat.big .v { color: var(--blue); }
.stat.big::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); }

.foot { padding: 46px 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--rule); margin-top: 60px; }

@media (max-width: 680px) {
  .page-head form { margin-left: 0; width: 100%; }
  .hero { padding: 56px 0 30px; }
  .demo-body { height: 200px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
