/* EasyPlotPlan — site styles
   Palette: paper #FAFBFC · ink #0F1D2B · grid #C6D4E3 · flag orange #F04E23
            muted #5C6B7A · field navy #0D1520 · stake green #2E7D52 */
:root {
  --paper: #FAFBFC;
  --ink: #0F1D2B;
  --grid: #C6D4E3;
  --accent: #F04E23;
  --muted: #5C6B7A;
  --navy: #0D1520;
  --ok: #2E7D52;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  background-attachment: fixed;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.04em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; }
.inline { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 10px 18px;
  font: 600 15px var(--body); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 3px;
  cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--ink); }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-danger { border-color: #9c2410; color: #9c2410; box-shadow: 3px 3px 0 #9c2410; }
.btn-small { padding: 5px 10px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.btn-big { padding: 14px 26px; font-size: 17px; }

/* ---------- Flash ---------- */
.flash { margin: 14px clamp(16px, 4vw, 48px) 0; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; font-weight: 500; }
.flash-error { border-color: #9c2410; color: #9c2410; }
.flash-success { border-color: var(--ok); color: var(--ok); }

.site-main { max-width: 1160px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px); }

/* ---------- Signature: dimension-line headings ---------- */
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.dim-head, .hero-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: 0.98; letter-spacing: 0.01em; margin: 0 0 18px;
}
.dim-head { font-size: clamp(30px, 4.5vw, 44px); }
.dim-line {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; max-width: 380px;
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.06em; color: var(--ink); text-transform: none; white-space: nowrap;
}
.dim-line i { flex: 1; height: 0; border-top: 1.5px solid var(--ink); position: relative; }
.dim-line i::before, .dim-line i::after {
  content: ""; position: absolute; top: -4.5px; border: 4px solid transparent;
}
.dim-line i:first-child::before { left: -1px; border-right: 7px solid var(--ink); }
.dim-line i:last-child::after { right: -1px; border-left: 7px solid var(--ink); }
.dim-line b { font-weight: 500; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(32px, 6vw, 72px); }
.hero-title { font-size: clamp(38px, 6vw, 68px); }
.hero-dim { max-width: 300px; }
.hero-sub { font-size: 18px; max-width: 54ch; color: var(--ink); }
.hero-cta { display: flex; gap: 14px; margin: 22px 0 18px; flex-wrap: wrap; }
.hero-fine { color: var(--muted); font-size: 11px; }
.hero-draw { margin: 0; }
.hero-draw svg { width: 100%; height: auto; border: 2px solid var(--ink); background: #fff; border-radius: 4px; box-shadow: 6px 6px 0 var(--grid); }
.hero-draw figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }
.svg-label { font: 600 14px var(--body); fill: var(--ink); letter-spacing: 0.08em; }
.svg-dim { font: 12px var(--mono); fill: var(--ink); }
.trace { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out forwards; }
.trace-house { opacity: 0; animation: appear 0.5s ease-out 2s forwards; }
.trace-dims { opacity: 0; animation: appear 0.5s ease-out 2.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; stroke-dashoffset: 0; }
  .trace-house, .trace-dims { animation: none; opacity: 1; }
  .btn { transition: none; }
}

/* ---------- Steps & features ---------- */
.steps, .features { padding: clamp(28px, 5vw, 56px) 0; border-top: 2px solid var(--ink); }
.step-list { counter-reset: step; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; max-width: 74ch; }
.step-list li { position: relative; padding-left: 58px; }
.step-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--display); font-size: 22px; font-weight: 700;
  background: #fff; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--grid);
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.feature { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 18px; box-shadow: 4px 4px 0 var(--grid); }
.feature h3 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.feature p { margin: 0; color: var(--ink); font-size: 15px; }

.cta-band { border-top: 2px solid var(--ink); padding: clamp(32px, 6vw, 64px) 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); text-transform: uppercase; margin: 0; }

/* ---------- Auth / legal ---------- */
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: clamp(22px, 4vw, 34px); box-shadow: 6px 6px 0 var(--grid); }
.auth-card h2 { font-family: var(--display); text-transform: uppercase; font-size: 20px; margin: 28px 0 8px; }
.stack { display: grid; gap: 14px; margin-top: 16px; }
.stack label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  font: 15px var(--body); padding: 9px 11px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); width: 100%;
}
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.alt { margin-top: 18px; font-size: 14px; }
.legal { max-width: 72ch; background: #fff; border: 2px solid var(--ink); padding: clamp(20px, 4vw, 36px); border-radius: 4px; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.empty-state { background: #fff; border: 2px dashed var(--ink); border-radius: 4px; padding: 44px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.plan-card { background: #fff; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 4px 4px 0 var(--grid); }
.plan-thumb { display: block; aspect-ratio: 16/10; background: var(--navy); position: relative; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-blank { position: absolute; inset: 0; display: grid; place-items: center; color: #8fa3b8; font-size: 12px; }
.plan-meta { padding: 14px 16px 16px; }
.plan-title { margin: 0; font-size: 17px; font-weight: 600; }
.plan-addr { margin: 2px 0 4px; color: var(--muted); font-size: 14px; }
.plan-updated { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.limit-note { margin-top: 22px; padding: 12px 16px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 24px; max-width: 760px; }
.price-card { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 24px; box-shadow: 4px 4px 0 var(--grid); }
.price-card h2 { font-family: var(--display); text-transform: uppercase; margin: 0; }
.price { font-size: 30px; margin: 8px 0 14px; }
.price-card ul { margin: 0 0 18px; padding-left: 20px; }
.price-pro { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--ink); font-size: 14px; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: middle; }
.badge { font: 11px var(--mono); background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 2px; }

/* ---------- Title-block footer ---------- */
.title-block {
  margin-top: clamp(32px, 6vw, 72px);
  border-top: 2px solid var(--ink);
  background: #fff;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 10px solid var(--ink);
}
.tb-cell { padding: 18px clamp(14px, 2vw, 26px); border-right: 2px solid var(--ink); display: grid; gap: 6px; align-content: start; font-size: 14px; }
.tb-cell:last-of-type { border-right: 0; }
.tb-cell a { text-decoration: none; }
.tb-brand { font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.tb-sub { font-family: var(--body); font-size: 12px; color: var(--muted); text-transform: none; }
.tb-label { font: 11px var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.tb-note { grid-column: 1 / -1; border-top: 2px solid var(--ink); padding: 10px clamp(14px, 2vw, 26px); font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-right: 0; border-bottom: 1px solid var(--grid); }
}
