/* Public navigation band: charcoal with cream text, the call to action in mustard with charcoal text
   (the shared .button--primary rule supplies the mustard), the vintage stripe beneath (brand_stripe.css).
   The public layout is always light, and the chrome tokens are the same in both appearances. */
.public-header {
  border-bottom: 0;
  color: var(--chrome-ink);
  background: var(--chrome-bg);
}

body.public-site { display: flex; flex-direction: column; min-height: 100dvh; }
body.public-site > .public-main { flex: 1 0 auto; }
body.public-site > .preview-notice,
body.public-site > .public-header { flex-shrink: 0; }
.public-main h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: 0.01em; line-height: 1.12; max-width: 20ch; margin: 0; }
.public-main .auth-panel h1 { max-width: none; }
.public-main .public-hero h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); max-width: 16ch; }
.public-features h2 { max-width: 26ch; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.public-hero__preview pre { overflow-x: auto; font-size: 0.9rem; }
.public-main .button { min-height: 2.75rem; }
@media (max-width: 42rem) { .public-footer a { display: inline-flex; min-height: 2.75rem; align-items: center; } }

.public-header__brand,
.public-header__nav a:not(.button) {
  color: var(--chrome-ink);
  background: var(--chrome-bg);
}

.public-header__nav a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Cream rings: the default teal ring is built for light surfaces and would sink into charcoal. */
.public-header a:focus-visible {
  outline: 3px solid var(--chrome-focus);
  outline-offset: 3px;
}

/* The same bold three-band stripe as the member bar and the shared chart's bar, running through the vertical middle of the
   bar (brand_stripe.css) behind two charcoal plates: the logo and the links. The header is the stacking context. */
@media screen {
  .public-header {
    position: relative;
    z-index: 0;
  }

  .public-header__brand,
  .public-header__nav {
    align-self: stretch;
    color: var(--chrome-ink);
    background: var(--chrome-bg);
  }

  .public-header__brand {
    padding-right: 18px;
  }

  .public-header__nav {
    padding-left: 16px;
  }
}

/* Public home, round two: the full-width sections keep the airy editorial rhythm of the public site while the
   content rail remains aligned with the header and footer. */
.public-main:has(.public-home) {
  width: 100%;
  padding: 0;
}

.public-home {
  color: var(--shared-ink);
  background: var(--shared-bg);
}

.public-home__hero,
.public-home__beats,
.public-home__features,
.public-home__closing {
  padding-right: max(1.5rem, calc((100vw - 76rem) / 2));
  padding-left: max(1.5rem, calc((100vw - 76rem) / 2));
}

.public-home__hero { padding-top: 4.25rem; padding-bottom: 4.45rem; }

.public-home__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.public-home__intro h1,
.public-home h2 {
  max-width: none;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.public-home__intro h1 {
  margin: 0.55rem 0 1rem;
  font-size: clamp(2.7rem, 5.4vw, 4.15rem);
}

.public-home__eyebrow {
  margin: 0;
  color: var(--shared-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-home__lead {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  color: var(--shared-muted);
  font-size: 1.19rem;
}

.public-home__lead p { margin: 0; }

.home-paste {
  max-width: 34rem;
  padding: 1.2rem;
  border: 1px solid var(--shared-rule);
  border-radius: 0.75rem;
  color: var(--shared-ink);
  background: var(--shared-surface);
  box-shadow: 0 1rem 2.2rem color-mix(in srgb, var(--shared-ink) 8%, transparent);
}

.home-paste label { display: block; margin-bottom: 0.55rem; font-weight: 800; }

.home-paste textarea {
  display: block;
  width: 100%;
  min-height: 10rem;
  padding: 0.75rem;
  border: 1.5px solid var(--shared-hairline);
  border-radius: 0.5rem;
  color: var(--shared-ink);
  background: var(--shared-paper);
  font: 0.94rem/1.45 var(--font-editor);
  resize: vertical;
}

.home-paste textarea:focus-visible { outline: 3px solid var(--shared-focus-ring); outline-offset: 1px; }

.home-paste__actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.8rem; }

.home-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1.5px solid var(--shared-selected-line);
  border-radius: var(--radius-control);
  color: var(--shared-selected-ink);
  background: var(--shared-selected-fill);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.home-action:focus-visible,
.home-paste__sample:focus-visible,
.home-preview__key:focus-visible {
  outline: 3px solid var(--shared-focus-ring);
  outline-offset: 3px;
}

.home-paste__sample {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--shared-selected-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-paste__note { margin: 0.65rem 0 0; color: var(--shared-muted); font-size: 0.82rem; }

.home-preview {
  justify-self: stretch;
  overflow: hidden;
  border-radius: 0.8rem;
  color: var(--chrome-ink);
  background: var(--chrome-bg);
  box-shadow: 0 1rem 2.2rem color-mix(in srgb, var(--shared-ink) 12%, transparent);
}

.home-preview__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--chrome-ink) 18%, transparent);
}

.home-preview__keys { display: flex; gap: 0.3rem; margin-left: auto; }

.home-preview__key {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--chrome-ink) 55%, transparent);
  border-radius: 0.35rem;
  color: var(--chrome-ink);
  /* This is the same charcoal as the preview card, so the quiet key remains an outline control. */
  background: var(--chrome-bg);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.home-preview__key.is-active {
  border-color: var(--stage-fixed-selected-line);
  color: var(--stage-fixed-selected-ink);
  background: var(--stage-fixed-selected-fill);
}

