/* ===========================================================================
   Monrq — public site
   Same design tokens as the application: warm off-white canvas, cream
   surfaces, restrained teal accent, 8px spacing rhythm.
   =========================================================================== */

:root {
  --canvas: #f6f2eb;
  --canvas-deep: #efe9df;
  --surface: #fffdf9;
  --surface-muted: #f4efe6;
  --border: #e7dfd2;
  --border-strong: #d6cbb8;

  --ink: #123833;
  --ink-muted: #5a6b67;
  --ink-subtle: #8b9793;
  --ink-inverted: #fbf9f5;

  --accent: #12736b;
  --accent-hover: #0e5c56;
  --accent-soft: #dcede9;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --e1: 0 1px 2px 0 rgba(18, 56, 51, 0.05);
  --e2: 0 1px 3px 0 rgba(18, 56, 51, 0.08), 0 1px 2px -1px rgba(18, 56, 51, 0.06);
  --e3: 0 4px 12px -2px rgba(18, 56, 51, 0.08), 0 2px 4px -2px rgba(18, 56, 51, 0.06);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Brand --------------------------------------------------------------- */
.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(246, 242, 235, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink-inverted);
  box-shadow: var(--e1);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--e1);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-muted);
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-ghost {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
}

.btn-ghost:hover {
  color: var(--ink);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero p {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 28px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  color: var(--ink-subtle);
  font-size: 13px;
}

/* --- Features ------------------------------------------------------------ */
.features {
  padding: 64px 0 96px;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--e2);
}

.card h2 {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.card p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Call to action ------------------------------------------------------ */
.cta {
  padding: 0 0 96px;
}

.cta-inner {
  background: var(--canvas-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
}

.cta-inner h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.014em;
}

.cta-inner p {
  margin: 8px auto 0;
  max-width: 480px;
  color: var(--ink-muted);
  font-size: 15px;
}

.cta-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-subtle);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* --- Legal pages --------------------------------------------------------- */
.legal {
  padding: 64px 0 96px;
  max-width: 720px;
}

.legal h1 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.018em;
  margin: 0;
}

.legal .updated {
  color: var(--ink-subtle);
  font-size: 13px;
  margin-top: 8px;
}

.legal h2 {
  font-size: 18px;
  line-height: 28px;
  margin: 40px 0 0;
}

.legal p {
  color: var(--ink-muted);
  margin: 8px 0 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 40px;
  }
}
