/* Northcrest Market — site styles. Plain CSS, no build step. */
:root {
  --ink: #17212b;
  --ink-soft: #475563;
  --muted: #6b7785;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e3e1db;
  --brand: #1f4e5f;        /* deep teal-navy */
  --brand-dark: #163a47;
  --brand-tint: #e8f0f2;
  --accent: #b5652b;       /* warm copper, used sparingly */
  --mark: #fff3c4;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(23,33,43,.06), 0 4px 16px rgba(23,33,43,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.site-nav a[aria-current] { color: var(--brand-dark); background: var(--brand-tint); }
.site-nav .nav-cta { background: var(--brand); color: #fff; margin-left: .25rem; }
.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; }
  .js .site-nav .nav-cta { margin: .25rem 0 0; text-align: center; }
  .header-inner { position: relative; flex-wrap: wrap; }
  html:not(.js) .site-nav ul { padding-bottom: .75rem; }
}

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.2rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--brand-dark); border-color: #c9d6da; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sections */
.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }
.page-head { padding: 3rem 0 2rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.app-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--brand-tint); color: var(--brand-dark); }
.app-icon svg { width: 24px; height: 24px; }
.product-tag { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #f4ece4; color: #7a4317; border: 1px solid #ead8c6; white-space: nowrap; }
.badge-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Lists & features */
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.feature { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; }
.grid > .feature:first-child { border-top: 1px solid var(--line); }
.grid > .feature { padding-bottom: 0; }
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--ink-soft); margin: 0; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.aside h2, .aside h3 { font-size: 1.1rem; }
.aside dl { margin: 0; }
.aside dt { font-weight: 600; font-size: .9rem; color: var(--muted); margin-top: .75rem; }
.aside dd { margin: 0; }
.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }
.cta-band { background: var(--brand); color: #e9f1f3; padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-band a.btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band a.btn-primary:hover { background: var(--brand-tint); }
.cta-band a.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band a { color: #fff; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border: 1px solid var(--line); }
th { background: #f3f2ee; font-weight: 600; }

/* Legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; padding-top: .5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.prose code { font-size: .92em; background: #f1efe9; padding: .1em .35em; border-radius: 4px; }
mark.placeholder { background: var(--mark); color: #5c4400; padding: .05em .3em; border-radius: 4px; border: 1px dashed #d9b84a; font-size: .95em; }
.draft-notice { background: #fff8e1; border: 1px solid #ecd58a; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; color: #4d3b00; }
.draft-notice p:last-child { margin: 0; }
.doc-meta { color: var(--muted); font-size: .95rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .95rem; }
.toc ul { list-style: none; padding: 0; margin: .5rem 0 0; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .25rem; }
@media (max-width: 600px) { .toc ul { columns: 1; } }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: .75rem; }
.contact-list strong { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { background: #142530; color: #c3d0d6; padding: 3rem 0 2rem; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #e4ecef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(3, 1fr); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa5af; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: .75rem; max-width: 22rem; }
.footer-bottom { border-top: 1px solid #27404d; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8fa5af; font-size: .88rem; }
.footer-bottom p { margin: 0; }

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
  body { background: #fff; }
  mark.placeholder { border: 1px solid #999; }
}
