:root {
  --bg: #f8f4ed;
  --nav-height: 64px;

  /* Plinf brand palette */
  --brand-amber: #df9a00;
  --brand-vivid-orange: #f46907;
  --brand-peach: #e8956d;
  --brand-sage: #a8c878;
  --brand-forest: #1c2b1c;
  --brand-olive: #9c813c;
  --brand-dark-mustard: #9f7602;
  --brand-dark-brown: #2c1810;
  --brand-midnight: #1a0a2e;
  --brand-lavender: #c8a0f0;
  --brand-muted-red: #906767;
  --brand-warm-grey: #c1b7b5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
}

body {
  background: var(--bg);
  min-height: 100vh;
}

/* Fixed top nav — stays in place as the page scrolls */
.navbar {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: 650px;
  max-width: 100%;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 12px 0 24px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}

.brand {
  display: inline-flex;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: rgba(29, 27, 24, 0.6);
  text-decoration: none;
  font: 400 16px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 14px 16px;
  border-radius: 9999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: rgba(29, 27, 24, 1);
  background: rgba(0, 0, 0, 0.035);
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 175px;
}

.page-eyebrow {
  margin: 0 0 16px;
  padding: 8px 16px;
  background: var(--brand-amber);
  border-radius: 9999px;
  text-align: center;
  font: 400 16px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--brand-dark-brown);
}

.launch-pill {
  margin: 0 0 100px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  background: var(--brand-vivid-orange);
  border-radius: 9999px;
  text-align: center;
  font: 400 16px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-image {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1080px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
  background: #ede7d9;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.hero-image__art {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  display: block;
  opacity: 0;
}

/* Soft-underline emphasis — same as the tool's .highlight */
.highlight {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Caption under the image — matches the locked surface caption */
.hero-image__caption {
  margin-top: 20px;
  text-align: center;
  font: 300 16px/normal "Google Sans Code", ui-monospace, "SF Mono", Menlo, monospace;
  color: #1d1b18;
}

/* Only the image animates in, once the card scrolls into view */
.hero-image.is-visible .hero-image__art {
  animation: feature-focus 2s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

/* Plinf icon, pinned bottom-left of the hero frame */
.hero-image__mark {
  position: absolute;
  left: 28px;
  bottom: 28px;
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.7;
  user-select: none;
  pointer-events: none;
}

/* First-load timestamp, pinned bottom-right — matches the locked surface */
.hero-image__time {
  position: absolute;
  right: 28px;
  bottom: 28px;
  font: 400 15px/normal "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #1d1b18;
}

/* Same entrance the locked Plinf surface uses */
@keyframes feature-focus {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.04) translateY(50px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image__art,
  .hero-image.is-visible .hero-image__art { animation: none; opacity: 1; }
}

.two-col {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col__heading {
  margin: 0 0 16px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  color: #2a2520;
}

.two-col__text {
  padding-right: 30px;
}

.two-col__text p {
  margin: 0 0 16px;
  font: 300 24px/1.6 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgba(42, 37, 32, 0.6);
}

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

.two-col__media {
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 52px;
  padding: 52px;
  background: #f3eee3;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

.logo-cell {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.logo-cell img {
  max-width: 84px;
  max-height: 84px;
  width: auto;
  height: auto;
}

.two-col--flip .two-col__text {
  order: 2;
  padding-right: 80px;
}

/* Media tile holding the padlock drawing — centered, not a logo grid */
.two-col__media--draw {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  padding: 52px;
}

.lock-draw {
  width: auto;
  height: 95%;
  max-width: 90%;
  display: block;
}

.lock-draw line,
.lock-draw path,
.lock-draw circle {
  fill: none;
  stroke: #1d1b18;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 75px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 0 140px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-x {
  display: inline-flex;
  color: var(--brand-dark-brown);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.footer-x:hover {
  opacity: 1;
}

.footer-logo {
  width: min(22.5vw, 225px);
  height: auto;
  display: block;
}

.page-title {
  margin: 0 0 35px;
  max-width: 1200px;
  padding-inline: 24px;
  text-align: center;
  text-wrap: balance;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: #2a2520;
}

/* Mobile-only line break inside the sub-header */
.br-mobile {
  display: none;
}

/* Body — shared body text style */
.body {
  margin: 0 0 24px;
  max-width: none;
  padding-inline: 24px;
  text-align: center;
  white-space: nowrap;
  font: 300 24px/1.6 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgba(42, 37, 32, 0.6);
}

.page-title-2 {
  margin: 200px 0 0;
  scroll-margin-top: 120px;
  max-width: 16ch;
  padding-inline: 24px;
  text-align: center;
  text-wrap: balance;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  color: #2a2520;
}

@media (max-width: 720px) {
  /* Nav: pull off the screen edges instead of spanning full bleed */
  .navbar {
    left: 16px;
    right: 16px;
    width: auto;
    padding: 0 12px 0 20px;
  }

  /* Less dead space below the nav and between sections */
  main {
    padding-top: 130px;
  }

  .page-title {
    font-size: 36px;
  }

  .body {
    font-size: 16px;
  }

  .br-mobile {
    display: inline;
  }

  .footer-logo {
    width: min(30vw, 225px);
  }

  /* Consistent side gutter for full-width blocks — matches the hero's 20px */
  .hero-image,
  .two-col,
  .site-footer {
    padding-inline: 20px;
  }

  .launch-pill {
    margin-bottom: 50px;
  }

  .hero-image {
    margin-top: 32px;
    width: calc(100% - 40px);
    /* 3/4 height + 50px taller */
    height: calc((100vw - 40px) * 4 / 3 + 50px);
  }

  /* Match the tool's mobile layout: mark + timestamp move to the top corners */
  .hero-image__mark,
  .hero-image__time {
    top: 24px;
    bottom: auto;
  }

  /* Align mark + timestamp with the image's left/right edges (20px card padding) */
  .hero-image__mark {
    height: 32px;
    left: 20px;
  }

  .hero-image__time {
    right: 20px;
  }

  /* Gap below the top bar (24px) matches the gap above it (24px) */
  .hero-image__art {
    margin-top: 40px;
  }

  .hero-image__caption {
    font-size: 16px;
  }

  /* On mobile the 20px padding gutter handles insets, so go full-width */
  .two-col,
  .site-footer {
    width: 100%;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 72px;
  }

  .two-col--flip .two-col__text {
    order: 0;
    padding-right: 0;
  }

  /* Scale display type down so it fits narrow screens */
  .two-col__heading {
    font-size: 32px;
    text-align: center;
  }

  .two-col__text {
    padding-right: 0;
  }

  .two-col__text p {
    font-size: 20px;
    text-align: center;
  }

  /* Let the sub-header wrap under the main title instead of overflowing */
  .body {
    white-space: normal;
  }

  /* Tighten the media tile's interior padding/gap */
  .two-col__media {
    gap: 20px;
    padding: 24px;
  }

  /* Hide the heading on mobile, but keep it as a working anchor target */
  .page-title-2 {
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
  }
}
