/* Petal's own pieces, on top of styles.css and home.css: a solid header, the
   one static sample of the dock in the pink band, the fact rows, and the
   install line. Solid fills only: no glass blur, no rims, no pills. */

/* The header: paper on paper, short and centered. */
.nav {
  position: sticky;
  top: 0;
  left: auto;
  translate: none;
  width: 100%;
  max-width: none;
  justify-content: center;
  gap: 18px;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: var(--page);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-theme {
  border: 0;
  background: transparent;
}
.nav-download,
html[data-shown='dark'] .nav-download {
  height: auto;
  padding: 8px 10px;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 600;
}
.nav-download:hover,
html[data-shown='dark'] .nav-download:hover {
  color: var(--ink);
}
.m-hero {
  padding-top: 56px;
}

/* Linux leads here (Petal runs on Omarchy). Mac and Windows are on the way. */
.m-button.soon {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  pointer-events: none;
}
.m-button.soon small {
  font-size: 13px;
  opacity: 0.8;
}
.away {
  display: none;
}
html[data-os='mac'] .away[data-for='mac'],
html[data-os='windows'] .away[data-for='windows'] {
  display: block;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-basis: 100%;
  min-width: 0;
  max-width: 560px;
  margin-top: 4px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font: 13.5px/1.4 ui-monospace, 'JetBrains Mono', Menlo, monospace;
  color: var(--ink-2);
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd button {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--hover);
  color: var(--ink);
  font: 600 13px/1 var(--text);
  cursor: pointer;
}
.cmd button:hover {
  background: var(--tint-strong);
}

/* ── The dock, drawn ─────────────────────────────────────────────────── */
/* The band is a deeper pink in the dark. */
html[data-shown='dark'] .m-band,
html[data-shown='dark'] .m-solid {
  background: #9e2559;
}

.stage {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  min-height: 250px;
  display: grid;
  align-content: end;
  justify-items: center;
  padding-top: 24px;
}
.dock {
  --seg: 38px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 24px;
  background: #2a1022;
}
.switch {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}
.switch .hl {
  position: absolute;
  top: 3px;
  left: 3px;
  width: var(--seg);
  height: var(--seg);
  border-radius: 50%;
  background: var(--mode, #b18cff);
  transition: translate 420ms cubic-bezier(0.2, 0.7, 0.2, 1), background 420ms;
}
.switch b {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--seg);
  height: var(--seg);
  color: var(--c);
  transition: color 300ms;
}
.switch b.on {
  color: #fff;
}
.switch svg,
.tile svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.claude {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
}
.claude .ring2 {
  position: absolute;
  inset: 0;
  rotate: -90deg;
}
.claude .ring2 circle {
  fill: rgb(255 255 255 / 7%);
  stroke: #ff5d86;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 6;
}
.claude img {
  width: 19px;
  height: 19px;
}
.sep {
  width: 1px;
  height: 30px;
  margin: 0 8px;
  background: rgb(255 255 255 / 22%);
}
.apps {
  display: flex;
  gap: 6px;
  min-width: 260px;
  justify-content: center;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--bg, #444);
  color: #fff;
  transition: opacity 260ms, scale 320ms cubic-bezier(0.3, 1.4, 0.5, 1);
}
.tile.out {
  opacity: 0;
  scale: 0.6;
}
.tile.run::after {
  content: '';
  position: absolute;
  bottom: -7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
}
.tile.plus {
  background: rgb(255 255 255 / 8%);
  color: var(--mode, #b18cff);
  transition: color 420ms;
}
.tile.folder {
  background: linear-gradient(180deg, #f3a8cf, #d76ea8);
}
.tile.trash {
  background: linear-gradient(180deg, #f1f1f4, #c9c9d2);
  color: #6a6a78;
}
.tile .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b7f;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 85%);
  font: 700 11px/18px var(--system);
  text-align: center;
}

/* The focus card that floats over the dock. */
.fcard {
  position: absolute;
  bottom: 92px;
  width: min(380px, 92%);
  padding: 14px 16px;
  border-radius: 16px;
  background: #2a1022;
  color: #fff;
  font: 14px/1.45 var(--system);
  opacity: 0;
  translate: 0 10px;
  transition: opacity 300ms, translate 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.fcard.on {
  opacity: 1;
  translate: 0 0;
}
.fcard b {
  font-weight: 600;
}
.fcard .dim {
  color: rgb(255 255 255 / 62%);
}
.fcard .acts {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

/* ── Modes list ──────────────────────────────────────────────────────── */
.modes {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr);
  gap: 14px 24px;
  max-width: 40em;
  margin: 24px 0 0;
}
.modes dt,
.modes dd {
  margin: 0;
}
.modes dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 500 17px/1.3 var(--display);
}
.modes dt i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
}
.modes dd {
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .stage {
    min-height: 220px;
  }
  .dock {
    --seg: 26px;
    gap: 2px;
    padding: 6px 8px;
  }
  .dock .tile.plus,
  .dock .tile.plus + .sep {
    display: none;
  }
  .apps {
    min-width: 0;
    gap: 4px;
  }
  .tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .tile.folder,
  .tile.trash,
  .dock .sep:last-of-type {
    display: none;
  }
  .claude {
    width: 34px;
    height: 34px;
  }
  .modes {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .modes dd {
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .switch .hl,
  .tile,
  .fcard {
    transition: none;
  }
}