.home-preview__badge {
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--stage-fixed-key-line);
  border-radius: 0.35rem;
  color: var(--stage-fixed-key-ink);
  background: var(--stage-fixed-key-fill);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-preview__body { padding: 1.15rem 1.4rem 1.35rem; }

.home-preview__label {
  margin: 0 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--chrome-ink) 18%, transparent);
  color: var(--stage-fixed-muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-preview__row { min-height: 3rem; line-height: 1.45; }
.home-preview__row b { display: block; min-height: 1.25rem; color: var(--stage-fixed-selected-ink); font-size: 0.88rem; }

.public-home__beats { padding-bottom: 4.5rem; border-top: 1px solid var(--shared-rule); }

.public-home__beat {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1.2fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5.5rem);
  padding: 4.3rem 0;
  border-bottom: 1px solid var(--shared-rule);
}

.public-home__beat--reversed { grid-template-columns: minmax(18rem, 1.2fr) minmax(0, 0.8fr); }
.public-home__beat--reversed .public-home__beat-copy { order: 2; }
.public-home h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.55rem); }
.public-home__beat-copy p { max-width: 24rem; margin: 0.85rem 0 0; color: var(--shared-muted); }

.public-home__number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border: 1px solid var(--shared-key-line);
  border-radius: 50%;
  color: var(--shared-key-ink);
  background: var(--shared-key-fill);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.public-home__visual {
  min-height: 16.85rem;
  padding: 1.35rem;
  border: 1px solid var(--shared-rule);
  border-radius: 0.8rem;
  color: var(--shared-ink);
  background: var(--shared-surface);
  box-shadow: 0 0.9rem 1.9rem color-mix(in srgb, var(--shared-ink) 7%, transparent);
}

.public-home__mess {
  min-height: 10.35rem;
  padding: 0.85rem;
  border: 1px solid var(--shared-hairline);
  border-radius: 0.5rem;
  background: var(--shared-paper);
  color: var(--shared-muted);
  font: 0.88rem/1.45 var(--font-editor);
}

.public-home__visual--paste > p { margin: 0.8rem 0 0; color: var(--shared-selected-ink); font-size: 0.82rem; font-weight: 800; }
.public-home__visual--paste > p span { margin: 0 0.45rem; font-size: 1.35rem; vertical-align: middle; }
.public-home__visual--play > strong { font-size: 0.95rem; }
.public-home__visual-keys { display: flex; gap: 0.4rem; margin: 0.85rem 0; }

.public-home__visual-keys span,
.public-home__zoom span {
  display: inline-flex;
  min-width: 2.6rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border: 1px solid var(--shared-hairline);
  border-radius: 0.35rem;
  color: var(--shared-ink);
  background: var(--shared-paper);
  font-size: 0.8rem;
  font-weight: 800;
}

