/* Northpoint Gridworks — site styles
   Palette: near-black with copper / bronze accents.
   Accent text uses #D4A06A (or brighter) on raised surfaces so body-size
   links meet WCAG AA. Solid #B87333 is used for buttons (with #0D0D0D text)
   and large decorations. Bronze #8C5A2B is decorative only — not text. */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-italic.woff2") format("woff2");
}

:root {
  --bg: #0d0d0d;
  --bg-elevated: #1a1a1a;
  --bg-card: #161616;
  --bg-header: rgba(13, 13, 13, 0.88);
  --copper: #b87333;
  --copper-bright: #d0894a;
  --copper-link: #d4a06a;
  --copper-pale: #e0b588;
  --bronze: #8c5a2b;
  --steel-1: #e8e8e4;
  --steel-2: #c8c8c4;
  --steel-3: #9a9a94;
  --steel-4: #6e6e68;
  --ink: #0d0d0d;
  --line: rgba(200, 190, 170, 0.14);
  --line-strong: rgba(184, 115, 51, 0.45);
  --focus: #d4a06a;
  --danger: #c4744a;
  --ok: #b87333;
  --radius: 10px;
  --wrap: 1120px;
  --header-h: 4.25rem;
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--steel-2);
  font-family: var(--font-body);
  font-size: 106.25%;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0.2) 18%, rgba(13, 13, 13, 0.15) 70%, rgba(13, 13, 13, 0.85) 100%),
    url("/images/topo.svg");
  background-size: auto, 1400px auto;
  background-attachment: scroll, fixed;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-pale); }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--steel-1);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.06em; }
h3 { font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--copper);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(calc(100% - 2.5rem), 720px); margin-inline: auto; }

/* Steel headline treatment */
.steel {
  color: var(--steel-1);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .steel {
    background: linear-gradient(180deg, #f3f3f1 0%, #c8c8c4 42%, #8e8e88 52%, #d8d8d4 78%, #a8a8a4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-link);
  margin: 0 0 0.85rem;
}
.kicker::before,
.kicker::after {
  content: "";
  height: 1px;
  width: 2.25rem;
  background: var(--copper);
  display: inline-block;
}
.kicker::after { display: none; }
.kicker.rules-both::after { display: inline-block; }

.lede { font-size: 1.15rem; color: var(--steel-2); max-width: 42rem; }
.muted { color: var(--steel-3); }
.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--copper);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--copper);
  color: var(--ink);
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--copper-bright); color: var(--ink); border-color: var(--copper-bright); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--copper-link);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(184, 115, 51, 0.12);
  color: var(--copper-pale);
  border-color: var(--copper);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  background: var(--bg-elevated);
  color: var(--steel-3);
  border-color: var(--line);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--steel-1);
  min-width: 0;
}
.brand img,
.brand .logo-horizontal {
  height: 2.85rem;
  width: auto;
  max-width: min(20rem, 62vw);
  flex: 0 0 auto;
}
.footer-brand .logo-horizontal {
  height: 2.5rem;
  max-width: min(18rem, 80vw);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--steel-1);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--copper); color: var(--copper-pale); }

.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  color: var(--steel-2);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--copper-link); }
.site-nav a.btn { color: var(--ink); padding: 0.55rem 0.95rem; }
.site-nav a.btn:hover { color: var(--ink); }

/* Hero — official banner, headline on the right */
.hero {
  position: relative;
  padding: 0;
  text-align: left;
  background-color: #0d0d0d;
  background-image: image-set(
    url("/images/hero-banner.webp") type("image/webp"),
    url("/images/hero-banner.jpg") type("image/jpeg")
  );
  background-size: 100% auto;
  background-position: left center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 38%, rgba(13, 13, 13, 0.45) 58%, rgba(13, 13, 13, 0.72) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(22rem, 46vw, 32rem);
  align-items: center;
  gap: 2rem;
}
.hero-copy {
  position: relative;
  grid-column: 2;
  /* Pin text to the right of the banner's copper line (~52.16vw)
     so that line reads as a divider, not as a stroke through the type. */
  padding: 3.25rem 0 3.25rem calc(2.161458333vw + 1.25rem);
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: calc(2.161458333vw - 1rem);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--copper);
  pointer-events: none;
}
.hero-copy .kicker { justify-content: flex-start; }
.hero-copy .kicker::after { display: none; }
.hero-copy h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hero-logo-mobile { display: none; }
.hero .tagline {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-3);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.35rem 0 1.15rem;
  flex-wrap: wrap;
}
.hero .tagline::before,
.hero .tagline::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--copper);
}
.hero .btn-row { justify-content: flex-start; }

/* Sections */
.section { padding: 4.25rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.85;
}
.card h3 { margin-top: 0.2rem; }
.card p:last-child { margin-bottom: 0; }
.icon-num {
  font-family: var(--font-display);
  color: var(--copper-link);
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Featured product */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.feature-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.feature-visual img { border-radius: 6px; width: 100%; }
.feature-visual figcaption {
  font-size: 0.8rem;
  color: var(--steel-3);
  padding: 0.55rem 0.3rem 0.15rem;
  text-align: center;
}

.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.3rem;
  border-bottom: 1px solid var(--line);
  color: var(--steel-2);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.55rem;
  height: 1px;
  background: var(--copper);
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.15rem 1.2rem;
  text-align: center;
}
.price-card.featured {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper), var(--shadow);
}
.price-card h3 { margin-bottom: 0.35rem; }
.price-amt {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--steel-1);
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.15rem;
}
.price-amt span { font-size: 0.95rem; color: var(--steel-3); letter-spacing: 0.08em; }
.price-devices { color: var(--copper-link); font-weight: 600; margin-bottom: 0.75rem; }
.price-note { color: var(--steel-3); font-size: 0.9rem; flex: 1; }
.price-card .buy-wrap { margin-top: 1rem; }
.price-card .btn { width: 100%; }
.pricing-fineprint { margin-top: 1.25rem; color: var(--steel-3); text-align: center; }

