/* LOAM marketing site — placeholder styling.
 *
 * This is the public apex site (loamfinancial.com), which sits OUTSIDE the app's tenant/token seam
 * (ADR-0006, design/tokens/): the apex is the LOAM brand only and is never white-labeled — partner
 * branding lives on the per-tenant app subdomains. The custom properties below are the reskin seam
 * for the design phase; nothing else in this file hard-codes a colour or a size.
 */

:root {
  --ink: #14201c;
  --ink-soft: #4a5a53;
  --ink-faint: #7a8a83;
  --ground: #fbfaf7;
  --raised: #ffffff;
  --line: #e3e0d8;
  --accent: #2f6d52;
  --accent-soft: #eef4f0;

  --measure: 34rem;
  --page: 60rem;
  --step: 1.6rem;

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaeee9;
    --ink-soft: #a9b6af;
    --ink-faint: #7f8d86;
    --ground: #111614;
    --raised: #191f1c;
    --line: #2b332f;
    --accent: #7fc3a1;
    --accent-soft: #1a2621;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- header ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.15rem;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

/* --- hero -------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2rem, 6vw, 3.5rem);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .lede {
  max-width: var(--measure);
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
}

.notice {
  max-width: var(--measure);
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.notice strong {
  color: var(--ink);
}

/* --- sections ---------------------------------------------------------- */

section {
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

section > .wrap > h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

section > .wrap > h2 + p {
  max-width: var(--measure);
  margin-top: 0;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: var(--step);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.grid > li,
.card {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
}

.grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

ol.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: var(--step);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

ol.steps > li {
  counter-increment: step;
  padding-top: 2.6rem;
  position: relative;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ground);
  font-size: 0.9rem;
  font-weight: 700;
}

ol.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

ol.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- legal documents --------------------------------------------------- */

.doc {
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
}

.doc .wrap {
  max-width: 44rem;
}

.doc h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.doc .dateline {
  margin: 0 0 2rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.doc h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1rem;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc strong {
  color: var(--ink);
}

.toc {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  font-size: 0.95rem;
}

.toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 34rem) {
  .toc ol {
    columns: 1;
  }
}

.toc li {
  margin-bottom: 0.25rem;
  break-inside: avoid;
}

/* --- shared ------------------------------------------------------------ */

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-block: 2rem 3rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0.25rem 0 0;
  max-width: var(--measure);
}
