/* WWS Client Portal — brand: BRAND.md (ink navy, signal blue, Poppins/Inter) */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #10243E;
  --blue: #2D7DF6;
  --blue-dark: #1d5fbf;
  --slate: #52677E;
  --mist: #F4F7FB;
  --ink: #0C1A2B;
  --line: #e3e8ef;
  --green: #1E9E6A;
  --amber: #E0992A;
  --red: #D6453C;
  --radius: 12px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--mist);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: "Poppins", "Inter", system-ui, sans-serif; font-weight: 600; }
h1 { font-size: 24px; margin-bottom: 8px; }
h2 { font-size: 17px; margin-bottom: 10px; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #fff; }
.topbar-inner {
  max-width: 860px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 21px; font-family: "Poppins", sans-serif;
}
.brand-logo.big { width: 48px; height: 48px; font-size: 25px; margin-bottom: 16px; }
.brand-name { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 11.5px; color: #9fb2ca; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a, .topnav .linklike {
  color: #c9d6e6; text-decoration: none; font-size: 14px; padding: 8px 12px;
  border-radius: 8px; background: none; border: none; cursor: pointer; font-family: inherit;
}
.topnav a:hover, .topnav .linklike:hover { background: rgba(255,255,255,0.09); color: #fff; }
.topnav a.active { background: rgba(45,125,246,0.35); color: #fff; font-weight: 600; }
.inline { display: inline; }

/* ---------- layout ---------- */
.wrap { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 26px 20px 40px; }
.lede { color: var(--slate); line-height: 1.6; margin-bottom: 20px; max-width: 640px; }
.foot { text-align: center; color: var(--slate); font-size: 12.5px; padding: 18px; }
.foot a { color: var(--slate); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card .num { font-size: 26px; font-weight: 700; font-family: "Poppins", sans-serif; }
.card .lbl { font-size: 12.5px; color: var(--slate); margin-top: 2px; line-height: 1.4; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.hint { color: var(--slate); font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }
.panel .hint:last-child { margin-bottom: 0; }

/* ---------- hosting / what's included ---------- */
.price-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--mist); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 14px;
}
.price { display: flex; align-items: baseline; gap: 6px; flex: none; }
.price .amount { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 30px; color: var(--navy); line-height: 1; }
.price .per { font-size: 13px; color: var(--slate); font-weight: 500; }
.includes { list-style: none; margin: 0; display: grid; gap: 10px; }
.includes li {
  position: relative; padding-left: 28px; font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
.includes li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 99px;
  background: #e3f4ec; color: var(--green); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.includes strong { color: var(--navy); font-weight: 600; }

/* ---------- flash ---------- */
.flash { border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.flash-ok { background: #e3f4ec; color: #14603f; }
.flash-error { background: #fbe7e7; color: #a02f28; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--slate); padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
td small { color: var(--slate); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.green { background: #e3f4ec; color: var(--green); }
.pill.amber { background: #fdf3dd; color: #a06c14; }
.pill.blue { background: #e8f0fc; color: var(--blue-dark); }
.pill.grey { background: #eef1f5; color: var(--slate); }
.pill.red { background: #fbe7e7; color: #a02f28; }

/* ---------- forms ---------- */
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid-form .full { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate); margin-bottom: 5px; }
input, textarea {
  width: 100%; border: 1px solid #d7dee8; border-radius: 8px; padding: 10px 12px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff;
}
input:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 74px; resize: vertical; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: 18px; height: 18px; flex: none; }
.check-row label { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }

.btn-primary {
  background: var(--blue); color: #fff; border: none; border-radius: 9px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost {
  background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--slate);
  padding: 8px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: #b8c4d4; color: var(--ink); }

/* ---------- sign-in ---------- */
.auth-body {
  background: var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-box {
  background: #fff; border-radius: 16px; padding: 32px 34px; width: 100%; max-width: 400px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.auth-box h1 { font-size: 20px; margin-bottom: 4px; }
.auth-box .sub { color: var(--slate); font-size: 13.5px; margin-bottom: 18px; line-height: 1.5; }
.auth-box label { margin: 14px 0 5px; }
.auth-box .btn-primary { width: 100%; margin-top: 20px; }
.auth-box .flash { margin-bottom: 6px; }
.fine { color: var(--slate); font-size: 12.5px; line-height: 1.5; margin-top: 16px; }
.auth-legal { text-align: center; margin-top: 18px; font-size: 12.5px; }
.auth-legal a { color: #b9c6d8; }

/* ---------- request thread (jobs) ---------- */
.msg { max-width: 82%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.msg-client { margin-left: auto; background: #e8f0fc; border-color: #d3e2fb; }
.msg-admin { margin-right: auto; background: var(--mist); }
.msg-who { font-size: 11px; color: var(--slate); margin-bottom: 4px; }
.msg-body { font-size: 14px; line-height: 1.55; color: var(--ink); word-wrap: break-word; }

/* ---------- agreement ---------- */
.agreement-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.agreement-head h1 { margin: 0; }
.agreement { line-height: 1.65; font-size: 14.5px; }
.agreement-title { text-align: center; margin-bottom: 18px; }
.agreement-title small { font-weight: 500; color: var(--slate); font-size: 13px; }
.agreement h3 { font-size: 15px; margin: 18px 0 6px; }
.agreement p { margin-bottom: 10px; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.signatures h4 { font-size: 13.5px; margin-bottom: 6px; }
.signatures p { font-size: 13.5px; color: var(--ink); }

@media (max-width: 560px) {
  .grid-form { grid-template-columns: 1fr; }
  .signatures { grid-template-columns: 1fr; }
  h1 { font-size: 21px; }
  .wrap { padding: 20px 14px 32px; }
  .panel { padding: 16px; }
}

@media print {
  .topbar, .foot, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .panel, .agreement { border: none; padding: 0; }
}
