/* The frame of every page: the top bar, the footer, page widths and sections. */

/* keeps the content from getting too wide on big screens, with room at the sides on phones */
.container {
  width: min(var(--page-width), 100% - 2rem);
  margin-inline: auto;
}

/* the narrow column for reading, like the privacy page */
.reading > * {
  max-width: 720px;
}

/* the "Skip to the main content" link, hidden until someone tabs to it */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- the top bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 251, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 4px;
}

.main-nav {
  display: flex;
  gap: var(--space-3);
  margin-left: auto;
}

.main-nav a {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

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

.menu-button {
  display: none;
  margin-left: auto;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* on phones the links fold away behind the Menu button */
@media (max-width: 820px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-1) 1rem var(--space-2);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* the Scan button stays in the bar on phones, so it's always one tap away */
  .header-inner .button {
    order: 3;
  }

  .header-inner {
    gap: var(--space-1);
  }
}

/* on very small phones the logo text gets a little smaller so everything fits */
@media (max-width: 380px) {
  .logo {
    font-size: 1.35rem;
  }

  .header-inner .button-small {
    padding: 0 14px;
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--space-6);
}

/* a frosted white band, to separate one section from the next */
.section-glass {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-5);
}

.section-title p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* the small label above a heading, like "HOW IT WORKS" */
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* the heading area at the top of pages other than Home */
.page-header {
  padding-block: var(--space-5) var(--space-3);
}

/* the words stay a comfortable width, but line up with the page edge below */
.page-header > * {
  max-width: 760px;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .section {
    padding-block: var(--space-5);
  }

  .section-title {
    margin-bottom: var(--space-4);
  }
}

/* ---------- the footer ---------- */

.site-footer {
  margin-top: var(--space-6);
  padding-block: var(--space-5) var(--space-4);
  background: var(--ink);
  color: #d9d4e8;
}

.site-footer a {
  color: #d9d4e8;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer .logo {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
}

.footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9a3c2;
  margin-bottom: var(--space-2);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-about p {
  margin-top: var(--space-2);
  max-width: 300px;
}

.footer-small {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid #3a3857;
  font-size: 0.85rem;
  color: #a9a3c2;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}
