/* hub.css — Racon · Today landing page */

:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --text: #1C1C1C;
  --text-muted: #6B6B6B;
  --accent: #1F2937;
  --accent-strong: #111827;
  --border: #E4DFD3;
  --error: #B3261E;
  --t2c: #8B3A2F;
  --ah:  #628395;
  --pl:  #4A6877;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hub-header {
  padding: 1rem 1.25rem 0.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

#logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

#logout:hover { background: var(--surface); color: var(--text); }

.greeting {
  margin-top: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.hub-main {
  padding: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.muted { color: var(--text-muted); }

.card p { margin: 0 0 1rem; }

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#phone {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

#phone:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

#gate-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

#gate-submit:hover:not(:disabled) { background: var(--accent-strong); }
#gate-submit:disabled { opacity: 0.6; cursor: progress; }

.msg {
  display: none;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.msg-error {
  display: block;
  background: #FBE9E7;
  color: var(--error);
  border: 1px solid #F5C6C0;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.tile {
  display: block;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.tile:active { transform: scale(0.98); }
.tile:hover  { box-shadow: 0 3px 8px rgba(0,0,0,0.06); }

.tile-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tile-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.tile-t2c { border-left: 4px solid var(--t2c); }
.tile-ah  { border-left: 4px solid var(--ah); }
.tile-pl  { border-left: 4px solid var(--pl); }

.empty {
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .tile-t2c { grid-column: 1 / -1; }
}
