/* Lofn — public site styles.
   Mirrors the in-app palette (lib/core/theme/app_colors.dart): warm cream
   background, terracotta primary, sage accent. Mobile-first, no JS, no
   build step. Plus Jakarta Sans served via Google Fonts to match the app. */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-alt: #f4ede2;
  --border: #ead9c4;
  --divider: #e6dccc;
  --text-primary: #2b1d14;
  --text-secondary: #5b463a;
  --text-tertiary: #8c7868;
  --primary: #b97d5a;
  --primary-container: #ffe6d5;
  --sage: #6a8467;
  --error: #b3261e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --maxw: 720px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover {
  border-bottom-color: var(--primary);
}

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

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 40px;
}

header.site .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1f1610;
  display: grid;
  place-items: center;
}

header.site .logo img {
  width: 100%;
  height: 100%;
  display: block;
}

header.site .wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.2px;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 14px;
}

header.site nav a {
  color: var(--text-secondary);
  border-bottom: none;
}

header.site nav a:hover {
  color: var(--text-primary);
}

/* Typography -------------------------------------------------------- */

h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 40px 0 12px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text-primary);
}

small {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Hero (landing only) ---------------------------------------------- */

.hero {
  padding: 24px 0 16px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  border-bottom: none;
}

.hero .cta:hover {
  background: #a36b4a;
  border-bottom: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.feature h3 {
  margin-top: 0;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 15px;
}

/* Legal / long-form pages ------------------------------------------ */

.legal h1 {
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.callout {
  background: var(--primary-container);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-primary);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

/* Footer ----------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--divider);
  margin-top: 64px;
  padding: 24px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

footer.site nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

footer.site nav a {
  color: var(--text-tertiary);
  border-bottom: none;
}

footer.site nav a:hover {
  color: var(--text-secondary);
}

/* Small screens ---------------------------------------------------- */

@media (max-width: 540px) {
  .page {
    padding: 20px 18px 60px;
  }
  header.site nav {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 19px;
  }
}