/* CTA band */
.cta-band {
  background: linear-gradient(180deg, rgba(184, 115, 51, 0.09), rgba(13, 13, 13, 0.2));
  border-block: 1px solid var(--line-strong);
  padding: 3.25rem 0;
  text-align: center;
}
.cta-band .btn-row { justify-content: center; }

/* Contact — the only page that renders phone, email, hours, or socials */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}
.contact-aside {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}
.contact-aside h2 { font-size: 1.15rem; }
.contact-dl { margin: 0; }
.contact-dl div { margin-bottom: 1rem; }
.contact-dl dt {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--copper-link);
  margin-bottom: 0.2rem;
}
.contact-dl dd { margin: 0; color: var(--steel-1); }
.contact-dl a { color: var(--copper-link); }
.social-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-list:empty,
.social-block[hidden],
.contact-item[hidden] { display: none !important; }

/* Forms */
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-3);
  margin: 0 0 0.35rem;
}
.field { margin-bottom: 1rem; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  color: var(--steel-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--copper);
}
textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--steel-3); margin-top: 0.75rem; }
.form-status[hidden] { display: none !important; }
.form-status { margin-top: 0.75rem; color: var(--copper-pale); }

/* Footer — no phone, email, hours, or socials */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  color: var(--steel-3);
  font-size: 0.95rem;
  background: rgba(13, 13, 13, 0.85);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
}
.footer-brand .brand { margin-bottom: 0.6rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}
.footer-nav a {
  color: var(--steel-3);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.footer-nav a:hover { color: var(--copper-link); }
.copyright { margin-top: 1.75rem; color: var(--steel-4); font-size: 0.88rem; }

/* Legal placeholders */
.review-banner {
  border: 1px solid var(--line-strong);
  background: rgba(184, 115, 51, 0.08);
  color: var(--copper-pale);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* Breadcrumb (visual, inner pages) */
.crumbs {
  font-size: 0.9rem;
  color: var(--steel-4);
  margin: 1.25rem 0 0;
}
.crumbs a { color: var(--steel-3); text-decoration: none; }
.crumbs a:hover { color: var(--copper-link); }
.crumbs span[aria-current="page"] { color: var(--steel-2); }

.page-hero { padding: 2.25rem 0 2.5rem; }
.page-hero h1 { margin-bottom: 0.85rem; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* PayPal host container */
.paypal-hosted { min-height: 0; margin-top: 0.25rem; }
.paypal-hosted:not(:empty) { min-height: 2.5rem; margin-top: 0.5rem; }


@media (max-width: 800px) {
  .hero {
    background-image: none;
    text-align: center;
  }
  .hero::after { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-logo-mobile {
    display: block;
    width: min(22rem, 86vw);
    margin: 2.25rem auto 0.25rem;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  }
  .hero-copy {
    text-align: center;
    padding: 1.5rem 0 3rem;
    grid-column: auto;
  }
  .hero-copy::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: auto;
    transform: translateX(-50%);
    width: 3.5rem;
    height: 1px;
  }
  .hero-copy .kicker { justify-content: center; }
  .hero .tagline { justify-content: center; }
  .hero .btn-row { justify-content: center; }
  .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}

@media (max-width: 980px) {
  .grid-3, .feature, .price-grid, .contact-layout, .grid-2 {
    grid-template-columns: 1fr;
  }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-visual { order: -1; }
}

@media (max-width: 720px) {
  html { font-size: 100%; }
  .wrap, .wrap-narrow { width: min(calc(100% - 1.5rem), var(--wrap)); }
  .hero { padding: 3rem 0 2.75rem; }
  .section { padding: 3rem 0; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #111;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 0.6rem; border: 1px solid var(--copper); }
  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.center .kicker { justify-content: center; }
.stack .card + .card { margin-top: 1.25rem; }
.page-hero + .section.tight { padding-top: 0; }

.btn-row.center, .center .btn-row { justify-content: center; }

.section-head h2,
.section-head .lede {
  display: block;
  width: 100%;
}
@media (max-width: 720px) {
  h2 { letter-spacing: 0.04em; }
}

.services-visual { margin: 0 0 2.25rem; }
.feature .services-visual { margin: 0; }


/* Buy / license calculator */
.buy-panel { max-width: 36rem; }
.buy-total {
  margin: 1rem 0 0.4rem;
  color: var(--copper-pale);
  font-size: 1.15rem;
  font-weight: 600;
}
.paypal-button-wrap { margin: 1.25rem 0; min-height: 2.5rem; max-width: 24rem; }
.buy-receipt { margin-top: 1.5rem; }
.buy-key {
  font-size: 1.15rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--copper-pale);
  user-select: all;
}
.crumbs { margin: 0 0 1.25rem; color: var(--steel-3); font-size: 0.92rem; }
.crumbs a { color: var(--copper-link); }