.public-home__visual-keys span:first-child { border-color: var(--shared-selected-line); color: var(--shared-selected-ink); background: var(--shared-selected-fill); }
.public-home__visual--play > p { margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--shared-rule); font-size: 0.88rem; }
.public-home__visual--play > p b { color: var(--shared-selected-ink); }
.public-home__zoom { display: flex; gap: 0.5rem; margin-top: 1.35rem; }

.public-home__visual--share { display: grid; place-items: center; }

.public-home__phone {
  width: 11.6rem;
  min-height: 15.25rem;
  padding: 2.15rem 0.75rem 0.75rem;
  border: 0.5rem solid var(--shared-ink);
  border-radius: 1.5rem;
  color: var(--shared-ink);
  background: var(--shared-paper);
  font-size: 0.75rem;
  position: relative;
}

.public-home__phone::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: calc(50% - 1.45rem);
  width: 2.9rem;
  height: 0.3rem;
  border-radius: 1rem;
  color: var(--shared-paper);
  background: var(--shared-ink);
}

.public-home__phone p { margin: 0.65rem 0; color: var(--shared-muted); }
.public-home__phone > span { display: block; overflow: hidden; padding: 0.4rem; border: 1px solid var(--shared-selected-line); border-radius: 0.3rem; color: var(--shared-selected-ink); background: var(--shared-selected-fill); text-overflow: ellipsis; white-space: nowrap; }

.public-home__features { padding-top: 3.9rem; padding-bottom: 3.9rem; }
.public-home__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.7rem; }

.public-home__cards article {
  padding: 1.35rem;
  border: 1px solid var(--shared-rule);
  border-radius: 0.65rem;
  color: var(--shared-ink);
  background: var(--shared-surface);
}

.public-home__cards h3 { margin: 0; font-size: 1.12rem; }
.public-home__cards p { margin: 0.45rem 0 0; color: var(--shared-muted); }

.public-home__tools { padding: 1.7rem max(1.5rem, calc((100vw - 76rem) / 2)); color: var(--shared-ink); background: var(--shared-sidebar-bg); }
.public-home__tools > div { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.public-home__tools p { margin: 0.3rem 0 0; color: var(--shared-muted); }
.public-home__tools > div > p { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.public-home__tools a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--shared-selected-ink); font-weight: 800; }

.public-home__closing { padding-top: 5rem; padding-bottom: 5rem; text-align: center; }
.public-home__closing h2 { max-width: 34rem; margin-right: auto; margin-left: auto; }
.public-home__closing p { margin: 0.65rem 0 1.4rem; color: var(--shared-muted); }

/* The header remains dark, and only Get started is the solid mustard control. */
.public-header__brand { color: var(--chrome-ink); text-decoration: none; }
.public-header__nav a.button { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 43.75rem) {
  .public-home__hero,
  .public-home__beats,
  .public-home__features,
  .public-home__closing { padding-right: 1rem; padding-left: 1rem; }
  .public-home__hero { padding-top: 2.4rem; padding-bottom: 3.15rem; }
  .public-home__hero-inner,
  .public-home__beat,
  .public-home__beat--reversed { display: flex; flex-direction: column; align-items: stretch; gap: 1.7rem; }
  .public-home__intro h1 { font-size: 2.7rem; }
  .public-home__lead { font-size: 1.06rem; }
  .home-paste { padding: 1rem; }
  .home-paste__actions { align-items: stretch; flex-direction: column; }
  .home-action { width: 100%; }
  .home-paste__sample { justify-content: flex-start; }
  .home-preview__head { flex-wrap: wrap; padding: 0.8rem 1rem; }
  .home-preview__keys { margin-left: auto; }
  .home-preview__badge { order: 3; }
  .public-home__beats { padding-bottom: 3.2rem; }
  .public-home__beat { padding: 3.25rem 0; }
  .public-home__beat--reversed .public-home__beat-copy { order: 0; }
  .public-home__visual { min-height: 14.75rem; }
  .public-home__cards { grid-template-columns: 1fr; gap: 0.75rem; }
  .public-home__tools { padding: 1.55rem 1rem; }
  .public-home__tools > div { display: block; }
  .public-home__tools > div > p { margin-top: 0.55rem; gap: 0.85rem; }
  .public-home__closing { padding-top: 3.9rem; padding-bottom: 3.9rem; }
}
