/* Open Gate — public site. Self-hosted Inter plus the system-ui stack (SF on Apple). No trackers. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f3ef;
  --paper-2: #fffcf8;
  --ink: #1c1c1e;
  --muted: #3a3a3c;
  --quiet: #4a4a4d;
  --line: rgba(28, 28, 30, 0.1);
  --pine: #1d3d32;
  --copper: #8a4b28;
  --focus: #1c1c1e;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-fallback: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.78);
  --shadow: 0 10px 40px rgba(28, 28, 30, 0.12), 0 2px 8px rgba(28, 28, 30, 0.06);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(28, 28, 30, 0.05);
  --radius: 24px;
  --radius-pill: 999px;
  --max: 1140px;
  --measure: 38rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

#how-it-works,
#questions,
#content {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.011em;
}

main { flex: 1 0 auto; }

a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

img, svg { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { opacity: 0.7; }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, .nav-pill a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 40;
  border-radius: 0.5rem;
}
.skip:focus { top: 0.75rem; }

.wrap,
.nav-pill,
.hero-inner {
  width: min(var(--max), calc(100% - 2.25rem));
  margin-inline: auto;
}
.narrow { width: min(36rem, calc(100% - 2.25rem)); }

/* Liquid Glass */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), var(--highlight);
  isolation: isolate;
}
.glass::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 42%);
  z-index: 0;
}
.glass > * { position: relative; z-index: 1; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-fallback);
  }
}

/* Floating glass nav pill */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.85rem 0 0;
  pointer-events: none;
  background: transparent;
  border: 0;
}
.nav-pill {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 0.8rem;
  padding: 0.4rem 0.55rem 0.4rem 0.95rem;
  border-radius: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.brand:hover { opacity: 1; color: var(--ink); }
.brand svg { width: 1.45rem; height: 1.45rem; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.88rem;
}
.site-nav a {
  padding: 0.5rem 0.7rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.45); }
.site-nav a[aria-current="page"] { font-weight: 650; }
.site-nav a.nav-call,
.nav-dropdown a.nav-call {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(28, 28, 30, 0.18);
}
.site-nav a.nav-call {
  margin-left: 0.2rem;
  padding: 0.4rem 1.05rem;
  min-height: 2.5rem;
  min-width: 4.4rem;
  justify-content: center;
}
.site-nav a.nav-call:hover,
.nav-dropdown a.nav-call:hover {
  opacity: 1;
  background: #000;
  color: #fff;
}
.nav-dropdown a.nav-call {
  align-self: flex-start;
  margin: 0.3rem 0.4rem 0.45rem;
  padding: 0.7rem 1.2rem;
  min-height: 2.75rem;
  justify-content: center;
}

/* CSS-only mobile menu. Desktop keeps the inline links. */
.nav-menu { display: none; position: static; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--highlight);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::marker { content: ""; }
.menu-open { display: none; }
.nav-menu[open] .menu-closed { display: none; }
.nav-menu[open] .menu-open { display: inline; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  border-radius: 24px;
  z-index: 2;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}
.nav-dropdown a:hover { opacity: 1; background: rgba(255, 255, 255, 0.5); }
.nav-dropdown a[aria-current="page"] { font-weight: 650; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav-menu summary,
  .nav-dropdown { background: var(--glass-fallback); }
}

@media (max-width: 819px) {
  .site-nav-desktop { display: none; }
  .nav-menu { display: block; }
}

@media (min-width: 820px) {
  .nav-pill { border-radius: var(--radius-pill); padding: 0.35rem 0.45rem 0.35rem 1.1rem; }
}

/* Buttons */
.hero-actions, .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}
.btn-primary, .btn-glass { min-width: 7.25rem; }
.action-phone {
  margin: 0.8rem 0 0;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.action-phone a {
  color: inherit;
  text-decoration: none;
}
.action-phone a:hover { opacity: 0.72; text-decoration: underline; }
.action-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cta .action-phone { color: var(--muted); }
.action-email {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.action-email a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.action-email a:hover { opacity: 0.72; text-decoration: underline; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.consent a,
.faq a,
.prose a[href^="tel:"],
.prose a[href^="sms:"],
.prose a[href^="mailto:"] {
  position: relative;
}
.consent a::before,
.faq a::before,
.prose a[href^="tel:"]::before,
.prose a[href^="sms:"]::before,
.prose a[href^="mailto:"]::before {
  content: "";
  position: absolute;
  inset: -14px -6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:hover { opacity: 1; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(28, 28, 30, 0.22);
}
.btn-primary:hover { background: #000; color: #fff; transform: scale(1.03); }
.btn-primary:active { transform: scale(0.98); }
.btn-glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow), var(--highlight);
}
.btn-glass:hover { transform: scale(1.03); color: var(--ink); }
.btn-glass:active { transform: scale(0.98); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .btn-glass { background: var(--glass-fallback); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7.25rem 0 2.75rem;
  color: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 50%;
  background: #536e78;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-panel {
  max-width: 32.5rem;
  padding: 1.7rem 1.8rem 1.8rem;
  border-radius: var(--radius);
}
.hero-panel.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
.hero-panel.glass::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18));
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: clamp(2.05rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.lede {
  margin: 0 0 1.4rem;
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 30rem;
  font-weight: 450;
}
/* Content sections — typographic, no card grids */
.values, .steps-sec, .about, .faq, .cta {
  padding: 3.5rem 0;
}
.values { padding-top: 4.25rem; }
.points, .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.75rem 3.5rem;
}
.points h2, .steps h2, .faq > .wrap > h2, .cta h2, .page-main h1 {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.points p, .steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 22rem;
}
.points li > h2:only-child { margin-bottom: 0; }
@media (min-width: 800px) {
  html { font-size: 19px; }
  .points, .steps { grid-template-columns: repeat(3, 1fr); gap: 2.25rem 2.5rem; }
  .values { padding: 4.25rem 0 2.5rem; }
  .steps-sec { padding: 2.5rem 0 3rem; }
  .about, .faq, .cta { padding: 4.5rem 0; }
}

@media (min-width: 820px) {
  .about-grid:not(:has(.about-photo)) .about-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem 4rem;
    align-items: start;
  }
  .about-line { max-width: none; }
  .about-more { margin-top: 0.15rem; max-width: none; }
  .about-grid:not(:has(.about-photo)) .about-more summary {
    font-size: 1.12rem;
  }
  .about-grid:has(.about-photo) {
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 3.25rem 3.5rem;
    align-items: center;
  }
  .about-grid:has(.about-photo) .about-more { margin-top: 1.1rem; }
  .cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem 4rem;
    align-items: center;
  }
  .cta .cta-lede { max-width: none; margin-bottom: 0; }
}


