/* agency.ads2ai.com shared styles.
   Light theme, burnt orange accent (#D64C00), Oxanium font, 2px corners. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --paper: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #D64C00;
  --border: #d8d8d8;
  --error: #b91c1c;
  --success: #15803d;
  --error-bg: #fef2f2;
  --success-bg: #f0fdf4;
}

html, body {
  font-family: 'Oxanium', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Default container is wide (1440). Pages with naturally narrow content
   (sign-in, OTP code, help FAQ) constrain their forms inside via .narrow.
   The owner page uses the full width via .owner-grid. */
.shell {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 56px 32px;
  flex: 1;
}

/* Centred narrow column used by sign-in / code-entry / no-team / help / join.
   Sits inside .shell so the wider container is still 1440 but the readable
   content stays at a sensible width. */
.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.brand span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.lede {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

p { margin-bottom: 12px; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover { opacity: 0.8; }

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  border-radius: 2px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.field { margin-bottom: 16px; }

.btn {
  display: inline-block;
  font-family: inherit;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.btn.secondary {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

/* OTP code input. Letter-spacing applies to user-typed digits but is reset
   on the placeholder so it reads naturally as "Eg. 123456" rather than
   "E g .   1 2 3 4 5 6". Placeholder is a much lighter grey so the real
   input value (when typed) is what catches the eye. */
.code-input {
  font-family: 'Menlo', 'Monaco', monospace;
  letter-spacing: 0.4em;
  text-align: center;
  font-size: 20px;
}
.code-input::placeholder {
  color: #c5c5c5;
  letter-spacing: normal;
  font-weight: 400;
}

/* Action row under the code input. Text link on the left ("Different email"),
   primary Verify button on the right. */
.code-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.text-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: none;
  padding: 6px 2px;
}
.text-link:hover {
  color: var(--accent);
  opacity: 1;
}

.box {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.box.muted { border-left-color: var(--border); }

.error {
  background: var(--error-bg);
  border-left: 3px solid var(--error);
  padding: 12px 16px;
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
}
.success {
  background: var(--success-bg);
  border-left: 3px solid var(--success);
  padding: 12px 16px;
  color: var(--success);
  font-size: 14px;
  margin-bottom: 16px;
}

.help-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.mono {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 13px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

footer {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--muted); border-bottom-color: var(--border); }
.footer-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 56px 22px;
}
.footer-inner p { margin-bottom: 6px; }
.footer-inner p:last-child { margin-bottom: 0; }

/* OS / install card */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.install-card {
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 18px;
  text-align: center;
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
}
.install-card:hover { border-color: var(--accent); }
.install-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.install-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.install-card.suggested { border-color: var(--accent); border-width: 2px; padding: 17px; }

/* Role badges (Owner / Scout / Team).
   Brand mark stays burnt orange; role identity comes from a badge in the header
   and the accent boxes below. */
.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
  color: #ffffff;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
.role-badge.owner { background: #6B21A8; }
.role-badge.scout { background: #1D4ED8; }
.role-badge.team  { background: #EA580C; }

.box.role-owner { border-left-color: #6B21A8; }
.box.role-scout { border-left-color: #1D4ED8; }
.box.role-team  { border-left-color: #EA580C; }

/* Member table (used on /owner) */
.member-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.member-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--border);
}
.member-table td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.member-table .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 2px;
  color: #ffffff;
  text-transform: uppercase;
}
.member-table .badge.owner { background: #6B21A8; }
.member-table .badge.scout { background: #1D4ED8; }
.member-table .badge.team  { background: #EA580C; }
.member-table .install-state {
  font-size: 12px;
  color: var(--muted);
}
.member-table .install-state.done { color: var(--success); }
.member-table button {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.member-table button:hover { border-color: var(--accent); }

/* Status grid on role pages */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

/* Owner page two-column layout. Members table on the left, add-member on
   the right. Collapses to a single column under 960px so it stays readable
   on tablets. */
.owner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 18px;
}
@media (max-width: 960px) {
  .owner-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.owner-grid > section h2 { margin-top: 0; }

/* Form column inside the owner grid stays at a natural input width even
   when the cell is wider than 360px. */
.add-member-form { max-width: 380px; }
.status-cell {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 2px;
}
.status-cell label {
  font-size: 10px;
  margin-bottom: 4px;
}
.status-cell .value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* "3 places to start" cards on /scout and /team. Auto-fit so the cards
   spread to 3 columns on wide screens and collapse to 1 on narrow. */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.place-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  padding: 14px 18px;
  border-radius: 2px;
}
.place-card.role-owner { border-left-color: #6B21A8; }
.place-card.role-scout { border-left-color: #1D4ED8; }
.place-card.role-team  { border-left-color: #EA580C; }
.place-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.place-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Step list */
ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0;
}
ol.steps li {
  counter-increment: step;
  padding: 12px 0 12px 36px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
ol.steps li:last-child { border-bottom: none; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
