/* Roashelm public site. Single typeface (Manrope), light theme, flat backgrounds. */
:root {
  --bg: #ffffff;
  --surface: #f6f7f7;
  --text: #0b0d0e;
  --muted: #4b5357;
  --line: #dfe3e4;
  --accent: #0f766e;
  --accent-hover: #0b5f58;
  --on-accent: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px;
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(72px); color: var(--bg); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Navigation: compact floating bar */
.nav {
  position: sticky; top: 16px; z-index: 40;
  display: flex; justify-content: center; padding: 0 16px;
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-weight: 600;
  min-height: 44px;
}
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.brand:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border-radius: 8px;
  font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 0.875rem; line-height: 1.25rem; padding: 8px 12px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

/* Hero */
.hero { padding: 96px 0 80px; }
.eyebrow {
  display: inline-block; margin-bottom: 24px;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--muted);
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 9999px;
}
.hero h1 {
  max-width: 680px;
  font-size: 3rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--text);
}
.hero .sub { max-width: 680px; margin: 24px 0 32px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.proof { margin: 24px 0 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.01em; }
.section-head p { margin: 16px 0 0; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 8px;
}
.card h3 svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg); }
.steps .num { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }
.steps h3 { font-size: 1.25rem; line-height: 1.75rem; margin: 8px 0; }
.steps p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.checks strong { display: block; }
.checks span { color: var(--muted); }

/* Tagline reveal */
.tagline { padding: 96px 0; }
.tagline p {
  max-width: 820px; margin: 0;
  font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em;
}
.tagline .w { color: #6b7277; transition: color 500ms var(--ease); }
.tagline .w.on { color: var(--text); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; min-height: 44px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-final { text-align: left; }
.cta-final h2 { font-size: 2.25rem; line-height: 2.5rem; max-width: 680px; }
.cta-final p { max-width: 680px; color: var(--muted); margin: 16px 0 24px; font-size: 1.125rem; line-height: 1.75rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--text); }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal article { max-width: 720px; }
.legal h1 { font-size: 2.25rem; line-height: 2.5rem; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; line-height: 1.75rem; margin: 32px 0 8px; }
.legal p, .legal li { color: #2c3235; }
.legal ul { padding-left: 24px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .br-wide { display: none; }
  .grid, .steps, .checks { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .tagline p { font-size: 2.25rem; line-height: 2.5rem; }
  .section-head h2, .cta-final h2 { font-size: 1.875rem; line-height: 2.25rem; }
  section { padding: 64px 0; }
  .nav-inner { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 300ms linear; }
  .tagline .w { transition: none; }
  .btn, .skip-link { transition: none; }
}