.steps { counter-reset: step; }
.steps li { position: relative; padding-top: 0.2rem; }
.step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.55rem;
}

.about { text-align: left; }
.about-line {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.about-more {
  margin-top: 1.1rem;
  max-width: 36rem;
}
.about-more summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--muted);
  list-style: none;
  display: inline;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary::after { content: none; }
.about-more p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Photo slot for a real picture of Nick and Jake. The section looks finished
   without an image. When images/nick-jake.jpg (4:5) is dropped in as
   img.about-photo, the grid below takes over. No placeholder art. */
.about-photo {
  display: block;
  width: 100%;
  max-width: 16.5rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: #ece8e2;
}
@media (max-width: 819px) {
  .about-photo { max-width: 14rem; margin: 0 0 1.5rem; }
}

/* FAQ */
.faq h2 { margin-bottom: 1.5rem; }
.faq-list { max-width: 36rem; }
@media (min-width: 820px) {
  .faq-list {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5rem;
  }
  details.q p { max-width: none; }
}
details.q {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
details.q:last-child { border-bottom: 1px solid var(--line); }
details.q summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--quiet);
  line-height: 1;
}
details.q[open] summary::after { content: "–"; }
details.q p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
  max-width: 34rem;
}

/* Closing CTA */
.cta {
  text-align: left;
  padding-bottom: 4rem;
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.6rem; }
.cta .cta-lede {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 28rem;
}

/* Quiet consent — just above the footer. Wording is owned by the HTML. */
.consent {
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.consent p {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--quiet);
  max-width: 42rem;
}
.consent p:last-child { margin-bottom: 0; }
.consent a { color: var(--quiet); }

/* Footer */
.site-footer {
  background: #eceae4;
  color: var(--quiet);
  padding: 1.75rem 0 2rem;
  font-size: 0.88rem;
}
.site-footer a { color: var(--ink); }
.site-footer .legal-line { margin: 0 0 0.65rem; color: var(--quiet); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.footer-links li:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: #8a8a8e;
  pointer-events: none;
}
@media (max-width: 819px) {
  .footer-links li:nth-last-child(-n+2) {
    flex-basis: 100%;
    margin-top: 0.15rem;
  }
  .footer-links li:nth-last-child(3)::after,
  .footer-links li:nth-last-child(2)::after {
    content: none;
    margin: 0;
  }
}

/* Interior pages */
.page-main { padding: 8rem 0 5rem; }
.page-main h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.05rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.disclosure { font-weight: 650; }

@media (max-width: 819px) {
  #how-it-works,
  #questions,
  #content {
    scroll-margin-top: 7rem;
  }
  html { scroll-padding-top: 7rem; }
  .hero-media { object-position: 50% 42%; }
  .hero-panel {
    max-width: none;
    padding: 1.35rem 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.9);
  }
  .nav-dropdown.glass {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-dropdown.glass::before {
    background: none;
  }
  .hero { padding: 6.5rem 0 1.75rem; }
  .hero h1 { font-size: 1.85rem; }
  .lede { font-size: 1.02rem; margin-bottom: 1.1rem; }
  .nav-pill { padding: 0.4rem 0.45rem 0.4rem 0.85rem; }
  .values, .steps-sec, .about, .faq, .cta { padding: 1.15rem 0; }
  .values { padding-top: 1.25rem; }
  .cta { padding-bottom: 1.35rem; }
  .points, .steps { gap: 1.15rem; }
  .faq h2 { margin-bottom: 1rem; }
  details.q { padding: 0.75rem 0; }
  .consent { padding: 1.15rem 0 1.2rem; }
  .site-footer { padding: 1.25rem 0 1.45rem; }
  .about-line { font-size: 1.4rem; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-primary, .btn-glass {
    transition: none;
  }
  .btn:hover, .btn-primary:hover, .btn-glass:hover,
  .btn:active, .btn-primary:active, .btn-glass:active {
    transform: none;
  }
}
