/* Conveyancer AI marketing site - shared styles.
   Self-contained: system fonts only, no external resources. */

:root {
  --ink: #14213d;
  --ink-soft: #3d4b6b;
  --brand: #1f6f6b;
  --brand-dark: #15514e;
  --accent: #c05621;
  --paper: #f7f8fa;
  --card: #ffffff;
  --border: #dfe3ea;
  --focus: #0b5fa5;
  --max-width: 60rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

nav.site-nav {
  margin-left: auto;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.15rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  padding: 1rem 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.25;
  margin: 2.2rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand-dark);
}

.button.primary {
  background: var(--brand-dark);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--brand-dark);
}

.button.secondary:hover {
  background: #e6efee;
  color: var(--brand-dark);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem 1rem 3.4rem;
  margin-bottom: 0.85rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.steps > li:last-child {
  margin-bottom: 0;
}

.steps h3 {
  margin-top: 0;
}

.notice {
  background: #fdf3e7;
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 0.35rem;
}

dl.faq {
  margin: 1rem 0;
}

dl.faq dt {
  font-weight: 700;
  margin-top: 1.1rem;
}

dl.faq dd {
  margin: 0.25rem 0 0;
}

footer.site-footer {
  background: var(--ink);
  color: #e8ebf2;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
}

footer.site-footer p {
  margin: 0 0 0.75rem;
}

footer.site-footer a {
  color: #b9e4e1;
}

footer.site-footer a:hover {
  color: #fff;
}

.footer-note {
  font-size: 0.9rem;
  color: #c3c9d6;
}

@media (max-width: 34rem) {
  nav.site-nav {
    margin-left: 0;
    width: 100%;
  }

  main {
    padding-top: 1.75rem;
  }
}
