:root{
  --bg:#f4f6f8;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --radius:16px;

  --accent:#2563eb;
  --accentHover:#1d4ed8;
  --focus:0 0 0 4px rgba(37,99,235,.18);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* HEADER / BRAND */
.site-header{
  max-width:980px;
  margin:20px auto 0 auto;
  padding:0 18px;
  display:flex;
  align-items:center;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}

.brand:visited{ color:var(--text); }

.brand-icon{
  height:38px;
  width:auto;
  display:block;
}

.brand-name{
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.2px;
  line-height:1;
}

@media (max-width: 860px){
  .brand-icon{ height:32px; }
  .brand-name{ font-size:20px; }
}

/* LAYOUT */
main{
  max-width:980px;
  margin:18px auto 0 auto;
  padding:0 18px 32px 18px;
}

footer{
  max-width:980px;
  margin:10px auto 24px auto;
  padding:0 18px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

/* TYPE */
h1{font-size:28px;margin:0 0 8px 0}
h2{font-size:18px;margin:0 0 12px 0}

p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

/* CARDS */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  margin:18px 0;
}

/* TEXTAREAS */
textarea{
  width:100%;
  min-height:150px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  font-size:15px;
  line-height:1.45;
  outline:none;
  resize:vertical;
  background:#fff;
}

textarea:focus{
  border-color:rgba(37,99,235,.55);
  box-shadow:var(--focus);
}

/* BUTTONS */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

button{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:transform .08s ease, box-shadow .08s ease, border-color .08s ease, background .08s ease;
}

button:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(2,6,23,.10);
  border-color:rgba(148,163,184,.9);
}

button:active{ transform:none; box-shadow:none; }

button:focus{
  outline:none;
  box-shadow:var(--focus);
}

button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

button.primary{
  border-color:transparent;
  background:var(--accent);
  color:#fff;
  border-radius:12px;
  padding:11px 16px;
}

button.primary:hover{
  background:var(--accentHover);
}

/* TOOL GRID (ACTIONS + HELP) */
.toolgrid{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:16px;
  align-items:start;
}

@media (max-width: 860px){
  .toolgrid{ grid-template-columns:1fr; }
}

/* HOME TOOL CARDS */
.tools-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

@media (max-width: 860px){
  .tools-grid{ grid-template-columns:1fr; }
}

.toolcard{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  transition:transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

.toolcard:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(2,6,23,.10);
  border-color:rgba(148,163,184,.9);
}

.toolcard h3{
  margin:0 0 6px 0;
  font-size:16px;
  font-weight:800;
}

.toolcard p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.pill{
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background:#fff;
}

.pill.live{
  border-color:rgba(37,99,235,.35);
  color:#1d4ed8;
}

.pill.soon{
  border-color:rgba(100,116,139,.35);
}
