/* Shared look & feel for the market app UIs — mirrors www/index.html (the marketing site) */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-bg: #f5f5f7;
  --grey-line: #d9d9dc;
  --grey-text: #6e6e73;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--black);
  background: var(--grey-bg);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 2px;
}

/* ---------- Brand ---------- */

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
}

.brand img {
  height: 24px;
  width: 24px;
}

/* ---------- Layout helpers ---------- */

.page {
  min-height: 100svh;
  width: 100%;
  padding: 48px 24px;
}

.page-center {
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.page-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 20px;
  padding: 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: #2c2c2e;
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-small {
  margin-left: 5px;
  padding: 6px 16px;
  font-size: 0.82rem;
}

/* ---------- Forms ---------- */

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-text);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--black);
}

.field {
  margin-bottom: 18px;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
}

table.form-table td {
  padding: 8px 0;
  vertical-align: middle;
}

table.form-table td:first-child {
  width: 34%;
  color: var(--grey-text);
  font-size: 0.85rem;
}

table.list-table {
  text-align: left;
}

table.list-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-text);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--grey-line);
}

table.list-table td {
  padding: 10px;
  border-bottom: 1px solid var(--grey-line);
  font-size: 0.9rem;
}

table.list-table tr:last-child td {
  border-bottom: none;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---------- Navigation ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-email {
  font-size: 0.85rem;
  color: var(--grey-text);
}

.nav-logo {
  height: 22px;
  width: 22px;
  display: block;
}

/* ---------- Language switch (mirrors the marketing site's) ---------- */

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--black);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

/* ---------- Misc ---------- */

.hero-logo {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 20px;
}

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

.form-error {
  color: #d33;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.form-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-top: 18px;
}
